// open a new Window:
function newWin(url,windowname,window_apperance,bReturnWindowHandle) {
  if (url == null) url = '';
  if (windowname == null) windowname = '_blank';
  if (window_apperance == null || window_apperance == '') window_apperance = 'left=20,top=200,scrollbars=yes,menubar=no,resizable=yes,toolbar=no,location=no';
  newwindow = open(url,windowname,window_apperance);
  newwindow = newwindow.focus();
  if (bReturnWindowHandle) return newwindow;
}
function update(url,index,isSuper)
{
	currentIndex=index;
	currentIsSuper=isSuper;
	document['cloverBig'].src=url;
	visibleState="hidden";
	if(isSuper)
	visibleState="visible";
	if(document.layers&&document.eBaySuperLink1)
	{
		document.eBaySuperLink1.visibility=visibleState;
		document.eBaySuperLink2.visibility=visibleState;
	}
	if(document.all&&document.all.eBaySuperLink1)
	{
		document.all.eBaySuperLink1.style.visibility=visibleState;
		document.all.eBaySuperLink2.style.visibility=visibleState;
	}
	if(!document.all&&document.getElementById&&document.getElementById("eBaySuperLink1"))
	{
		document.getElementById("eBaySuperLink1").style.visibility=visibleState;
		document.getElementById("eBaySuperLink2").style.visibility=visibleState;
	}
	return false;
}
function supersize()
{
	if(currentIsSuper)
	{
		var modSuperSizeUrl=superSizeURL.substr(0,superSizeURL.indexOf("indexURL=")+9)+currentIndex+superSizeURL.substr(superSizeURL.indexOf("indexURL=")+10);
		location.href=modSuperSizeUrl;
	}
	return;
}