Cufon.replace('h1');
Cufon.replace('h2');

$(document).ready(function(){  
	$(document).pngFix(); 

	//$("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag aftersubnav*)  
	//$("ul.subnav").siblings("a").append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag aftersubnav*)  

	$("ul.topnav li a").hover(function() { //When trigger is clicked...  
		$(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('fast');  
		});  
		
	}).hover(function() {  
		$(this).addClass("subhover"); //On hover over, add class "subhover"  
	}, function(){  //On Hover Out  
		$(this).removeClass("subhover"); //On hover out, remove class "subhover"  
	});
	
	
	$("ul.opdrachtbylist a").hover(function() {
		$(this).addClass("hover").stop();
		$(this).fadeTo("fast", 0.8);
	}, function() {
		$(this).removeClass("hover").stop();
		$(this).fadeTo("fast", 1.0);
	});
	
});

	var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'name','height=800,width=790, resizable=yes,scrollbars=yes,toolbar=no,status=no');
	if (window.focus) {newwindow.focus()}
};
