function new_s(x)
{window.open(x, "", "scrollbars=no, menubar=no,resizable=yes,width=780, height=625");}

function new_s2(x)
{window.open(x, "", "menubar=no,resizable=no,width=974, height=679");}

function new_img(img, x, y)
{window.open('/img.shtml?'+img, "", "scrollbars=no, menubar=no,resizable=no,width="+x+", height="+y); return false}

var new_window;
var m_y,m_source;

function prod_view(source,y, extra) {
	y = y ? y : 300;
	m_y=y; m_source=source;

	if (!prod_view.closed && new_window && !document.all && !window.opera) {
		new_window.close();
	}

	if(!extra) open_shit(m_source,m_y);
	else open_shit(m_source,m_y,true);
	return false;
}

function open_shit(source,y, extra) {
if(!extra) source = 'more/one_prod.shtml?'+source;
y+=40;
if (source == 'mmvb_all') x = 750; else if (source == 'rts_all') x = 610; else x = 550;
new_window = window.open(source, 'prod_view', 'location=no,menubar=no,resizable=yes,scrollbars=yes,top=100,left=100,width='+x+', height='+y);
new_window.resizeTo(x,y+30);
new_window.focus();
}

function show_img(x) {
var midX=screen.width/2-984/2;
var midY=screen.height/2-640/2;
if (window.opera) midY=30;
var prom = window.open('/img.shtml?/images/promo/'+x, 'promo', 'height=630,width=983,location=no,menubar=no,resizable=yes,status=no,scrollbars=no,top='+midY+',left='+midX);
prom.focus();

return false;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function change(what,num) {
  if (what.id=="") {
   what.src = "/images/promo/"+num+"_.gif";
   what.id = "over";
  }
  else {
   what.src = "/images/promo/"+num+".gif";
   what.id = "";   
  }
 }

function rambler_load() {
document.getElementById('rambler').innerHTML = '<a href="http://top100.rambler.ru/top100/"><img src="http://counter.rambler.ru/top100.cnt?1023225" alt="Rambler\'s Top100" width=1 height=1 border=0></a>';
}

var m = document.uniqueID
&& document.compatMode
&& !window.XMLHttpRequest
&& document.execCommand;

try{
     if(!!m)
      {
         m("BackgroundImageCache", false, true)
      }
   }
   catch(oh){};