// JavaScript Document
var cId = 0;
var aV = 0;
var swVersion;
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
if(isIE && isWin){
document.write(' \n');
document.write('Function VBGetSwfVer(i) \n');
document.write('on error resume next \n');
document.write('Dim swControl, swVersion \n');
document.write('swVersion = 0 \n');
document.write('set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i)) \n');
document.write('if (IsObject(swControl)) then \n');
document.write('swVersion = 0 \n');
document.write('swVersion = swControl.GetVariable("$version") \n');
document.write('end if \n');
document.write('VBGetSwfVer = swVersion \n');
document.write('End Function \n');
document.write(' \n');
} else {
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
function JSGetSwfVer(i){
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;
descArray = flashDescription.split(" ");
tempArrayMajor = descArray[2].split(".");
versionMajor = tempArrayMajor[0];
if ( descArray[3] != "" ) {
tempArrayMinor = descArray[3].split("r");
} else {
tempArrayMinor = descArray[4].split("r");
}
versionMinor = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
flashVer = parseFloat(versionMajor + "." + versionMinor);
} 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;
}
}
function checkFlash(rV){
var ua=navigator.userAgent.toLowerCase();
this.webtv = (ua.indexOf("webtv")>-1);
this.ie = (parseFloat(ua.slice(ua.indexOf("msie")+5)));
this.nn = (parseFloat(ua.slice(ua.indexOf("mozilla/")+8)));
var browser = navigator.appName.toLowerCase();
if (browser=="netscape"){
this.netscape = true;
}else{
this.netscape = false;
}
this.mac = (ua.indexOf("mac")>-1);
this.flash = false;
if (isIE && isWin){
aV = VBGetSwfVer(rV);
if (aV != 0){
var cVArray = VBGetSwfVer(rV).split(" ");
cVArray = cVArray[1].split(",");
aV = cVArray[0];
}
} else {
aV = JSGetSwfVer(rV);
}
if (aV >= rV) {
if (this.netscape && this.IEonly == 'TRUE' || this.mac && this.IEonly == 'TRUE'){
this.flash = false;
} else {
this.flash = true;
}
}
}
function flashObj() {
cId += 1;
this.flashFile = "/flash/blank.swf";
this.LiveConnect = "FALSE";
this.IEonly = null;
this.wmode = "opaque";
this.redirect = null;
this.DenyIEdl = "FALSE";
this.altImg = "images/latest_flash.gif";
this.bgcolor = null;
this.altTxt = "
";
this.height = "190";
this.width = "250";
this.salign="lt";
this.align="left";
this.flashVars = null;
this.ID = "flash"+ cId;
this.name = "flash"+ cId;
this.webTV = "true";
this.quality = "best";
this.scale = "exactfit";
this.menu = "false";
this.deviceFont = "false";
this.FlashVer = 7;
this.cabVersion = "7,0,0,0";
this.render = writeFlashComponent;
}
function writeFlashComponent(val) {
var Ticket=new checkFlash(this.FlashVer);
var sCR = "";
if (Ticket.flash) {
if (Ticket.mac || Ticket.netscape) {
sCR='';
} else if (this.DenyIEdl=='TRUE') {
sCR="";
} else {
sCR+="";
}
} else if (Ticket.ie>=4 && this.DenyIEdl=='FALSE') {
sCR="\n";
} else if (Ticket.webtv) {
sCR="";
}
} else {
if (this.redirect){
top.location.href = this.redirect;
} else {
if (this.altTxt){
sCR = this.altTxt;
} else {
sCR="
";
}
}
}
if (val == true) {
document.write(sCR);
} else{
return sCR;
}
}
// pop new window
function daughter(pstr1,pstr2,pstr3) {
var windowFeatures = 'toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,resizable=no,width=' + pstr2 + ',height=' + pstr3;
window.open(pstr1,'thisPopup', windowFeatures);
}
// because daughter conflicts with a function in ad-production flash js version
function daughter2(pstr1,pstr2,pstr3) {
var windowFeatures = 'toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,resizable=no,width=' + pstr2 + ',height=' + pstr3;
window.open(pstr1,'thisPopup', windowFeatures);
}