
//

window.onload = function() {
	if (navigator.appVersion.toLowerCase().indexOf("msie") != -1 && document.getElementById) {
		initIE();
	}
}

/*
 * Fixes IE's failure to use standard CSS border-spacing property
 * We don't want to mess up our lovely compliant XHTML after all do we?
 */

function initIE() {
	var tables = document.getElementsByTagName("table");
	
	for (var i = 0; i < tables.length; i ++) {
		if (tables[i].className == "productListing") {
			tables[i].cellSpacing = 0;
		}
	}
}

//

function productImagePopup(id, width, height) {
	var url = id;
	width = width + 20;
	height = height + 20;
	var props = "menubar=0,toolbar=0,scrolling=0,status=0,width=" + width + ",height=" + height;
	
	var win = window.open(url, "", props);
	win.focus();
	
	return false;
}

