var mesRecords = false;
var related = new Array();
var ie = false;
var ns6 = false;
var ns = false;
var opera = false;
if (eval(document.layers)) { ns=true; }
else {
	if (eval(document.all)) { ie=true; if (navigator.userAgent.indexOf('Opera')!=-1) opera=true;}
		else {
			if (eval(document.getElementById)) { ns6=true;}
			}
	}
// Hide and Show menu

//finds and return <DIV> object by given name



function Layer(layerName) {
return (ns)?(document.layers[layerName]):((ns6)?(document.getElementById(layerName)):(document.all(layerName)));
}
function enlarge(url,imgw,imgh) {
var leftPos = (screen.availWidth-900) / 2;
var topPos = (screen.availHeight-600) / 2;
imgw=eval(imgw)+20;
imgh=eval(imgh)+30;
window.open(url, 'EnlargePicture','width='+imgw+',height='+imgh+',scrollbars=no,resizable=no,statusbar=no,location=no,titlebar=0,top=' + topPos + ',left=' + leftPos);
}

function insertMore() {
if (Layer('moreinfo')) {
	moretxt=Layer('moreinfo').document.forms.moreinfoform.moreinfovalue.value;
	var leftPos = (screen.availWidth-900) / 2;
	var topPos = (screen.availHeight-600) / 2;
	var MoreInfo = new Object();
	MoreInfo = window.open('more_info.htm', 'EnlargePicture','width=800,height=600,scrollbars=yes,resizable=no,statusbar=no,location=no,titlebar=0,top=' + topPos + ',left=' + leftPos);
	MoreInfo.document.write('<html><head><title>More info</title><link rel="STYLESHEET" type="text/css" href="http://www.invertersrus.com/main.css"></head><body bgcolor="#ffffff" background="http://www.invertersrus.com/imgs/bg_body.gif" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0"><div align="center"><table border="0" cellpadding="0" cellspacing="0" height="100%"><tr><td bgcolor="#000000"><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="1"/></td><td width="776" valign="top" bgcolor="#FFFFFF"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="1" bgcolor="#ffffff"><img src="http://www.invertersrus.com/imgs/pix.gif" border="0" width="1" height="1"/></td></tr><tr><td height="1" bgcolor="#6485AE"><img src="http://www.invertersrus.com/imgs/pix.gif" border="0" width="1" height="1" /></td></tr><tr><td width="100%" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td><a href="index.html"><img src="http://site.invertersrus.com/imgs/logo_pop_.gif" border="0" alt=""/></a></td><td width="100%"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td height="23" bgcolor="#EBEBEB" nowrap=""></td></tr><tr><td height="1" bgcolor="#ffffff"><img src="http://www.invertersrus.com/imgs/pix.gif" border="0" width="1" height="1" /></td></tr><tr><td height="1" bgcolor="#6485AE"><img src="http://www.invertersrus.com/imgs/pix.gif" border="0" width="1" height="1" /></td></tr><tr><td height="29" bgcolor="#2A4C77"><img src="http://www.invertersrus.com/imgs/pix.gif" border="0" width="1" height="1" /></td></tr></table></td><td bgcolor="#6485AE"><img src="http://www.invertersrus.com/imgs/pix.gif" border="0" width="1" height="1" /></td><td bgcolor="#ffffff" nowrap=""><p style="padding:5px;"><a href="javascript:void(0)" onClick="self.close()" >Close window</a></p></td><td bgcolor="#6485AE"><img src="http://www.invertersrus.com/imgs/pix.gif" border="0" width="1" height="1" /></td></tr></table></td></tr><tr><td height="1" bgcolor="#6485AE"><img src="http://www.invertersrus.com/imgs/pix.gif" border="0" width="1" height="1" /></td></tr></table><div><br></div><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="15" nowrap=""></td><td width="100%">'+moretxt+'</td><td width="15" nowrap=""></td></tr></table><div><br></div><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td bgcolor="#cccccc"><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="1"/></td></tr><tr><td height="20"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="10" nowrap=""></td><td width="100%" align="center"><font size=1 face="Arial" color="#cccccc">Design and System Improvements by <a href="http://www.ystoredesign.com" target="_blank"><font size=1 face="Arial" color="#cccccc">Y!StoreDesign Studio</font></a></font></td><td width="10" nowrap=""></td></tr></table></td></tr><tr><td bgcolor="#cccccc"><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="1"/></td></tr></table></td><td bgcolor="#000000"><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="1"/></td></tr></table></div></body></html>');
	}
else {
	alert('Your browser settings not allow to run scripts or version of your browser is old.');
	}
}

var Currtop='<div><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="7"/></div><div align="center"><h1>Currently Viewed Items</h1></div><div><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="7"/></div><table border="0" cellpadding="0" cellspacing="0"><tr><td width="15" nowrap=""></td><td width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td bgcolor="#6F6F6F"><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="1"/></td><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td bgcolor="#6F6F6F"><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="1"/></td></tr><tr><td><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="1"/></td></tr><tr><td bgcolor="#6F6F6F"><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="1"/></td></tr></table></td><td bgcolor="#6F6F6F"><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="1"/></td></tr><tr><td height="107" bgcolor="#6F6F6F"><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="1"/></td><td width="100%"><table border="0" cellpadding="0" cellspacing="0"><tr align="center">';
var Currbot='</tr></table></td><td height="107" bgcolor="#6F6F6F"><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="1"/></td></tr><tr><td bgcolor="#6F6F6F" colspan="3"><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="1"/></td></tr></table></td><td width="15" nowrap=""></td></tr></table>';
var Currdiv='<td height="107" bgcolor="#000000"><img src="http://www.invertersrus.com/imgs/pix.gif" width="1" height="1"/></td>';

var CurrItema='<td valign="top"><img src="http://www.invertersrus.com/imgs/images/pix.gif" width="15" height="1"/></td><td valign="top"><table cellpadding="1" cellspacing="0" border="0" width="76"><tr><td height="10"></td></tr><tr><td align="center"><table border="0" cellpadding="1" cellspacing="0"><tr><td bgcolor="#000000">';
var CurrItemb='</td></tr></table></td><td><img src="http://www.invertersrus.com/imgs/images/pix.gif" width="15" height="1"/></td>';

	function pasteRelated() {
	var asd=0;
	var Rell=false;
	for (var i=1;i<6;i++) {
		ccc='rel_'+i;
		if (GetCookie(ccc)) {
			Rell=true;
			asd=asd+1;
			}
		}
//	alert(GetCookie('rel_5'));
	if (Rell) {
		document.write(Currtop);
	for (var i=1;i<6;i++) {
		ccc='rel_'+i;
		if (GetCookie(ccc)) {
			tempvall=GetCookie(ccc);
			document.write(CurrItema);
			document.write(tempvall);
			document.write(CurrItemb);
			if (i!=5) {
				document.write(Currdiv);
				}
			}
		}
		document.write(Currbot);
		}
	}
	

function TellToFriend() {
var NewPop1 = new Object();
NewPop1=window.open("http://site.invertersrus.com/custom/ytellafriend.php?link="+pid.toLowerCase(),"tellafriend","HEIGHT=400,WIDTH=640,scrollbars=no,resizable=yes,top=50,left=50");
NewPop.window.focus();
}


function maillist(emailval) {
var NewP = new Object();
NewP=window.open('http://site.invertersrus.com/custom/addemail.php?mail='+emailval,'popupemail','HEIGHT=150,WIDTH=520,scrollbars=yes,resizable=yes,top=50,left=50');
NewP.window.focus();
}
