function isWin () { return (navigator.appVersion.indexOf ("Win") != -1); }

function isIE () { return (navigator.appName.indexOf ("Explorer") != -1); }

function isWinIE () { return (isWin () && isIE ()); }

function getFlashPlayerVersion() { if (navigator.plugins) with (navigator) { var s = "application/x-shockwave-flash"; if (mimeTypes && mimeTypes [s] && mimeTypes [s].enabledPlugin) nFlashPlayerVersion = navigator.plugins ["Shockwave Flash"].description.match (/\d+/); } return parseInt (nFlashPlayerVersion); }; var nFlashPlayerVersion = 0; if (isWinIE ()) document.write ('<scr' + 'ipt type="text/vbscript" language="VBScript"\>\nPrivate i, b\nOn Error Resume Next\nFor i = 8 To 1 Step -1\nb = (IsObject (CreateObject ("ShockwaveFlash.ShockwaveFlash." & i)))\nIf b Then \nnFlashPlayerVersion = i\nExit For\nEnd If\nNext\n</scr' + 'ipt\>');

function setFlash(verNumber,swfImgName,swfImgWidth,swfImgHeight,pluginImgName,pluginImgAlt,mapMode,mapName){

	if (getFlashPlayerVersion() < verNumber && mapMode == 1) {

		document.write (

		'<img src="' + pluginImgName + '" alt="' + pluginImgAlt + '" width="' + swfImgWidth + '" height="' + swfImgHeight + '" usemap="' + mapName + '">'

		);

	} else if (getFlashPlayerVersion() < verNumber && mapMode == 0) {

		document.write (

		'<img src="' + pluginImgName + '" alt="' + pluginImgAlt + '" width="' + swfImgWidth + '" height="' + swfImgHeight + '" usemap="' + mapName + '">'

		);

	} else {

		document.write (

		'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + verNumber + ',0,0,0" width="' + swfImgWidth + '" height="' + swfImgHeight + '">' +

		'<param name="movie" value="' + swfImgName + '">' +
		'<param name="menu" value="false">' +
		'<param name="quality" value="high">' +
		'<param name="allowScriptAccess" value="sameDomain">' +
		'<embed src="' + swfImgName + '" menu="false" quality="high" width="' + swfImgWidth + '" height="' + swfImgHeight + '" swLiveConnect="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer"><\/embed><\/object>'

		);

	}

}

function setFlash_2img(verNumber,swfImgName,swfImgWidth,swfImgHeight,pluginImgName1,pluginImgName2,ImgWidth1,ImgHeight1,ImgWidth2,ImgHeight2,pluginImgAlt,mapMode,mapName){

	if (getFlashPlayerVersion() < verNumber && mapMode == 1) {

		document.write (

		'<img src="' + pluginImgName1 + '" alt="' + pluginImgAlt + '" width="' + ImgWidth1 + '" height="' + ImgHeight1 + '" usemap="' + mapName + '">' +
		'<img src="' + pluginImgName2 + '" alt="' + pluginImgAlt + '" width="' + ImgWidth2 + '" height="' + ImgHeight2 + '" usemap="' + mapName + '">'

		);

	} else if (getFlashPlayerVersion() < verNumber && mapMode == 0) {

		document.write (

		'<img src="' + pluginImgName1 + '" alt="' + pluginImgAlt + '" width="' + ImgWidth1 + '" height="' + ImgHeight1 + '">' +
		'<img src="' + pluginImgName2 + '" alt="' + pluginImgAlt + '" width="' + ImgWidth2 + '" height="' + ImgHeight2 + '">'

		);

	} else {

		document.write (

		'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + verNumber + ',0,0,0" width="' + swfImgWidth + '" height="' + swfImgHeight + '">' +
		'<param name="movie" value="' + swfImgName + '">' +
		'<param name="menu" value="false">' +
		'<param name="quality" value="high">' +
		'<param name="allowScriptAccess" value="sameDomain">' +
		'<embed src="' + swfImgName + '" menu="false" quality="high" width="' + swfImgWidth + '" height="' + swfImgHeight + '" swLiveConnect="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer"><\/embed><\/object>'

		);

	}

}


