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_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 change_color(name) {

    document.getElementById(name).style.color="#FFFF66";
	
}

function change_color_back(name) {

    document.getElementById(name).style.color="#FFFFFF";
	
}


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_reloadPage(init) {  //reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}

MM_reloadPage(true);





function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}



   

   

 var ie = document.all ? 1:0;

 var ns = ie ? 0 : 1;

 var ie_mac = ((navigator.appName.indexOf('Microsoft') != -1) && (navigator.appVersion.indexOf('Mac') != -1)) ? 1 : 0;





  function getLayer(l, p) {

   var ob = null;

   

   if (ie)  ob = document.all[l].style;



    else



   if (document.documentElement)

 

     ob = document.getElementById(l).style;



    else {



     if (p)  ob = document.layers[p].document.layers[l];

       else  ob = document.layers[l];



    } 



   //if (ob == null)  alert("Unable to find " + l + " (" + p + ")");

   //else alert("I FOUND THE STUPID " + ob);



    return ob;



  }

  

  function showLayer(l, p) { // layer, parent

    getLayer(l, p).visibility = ( (ie || document.documentElement) ? "visible" : "show");

  }



  function hideLayer(l, p) { // layer, parent

    getLayer(l, p).visibility = ( (ie || document.documentElement) ? "hidden" : "hide");

  }





  function getImageOb(n, l, p) {

   if ((ns && l) && (!document.documentElement))  return getLayer(l, p).document.images[n];

    else return document.images[n];

  }

  

  function setImageSrc(n, s, l, p) {

    getImageOb(n, l, p).src = s;

  }

  

  function setLayerXY(l, x, y, p) {

  var lOb = getLayer(l, p);

  

   if (ie) {

     lOb.posLeft = x;

     lOb.posTop = y;

   } else {

     lOb.left = x;

     lOb.top = y;

   }

  }

  

  function setLayerY(l, y, p) {

   if (ie)  getLayer(l, p).posTop = y;

    else getLayer(l, p).top = y;

  }



  function setLayerX(l, x, p) {

   if (ie)  getLayer(l, p).posLeft = x;

    else getLayer(l, p).left = x;

  }

  

  function setLayerZ(l, z, p) {

    getLayer(l, p).zIndex = z;

  }

  



    

  function getLayerY(l, p) {

    return ie?(getLayer(l, p).posTop):(getLayer(l, p).top);

  }

  

  function getLayerX(l, p) {

    return ie?(getLayer(l, p).posLeft):(getLayer(l, p).left);

  }

    

  function getLayerZ(l, p) {

    return getLayer(l, p).zIndex;

  }

  

  function getLayerHeight(l, p) {

    return ie ? (document.all[l].scrollHeight) : (getLayer(l, p).document.height);

  }



  function getLayerWidth(l, p) {

    return ie ? (document.all[l].scrollWidth) : 

                (

                  document.documentElement 

                   ? 

                  (document.getElementById(l).offsetWidth)

                   :

                  (getLayer(l, p).document.width)

                );

  }



  function layerWrite(str, l, p) {

   if (ie)

     document.all[l].innerHTML = str;

   else {

    var ob = getLayer(l, p).document;

    

     ob.open();

     ob.write(str);

     ob.close();

   }

  }

  

  function setLayerClip(iX, iY, fX, fY, l, p) {

   var ob = getLayer(l, p);

   

   if (ie) 

     ob.clip = "rect(" + iY + "px " + fX + "px " + fY + "px " + iX + "px)";

   else {

     ob.clip.left = iX;

     ob.clip.top = iY;



     ob.clip.right = fX;

     ob.clip.bottom = fY;

   }

  }

  

  function getWindowHeight() {

    return (ie ? document.body.clientHeight : window.innerHeight);    

  }



  function getWindowWidth() {

    return (ie ? document.body.clientWidth : window.innerWidth);    

  }

  

  function centerLayerV(l, xOfs, p, h) {

    setLayerY(l, ( (getWindowHeight() - (h?h:getLayerHeight(l, p)) ) / 2 ) + (xOfs ? xOfs : 0), p);

  }

  

  function centerLayerH(l, yOfs, p, w) {

    setLayerX(l, ( (getWindowWidth() - (w?w:getLayerWidth(l, p)) ) / 2 ) + (yOfs ? yOfs : 0), p);

  }

  

 

