

$(document).ready(function(){

	//Level-nested menu (Hidden if inactive)
	//$("ul.tabs").tabs("div.panes > div");
	

	$("ul.tabs-sub a[id!=current] img").each(function() {

		if ($(this).attr('id') != 'current') {
		$(this).hover(function(){
			$(this).attr('src', $(this).attr('src').replace("_off.png","_over.png"));
			},
			function() {
			$(this).attr('src', $(this).attr('src').replace("_over.png","_off.png"));
			});
		}
		});

	//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
	//Vertical Sliding
	$('.boxgrid.slide').hover(function(){
		$(".cover", this).stop().animate({top:'-250px'},{queue:false,duration:800}).fadeTo("slow", 0.3);
		}, function() {
		$(".cover", this).stop().animate({top:'5px'},{queue:false,duration:800}).fadeTo("slow", 0.8);
	});

//End of scripts
});