<!-- FLASHCHECK -->



var fc_4 = false;
var fc_5 = false;
var fc_6 = false;
var fc_7 = false;
var fc_8 = false;

var fc_highestVersion = 0;

function detectFlash() { 
	
	var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
	var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;

	if(isIE && isWin){
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('fc_4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
		document.write('fc_5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');
		document.write('fc_6 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
		document.write('fc_7 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');
		document.write('fc_8 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n');
		document.write('</SCR' + 'IPT\> \n');
	}
	
	if (navigator.plugins) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
			var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
			fc_2 = flashVersion == 2;
			fc_3 = flashVersion == 3;
			fc_4 = flashVersion == 4;
			fc_5 = flashVersion == 5;
			fc_6 = flashVersion == 6;
			fc_7 = flashVersion == 7;
			fc_8 = flashVersion >= 8;
		}
	}

	for (var i = 4; i <= 8; i++) { 
		if (eval("fc_" + i) == true) 
			fc_highestVersion = i;
	}
	//alert(fc_highestVersion);
}

detectFlash();






function setFlash(flashUrl, sizeX, sizeY, sid, pid)
{ 
	var aspLink = "/flashmenu.asp?sid=" + sid + "%26pid=" + pid;
	if(fc_highestVersion >= 7) {
		var embedCode_flash = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ '" width="' + sizeX + 'px" height="' + sizeY + '"'
		+ '" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="' + flashUrl +'">'
		+ '<param name="quality" value="high">'
		+ '<param name="menu" value="false">'
		+ '<param name="bgcolor" value="#000000">'
		+ '<param name="FlashVars" value="asplink=' + aspLink + '">'
		+ '<embed src="' + flashUrl +'"'
		+ ' width="' + sizeX + 'px"'
		+ ' height="' + sizeY + 'px"'
		+ ' bgcolor="#000000"'
		+ ' quality="high"'
		+ ' menu="false"'
		+ ' FlashVars="asplink=' + aspLink + '"'
		+ ' type="application/x-shockwave-flash"'
		+ ' pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '</embed>'
		+ '</object>';
	document.write(embedCode_flash);
	} else {
	document.write('<a title="3" href="' + link +'" /><img width="' + sizeX +'" height="' + sizeY +'" src="' + imageUrl +'" border="0"></a><br />');
	}
}

