$(document).ready(function(){	
			$("#slider").easySlider({
				speed: 400,
				pause: 5000,
				auto: true, 
				continuous: true,
				numeric: true,
				hoverPause: true
			});
			
			$('#form_newsletter').hide();
			$('#link_news').click(function(){
				$('#form_newsletter').toggle();
				    return false;
		   	});
		   	
			$('.sociable').hide();
			$('#link_share').click(function(){
				$('.sociable').toggle();
				    return false;
		   	});
		   	
		   $('span.client_work_other').hide();
		   $('#project_list').hide();
		
		   $('#toggleClient').click(function(){
		     $('span.client_work_other').slideToggle('slow');
		     return false;
		   });
		   
		   $('#toggleList').click(function(){
		     $('#project_list').toggle();
		     return false;
		   });
		   
		   $("#img-rotate a").each(function () {
  			 var title = $(this).attr("title");
  			 var href = $(this).attr("href");
  			 if (!title) {
  				title = $("#img-rotate img").attr("title");
  		     }
  		     $("<div class='caption'><a href='"+ href + "'>"+ title +"</a></div>").insertBefore(this);
			});
		   
		   $('#img-rotate .caption').hide();
		   $("#img-rotate a").hover(function () {
		   	$("#img-rotate .caption").show();
		   }, function () {
		   	$("#img-rotate .caption").hide();
		   }
		   
		   );
			
		});	
