function altCallback() {
	$("#noflash").html(noflashContent);
}

window.onload = function() {
	// parse url query
	var query = parseQuery();
	var prevFlTop = query.fltop;
	// add query fltop is 1;
	query.fltop = "1";
	if (query.flprd == undefined) {
		query.flprd = "0";
	}
	addQueryToLinks(query);
	
	// update contact link
	updateContactLink()
	
	// write swf
	var so = new SWFObject("/swf/top.swf", "top", "800", "360", "8", "#ffffff");
	so.addParam("wmode", "transparent");
	so.addVariable("fltop", prevFlTop);
	so.addVariable("flprd", query.flprd);
	loadFlash(so, "flashmovie", "noflash", 8, 0, 0, altCallback);
}

var noflashContent = "<div id=\"box-alert\" class=\"clearfix\">" + 
"<div class=\"text\">" + 
"<h4>The site you are viewing is optimized for Flash.</h4>" + 
"<p>To experience the full version of this website's content, please download the Flash player.</p>" + 
"</div>" + 
"<div class=\"banner\">" + 
"<a href=\"http://www.adobe.com/go/EN_US-H-GET-FLASH\" target=\"_blank\"><img src=\"/cmn_images/banner_flash.gif\" alt=\"Get ADOBE FLASH PLAYER\" width=\"112\" height=\"33\" /></a></div>" + 
"</div>" + 
"<p><img src=\"/images/photo_flash.jpg\" alt=\"\" width=\"800\" height=\"363\" /></p>";
