function openWindow(wotAddress){   
     if (document.images)
 theWindow=window.open(wotAddress,'ExternalWindow','width=628,height=445,scrollbars=yes,location=1,status=0,menubar=1,toolbar=1,resizable=yes');
}

var newwin;
function launchwin(url,winName,features){
  //This launches a new window and then focuses it if window.focus() is supported.
  newwin=window.open(url,winName,features);
  if(javascript_version > 1.0)
  {
  //delay a bit here because IE4 encounters errors when trying to focus a recently opened window
  setTimeout('newwin.focus();',250);
 }
}

function openWin(url,winName,features){ 
  if (document.images)
  newWindow=window.open(url,winName,features);
}

function fS(wotSize){
  if (navigator.appVersion.indexOf("Mac") != -1){
    document.write("</font><font size="+wotSize+">");
  }
}
          
function dm(msgStr) {
  window.status = msgStr;
  document.status = true;
}

function inact(imgName){   
   if (document.images)
        document[imgName].src = eval(imgName + '.src')
}

function act(imgName){
   if (document.images) 
        document[imgName].src = eval(imgName + 'a.src')
}

function actDown(imgName){
   if (document.images) 
        document[imgName].src = eval(imgName + 'b.src')
}

function glow(imgName) {
  if (document.images) {
    document[imgName].src = eval(imgName + "on.src");
  }
}

function fade(imgName) {
  if (document.images) {
    document[imgName].src = eval(imgName + "off.src");
  }
}

function swapImage(imgName,newImg){
  if ((navigator.appName == 'Netscape' && parseFloat(navigator.appVersion) >= 3) || (parseFloat(navigator.appVersion) >= 4)){		
		eval('document.' + imgName + '.src = "' + newImg + '"');
	}
}

function swap(id, newSrc) {
    var theImage = wotImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;
    }
}

function wotImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = wotImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}