$(function(){
	$(document).pngFix();
	
	$('li.drop').find("ul.drop-down").addClass("hide");
	$('li.drop').hover(
		function(){
			$(this).find("a").addClass("jhover");
			$(this).find("ul.drop-down").removeClass("hide");
			$(this).find("ul.drop-down").addClass("show");
		}, function(){
			$(this).find("a").removeClass("jhover");
			$(this).find("ul.drop-down").removeClass("show");
			$(this).find("ul.drop-down").addClass("hide");
		}
	);
	var popup;
	$('a[rel="zoombox"]').click(function(e){
		e.preventDefault();

		popup = window.open($(this).attr('href'), 'Zoom', 'width=1010,height=600,toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no');
		popup.focus();
	});

	$('a[href=#top]').click(function(){
        $('html, body').animate({scrollTop:0}, 'slow');
        return false;
    });

	$('a.colorbox').colorbox({slideshow:false});
	
	$('#slider').nivoSlider({
						directionNav:false
							});
	
	
	$('#video-link').colorbox({
		  iframe: true,
		  innerWidth: "900px",
		  innerHeight: "550px"
	});
});

