/* AUTHOR: Roman St.Zhavnis*/
/* CREATION DATE: 15.02.2004 */
function eprotect(login,server,see,cls)
{//email protector
 document.write("<a href='mailto:");
 document.write(login,"@",server,"'");
 (cls)?(document.write(" class='",cls,"'>")):(document.write(">"));
 (see)?(document.write(see,"</a>")):(document.write(login,"@",server,"</a>"));
}

function wrPrice(price)
{//writing price in 'XXX XXX XXX' format
	if(price==0){
		document.write('0');
		return;
	}
	var wrNULL = 0;
	for(i=8; i>=0; i--)
	{
	  if(Math.floor(price / Math.pow(10,i)) > 0 || wrNULL==1)
	  {
	    document.write(Math.floor(price / Math.pow(10,i)));
	    wrNULL=1;
	  }
	  price=(price%Math.pow(10,i));
	  if((i%3)==0)
	    document.write(' ');
	}
}

function menuOver(obj)
{
	obj.style.backgroundImage='url(/i/bg1.gif)';
	obj.style.color='#FFFFFF';
}

function menuOut(obj)
{
	obj.style.backgroundImage='none';
	obj.style.color='#00387d';
}
