function hover1(rateid,girlid){
	for(ctr=1;ctr<=rateid;ctr++){
		document.getElementById("rate"+ctr+"-"+girlid+"li").style.backgroundPosition="0 -24px";
		}
	}
function hoverout1(girlid,defaultid){
	for(ctr=1;ctr<=5;ctr++){
		document.getElementById("rate"+ctr+"-"+girlid+"li").style.backgroundPosition="0 12px";
		}
	for(ctr=1;ctr<=defaultid;ctr++){
		if((ctr%2)==1)
			document.getElementById("rate"+Math.ceil(ctr/2)+"-"+girlid+"li").style.backgroundPosition="0 -12px";
		else
			document.getElementById("rate"+Math.ceil(ctr/2)+"-"+girlid+"li").style.backgroundPosition="0 0";
		}
	}
function linkMembers(){
  location.href = "http://members.herfreshmanyear.com";
  }
function bookmarksite(title, url){
  if (document.all)
    window.external.AddFavorite(url, title);
  else if (window.sidebar)
    window.sidebar.addPanel(title, url, "")
  }
function searchgirl(natsvar){
	var srchvar = document.getElementById("srchfield").value
	location.href = "http://www.herfreshmanyear.com/t1/search.php?nats="+natsvar+"&search="+srchvar;
  }
function displayMoregirls(girlid,nats,currentid){
 var surl = "includes/ajax/moregirls.php"
 surl+="?nats="+nats
 surl+="&id="+girlid
 surl+="&cur_id="+currentid
 var xmlHttp;
 try{xmlHttp=new XMLHttpRequest();}
 catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
  catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
   catch(e){alert("Your browser does not support AJAX!");
    return false;}}}
 xmlHttp.onreadystatechange=function(){
  document.getElementById("prfmoregirls").innerHTML = "<p style='margin:9px 0 0 36px;'><img src='images/profile/ajax_loader.gif'/></p>"
  if(xmlHttp.readyState==4){
   document.getElementById("prfmoregirls").innerHTML = xmlHttp.responseText;
   }
  }
 xmlHttp.open("GET",surl,true);
 xmlHttp.send(null);
 }
function displayMoreproducers(prodname,nats,currentprodname){
 var surl = "includes/ajax/moreproducers.php"
 surl+="?nats="+nats
 surl+="&prod="+prodname
 surl+="&cur_prod="+currentprodname
 var xmlHttp;
 try{xmlHttp=new XMLHttpRequest();}
 catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
  catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
   catch(e){alert("Your browser does not support AJAX!");
    return false;}}}
 xmlHttp.onreadystatechange=function(){
  document.getElementById("prdmoregirls").innerHTML = "<p style='margin:9px 0 0 36px;'><img src='images/profile/ajax_loader.gif'/></p>"
  if(xmlHttp.readyState==4){
   document.getElementById("prdmoregirls").innerHTML = xmlHttp.responseText;
   }
  }
 xmlHttp.open("GET",surl,true);
 xmlHttp.send(null);
 }
function voteRating(vote,girlid,voteip,girlname){
  var surl = "includes/ajax/rategirls.php"
  surl+="?id="+girlid
  surl+="&vote="+vote
  surl+="&userip="+voteip
  var xmlHttp;
  try{xmlHttp=new XMLHttpRequest();}
  catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
   catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
    catch(e){alert("Your browser does not support AJAX!");
     return false;}}}
  xmlHttp.onreadystatechange=function(){
   if(xmlHttp.readyState==4){
    if(xmlHttp.responseText=="VOTED"){
     }
    else{
     document.getElementById("girlrating"+girlid).innerHTML = xmlHttp.responseText;
     }
    }
   }
  xmlHttp.open("GET",surl,true);
  xmlHttp.send(null);
 }
function clearSearch(){
	if(document.getElementById("srchfield").value == "who? what? where? when?"){
		document.getElementById("srchfield").value = "";
		document.getElementById("srchfield").style.color = "#000";
		document.getElementById("srchfield").style.fontStyle = "normal";
		}
	}
function defaultSearch(valueid){
	if(document.getElementById("srchfield").value == ""){
		document.getElementById("srchfield").value = valueid;
		document.getElementById("srchfield").style.color = "#666";
		document.getElementById("srchfield").style.fontStyle = "italic";
		}
	}