
//Cufon.replace('#nav,.cfont,h2,h3,h4',{hover:true});

if (window.location.href.toString().indexOf("/pl/") == -1 && window.location.href.toString().indexOf("/pl.aspx") == -1) {
    Cufon.replace('#nav, #masthead, div.block h2, div.block h3, div.block h4, div.block teaserHeadline, div.block news', { hover: true });
    Cufon.replace('#hometeasers a strong', { hover: false });
}
$(document).ready(function(){
	//auto-adjust height of the .pad element in teasers. add "autoheight" on row.
	var ie6 = ($.browser.msie && $.browser.version < 7);
	var whatHeight = (ie6) ? 'height' : 'min-height';
	var $rows = $("div.autoheight").each(function(){
		var highest = 0; 
		$("div.mod",this).each(function(){
			var h = $(this).outerHeight(false); //height();
			if (h >= highest) highest=h;
		}).css(whatHeight, highest+'px'); //.height(highest);

	});
	
	
	//could easily be made more flexible...
	$("ul.accordion").each(function(){
		$(this).find("h4 a").click(function(){
			var $li = $(this).parents("li");
			var $panel = $li.find("div.panel");
			$panel.slideToggle(200);
			return false; 
		});
//		$(this).find("div.panel").hide();
	});
});

