$(document).ready(function(){

	$(".slidex").click(function(){
	$("#search_drop_contain").slideToggle("slow");
		$(this).toggleClass("activex"); return false;
	});
	
	 
});

$(document).ready(function() {
	anchor.init()
});

anchor = {
	init : function()  {
		$("a.anchorLink").click(function () {	
			elementClick = $(this).attr("href")
			destination = $(elementClick).offset().top;
			$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, 1100 );
		  	return false;
		})
	}
}
    


navHover = function() {
var lis = document.getElementById("navmenu").getElementsByTagName("LI");
for (var i=0; i<lis.length; i++) {
lis[i].onmouseover=function() {
this.className+=" iehover";
}
lis[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" iehover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", navHover);

$(document).ready(function(){
				//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
			
				//Horizontal Sliding
				$('.boxgrid.slideright').hover(function(){
					$(".cover", this).stop().animate({left:'-325px'},{queue:false,duration:600});
				}, function() {
					$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:600});
				});
				
			});

    