function s_clickmap_handler(id) {
     var func = id+"_DoFSCommand";
     var bkFunc = "s_"+func;
     html =  "<script language='javascript'>"
          +      "var "+bkFunc+"="+func+"; "
          +      "var "+func+" = function(cmd,args) {"
          +          "if (cmd=='s_clickmap') {"
          +              "s_eo={tagName:'FLASH',s_oidt:0,s_oid:'"+id+":'+args};"
          +              "s_gs(s_account);"
          +          "} else if ("+bkFunc+") {"
          +              bkFunc+"(cmd,args);"
          +          "}"
          +      "};"
          +  "</"+"script>"
          +  "<script language='vbscript'>\n"
          +      "Sub "+id+"_FSCommand(cmd, args)\n"
          +          "call "+id+"_DoFSCommand(cmd, args)\n"
          +      "End Sub\n"
          +  "</"+"script>"
     document.writeln(html);
 }
  
var nonFlashPage = "noflash.html"
var MM_contentVersion = 7;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
if ( !MM_FlashCanPlay ) {
	window.document.location.replace(nonFlashPage);
}

function refreshAdFrames()
{
	top.exd_space.refresher.refresh_all();
}

function ctaPopup(ctaUrl)
{
	if (!ctaUrl) {
		ctaUrl = "";
	}
	window.open (ctaUrl,'CTA','scrollbars=no,location=no,directories=no,height=265,width=275,menubar=no,resizable=no,titlebar=no');
}

function genPopup(url, name, features)
{
	if (!url) {
		url = "";
	}
	window.open (url,name,features);
}

function getFormattedDate(date)
{
	var FDATE;
	var TEMP;
	var MM;
	
  with(new Date())
	{
  	TEMP = String((date.getFullYear() * 100 + date.getMonth() + 1) * 100 + date.getDate());  	
		MM = String(date.getMonth()+1);
  }	
	FDATE = MM+"/"+TEMP.substr(6, 8)+"/"+TEMP.substr(0, 4);	
			
	return FDATE;	
}
