jQuery(document).ready(function() {


	//thumbnail hover
	$(".site-thumbs dl dt").hover(function() { //On hover...

		var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'

		//Set a background image(thumbOver) on the <a> tag - Set position to bottom
		$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});

		//Animate the image to 0 opacity (fade it out)
		$(this).find("span").stop().fadeTo('normal', 0 , function() {
			$(this).hide() //Hide the image after fade
		});
	} , function() { //on hover out...
		//Fade the image to full opacity 
		$(this).find("span").stop().fadeTo('normal', 1).show();
	});


	//jQuery menu Hover and show/hide panels
	jQuery(".main-navi ul li > a").click(function() 
			{
				var selectedM = jQuery(this);
				$(".main-navi ul li > a").removeClass("active");
				selectedM.addClass("active");
				jQuery(".slide-container div").hide().eq(jQuery(".main-navi ul li > a").index(this)).show();
				return false
			});
	
	//jQuery cycle (slideshow)
	$(".slide1, .slide2, .slide3, .slide4").cycle(
	{
		fx: "fade",
		speed:    1000, 
    	timeout:  3500
	});
	
	$("#banner_iulie").cycle(
	{
		fx: "fade",
		speed:    1000, 
    	timeout:  1000
	});

});




	