function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
function setasHome() {
	document.body.style.behavior='url(#default#homepage)';
	document.body.setHomePage('http://www.kournikovaimages.com');
}
function errorMsg() {
	alert("Netscape 6 or Mozilla is needed to install a sherlock plugin");
}
function addEngine(name,ext,cat,type) {
	if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) {
		window.sidebar.addSearchEngine("http://www.kournikovaimages.com/"+name+".src","http://www.kournikovaimages.com/"+name+"."+ext, name, cat );
	} else {
		errorMsg();
	}
}
function enlarge(id,height,width,type) {
	width = (width + 20);
	height = (height + 30);
	window.open('enlarge.php?type=' + type + '&id=' + id,'enlarge','scrollbars=no,resizable=yes,width=' + width + ',height=' + height);
}
function mail_to_friend(id,type) {
	window.open('send-to-friend.php?type=' + type + '&id=' + id,'friend','scrollbars=no,resizable=yes,width=600,height=450');
}
function download_video(id) {
	window.open('download-video.php?id=' + id,'download','scrollbars=no,resizable=yes,width=600,height=450');
}
function hideAd(divId) 
{ if (document.layers) document.layers[divId].visibility = 'hide';
  else if (document.all) document.all[divId].style.visibility = 'hidden';
  else if (document.getElementById) document.getElementById(divId).style.visibility = 'hidden';
}

function adDown(divId) 
{ state=typeof topPos;
  if(state=='undefined') topPos=-260;
  if(topPos < 215)
  { topPos+=3;
	   if (document.layers) document.layers[divId].top = topPos;
    else if (document.all) document.all[divId].style.top = topPos;
    else if (document.getElementById) document.getElementById(divId).style.top = topPos;	
    setTimeout("adDown('pop');",5);
	 }
 setTimeout("hideAd('pop');",11000)
}