var colorArr = new Array('#FF0000','#FF8429','#FFFF10','#D6EF39','#7BC618','#299C39','#089494','#00A5C6','#083194','#31007B','#8C007B','#CE007B');
var colorInt = 0;
var eBay = '';
var top, left, newwin, youtube
function enlarge(jpg, width, height) {
	var species = jpg.href.split('/',5)[4];
	top = screen.availHeight / 2 - height/ 2 - 100;
	left = screen.availWidth / 2 - width / 2 - 12;
	try { if (newwin.innerHeight != (height+60)) newwin.close(); } catch (error) {};
	newwin = window.open('', 'popup', 'scrollbars=1,width='+(width+16)+',height='+(height+60)+',top='+top+',left='+left);
	newwin.document.writeln('<html><head><title>Roj&eacute; Leather Image Viewer</title></head><body><center>');
	//newwin.document.writeln('<input type="button" value="Add to cart" onclick="window.location.href=\'/shop\'" />');
	newwin.document.writeln('<input type="button" value="Close Window" onclick="window.close()" /><br /><br />');
	newwin.document.writeln('<img src="'+jpg.href+'" width='+width+' height='+height+' /></center></body></html>');
	newwin.document.close();
	newwin.focus();
	return false;
}
function getCookie(c_name) {
	if (document.cookie.length == 0) return "";
	c_index = document.cookie.indexOf(c_name)+c_name.length+1;
	if (c_index == c_name.length) return "";
	return unescape(document.cookie.substring(c_index,document.cookie.length));
}
function setCookie(c_name,value,expiredays) {
	expdate = new Date();
	expdate.setDate(expdate.getDate()+expiredays);
	document.cookie = c_name+'='+escape(value)+';expires='+expdate.toGMTString();
}
function inquiryColors() {
	if (++colorInt == 12) colorInt = 0;
	document.getElementById('inquiry').style.color = colorArr[colorInt];
}
function doOnLoad() {
	//if (getCookie('inquired') != 'true') setInterval('inquiryColors()',100);
        var searchText = document.getElementById("search-textbox");
        var searchButton = document.getElementById("search-button");
}
MC.addLoadEvent(doOnLoad);  /****window.onload = function() { doOnLoad() }; ****/
