<!-- hide script from old browsers

//detect browser:
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) browserVer = "1";
else if (browserName == "Microsoft Internet Explorer" && browserVer == 4) browserVer = "1";
else browserVer = "2";

//preload images:
if (browserVer == 1) {
	a0 = new Image();
	a0.src = "images/szteixo-small.jpg";
	a1 = new Image();
	a1.src = "images/szteixo-small-bw.jpg";
	a2 = new Image();
	a2.src = "images/szteixo.jpg";
	a3 = new Image();
	a3.src = "images/szteixo-bw.jpg";
}

//pause on execution:
function pauseComp(Amount) {
	d = new Date() //today's date
	while (1) {
		mill=new Date() // Date Now
		diff = mill-d //difference in milliseconds
		if( diff > Amount ) {break;}
	}
}

//image swapping function:
function hiLite(imgDocID, imgObjName, comment, timeCount) {
	if (timeCount != 0) pauseComp(timeCount);
	
	if (browserVer == 1) {
		document.images[imgDocID].src = eval(imgObjName + ".src");
		window.status = comment; return true;
	}
}

// highlight element:
function highlight(cell,color) {
	var element = document.getElementById(cell);
  	
	//change highlight color
  	element.style.background = color;
}

// next location:
function next(target) {
	document.location = target;
}

var win = null;

// window popup
function popUp(target){
	if (win) win.close();
	win = window.open(target, "Win", "width=480, height=360, top=100, left=100");
	win.focus();
}

// show prices:
function showPrices(productId){
	var dataPricesLocation = "data/products/";
	popUp(dataPricesLocation+productId+"-prices.html");
}

//foo:
function foo() {
	return;
}

// end hiding -->