var $=function(id){
try{
return document.getElementById(id);
}
catch(e){
return false;
}
};
var flashDetect={};
flashDetect.requiredMajorVersion=8;
flashDetect.requiredMinorVersion=0;
flashDetect.requiredRevision=0;
flashDetect.jsVersion=1;
flashDetect.isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;
flashDetect.isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;
flashDetect.isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;
flashDetect.jsVersion=1.1;
flashDetect.JSGetSwfVer=function(i){
if(navigator.plugins!=null&&navigator.plugins.length>0){
if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){
var _3=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
var _4=navigator.plugins["Shockwave Flash"+_3].description;
descArray=_4.split(" ");
tempArrayMajor=descArray[2].split(".");
versionMajor=tempArrayMajor[0];
versionMinor=tempArrayMajor[1];
if(descArray[3]!=""){
tempArrayMinor=descArray[3].split("r");
}else{
tempArrayMinor=descArray[4].split("r");
}
versionRevision=tempArrayMinor[1]>0?tempArrayMinor[1]:0;
flashVer=versionMajor+"."+versionMinor+"."+versionRevision;
}else{
flashVer=-1;
}
}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{
flashVer=-1;
}
}
}
}
return flashVer;
};
flashDetect.DetectFlashVer=function(_5,_6,_7){
if(_5==undefined){
_5=flashDetect.requiredMajorVersion;
_6=flashDetect.requiredMinorVersion;
_7=flashDetect.requiredRevision;
}
reqVer=parseFloat(_5+"."+_7);
for(i=25;i>0;i--){
if(flashDetect.isIE&&flashDetect.isWin&&!flashDetect.isOpera){
versionStr=VBGetSwfVer(i);
}else{
versionStr=flashDetect.JSGetSwfVer(i);
}
if(versionStr==-1){
return false;
}else{
if(versionStr!=0){
if(flashDetect.isIE&&flashDetect.isWin&&!flashDetect.isOpera){
tempArray=versionStr.split(" ");
tempString=tempArray[1];
versionArray=tempString.split(",");
}else{
versionArray=versionStr.split(".");
}
versionMajor=versionArray[0];
versionMinor=versionArray[1];
versionRevision=versionArray[2];
versionString=versionMajor+"."+versionRevision;
versionNum=parseFloat(versionString);
if((versionMajor>_5)&&(versionNum>=reqVer)){
return true;
}else{
return ((versionNum>=reqVer&&versionMinor>=_6)?true:false);
}
}
}
}
};
function aon_createFlashContent(_8,_9,_a,_b,_c){
if(arguments.length==1){
aon_writeFlash(arguments[0],7);
} else {
if(_c==undefined){
_c={};
}

var _d=flashDetect.DetectFlashVer(3,0,0);
var _e=flashDetect.DetectFlashVer(6,0,65);
var _f=flashDetect.DetectFlashVer(_8,_9,_a);
var _10=window.location;
document.title=document.title.slice(0,47)+" - Flash Player Installation";
var _11=document.title;
if(_f){
aon_writeFlash(_b,_8);
}else{
if(_e){
if(_c.onFlashUpdatePossible!=undefined){
_c.onFlashUpdatePossible();
}else{
if(_b.updatePath!=undefined){
_b.filePath=_b.updatePath+"?MMredirectURL="+_10+"&MMplayerType=ActiveX&MMdoctitle="+_11;
_b.embedFilePath=_b.updatePath+"?MMredirectURL="+_10+"&MMplayerType=PlugIn";
aon_writeFlash(_b,_8);
}else{
if(_c.onFlashUpdateNotPossible){
_c.onFlashUpdateNotPossible();
}else{
aon_writeFlash(_b,_8);
}
}
}
}else{
if(_d){
if(_c.onFlashUpdateNotPossible){
_c.onFlashUpdateNotPossible();
}else{
aon_writeFlash(_b,_8);
}
}else{
if(_c.onNoFlash!=undefined){
_c.onNoFlash();
}else{
aon_writeFlash(_b,_8);
}
}
}
}
}
}
function aon_writeFlash(_12,_13){
if(_12.embedFilePath==undefined){
_12.embedFilePath=_12.filePath;
}
var _14="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ";
if(_12.width!=undefined){
_14+="width=\""+_12.width+"\" ";
}
if(_12.height!=undefined){
_14+="height=\""+_12.height+"\" ";
}
if(_12.id){
_14+="id=\""+_12.id+"_object\" ";
}
if(arguments.length>1){
_14+="codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+_13+",0,0,0\">";
}else{
_14+="codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab\">";
}
if(_12.filePath!=undefined){
_14+=" <param name=\"movie\" value=\""+_12.filePath+"\" />";
}
_14+="<param name=\"quality\" value=\"high\" />";
if(_12.bgcolor){
_14+="<param name=\"bgcolor\" value=\""+_12.bgcolor+"\" />";
}
if(_12.wmode){
_14+="<param name=\"wmode\" value=\""+_12.wmode+"\" />";
}
if(_12.allowScriptAccess){
_14+="<param name=\"allowScriptAccess\" value=\""+_12.allowScriptAccess+"\" />";
}else{
_14+="<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
}
if(_12.FlashVars){
_14+="<param name=\"FlashVars\" value=\""+_12.FlashVars+"\" />";
}
_14+="<embed";
if(_12.filePath!=undefined){
_14+=" src=\""+_12.embedFilePath+"\" ";
}
if(_12.bgcolor!=undefined){
_14+=" bgcolor=\""+_12.bgcolor+"\" ";
}
if(_12.height!=undefined){
_14+=" height=\""+_12.height+"\"";
}
if(_12.width!=undefined){
_14+=" width=\""+_12.width+"\"";
}
if(_12.name!=undefined){
_14+=" name=\""+_12.name+"\"";
}
if(_12.allowScriptAccess!=undefined){
_14+=" allowScriptAccess=\""+_12.allowScriptAccess+"\"";
}else{
_14+=" allowScriptAccess=\"sameDomain\"";
}
if(_12.FlashVars!=undefined){
_14+=" FlashVars=\""+_12.FlashVars+"\"";
}
if(_12.align!=undefined){
_14+=" align=\""+_12.align+"\"";
}
if(_12.id!=undefined){
_14+=" id=\""+_12.id+"_embed\"";
}
if(_12.loop!=undefined){
_14+=" loop=\""+_12.loop+"\"";
}
if(_12.wmode!=undefined){
_14+=" wmode=\""+_12.wmode+"\"";
}
_14+=" play=\"true\"";
_14+=" quality=\"high\"";
_14+=" allowScriptAccess=\"sameDomain\"";
_14+=" type=\"application/x-shockwave-flash\"";
_14+=" pluginspage=\"http://www.macromedia.com/go/getflashplayer\">";
_14+="</embed></object>";

if(_12.targetid != undefined) {
	document.getElementById(_12.targetid).innerHTML = _14;
} else {
	document.write(_14);
}
}


