$(function() {
 	$("body").addClass("js")
	
	if($.browser.msie && $.browser.version<7){
		var $pngs = $("img[src='.png']");
		if($pngs.length>0){ $pngs.ifixpng(); }
	}
	
	if($("#container").hasClass('home')){
		swfobject.embedSWF("images.swf", "images_swf", 240, 200, "9.0.0", null, {max:4,imgDir:encodeURIComponent("photos/slides/"),imgName:"slide",imgSufx:"_l",imgStart:0,fadeTime:3,fadeDelay:2000,imgNamePad:1},{wmode:"transparent"});
	}
	
	$("#navigation > ul").superfish({delay: 500, speed: 'fast', 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; });
	});
	
 })