

function preloadImages() {
   var d = document;
   if(d.images) {
      if(!d.p)
         d.p = new Array();      
      var i, j = d.p.length, a = preloadImages.arguments;         
      for(i=0; i < a.length; i++)
         if (a[i].indexOf("#") != 0) {
            d.p[j] = new Image;
            d.p[j++].src = a[i];
         }
   }
}

function findObj(n, d) {
   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;
}

if(top.location!=self.location){
    top.location=self.location
}
function sel(UrlAdress) {
   UrlAdress=document.frm.com[document.frm.com.selectedIndex].value;
   if (UrlAdress !='0')document.location.href=UrlAdress;
}
function openNewWindow(theURL,winName,features) {
   window.open(theURL,winName,features);
}


{
project1on = new Image;
project1on.src = "./ui/project1_on.jpg";
project1off = new Image;
project1off.src = "./ui/project1.jpg";

project2on = new Image;
project2on.src = "./ui/project2_on.jpg";
project2off = new Image;
project2off.src = "./ui/project2.jpg";

project3on = new Image;
project3on.src = "./ui/project3_on.jpg";
project3off = new Image;
project3off.src = "./ui/project3.jpg";

project4on = new Image;
project4on.src = "./ui/project4_on.jpg";
project4off = new Image;
project4off.src = "./ui/project4.jpg";

}
function img_act(imgName) {
   imgOn = eval(imgName + "on.src");
   document [imgName].src = imgOn;
}
function img_inact(imgName) {
   imgOff = eval(imgName + "off.src");
   document [imgName].src = imgOff;
}



function panelOn(o) {
      o.style.backgroundColor = '5d6166';
}
function panelOff(o) {
      o.style.backgroundColor = 'dbe0e6';
}
function panelSelect(o) {
      o.style.borderColor = '000000';
	  o.style.backgroundColor = '5d6166';
}
function panelUnSelect(o) {
      o.style.borderColor = 'dbe0e6';
	  o.style.backgroundColor = '5d6166';
}



function darkPanelOn(o) {
      o.style.backgroundColor = 'FFFFFF';
}
function darkPanelOff(o) {
      o.style.backgroundColor = '000000';
}

