$(document).ready(function() { 
	
	$('ul.menu').superfish({ 
		delay:       800,                            // one second delay on mouseout 
		animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
		speed:       'fast',                          // faster animation speed 
		autoArrows:  false,                           // disable generation of arrow mark-up 
		dropShadows: false                            // disable drop shadows 
	});
	 
	
	//accordion begin
	$("#accordion dt").eq(0).addClass("active");
	$("#accordion dd").eq(0).show();

	$("#accordion dt").click(function(){
		$(this).next("#accordion dd").slideToggle("slow")
		.siblings("#accordion dd:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("#accordion dt").removeClass("active");
		return false;
	});
	
	$('.menu li a.item')
		.css( {backgroundPosition: "0px 0px"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0px 75px)"}, {duration:'fast'})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:'fast', complete:function(){
				$(this).css({backgroundPosition: "0px 0px"})
			}})
	});
	
	$('.menu li a.item-1')
		.css( {backgroundPosition: "0px 0px"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0px 75px)"}, {duration:'fast'})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:'fast', complete:function(){
				$(this).css({backgroundPosition: "0px 0px"})
			}})
	});
		
	$('.nivo-controlNav a')
		.css( {backgroundPosition: "0px 0px"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0px 20px)"}, {duration:'fast'})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:'fast', complete:function(){
				$(this).css({backgroundPosition: "0px 0px"})
			}})
	});
		
	$(".list-services a.tooltips").easyTooltip();
	
	$('.list-2 li a').hover(function(){th=$(this).find('span'); th.stop().animate({textIndent:'7px'},250) },
								function(){th.stop().animate({textIndent:'0px'},250)});

}); 
