
img1=new Image;
img1.src="images/btns/btn_011.gif";
img1_over=new Image;
img1_over.src="images/btns/btn_011_over.gif";

img2=new Image;
img2.src="images/btns/btn_02.gif";
img2_over=new Image;
img2_over.src="images/btns/btn_02_over.gif";

/*
img3=new Image;
img3.src="images/btns/btn_03.gif";
img3_over=new Image;
img3_over.src="images/btns/btn_03_over.gif";
*/

img4=new Image;
img4.src="images/btns/btn_051.gif";
img4_over=new Image;
img4_over.src="images/btns/btn_051_over.gif";

img5=new Image;
img5.src="images/btns/btn_061.gif";
img5_over=new Image;
img5_over.src="images/btns/btn_061_over.gif";

img6=new Image;
img6.src="images/btns/btn_071.gif";
img6_over=new Image;
img6_over.src="images/btns/btn_071_over.gif";

img7=new Image;
img7.src="images/btns/btn_08.gif";
img7_over=new Image;
img7_over.src="images/btns/btn_08_over.gif";


///////////////////////////////////////////////////////////////////////

var panelVisible=false;
document.onkeypress=keyDown;
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['div01'].style.top=-1000;
   document.all['div02'].style.top=-1000;
   //document.all['div03'].style.top=-1000;
   document.all['div04'].style.top=-1000;
   document.all['div05'].style.top=-1000;
   document.all['div06'].style.top=-1000;
   }
}
function hideAll_01() {   
   panelVisible=false;  
   setTimeout("hideAll()", 3000);
}
function hidePanel(id1) {
   if (id1=='div01'){
     document.all['div02'].style.top=-1000;
     document.all['div04'].style.top=-1000;
     document.all['div05'].style.top=-1000;
     document.all['div06'].style.top=-1000;
   }
   if (id1=='div02'){
     document.all['div01'].style.top=-1000;
     document.all['div04'].style.top=-1000;
     document.all['div05'].style.top=-1000;
     document.all['div06'].style.top=-1000;
   }
   //if (id1=='div03'){
   //  document.all['div01'].style.top=-1000;
   //  document.all['div02'].style.top=-1000;
   //  document.all['div04'].style.top=-1000;
   //}
   if (id1=='div04'){
     document.all['div01'].style.top=-1000;
     document.all['div02'].style.top=-1000;
     document.all['div05'].style.top=-1000;
     document.all['div06'].style.top=-1000;
   }
   if (id1=='div05'){
     document.all['div01'].style.top=-1000;
     document.all['div02'].style.top=-1000;
     document.all['div04'].style.top=-1000;
     document.all['div06'].style.top=-1000;
   }
   if (id1=='div06'){
     document.all['div01'].style.top=-1000;
     document.all['div02'].style.top=-1000;
     document.all['div04'].style.top=-1000;
     document.all['div05'].style.top=-1000;
   }

   showPanel(id1);
}
function keyDown() {
   if (String.fromCharCode(event.keyCode)=="") {
       hideAll();
   }
}

///////////////////////////////////////////////////////////////////////

function chImage(img, name, type) {
   document.images[img].src = "images/btns/"+name+".gif";

   if (type==0){
   if (img=="img_1"){
       hidePanel('div01');
   }
   if (img=="img_2"){
       hidePanel('div02');
   }
   //if (img=="img_3"){
   //    hidePanel('div03');
   //}
   if (img=="img_4"){
       hidePanel('div04');
   }
   if (img=="img_5"){
       hidePanel('div05');
   }
   if (img=="img_6"){
       hidePanel('div06');
   }

   } else {
   setPanelVisibleFalse();
   }

}

function getPage(page) {
   window.location=page;
}

///////////////////////////////////////////////////////////////////////



