function PreloadImages() {
  if (document.images) {
    image0off = new Image();
    image0off.src = "images/menu000.gif";

    image1off = new Image();
    image1off.src = "images/menu001.gif";

    image2off = new Image();
    image2off.src = "images/menu002.gif";

    image3off = new Image();
    image3off.src = "images/menu003.gif";

    image4off = new Image();
    image4off.src = "images/menu004.gif";

    image5off = new Image();
    image5off.src = "images/menu005.gif";

    image6off = new Image();
    image6off.src = "images/menu006.gif";

    image7off = new Image();
    image7off.src = "images/menu007.gif";

    image8off = new Image();
    image8off.src = "images/menu008.gif";

    image9off = new Image();
    image9off.src = "images/menu009.gif";

    image10off = new Image();
    image10off.src = "images/menu-creative.gif";

    image0on = new Image();
    image0on.src = "images/menu0001.gif";

    image1on = new Image();
    image1on.src = "images/menu0011.gif";

    image2on = new Image();
    image2on.src = "images/menu0021.gif";

    image3on = new Image();
    image3on.src = "images/menu0031.gif";

    image4on = new Image();
    image4on.src = "images/menu0041.gif";

    image5on = new Image();
    image5on.src = "images/menu0051.gif";

    image6on = new Image();
    image6on.src = "images/menu0061.gif";

    image7on = new Image();
    image7on.src = "images/menu0071.gif";

    image8on = new Image();
    image8on.src = "images/menu0081.gif";

    image9on = new Image();
    image9on.src = "images/menu0091.gif";

    image10on = new Image();
    image10on.src = "images/menu-creative1.gif";
  }
}

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function NewWindow(sUrl, sName, W, H, sFeatures) {
  //sName - must not contain spaces!
  //sFeatures = 'location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes'
  var L = (screen.width - W) / 2;
  var T = (screen.height - H) / 4;
  var sFeat = 'height=' + H + ',width=' + W + ',top=' + T + ',left=' + L;
  if (sFeatures != '') {sFeat = sFeat + ',' + sFeatures};
  win = window.open(sUrl, sName, sFeat)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function ImgPopupWin(picUrl, winTitle) {
  var now = new Date();
  disp = window.open('',now.getTime(),'width=640,height=480,left=400,top=275,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');
  content = '<HTML>';
  content = '<HEAD>';
  content += '<TITLE>' + winTitle + '</TITLE>';
  content += '<' + 'script language=JavaScript>';
  content += '   var NS = (navigator.appName=="Netscape")?true:false;';
  content += '     function FitPic() {';
  content += '       iWidth = (NS)?window.innerWidth:document.body.clientWidth;';
  content += '       iHeight = (NS)?window.innerHeight:document.body.clientHeight;';
  content += '       iWidth = document.images[0].width - iWidth;'; 
  content += '       iHeight = document.images[0].height - iHeight;';
  content += '       window.resizeBy(iWidth, iHeight);';
  content += '       self.moveTo((screen.width / 2) - (document.images[0].width / 2), (screen.height / 2) - (document.images[0].height / 2));';
  content += '       self.focus();';
  content += '     };';
  content += ' </' + 'script>';
  content += '</HEAD>';
  content += '<BODY bgcolor="#000000" onload="FitPic();" topmargin=0 marginheight=0 leftmargin=0 marginwidth=0>';
  content += '<' + 'script language=JavaScript>';
  content += ' document.write("<img src=' + picUrl + ' border=0>");'; 
  content += '<' + '/script>';
  content += '</BODY>';
  content += '</HTML>';
  disp.document.write(content);
  disp.document.close();
}