var oInterval = "";

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');
}

//Get our browser specific XmlHttpRequest object.
var receiveReq = getXmlHttpRequestObject();

//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject() {
	if (window.XMLHttpRequest) {
		return new XMLHttpRequest(); //Not IE	
	} else if(window.ActiveXObject) {
		return new ActiveXObject("Microsoft.XMLHTTP"); //IE	
	} else {
		alert("Your browser doesn't support the XmlHttpRequest object.  Time to upgrade.");	
	}
}

function changeImages() {
	changeImagesArray(changeImages.arguments);
}

function changeImagesArray(array) {
	if (document.images) {
		for (var i=0; i<array.length; i+=2) {
			document[array[i]].src = array[i+1];
		}
	}
}

function EmbedFlash(path, width, height, bgcolor, name, displayMessage) {
    if (MM_FlashCanPlay) {
        document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '" id="' + name + '" align="middle">\n');
        document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
        document.write('<param name="movie" value="' + path + '" /><param name="quality" value="high" /><param name="bgcolor" value="' + bgcolor + '" /><param name="wmode" value="transparent" />\n');
        document.write('<embed src="' + path + '" quality="high" bgcolor="' + bgcolor + '"  wmode="transparent" width="' + width + '" height="' + height + '" name="' + name + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
        document.write('</object>\n');
    } else if (displayMessage) {
        document.write("<br/><br/><br/><br/><br/>You must have Adobe Flash Player " + MM_contentVersion + " or greater installed to view this content. <a href=\"http://www.adobe.com/products/flashplayer/\">Click HERE to get it</a>" );
    }
}

function LoadTracker(trackerUrl) {
    //If our XmlHttpRequest object is not in the middle of a request, start the new asyncronous call.
	if (receiveReq.readyState == 4 || receiveReq.readyState == 0) {
	//    alert("Loading: " + trackerUrl);
		var ts =  new Date().getTime();
		//Setup the connection as a GET call
		//True explicity sets the request to asyncronous (default).
		receiveReq.open("GET", trackerUrl + "?ts=" + ts, true);
		//Make the actual request.
		receiveReq.send(null);
	}
}

function loadContent() { 
   // we just want to delay the load to allow time for the nav items to load first
   document.getElementById("fl_Content").style.display = "block";
   document.getElementById("content_holder").style.display = "none";
   
   clearInterval(oInterval);
}