function newRollover(imgName,imgFiles) {
  if (document.images) {
    imgFiles=imgFiles+",";
    imgNo=1;
    while(imgFiles.indexOf(',')!=-1) {
      imgFile=imgFiles.substring(0,imgFiles.indexOf(','));
      imgFiles=imgFiles.substring(imgFiles.indexOf(',')+1,imgFiles.length);
      eval(imgName+"_urc_"+imgNo+"=new Image();");
      eval(imgName+"_urc_"+imgNo+".src='"+imgFile+"'");
      imgNo++;
    }
  }
}

function rolldiv(img,on,div,type) {
  type=type?type:img;
  if (document.images)
    if (navigator.appName.indexOf('Netscape')==-1 || navigator.appVersion.substr(0,1)>4 || !div)
      eval("document.images['"+img+"'].src="+type+"_urc_"+on+".src");
    else {
      div+="."; divd="";
      while(div.indexOf('.')!=-1) {
	divd+=div.substring(0,div.indexOf('.'))+".document.";
	div=div.substring(div.indexOf('.')+1,div.length);
      }
      eval("document."+divd+"images['"+img+"'].src="+type+"_urc_"+on+".src");
    }
}
function roll(img,on,type) {
  type=type?type:img;
  if (document.images) 
    eval("document.images['"+img+"'].src="+type+"_urc_"+on+".src");
}
function rollDyn(img,on,div,type) {
  type=type?type:img;
  if (document.images) 
    eval(div+".doc.images['"+img+"'].src="+type+"_urc_"+on+".src");
}

function openNewWindow(a,b,c) { 
  if (c && (navigator.appName=="Netscape" || document.body)) {
    width=height="";
    s=c.indexOf("width")+5; n=0;
    while (n!=2 && (ch=c.charAt(s++)))
      if (ch>="0" && ch<="9") { width+=ch; n=1; } else n<<=1;
    s=c.indexOf("height")+5; n=0;
    while (n!=2 && (ch=c.charAt(s++)))
      if (ch>="0" && ch<="9") { height+=ch; n=1; } else n<<=1;
    leftpos=(navigator.appName=="Netscape"?
	     window.outerWidth/2+window.screenX:document.body.offsetWidth/2+window.screenLeft)-width/2;
    toppos= (navigator.appName=="Netscape"?
	     window.outerHeight/4+window.screenY:document.body.offsetHeight/4+window.screenTop)-height/2;
    c+=",left="+leftpos+",top="+toppos;
  } 
  newWindow=c?window.open(a,b,c):window.open(a,b);
}

