$(document).ready(function() {	  
		
		$("#selectAllTld").click(function(){
			if ($('.tlds').is(':checked')) {
				$(".tlds").attr('checked',true);	
			} else {
				$(".tlds").attr('checked',false);	
			}	
			return false;
		});

		// main navigation
		
		//Append a div with hover class to all the LI
		$('.main_nav li').append('<div class="hover"><\/div>');
	
	
		$('.main_nav li').hover(
			
			//Mouseover, fadeIn the hidden hover class	
			function() {
				
				$(this).children('div').fadeIn('250');	
			
			}, 
		
			//Mouseout, fadeOut the hover class
			function() {
			
				$(this).children('div').fadeOut('250');	
			
		}).click (function () {
		
			//Add selected class if user clicked on it
			$(this).addClass('selected');
			
		});
		
		});

		// closing main navigations 
		
$(document).ready(function() {
		
		$('a.touch_btn')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0 -64px)"}, {duration:500})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:200, complete:function(){
				$(this).css({backgroundPosition: "0 0"})
			}})
		});
		
		/*$('#slides').slides({
			preload: true,
			preloadImage: 'img/loadinfo.net.gif',
			play: 5000,
			pause: 2500,
			hoverPause: true
		});	*/
			
	/*	$("a img").fadeTo("fast", 1); // This sets the opacity of the thumbs to fade down to 60% when the page loads
		
		$("a img").hover(function(){
		$(this).fadeTo("fast", 0.5); // This should set the opacity to 100% on hover
		},function(){
		$(this).fadeTo("fast", 1); // This should set the opacity back to 60% on mouseout
		});
		
		$(".footer_nav ul li a").fadeTo("fast", .9);
		
		$(".footer_nav ul li a").hover(function(){
		$(this).fadeTo("fast", 1);
		},function(){
		$(this).fadeTo("fast", .5); // This should set the opacity back to 60% on mouseout
		}); */
		
		
			
			// Ride the carousel...
/*		    $("#listeProjets").jcarousel({
		        scroll: 1,
		        wrap: 'circular',
		        initCallback: mycarousel_initCallback,
		        // This tells jCarousel NOT to autobuild prev/next buttons
		        buttonNextHTML: null,
		        buttonPrevHTML: null
		    });*/
			
			
				
				
				

				
	});

