
$(document).ready(function(){
	$("#topnav li a").hover(function() { //When trigger is clicked...
		
		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click

		$(this).parent().hover(function() {
		}, function(){	
			$(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		});

	});
	
	$("a[rel='portfolio']").colorbox({
		slideshow:true,
		slideshowAuto:false,
		maxWidth:'100%',
		maxHeight:'100%',
		opacity:'.85',
		transition:'elastic',
		width:'800px',
		current:'{current} / {total}'
		});
	
	$(".video").colorbox();


 });

