// FLASH FUNCTIONS
var requiredVersion = 5;
var useRedirect = false;
var flashPage = "movie.html"
var noFlashPage = "noflash.html"
var upgradePage = "upgrade.html"
var flash2Installed = false;
var flash3Installed = false;
var flash4Installed = false;
var flash5Installed = false;
var flash6Installed = false;
var flash7Installed = false;
var maxVersion = 7;
var actualVersion = 0;
var hasRightVersion = false;
var jsVersion = 1.0;
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
jsVersion = 1.1;
if(isIE && isWin){
document.write('');
}else{
document.write('
');
}
}
}
}
function writeTransFlashParam(width, height, flash, alternate, id, map){
if (!useRedirect) {
if(hasRightVersion && flash != "") {
var secStart = 3;
var flashLowerCase = flash.toLowerCase();
if(flashLowerCase.indexOf("movurl") == -1)
{
flashpath = "?secStart=" + secStart + "&movUrl=" + flash.substring(0, flash.lastIndexOf("/")+1);
}
else
{
if(flashLowerCase.indexOf("secStart") == -1)
flashpath = "&secStart=" + secStart;
}
var oeTags = '';
document.write(oeTags);
} else {
if(map != ""){
document.write('
');
}else{
document.write('
');
}
}
}
}
function playFlash(id,frame){
if(eval("document." + id)){
if(eval("document." + id + ".TCurrentFrame(\"_level0\")") < 1){
eval("document." + id + ".GotoFrame(" + frame + ")");
}
}
}
// GENERAL FUNCTIONS
function BrowserSystemCheck() {
var brwtype = navigator.appName
if (brwtype=="Netscape") this.brwtype = "ns"
else if (brwtype=="Microsoft Internet Explorer") this.brwtype = "ie"
else this.brwtype = brwtype
this.brwvers = navigator.appVersion
this.brwversion = parseInt(this.brwvers)
this.ns = (this.brwtype=="ns" && this.brwversion>=4)
this.ns4 = (this.brwtype=="ns" && this.brwversion==4)
this.ns6 = (this.brwtype=="ns" && this.brwversion==5)
this.ie = (this.brwtype=="ie" && this.brwversion>=4)
this.ie4 = (this.brwvers.indexOf('MSIE 4')>0)
this.ie5 = (this.brwvers.indexOf('MSIE 5')>0)
}
var is = new BrowserSystemCheck();
var isNav, isIE, isMoz;
var collStart = "";
var collEnd = "";
var styleObj = "";
if (parseInt(navigator.appVersion) >= 4){
if(navigator.appName == "Netscape"){
if(parseInt(navigator.appVersion) >= 5){
isMoz = true;
collStart = "getElementById('";
collEnd = "')";
styleObj = ".style";
}
else{
isNav = true;
}
}
else{
isIE = true;
collStart = "all.";
styleObj = ".style";
}
}
function getObject(obj){
var theObj;
if (typeof obj == "string"){
theObj = eval("document." + collStart + obj + collEnd + styleObj);
}
else{
theObj = obj;
}
return theObj;
}
function shiftTo(obj, x, y){
var theObj = getObject(obj);
if (isNav){
theObj.moveTo(x,y);
}
else if(isMoz){
theObj.left = x;
theObj.top = y;
}
else{
theObj.pixelLeft = x;
theObj.pixelTop = y;
}
}
function getObjectLeft(obj){
var theObj = getObject(obj);
if (isNav){
return theObj.left;
}
else{
return theObj.pixelLeft;
}
}
function getObjectTop(obj){
var theObj = getObject(obj);
if(isNav){
return theObj.top;
}
else if(isMoz){
return theObj.top;
}
else{
return theObj.pixelTop;
}
}
function show(obj){
var theObj = getObject(obj);
if(isNav){
theObj.visibility = "show";
}
else{
theObj.visibility = "visible";
}
}
function hide(obj){
var theObj = getObject(obj);
if (isNav){
theObj.visibility = "hide";
}
else{
theObj.visibility = "hidden";
}
}
var featureId="";
function popup(url,pwidth,pheight){
if(featureId != "") window.open(url+escape(featureId),'print','toolbar=0,menubar=0,location=0,directories=0,status=0,resizable=0,scrollbars=1,HEIGHT='+pheight+',WIDTH='+pwidth);
else window.open(url,'print','toolbar=0,menubar=0,location=0,directories=0,status=1,resizable=1,scrollbars=1,HEIGHT='+pheight+',WIDTH='+pwidth);
}
function popupMenu(url,pwidth,pheight){
window.open(url,'menupage','toolbar=1,menubar=1,location=1,directories=0,status=1,resizable=1,scrollbars=1,HEIGHT='+pheight+',WIDTH='+pwidth);
}
function setFocus(formname,fieldname){
if(eval("document."+formname)) eval("document."+searchForm+"."+fieldname+".focus()");
}
function imgSwap(imgName, newImgSource){
if(is.ns4) eval("document.images['" + imgName + "'].src = " + newImgSource + ".src");
else eval("document.getElementById('" + imgName + "').src = " + newImgSource + ".src");
}
function preload(imgObj,imgSrc){
if(document.images){
eval(imgObj+' = new Image()');
eval(imgObj+'.src = "'+imgSrc+'"');
}
}
function changeCountry(){
selRef = document.forms.countrySelectForm.country_select
var URL = new String()
URL = selRef.options[selRef.selectedIndex].value
window.open(URL);
}
function LinkMe(anURL){
document.location.href = anURL
}
function LinkMeExternal(anURL){
myWin = window.open(anURL);
}
function sendErrorMsg(errSpan,fieldName, errMsg){
if(document.getElementById(errSpan)) document.getElementById(errSpan).innerHTML = "