// old definition: function popExpanded(img, w, h, type) {
function popExpanded(img, type) {
popExpand = null;
if(popExpand == null || popExpand.closed) {
	var url = "/catalog/detailed.xml?product_id=" + img + "&type=" + type;
    var w = 949;
    var h = 685;
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	popExpand = window.open(url,"popExpand","width=" + w + ",height=" + h + ",left=" +LeftPosition+ ",top=" +TopPosition+ ",toolbar=no,resizable=no,scrollbars=no,location=no,directories=no,menubar=no");
	}
}

function popSizeChart() {
popSizeChrt = null;
if(popSizeChrt == null || popSizeChrt.closed) {

	if(is.mozilla5) {
		w = 435;
		h = 760;
	} else {
		w = 435;
		h = 748;
	}
	var screenWidth		=	(screen.width - w) / 2;
	var screenHeight	=	(screen.height - h) / 2;
	var url = "/size_chart.html";
	popSizeChrt = window.open(url,"popSizeChrt","width="+w+",height="+h+",left="+screenWidth+",top="+screenHeight+",toolbar=no,resizable=no,scrollbars=no,location=no,directories=no,menubar=no");
	}
}
