//======== detect the plugin version, and compare it to the version required to play the movie ========//
	var flashVersion = 7;
	var versionNum = flashVersion;
	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 flashPluginVersion = words[i]; 
		    }
		var flashEnabled = flashPluginVersion >= flashVersion;
	}
	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('flashEnabled = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & flashVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}
//======== function createFlashObject (versionNum, src, width, height) ========//
//======== creates the flash object based on the parameters, or tells the end user how to download a compatible version of the Flash player, if it's not installed on the user's machine ========//
function createFlashObject (src, width, height, flashvars, padding) {
	var output = "";
	if (flashEnabled) {
		output += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + versionNum + ',0,0,0" width="'+ width +'" height="' + height +'" id="flashMovie" align="middle">\n';
		output += '<param name="allowScriptAccess" value="sameDomain" />\n';
		output += '<param name="movie" value="'+src+'" />\n';
		output += '<param name="quality" value="high" />\n';
		output += '<param name="bgcolor" value="#ffffff" />\n';
		output += '<param name="FlashVars" value="'+ flashvars +'" />\n';
		output += '<param name="quality" value="high" />\n';
		output += '<embed src="'+src+'" quality="high" bgcolor="#ffffff" width="'+ width +'" height="' + height +'" name="flashMovie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+flashvars+'" />\n';
	} else {
		output += '<div style="font-family:verdana, arial, helvetica; font-size:.8em;">\n'
		output += '<p>You need version ' + versionNum +' of the Flash player to view this content.</p>\n';
		output += '<p>Download the latest version for <b>free</b> <a href="http://www.macromedia.com/go/getflashplayer">here</a>.</p>\n';
		output += '</div>\n';
	}
	if (padding) {
			output =	'<div style="padding:'+ padding + 'px">\n'+ output +'</div>\n';
	}
	document.write(output);
}



function popUp(myPage, windowName, myWidth, myHeight, resize, scroll){
LeftPosition= (screen.width*0.5)-(myWidth*0.5);
TopPosition= (screen.height*0.4)-(myHeight*0.5);
window.open(myPage, windowName, 'width='+myWidth+',height='+myHeight+',top='+TopPosition+',left='+LeftPosition+',scrollbars=' + scroll +',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=' + resize);
}

function refreshIframe() 
{
	var f1 = document.getElementById('banner1');
	var f2 = document.getElementById('banner2');
	var f3 = document.getElementById('banner3');
	f1.src = f1.src;
	f2.src = f2.src;
	f3.src = f3.src;
}


