// <![CDATA[

//establish global variables
var curCell = 0;
var curProd = 0;
var prev = false;
var next = false;

var curProdPos = new Array();
curProdPos[0] = new Array();
curProdPos[0][0] = '66';
curProdPos[0][1] = '67';
curProdPos[1] = new Array();
curProdPos[1][0] = '177';
curProdPos[1][1] = '178';
curProdPos[2] = new Array();
curProdPos[2][0] = '288';
curProdPos[2][1] = '289';
curProdPos[3] = new Array();
curProdPos[3][0] = '399';
curProdPos[3][1] = '400';
curProdPos[4] = new Array();
curProdPos[4][0] = '510';
curProdPos[4][1] = '511';
	
var tracker;

function emailTracking(which) {
	document.emailInfo.product_ID.value = products[which][4];
}

//details pop-up window
function popWin(){
	var url = '/detail.html?detail=' + products[curProd][3];
	newWin1 = window.open(url,'popWin','toolbar=no,resizable=yes,scrollbars=no,width=550,height=475');
}

window.onload = function () {
	doShowProdNav();
}

//product write
function doWriteProds(){
	document.write ('<div id="prodTable" style="position:absolute; left:67px; top:456px; z-index:2; visibility:visible">\
<table border="0" cellpadding="0" cellspacing="0">\
<tr>');

	for (var f = 0; f < 5; f++){
		if (f < products.length){
			document.write('<td><a href="javascript:selProd(\'' + f + '\');" onmouseover="doProdRoll(\'on\', \'prodBG'+f+'\');" onmouseout="doProdRoll(\'off\', \'prodBG' + f + '\');"><img src="/images/products/'+products[f][1] + '" alt="' + products[f][2] + '" width="106" height="82" border="0" name="prodimg'+ f +'" /><\/a></td>\
<td>\
<img src="/images/spacer.gif" alt="" width="5" height="1" border="0" /></td>');
			curCell=f;
		}else{
			document.write('<td><img src="/images/spacer.gif" alt="" width="106" height="1" border="0" /></td>\
<td>\
<img src="/images/spacer.gif" alt="" width="5" height="1" border="0" /></td>');
		}
	}
	document.write('</tr></table></div>');
}

// ]]>
