function p(t)
{
	document.write(t);
}

function popimg(url, title, width, height)
{
	str="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\"><html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\">\n<title>Autoboom.com.ua</title>\n</head>\n<body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0>\n<img src='"+url+"' alt='"+title+"'>\n</body>\n</html>";
	f_win = window.open(url ,"BigImage" ,'width='+width+',height='+height+',top='+((screen.height/2)-(height/2))+',left='+((screen.width/2)-(width/2))+',toolbar=no,scrollbars=no,resizable=yes,menubar=no,status=no,directories=no,location=no');
	f_win.document.writeln(str);
	f_win.focus();
	f_win.document.close();
}

function popup(url, title, width, height)
{
	f_win = window.open(url ,"" ,'width='+width+',height='+height+',top='+((screen.height/2)-(height/2))+',left='+((screen.width/2)-(width/2))+',toolbar=no,scrollbars=yes,resizable=yes,menubar=no,status=no,directories=no,location=no');
	f_win.focus();
}

// Menu
var mid='';

Array.prototype.inArray = function (value) {
 var i;
 for (i=0; i < this.length; i++) {
 if (this[i] === value) {
 return true;
}
 }
 return false;
};

function on(it) {
 var block = it.getElementsByTagName("ul")[0];
 if (block) {
 if (mid!='' && mid!=block.id) {
 var old=document.getElementById(mid);
 var oldimg=document.getElementById('imgCat'+mid);
 old.style.display='none';
 oldimg.src="images/square.gif";
 };

 mid=block.id;
 var img = document.getElementById('imgCat'+mid);
 if (block.offsetHeight==0){
 block.style.display='block';
 img.src="images/visit.gif";
 img.align='left';
 }
 else{
 block.style.display='none';
 img.src="images/square.gif";
 }
 }
}

