// Code for Sliding Box on image rollhover

$(document).ready(function(){
	//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
	
	//Full Caption Sliding (Hidden to Visible)
	$('.boxgrid.captionfull').hover(function(){
		$(".cover", this).stop().animate({top:'125px'},{queue:false,duration:160});
	}, function() {
		$(".cover", this).stop().animate({top:'195px'},{queue:false,duration:160});
	});
});


// top slide show 
$(document).ready(function() {
	
	// Expand Panel
	$("#open").click(function(){
		$("div#panel").slideDown("slow");
	
	});	
	
	// Collapse Panel
	$("#close").click(function(){
		$("div#panel").slideUp("slow");	
	});		
	
	// Switch buttons from "Log In | Register" to "Close Panel" on click
	$("#toggle a").click(function () {
		$("#toggle a").toggle();
	});		
		
});

$(document).ready(function(){
	// Setup HoverAccordion for Example 2 with some custom options
	$('#example2').hoverAccordion({
		activateitem: '1',
		speed: 'fast'
	});
	$('#example2').children('li:first').addClass('firstitem');
	$('#example2').children('li:last').addClass('lastitem');
});

