// file defnition

swfFile="vis.swf";
altImage="images/top-main1-flash-dummy.jpg";

swfId="main1-flash";
swfWidth="749";
swfHeight="238";

swfQuality="high";
swfLiveConnect="false";
swfMenu="true"



// check Flash Player

var Flash = function () {
var o = {installed:0, version:[]}, description, oActiveX, nMajor, nMinor;
if (navigator.plugins && typeof navigator.plugins["Shockwave Flash"] == "object") {
o.pluginType = "npapi";
description = navigator.plugins["Shockwave Flash"].description;
if (typeof description != "undefined") {
description = description.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
nMajor = parseInt(description.replace(/^(.*)\..*$/, "$1"), 10);
nMinor = /r/.test(description) ? parseInt(description.replace(/^.*r(.*)$/, "$1"), 10) : 0;
o.version = [nMajor, nMinor];
o.installed = 1;
}
}
else if (window.ActiveXObject) {
o.pluginType = "ax";
try {
oActiveX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
}
catch (e) {
try {
oActiveX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
o.version = [6, 0];
o.installed = 1;
oActiveX.AllowScriptAccess = "always";
}
catch (e) {
if (o.version[0] == 6) {o.installed=1; return; }
}
try {
oActiveX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
}
catch (e) {
}
}
if (typeof oActiveX == "object") {
description = oActiveX.GetVariable("$version");
if (typeof description != "undefined") {
description = description.replace(/^\S+\s+(.*)$/, "$1").split(",");
o.version = [parseInt(description[0], 10), parseInt(description[2], 10)];
o.installed = 1;
}
}
}
return o;
}();


// write Flash section

function writeFlashMAIN(){
	if(!Flash.installed){
		document.write('<img src="' + altImage + '" width="749" height="238" alt="">');
	}
	else {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"');
		document.write(' id="' + swfId + '" width="' + swfWidth + '" height="' + swfHeight + '">');

		document.write('<param name="movie" value="' + swfFile + '">');
		document.write('<param name="quality" value="' + swfQuality + '">');
		document.write('<param name="bgcolor" value="#ffffff">');
		document.write('<param name="menu" value="' + swfMenu + '">');
		document.write('<param name="wmode" value="transparent">');

		document.write('<embed src="' + swfFile + '" width="' + swfWidth + '" height="' + swfHeight + '" menu="' + swfMenu + '" wmode="transparent' + '" quality="' + swfQuality + '" swLiveConnect="' + swfLiveConnect + '" bgcolor="#ffffff' + '" name="' + swfId + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>');
		document.write('</object>');
	}
}

