function initThumbnail()
{
for (var i = 0; i < 25; ++i)
{
if (productItem[i] != "")
	{
	document.images['thumb' + i].src = itemDir[i] + '/' + productItem[i] + '.jpg';
	flipperImg[i] = new Image();
	flipperImg[i].src = "/fc2007/img/prod_med/" + productItem[i] + '.jpg';
	}
}
}

function openThumbnail(i, cat)
{
winopen('/cgi-bin/freec/locate?fcyear=2007&act=1&cat=' + cat + '&item=' + productItem[i]);
return true;
}

function detectBrowser()
{
	var roll = 'false';
	browser_name = navigator.appName;
	browser_version = parseFloat(navigator.appVersion); 

	if (browser_name == "Netscape" && browser_version >= 3.0) 
		{ roll = 'true'; }
	else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 4.0)
		{ roll = 'true'; }
	return roll;
}

function msover(img,ref) { if (roll == 'true') { document.images[img].src = eval(ref + '.src'); } }
function msout(img,ref) { if (roll == 'true') { document.images[img].src = eval(ref + '.src'); } }

function msover2(img,ref) { if (roll == 'true') { document.images[img].src = ref; } }
function msout2(img,ref) { if (roll == 'true') { document.images[img].src = ref; } }

function winopen(fileO)
{
	productWin = window.open(fileO, 'ProductWindow1', 'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=480,height=680');
	productWin.focus();
}

/* Used for Opening retailers page in the parent window */

function redirectOpener(URL) {
window.opener.location.href  = URL;
}
