$(function() {
 	$("body").addClass("js")
	
	if($.browser.msie && $.browser.version<7){
		var $pngs = $("img[src='.png']");
		if($pngs.length>0){ $pngs.ifixpng(); }
	}
	
	$("h1 > span:eq(0)").each(function(){
			/*$t = $(this);
			var swfdir = "";
			var t_as = 0;
			var t_w = "548";
			var t_a = "left";
			var t_t = encodeURIComponent(String($t.text()));
			var t_c = "0x377292";
			var t_h = "68";
			var t_s = 42;
			var swffont = "headings.swf";
			var newheight_t = "68px";
			var newid = "swftext"+Math.floor(Math.random()*100000);
			$t.css('textIndent',"-999em");
			var swfvars = "as="+t_as+"&amp;w="+t_w+"&amp;a="+t_a+"&amp;t="+t_t+"&amp;c="+t_c+"&amp;h="+t_h+"&amp;s="+t_s;
			if($.browser.msie){
				var obj = "<object data=\""+swfdir+swffont+"\" id=\""+newid+"\" width=\""+t_w+"px"+"\" height=\""+t_h+"px"+"\" type=\"application/x-shockwave-flash\"><param name=\"type\" value=\"application/x-shockwave-flash\" /><param name=\"src\" value=\""+swfdir+swffont+"\" /><param name=\"data\" value=\""+swfdir+swffont+"\" /><param name=\"codebase\" value=\""+swfdir+swffont+"\" /><param name=\"movie\" value=\""+swfdir+swffont+"\" /><param name=\"quality\" value=\"high\" /><param name=\"wmode\" value=\"transparent\"><param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" /><param name=\"flashvars\" value=\""+swfvars+"\" /></object>";
			}else{
				var obj = "<object data=\""+swfdir+swffont+"\" id=\""+newid+"\" width=\""+t_w+"px"+"\" height=\""+t_h+"px"+"\" type=\"application/x-shockwave-flash\"><param name=\"type\" value=\"application/x-shockwave-flash\" /><param name=\"src\" value=\""+swfdir+swffont+"\" /><param name=\"data\" value=\""+swfdir+swffont+"\" /><param name=\"codebase\" value=\""+swfdir+swffont+"\" /><param name=\"movie\" value=\""+swfdir+swffont+"\" /><param name=\"quality\" value=\"high\" /><param name=\"wmode\" value=\"transparent\"><param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" /><param name=\"flashvars\" value=\""+swfvars+"\" /></object>";
			}
			$(obj).appendTo($t);*/
			
			
			$t = $(this);
			/*var swfdir = "";
			var t_as = true;
			var t_w = "320";
			var t_a = "left";
			var t_t = encodeURIComponent(String($t.text()));
			var t_c = "0x000000";
			var t_h = "86";
			var t_s = 64;
			var swffont = "headings.swf";
			var newid = "swftext"+Math.floor(Math.random()*100000);
			$t.css('textIndent',"-999em");
			var swfvars = "as="+t_as+"&amp;w="+t_w+"&amp;a="+t_a+"&amp;t="+t_t+"&amp;c="+t_c+"&amp;h="+t_h+"&amp;s="+t_s;
			if($.browser.msie){
				var obj = "<object data=\""+swfdir+swffont+"\" id=\""+newid+"\" width=\""+t_w+"px"+"\" height=\""+t_h+"px"+"\" type=\"application/x-shockwave-flash\"><param name=\"type\" value=\"application/x-shockwave-flash\" /><param name=\"src\" value=\""+swfdir+swffont+"\" /><param name=\"data\" value=\""+swfdir+swffont+"\" /><param name=\"codebase\" value=\""+swfdir+swffont+"\" /><param name=\"movie\" value=\""+swfdir+swffont+"\" /><param name=\"quality\" value=\"high\" /><param name=\"wmode\" value=\"transparent\"><param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" /><param name=\"flashvars\" value=\""+swfvars+"\" /></object>";
			}else{
				var obj = "<object data=\""+swfdir+swffont+"\" id=\""+newid+"\" width=\""+t_w+"px"+"\" height=\""+t_h+"px"+"\" type=\"application/x-shockwave-flash\"><param name=\"type\" value=\"application/x-shockwave-flash\" /><param name=\"src\" value=\""+swfdir+swffont+"\" /><param name=\"data\" value=\""+swfdir+swffont+"\" /><param name=\"codebase\" value=\""+swfdir+swffont+"\" /><param name=\"movie\" value=\""+swfdir+swffont+"\" /><param name=\"quality\" value=\"high\" /><param name=\"wmode\" value=\"transparent\"><param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" /><param name=\"flashvars\" value=\""+swfvars+"\" /></object>";
			}
			$(obj).appendTo($t);*/
			var newid = "swftext"+$t.index()+Math.floor(Math.random()*100000);
			$t.attr({id:newid});
			//$t.append("<div id=\""+newid+"\"></div>");
			var w = 548; var h = 68;
			//$t.css('textIndent',"-999em");
			var swfvars = { as:false, a:"left", w:w, h:h, c:"0x377292", s:42, t:encodeURIComponent(String($t.text())) }
			swfobject.embedSWF("headings.swf", newid, w, h, "9.0.0", "js/expressInstall.swf", swfvars,{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; });
	});
	
 })
