// 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;
}

// eNDizZle's Pop hider
function hidePop(){
	var PopDiv = document.getElementById("Pop");
	PopDiv.style.visibility = "hidden";
	PopDiv.style.display = "none";
}

// eNDizZle's dropdown redirect
function redirect(input){
	window.location = input;
}

// eNDizZle's pic switcher
function update(url,index,isSuper){
	currentIndex=index;
	currentIsSuper=isSuper;
	document['pabobi'].src=url;
	visibleState="hidden";
	if(isSuper)
	visibleState="visible";
	if(document.layers&&document.pabobiSuperLink1)
	{
		document.pabobiSuperLink1.visibility=visibleState;
		document.pabobiSuperLink2.visibility=visibleState;
	}
	if(document.all&&document.all.pabobiSuperLink1)
	{
		document.all.pabobiSuperLink1.style.visibility=visibleState;
		document.all.pabobiSuperLink2.style.visibility=visibleState;
	}
	if(!document.all&&document.getElementById&&document.getElementById("pabobiSuperLink1"))
	{
		document.getElementById("pabobiSuperLink1").style.visibility=visibleState;
		document.getElementById("pabobiSuperLink2").style.visibility=visibleState;
	}
	return false;
}
