﻿$.swapImage(".swapImage");
	
$(document).ready(function(){
    
    // Top navigation drop downs
    $("ul.topnav li .btn-Slide").mouseover(function() { //When trigger is clicked...
		
	    //Following events are applied to the subnav itself (moving subnav up and down)
	    $(this).parent().find("div").slideDown('slow').show(); //Drop down the subnav on click

	    $(this).parent().hover(function() {
	    }, function(){	
		    $(this).parent().find("div").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
	    });
    });
    
    //side navigation
    $('ul#sideMenu li a').mouseover(function() {              
        $(this).parent().addClass('even');
    }).mouseout(function() {   
        $(this).parent().removeClass('even');
    });   
    
    //Full Caption Sliding (Hidden to Visible) - Hero
	$('.boxgrid.captionfull').ready(function(){
	    $(".cover", this).animate({top:'218px'},{queue:false,duration:0});
		$(".cover", this).show().stop().animate({top:'148px'},{queue:false,duration:1500});
	});
	/*$('.boxgrid.captionfull').hover(function(){
	    $(".cover", this).stop().animate({top:'148px'},{queue:false,duration:1000});
	}, function() {
		$(".cover", this).stop().animate({top:'218px'},{queue:false,duration:160});
	});*/
});
