var ie = (document.all) ? true : false;
var ns = (document.layers) ? true : false;

var ua = window.navigator.userAgent
var msie = ua.indexOf ( "MSIE " )

if ( msie > 0 )      // If Internet Explorer, return version number
var ver_num = parseInt (ua.substring (msie+5, ua.indexOf (".", msie )))
else                 // If another browser, return 0
ver_num = 0
  

function inCell(cell, newcolor) {
	if (!cell.contains(event.fromElement)) {
		cell.style.cursor = 'hand';
		cell.bgColor = newcolor;		
	}
}

function outCell(cell, newcolor) {
	if (!cell.contains(event.toElement)) {
	cell.style.cursor = 'default';
		cell.bgColor = newcolor;
	}
}

function mClk(src){ 
	if(event.srcElement.tagName=='TD')
	{
		src.children.tags('A')[0].click();
	}
}

function go(src) {
document.location.href = src;
}

function frame_go(src) {
parent.frames.location.href = src;
}

picWin = null;
function openPic(path, width, height){
                picWin = open("", "handle", "height=" + (height - 1) + ",width=" + (width - 1) + ",resizable=yes,scrollbars=no,menubar=no,toolbar=no,left=50,top=10");
                picWin.document.open();
                picWin.document.writeln("<html>\n<title>BuyRussia.net</title>\n<body   bgcolor=white leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><img src=\"" + path + "\" alt=BuyRussia.net></body>\n</html>\n");
                picWin.focus();} 
				
function popup() {
  alert("HTB may not be working right now");
}

function NTSC(){
var A_=window.open("/video/ntsc.html","ntscpopup","toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,menubar=no,width=250,height=530");A_.focus();}

function window350(my_url){
var A_=window.open(my_url,"opticspopup","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,width=610,height=480");A_.focus();}

if ( ver_num >= 6 ) 
{
	var rbc_url =  "http://www.russiandvd.com/store/dvd.asp?aid=3691"
	var kniga_url = "http://www.kniga.com/tap/af/b.asp?id=309"
	//http://www.kniga.com/tap/af/b.asp?id=309
}
else
{
	var rbc_url = "/rbc_video.html"
	var kniga_url = "/kniga.html"
}