function rowOver(object, y) {
  if (object.className == 'sel' && y != "1") 
  	object.className = '';
  else
	object.className = 'sel';
}

function open_product_detail (x) {
	width = 530;
	height = 610;
	vids = window.open("/product_popup.php" + "?model=" + x, "_blank", "width=" + width + ",height=" + height + ",resizable=yes,scrollbars=no,toolbar=no,titlebar=no,location=no,locationbar=no,directories=no,status=no,menubar=no,personalbar=no,width=350,height=100,left=" + 20 + ",top=" + 20)
}

function resize_window(width, height)
{
	var nn = (navigator.appName == "Netscape" || document.layers) ? true : false
	var ie = document.all ? true : false
	var ieMac = (navigator.platform.indexOf("Mac") != -1 && document.all) ? true : false
	var aol = (navigator.userAgent.indexOf("AOL ") != -1) ? true : false;
	var xp = (navigator.userAgent.indexOf("NT 5.1") != -1) ? true : false;
	var firefox = (navigator.userAgent.indexOf("Firefox") != -1) ? true : false;
	
	window.resizeTo(width, height);
	
	if(ieMac) {
		newHeight = Number(height);
		newHeight -= Number(document.body.clientHeight);
		newHeight += Number(height);
		
		newWidth = Number(width);
		newWidth -= Number(document.body.clientWidth);
		newWidth += Number(width);
	}
	else if(aol) {
		newHeight = Number(height);
		newWidth = Number(width);

		newHeight += 4;
	}
	else if(xp) {
		newHeight = Number(height);
		newWidth = Number(width);

		newHeight += 65;
		newWidth += 12;
	}
	else if(ie)	{
		newHeight = Number(height);
		newWidth = Number(width);

		newHeight += 35;
		newWidth += 12;
	}
	else {
		newHeight = Number(height);
		newHeight -= Number(window.innerHeight);
		newHeight += Number(height);
		
		newWidth = Number(width);
		newWidth -= Number(window.innerWidth);
		newWidth += Number(width);

	}

	if(firefox)
		newHeight += 8;
	
	window.resizeTo(newWidth, newHeight);
	moveWindow();
}

function moveWindow()
{
	var nn = (navigator.appName == "Netscape" || document.layers) ? true : false
	var ie = document.all ? true : false

  if (window.screen) 
  {
	if(ie)
	{
		moveToW = (Number(window.opener.document.body.clientWidth) - Number(document.body.clientWidth)) / 2
		moveToH = (Number(window.opener.document.body.clientHeight) - Number(document.body.clientHeight)) / 2
	}
	else
	{
		moveToW = (Number(window.opener.outerWidth) - Number(window.outerWidth)) / 2
		moveToH = (Number(window.opener.outerHeight) - Number(window.outerHeight)) / 2
	}
    window.moveTo(moveToW, moveToH);
  }
}