function addAction(menu)
{
	if (menu.nodeType!=3)
	{
	var temp=menu.firstChild;
		while(temp!=null)
		{
			if(temp.nodeName=="TD"&&temp.clientWidth!=1)
			{
				with(temp)
				{
  onmouseover=function(){this.className='Hover';};
  onmouseout=function(){this.className='';};
				}
			}

			if(temp.nodeName!="A"&&temp.nodeName!="TABLE") addAction(temp);
		temp=temp.nextSibling;
		}
	}
}

function setCookie (name, value, expires, path, domain, secure) {
      document.cookie = name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}

var price_currencys=Array('uah','rub');

function changeCurrencyPrice(p){
  for(i in price_currencys){
  document.getElementById('price_'+price_currencys[i]).style.display='none';
  }
  document.getElementById('price_'+p).style.display='';

expire = new Date();
expire.setTime(expire.getTime() + 3600000*24*364);
setCookie ('price_currency', p, expire.toGMTString(),"/") ;
}


