subm=new Array();

subm.push('submenu2');
subm.push('submenu3');
subm.push('submenu4');
subm.push('submenu5');
subm.push('submenu6');
subm.push('submenu7');
subm.push('submenu8');
subm.push('submenu9');
subm.push('submenu10');
subm.push('submenu11');


function OpenWindow(url, w, h) {
open(url, "", 'menubar=no,directories=no,location=no,resizable=no,target=viv, scrollbars=yes,width='+w +',height='+h);
}


function divclose()
{
 for(x=0;x<subm.length;x++)
 {
  document.getElementById(subm[x]).style.position='absolute';
  document.getElementById(subm[x]).style.visibility='hidden';
 } 

 subm=[];
}

function divon(id1,id2)
{
 if(id2 == 'stat')
 { 
  document.getElementById(id1).style.background="url('img/menu_buttom_over.gif')"
 }
 else
 {
  document.getElementById(id1).style.background="url('img/menu_buttom_over.jpg')"
 }
}

function divoff(id1,id2)
{
 if(id2 == 'stat')
 {
  document.getElementById(id1).style.background="url('img/menu_buttom.gif')"
 }
 else
 {
  document.getElementById(id1).style.background="url('img/menu_buttom.jpg')"
 }
}

function submenuonoff(id1)
{
 if(document.getElementById(id1).style.position == 'static')
 { 
  document.getElementById(id1).style.position='absolute';
  document.getElementById(id1).style.visibility='hidden';
  document.getElementById('arow'+id1).src='/img/arrow_down.gif';
 } 
 else
 {
  document.getElementById(id1).style.visibility='visible';
  document.getElementById(id1).style.position='static';
  document.getElementById('arow'+id1).src='/img/arrow_up.gif';
 }
}


function enteron()
{
 document.getElementById('enter').style.background="url('/img/enter_button_over.jpg')"
}

function enteroff()
{
 document.getElementById('enter').style.background="url('/img/enter_button.jpg')"
}

function buyon(id1)
{
 document.getElementById(id1).style.background="url('/img/shop/button_over.jpg')"
}

function buyoff(id1)
{
 document.getElementById(id1).style.background="url('/img/shop/button.jpg')"
}
