////////////////////////////////////////////////////////////////////////////////
// Flash Player Version Detection - Rev 1.5
// Detect Client Browser type
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
////////////////////////////////////////////////////////////////////////////////

var requiredMajorVersion = 8;
var requiredMinorVersion = 0;
var requiredRevision = 0;

var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function ControlVersion(){
var version; var axo; var e;
	try {
		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version = axo.GetVariable("$version");	} catch (e) {}
	if (!version) { try {
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
			version = "WIN 6,0,21,0";
			axo.AllowScriptAccess = "always";
			version = axo.GetVariable("$version");	} catch (e) {}
		}
	if (!version) {	try {
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = axo.GetVariable("$version");	} catch (e) {}
	}
	return version;
}

function GetSwfVer(){
var flashVer = -1;
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			if ( descArray[3] != "" ) { tempArrayMinor = descArray[3].split("r");} else { tempArrayMinor = descArray[4].split("r");}
			var versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if (isIE && isWin && !isOpera) { flashVer = ControlVersion();}
	return flashVer;
}

function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision){
versionStr = GetSwfVer();
	if (versionStr == -1 ) { return false;}
	else if (versionStr != 0) {
		if(isIE && isWin && !isOpera) {
			tempArray         = versionStr.split(" ");
			tempString        = tempArray[1];
			versionArray      = tempString.split(",");
		} else { versionArray = versionStr.split(".");}
	var versionMajor      = versionArray[0];
	var versionMinor      = versionArray[1];
	var versionRevision   = versionArray[2];
		if (versionMajor > parseFloat(reqMajorVer)) { return true;}
		else if (versionMajor == parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor == parseFloat(reqMinorVer)) {
				if (versionRevision >= parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}

function homeSWF(){
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasReqestedVersion) {
    var oeTags = ''
    + '<object width="780" height="390" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="home.swf" \/><param name="menu" value="false"><param name="quality" value="high" \/><param name="wmode" value="transparent" \/>'
    + '<embed src="home.swf" name="movie" width="780" height="390" menu="false" quality="high" play="true" wmode="transparent" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>'
    + '<\/object>';
    document.write(oeTags);
  } else {
    document.write('<img src="/images/flash/home.jpg" width="770" height="240" alt="" \/>');
  }
}

function aisatuSWF(){
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasReqestedVersion) {
    var oeTags = ''
    + '<object width="560" height="330" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="/flash/1aisatu/index.swf" \/><param name="menu" value="false"><param name="quality" value="high" \/>'
    + '<embed src="/flash/1aisatu/index.swf" name="movie" width="560" height="330" menu="false" quality="high" play="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>'
    + '<\/object>';
    document.write(oeTags);
  } else {
    document.write('<img src="/images/flash/aisatu.jpg" width="560" height="330" alt="" \/>');
  }
}

function recruitSWF(){
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasReqestedVersion) {
    var oeTags = ''
    + '<object width="560" height="330" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="/flash/2recruit/index.swf" \/><param name="menu" value="false"><param name="quality" value="high" \/>'
    + '<embed src="/flash/2recruit/index.swf" name="movie" width="560" height="330" menu="false" quality="high" play="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>'
    + '<\/object>';
    document.write(oeTags);
  } else {
    document.write('<img src="/images/flash/recruit.jpg" width="560" height="330" alt="" \/>');
  }
}

function voiceSWF(){
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasReqestedVersion) {
    var oeTags = ''
    + '<object width="577" height="658" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="/flash/3voice/player.swf" \/><param name="menu" value="false"><param name="quality" value="high" \/>'
    + '<embed src="/flash/3voice/player.swf" name="movie" width="577" height="658" menu="false" quality="high" play="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>'
    + '<\/object>';
    document.write(oeTags);
  } else {
    document.write('<img src="/images/flash/voice.jpg" width="560" height="330" alt="" \/>');
  }
}

function kraftwerkSWF(){
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasReqestedVersion) {
    var oeTags = ''
    + '<object width="580" height="454" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="/flash/kraftwerk.swf" \/><param name="menu" value="false"><param name="quality" value="high" \/>'
    + '<embed src="/flash/kraftwerk.swf" name="movie" width="580" height="454" menu="false" quality="high" play="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>'
    + '<\/object>';
    document.write(oeTags);
  } else {
    document.write('<img src="/images/flash/kraftwerk.jpg" width="580" height="424" alt="" \/>');
  }
}

function silencerSWF(){
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasReqestedVersion) {
    var oeTags = ''
    + '<object width="580" height="454" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="/flash/silencer.swf" \/><param name="menu" value="false"><param name="quality" value="high" \/>'
    + '<embed src="/flash/silencer.swf" name="movie" width="580" height="454" menu="false" quality="high" play="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>'
    + '<\/object>';
    document.write(oeTags);
  } else {
    document.write('<img src="/images/flash/silencer.jpg" width="580" height="424" alt="" \/>');
  }
}

function compostSWF(){
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasReqestedVersion) {
    var oeTags = ''
    + '<object width="580" height="570" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="/flash/compost.swf" \/><param name="menu" value="false"><param name="quality" value="high" \/>'
    + '<embed src="/flash/compost.swf" name="movie" width="580" height="570" menu="false" quality="high" play="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>'
    + '<\/object>';
    document.write(oeTags);
  } else {
    document.write('<img src="/images/flash/compost.jpg" width="580" height="540" alt="" \/>');
  }
}

function dustcollectorSWF(){
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasReqestedVersion) {
    var oeTags = ''
    + '<object width="580" height="434" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="/flash/dustcollector.swf" \/><param name="menu" value="false"><param name="quality" value="high" \/>'
    + '<embed src="/flash/dustcollector.swf" name="movie" width="580" height="434" menu="false" quality="high" play="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>'
    + '<\/object>';
    document.write(oeTags);
  } else {
    document.write('<img src="/images/flash/dustcollector.jpg" width="580" height="404" alt="" \/>');
  }
}

function ecodasSWF(){
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasReqestedVersion) {
    var oeTags = ''
    + '<object width="580" height="454" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="/flash/ecodas.swf" \/><param name="menu" value="false"><param name="quality" value="high" \/>'
    + '<embed src="/flash/ecodas.swf" name="movie" width="580" height="454" menu="false" quality="high" play="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>'
    + '<\/object>';
    document.write(oeTags);
  } else {
    document.write('<img src="/images/flash/ecodas.jpg" width="580" height="425" alt="" \/>');
  }
}


