


 

// 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('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
  document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
  document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
  document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');  
  document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');  
  document.write('flash7Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');  
  document.write('</SCR' + 'IPT\> \n');
}

function detectFlash() {  
  if (navigator.plugins) {
    if (navigator.plugins["Shockwave Flash 2.0"]
        || navigator.plugins["Shockwave Flash"]) {

      var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
      var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;

      var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
     
      flash2Installed = flashVersion == 2;    
      flash3Installed = flashVersion == 3;
      flash4Installed = flashVersion == 4;
      flash5Installed = flashVersion == 5;
      flash6Installed = flashVersion == 6;
      flash7Installed = flashVersion >= 7; 
    }
  }
  for (var i = 2; i <= maxVersion; i++) {  
    if (eval("flash" + i + "Installed") == true) actualVersion = i;
  }
  if(navigator.userAgent.indexOf("WebTV") != -1) actualVersion = 3;  
  if (actualVersion >= requiredVersion) {
    if (useRedirect) {
      if(jsVersion > 1.0) {
        window.location.replace(flashPage);  
      } else {
        window.location = flashPage;
      }
    }
    hasRightVersion = true;                
  } else {  
    if (useRedirect) {
      if(jsVersion > 1.0) {
        window.location.replace((actualVersion >= 2) ? upgradePage : noFlashPage);
      } else {
        window.location = (actualVersion >= 2) ? upgradePage : noFlashPage;
      }
    }
  }
}
detectFlash();

function writeFlashParam(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 = '<OBJECT id="' + id + '" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
        + 'WIDTH="' + width + '" HEIGHT="' + height + '"'
        + 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" VIEWASTEXT>'
        + '<PARAM NAME="MOVIE" VALUE="' + flash + flashpath + '">'
        + '<PARAM NAME="PLAY" VALUE="true">'
        + '<PARAM NAME="LOOP" VALUE="true">'
        + '<PARAM NAME="QUALITY" VALUE="high">'
        + '<PARAM NAME="MENU" VALUE="false">'
        + '<PARAM NAME=WMODE VALUE=transparent>'
        + '<EMBED name="' + id + '" SRC="www.electrolux.com/www.electrolux.com/www.electrolux.com/www.electrolux.com/www.electrolux.com/node1418123.html"'
        + 'WIDTH="' + width + '" HEIGHT="' + height + '"'
        + 'PLAY="true"'
        + 'LOOP="true"'
        + 'QUALITY="high"'
        + 'WMODE="transparent"'
        + 'MENU="false" SWLIVECONNECT=true'
        + 'TYPE="application/x-shockwave-flash"'
        + 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
        + '</EMBED>'
        + '</OBJECT>';
        document.write(oeTags);
      } else {
        if(map != ""){
        	document.write('<img src="www.electrolux.com/www.electrolux.com/www.electrolux.com/www.electrolux.com/www.electrolux.com/node1418123.html" border=0 width=' + width +' height=' + height + ' usemap=#' + map + '>');
        }else{
	document.write('<img src="www.electrolux.com/www.electrolux.com/www.electrolux.com/www.electrolux.com/www.electrolux.com/node1418123.html" border=0 width=' + width +' height=' + height + '>');
        }
      }
    }
}

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 = '<OBJECT id="Shockwaveflash1" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
        + 'WIDTH="' + width + '" HEIGHT="' + height + '"'
        + 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" VIEWASTEXT>'
        + '<PARAM NAME="MOVIE" VALUE="' + flash + flashpath + '">'
        + '<PARAM NAME="PLAY" VALUE="true">'
        + '<PARAM NAME="LOOP" VALUE="true">'
        + '<PARAM NAME="QUALITY" VALUE="high">'
        + '<PARAM NAME="MENU" VALUE="false">'
        + '<PARAM NAME=WMODE VALUE=transparent>'
        + '<EMBED name="' + id + '" SRC="www.electrolux.com/www.electrolux.com/www.electrolux.com/www.electrolux.com/www.electrolux.com/node1418123.html"'
        + 'WIDTH="' + width + '" HEIGHT="' + height + '"'
        + 'PLAY="true"'
        + 'LOOP="true"'
        + 'QUALITY="high"'
        + 'WMODE="transparent"'
        + 'MENU="false" SWLIVECONNECT=true'
        + 'TYPE="application/x-shockwave-flash"'
        + 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
        + '</EMBED>'
        + '</OBJECT>';
        document.write(oeTags);
      } else {
        if(map != ""){
        	document.write('<img src="www.electrolux.com/www.electrolux.com/www.electrolux.com/www.electrolux.com/www.electrolux.com/node1418123.html" border=0 width=' + width +' height=' + height + ' usemap=#' + map + '>');
        }else{
	document.write('<img src="www.electrolux.com/www.electrolux.com/www.electrolux.com/www.electrolux.com/www.electrolux.com/node1418123.html" border=0 width=' + width +' height=' + height + '>');
        }
      }
    }
}

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 =  "<div class=txtContentRedHeaderThree style=\"padding-top:5px; padding-bottom:5px;\">" + errMsg + "</div>";
	if(document.getElementById(fieldName)) document.getElementById(fieldName).className = "txtContentRedHeaderThree";
}

function removeErrorMsg(fieldName){
	if(document.getElementById(fieldName)) document.getElementById(fieldName).className = "txtContentHeaderThree";	
	window.open(anURL)
}
function sendErrorMsg(errSpan,fieldName, errMsg){
	if(document.getElementById(errSpan)) document.getElementById(errSpan).innerHTML =  "<div class=txtContentRedHeaderThree style=\"padding-top:5px; padding-bottom:5px;\">" + errMsg + "</div>";
	if(document.getElementById(fieldName)) document.getElementById(fieldName).className = "txtContentRedHeaderThree";
}

function removeErrorMsg(fieldName){
	if(document.getElementById(fieldName)) document.getElementById(fieldName).className = "txtContentHeaderThree";	
}
//Used for link_expand
var oldSpanId = "";
var newSpanId = "";
function openClose(Id){
    oldSpanId = newSpanId;
    newSpanId = Id;
	if(oldSpanId == newSpanId){
		if(document.getElementById("span"+newSpanId).style.display == "inline"){
			document.getElementById("span"+newSpanId).style.display = "none";
			document.getElementById("link"+newSpanId).className = "";   
		}else{
			document.getElementById("span"+newSpanId).style.display = "inline";
			document.getElementById("link"+newSpanId ).className = "linkSearchBold";
		}
	}else{
		if(document.getElementById("span"+newSpanId )){
			document.getElementById("span"+newSpanId ).style.display = "inline";
			document.getElementById("link"+newSpanId ).className = "linkSearchBold";
		}

		if(oldSpanId!=""){
			document.getElementById("span"+oldSpanId).style.display = "none";
			document.getElementById("link"+oldSpanId).className = "";            
		}
	
	}
}    

// Functions for onmouseover description text

function showDesc(obj){
	obj = document.getElementById(obj).style;
	obj.visibility = "visible";
}

function hideDesc(obj){
	obj = document.getElementById(obj).style;
	obj.visibility = "hidden";
}

function shiftDesc(obj,x,y){
    obj.left = x;
	obj.top = y;
}

var currentPosX, currentPosY;
function mousehandlerMoveDesc(e){
	if(document.all) e=window.event; // IE
	if(!document.all){
		currentPosX=e.pageX;
		currentPosY=e.pageY;
	} else {
		currentPosX=e.clientX;
		currentPosY=e.clientY;
	}
	return false;
}

function setDesc(txt){
	if(txt!=""){
		document.getElementById("txtDesc").innerHTML = txt;
		showDesc('descDiv')
	}
}

function moveDesc(){
		currentPosY -= document.getElementById("descDiv").offsetHeight;
		shiftDesc(document.getElementById("descDiv").style,currentPosX,currentPosY);    
}

function printDescDiv(color1,color2,width,height){
	strDescDiv = "<div id=\"descDiv\" style=\"position:absolute; visibility:hidden\">"
	strDescDiv += "<table width=\""+width+"\" height=\""+height+"\" border=0 cellpadding=5 cellspacing=0 style=\"border: 1px solid "+color1+"; background:"+color2+"\">";
	strDescDiv += "<tr><td id=\"txtDesc\" name=\"txtDesc\" style=\"font-family:verdana; font-size:11px;\" valign=top></td></tr></table></div>";
	document.write(strDescDiv);
}

