// For Manufacturers select in the header
var el = document.getElementById("manfr");
if (el != null)	el.disabled=false;
//************** popip.js

var timercall = null;
var timersign = null;

function popup_hidden(id) {

	document.getElementById(id).style.visibility = "hidden";

}

function popup_visible(id) {

	document.getElementById(id).style.visibility = "visible";

}

if (document.getElementById('cart') == null) {
	// pamparam
} else {
	var link_sign = document.getElementById('cart');

	link_sign.onmouseout = function() {
		timersign = setTimeout("popup_hidden('popupcart');", 800);
	}
	link_sign.onmouseover = function() {
		getCartByAjax('popupcart');
		clearTimeout(timersign);
	}

	var divsign = document.getElementById('popupcart');
	divsign.onmouseout = function() {
		timersign = setTimeout("popup_hidden('popupcart');", 800);
	}
	divsign.onmouseover = function() {
		clearTimeout(timersign);
	}
	divsign.onmousemove = function() {
		clearTimeout(timersign);
	}

}

// **************** hp/popup.js

var timercall = null;
var timersign = null;

var hidden = "hidden";
var visible = "visible";
var sign = "sign";

function popup_hidden(id) {

	document.getElementById(id).style.visibility = "hidden";

}

function popup_visible(id) {

	document.getElementById(id).style.visibility = "visible";

}

// if (document.getElementById('cart')===null) {
// pamparam
// }
// else {
// var link_sign = document.getElementById('cart');

// link_sign.onmouseout = function () {timersign =
// setTimeout("popup_hidden('popupcart');" , 10); }
// link_sign.onmouseover = function() { clearTimeout(timersign);
// getCartByAjax('popupcart');}

// var divsign = document.getElementById('popupcart');
// divsign.onmouseout = function () {timersign =
// setTimeout("popup_hidden('popupcart');" , 500); }
// divsign.onmouseover = function() { clearTimeout(timersign); }
// divsign.onmousemove = function() { clearTimeout(timersign); }
// }

/*
 * var link_call = document.getElementById('call'); link_call.onmouseout =
 * function () {timercall = setTimeout("popup_hidden('popupcall');" , 3000);
 * link_call.style.textDecoration='none'; } link_call.onmouseover = function() {
 * clearTimeout(timercall);
 * popup_visible('popupcall');link_call.style.textDecoration='underline';}
 * 
 * var divcall = document.getElementById('popupcall'); divcall.onmouseout =
 * function () {timercall = setTimeout("popup_hidden('popupcall');" , 3000); }
 * divcall.onmouseover = function() { clearTimeout(timercall); }
 * divcall.onmousemove = function() { clearTimeout(timercall); }
 */

// *************************

var checkboxHeight = "25";
var radioHeight = "25";
var selectWidth = "";

/* No need to change anything after this */

document
		.write('<style type="text/css">input.styled { display: none; } select.styled { position: relative; width: ' + selectWidth + 'px; opacity: 0; filter: alpha(opacity=0); z-index: 5; }</style>');

/* from lefthight.js */
function leftpanc() {
	var heiht = 190;
	var lmenu2 = document.getElementById('leftme');

	if (lmenu2 != null) {
		var lmenu2_height = document.getElementById('leftme').offsetHeight;
		var body = document.getElementById('main_content');
		if (body != null) {
			var bodym = body.offsetHeight;
			if (heiht < bodym) {
				heiht = bodym;
			}
		}
		if (heiht < lmenu2_height) {
			heiht = lmenu2_height;
		}

		heiht2 = heiht - 14;
		lmenu2.style.height = heiht2 + 'px';
	}
}