$(function() {
 	$("body").addClass("js")
	
	if ($.browser.msie && $.browser.version < 7) {
		var ie_fix_pngs = $("img[src$='.png'], #container.mainstay h1 span");
		if(ie_fix_pngs.length>0) { ie_fix_pngs.ifixpng(); }	
	}
	
	$("#navigation li").each(function() {
		if($(this).children("ul").length>0){
			$submenu = $(this).children("ul").eq(0);
			$clone = $(this).clone();
			$clone.prependTo($submenu).children("ul").eq(0).remove();
			$("<strong></strong>").appendTo($clone);
			$clone.children("a").appendTo($clone.children("strong").eq(0))
		}
	});
	$("#navigation > ul").superfish({delay: 500, speed: 100, dropShadows: false });
	
	$("a[title^='New Window: ']").each(function(){
		var newtitle = String($(this).attr('title')).substring(String("New Window: ").length);
		$(this).attr('title',newtitle);
		$(this).click(function(){ var newwin = window.open($(this).attr('href'),'newwin'); newwin.focus(); return false; });
	});
	
 });