img1=new Image;
img1.src="images/btns/01.gif";
img1_over=new Image;
img1_over.src="images/btns/01_over.gif";

img2=new Image;
img2.src="images/btns/02.gif";
img2_over=new Image;
img2_over.src="images/btns/02_over.gif";

img3=new Image;
img3.src="images/btns/03.gif";
img3_over=new Image;
img3_over.src="images/btns/03_over.gif";

img4=new Image;
img4.src="images/btns/04.gif";
img4_over=new Image;
img4_over.src="images/btns/04_over.gif";

img5=new Image;
img5.src="images/btns/05.gif";
img5_over=new Image;
img5_over.src="images/btns/05_over.gif";

img6=new Image;
img6.src="images/btns/06.gif";
img6_over=new Image;
img6_over.src="images/btns/06_over.gif";

img7=new Image;
img7.src="images/btns/07.gif";
img7_over=new Image;
img7_over.src="images/btns/07_over.gif";

//////////////////////////////////////////////////////////////////////////////////////////////

var panelVisible=false;

function showPanel(id1) {
   document.all[id1].style.top=-1;
   panelVisible=true;
}

function setPanelVisibleTrue() {
   panelVisible=true;
}

function setPanelVisibleFalse() {
   panelVisible=false;
   hideAll_01();
}

function hideAll() {
   if (!panelVisible){
   document.all['div001'].style.top=-1000;
   document.all['div002'].style.top=-1000;
   document.all['div003'].style.top=-1000;
   }
}

function hideAll_01() {   
   panelVisible=false;  
   setTimeout("hideAll()", 2000);
}

function hidePanel(id1) {
   if (id1=='div001'){
     document.all['div002'].style.top=-1000;
     document.all['div003'].style.top=-1000;
   }
   if (id1=='div002'){
     document.all['div001'].style.top=-1000;
     document.all['div003'].style.top=-1000;
   }
   if (id1=='div003'){
     document.all['div001'].style.top=-1000;
     document.all['div002'].style.top=-1000;
   }
   showPanel(id1);
}


///////////////////////////////////////////////////////////////////////

function chImage(img, name, type) {
   document.images[img].src = "images/btns/"+name+".gif";

   if (type==0){
   if (img=="img_2"){
     document.all['div001'].style.top=-1000;
     document.all['div002'].style.top=-1000;
     document.all['div003'].style.top=-1000;
   }
   if (img=="img_3"){
       hidePanel('div001');
   }
   if (img=="img_4"){
       hidePanel('div002');
   }
   if (img=="img_5"){
     document.all['div001'].style.top=-1000;
     document.all['div002'].style.top=-1000;
     document.all['div003'].style.top=-1000;
   }
   if (img=="img_6"){
       hidePanel('div003');
   }
   if (img=="img_7"){
     document.all['div001'].style.top=-1000;
     document.all['div002'].style.top=-1000;
     document.all['div003'].style.top=-1000;
   }
   } else {
   }
}

function getPage(page) {
   window.location=page;
}

///////////////////////////////////////////////////////////////////////

function getPage(pageName) {
   window.location=pageName;
}

function getUPS(pageName) {
   window.location="info.php?ups="+pageName;
}

function getPDF(upsType) {
   window.location="archive/"+upsType;
}


