<!--
if (document.images) {
   homeOn = new Image();
   homeOn.src = "i/btn_home_on.gif";
   aboutOn = new Image();
   aboutOn.src = "i/btn_about_on.gif";
   galleryOn = new Image();
   galleryOn.src = "i/btn_gallery_on.gif";
   contactOn = new Image();
   contactOn.src = "i/btn_contact_on.gif";

   tpOn = new Image();
   tpOn.src = "i/btn_tp_on.gif";
   nlpOn = new Image();
   nlpOn.src = "i/btn_nlp_on.gif";
   ppOn = new Image();
   ppOn.src = "i/btn_pp_on.gif";
   eftOn = new Image();
   eftOn.src = "i/btn_eft_on.gif";


   homeOff = new Image();
   homeOff.src = "i/btn_home_off.gif";
   aboutOff = new Image();
   aboutOff.src = "i/btn_about_off.gif";
   galleryOff = new Image();
   galleryOff.src = "i/btn_gallery_off.gif";
   contactOff = new Image();
   contactOff.src = "i/btn_contact_off.gif";

   tpOff = new Image();
   tpOff.src = "i/btn_tp_off.gif";
   nlpOff = new Image();
   nlpOff.src = "i/btn_nlp_off.gif";
   ppOff = new Image();
   ppOff.src = "i/btn_pp_off.gif";
   eftOff = new Image();
   eftOff.src = "i/btn_eft_off.gif";
   }

function buttonOn(imgName) {
   if (document.images) {
       document [imgName].src = eval(imgName + "On.src");
       }
   }
        
function buttonOff(imgName) {
   if (document.images) {
       document [imgName].src = eval(imgName + "Off.src");
       }
   }


function findObj(n, d) { //v4.0
  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=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function showHideLayers() { //v3.0
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

//-->


