function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


// Attack of the Clones
var myClone = new Array()
myClone[0] = '<td><a href="/friends/" onClick="exit=false"><img name="nav_friends" src="http://www.angiexxx.com/images/nav/nav_friends.jpg" width="117" height="28" border="0" alt="Friends"></a></td>'
myClone[1] = '<td><a href="/angiehall/friends/" onClick="exit=false"><img name="nav_friends" src="http://www.angiexxx.com/images/nav/nav_friends.jpg" width="117" height="28" border="0" alt="Friends"></a></td>'
var whichClone=Math.floor(Math.random()*(myClone.length))


// Clones Homepage
var myHomeClone = new Array()
myHomeClone[0] = '<td><a href="/friends/" onClick="exit=false"><img name="nav_mypics" src="/images/home/nav_friends1.jpg" width="140" height="32" border="0" alt="Friends"></a></td>'
myHomeClone[1] = '<td><a href="/angiehall/friends" onClick="exit=false"><img name="nav_mypics" src="/images/home/nav_friends1.jpg" width="140" height="32" border="0" alt="Friends"></a></td>'
var whichHomeClone=Math.floor(Math.random()*(myHomeClone.length))


//Rotating Favorite Site on http://www.angiexxx.com/angiexxx/index.shtml

var myFave=new Array()
myFave[0] = '<div align="center"><a href="http://www.angiexxx.com/cgi-bin/autorank/out.cgi?id=licks&url=http%3a%2f%2fwww.licksandkisses.com%2fcgi-bin%2fautorank%2frankem.cgi%3fid%3dangiexxx" onClick="exit=false" target="_blank" title="Pure oral pleasure!" class="10px-0000ff"><img src="/banners/licksandkisses_friend2.jpg" border="0" width="100" height="150"><br>Pure oral pleasure!</a></div>'

myFave[1] = '<div align="center"><a href="http://www.angiexxx.com/cgi-bin/autorank/out.cgi?id=casey&url=http%3a%2f%2fclubcasey.com%2fcgi-bin%2fautorank%2frankem.cgi%3fid%3dangie" target="new" class="10px-0000ff" title="Cum see my pics for free!"><img src="http://www.clubcasey.com/images/banners/100x150_03.jpg" width="100" height="150" border="0"><br>Casey</a></div>' 

myFave[2] = '<div align="center"><a href="http://www.angiexxx.com/cgi-bin/autorank/out.cgi?id=talia&url=http%3a%2f%2fwww.cutelatina.com%2fcgi-bin%2fautorank%2frankem.cgi%3fid%3dangie" onClick="exit=false" target="_blank" title="Hot Latina!" class="10px-0000ff"><img src="http://www.cutelatina.com/banners_talia/talia_100x150_03.jpg" border="0" width="100" height="150"><br>Hot Latina</a></div>' ;

// myFave[1] = '<div align="center"><a href="http://www.angiexxx.com/cgi-bin/autorank/out.cgi?id=elizbeth&url=http%3a%2f%2fwww.elizbeth.com%2fcgi-bin%2fautorank%2frankem.cgi%3fid%3dangie" target="new" class="10px-0000ff" title="Cum see my pics for free!"><img src="http://www.elizbeth.com/banners/100x150_01.jpg" width="100" height="150" border="0"><br>Cum see my pics for free!</a></div>' 

// myFave[2] = '<div align="center"><a href="http://www.angiexxx.com/cgi-bin/autorank/out.cgi?id=cumtaste&url=http%3a%2f%2fcumtasteit.com%2fcgi-bin%2fautorank%2frankem.cgi%3fid%3dangie" target="new" class="10px-0000ff" title="Cum see my pics for free!"><img src="http://www.cumtasteit.com/images/banners/100x150_04.jpg" width="100" height="150" border="0"><br>Free facial pics!</a></div>' 

var whichFave=Math.floor(Math.random()*(myFave.length))



//Rotating Banners for the top of pages

var urlTop=new Array()

urlTop[0]='<div align="center"><a href="http://exchange.ranks.com/cgi-bin/xchg.cgi?D=AM&U=angiexxx&X=1" target="_blank" class="12px-bld-ffffff" onClick="exit=false"><img src="http://www.angiexxx.com/banners/amateuranks_468x60.gif" border="0" alt="Find more amateurs than you can shake your dick at!"><br>AmateurRanks.com</a></div>'

urlTop[1]='<div align="center"> <a href="http://cgi.ynotnetwork.com/top50.cgi?angiexxx" target="_blank" class="12px-bld-ffffff" onClick="exit=false"><img src="http://angiexxx.com/banners/ynot_banner3.jpg" border="0" alt="YNOT - Click here for more free XXX"><br>YNOT - Click here for more free XXX</a></div>'

urlTop[2]='<div align="center"> <a href="http://www.angiexxx.com/cgi-bin/autorank/out.cgi?id=cumtaste&url=http%3a%2f%2fcumtasteit.com%2fcgi-bin%2fautorank%2frankem.cgi%3fid%3dangie" target="_blank" class="12px-bld-ffffff" onClick="exit=false"><img src="http://www.cumtasteit.com/images/banners/468x60_01.gif" border="0" alt="Cum is good for you!"><br>Cum is good for you...</a></div>'

var whichurlTop=Math.floor(Math.random()*(urlTop.length))



//Rotating Banners on http://www.angiexxx.com

var urlWarn=new Array()

//change the url if desired. Add/delete additional url as desired.

urlWarn[0]='<div align="center"><a href="http://exchange.ranks.com/cgi-bin/xchg.cgi?D=AM&U=angiexxx&X=1" target="_blank" class="14px-bld-CC0033" onClick="exit=false"><img src="http://www.angiexxx.com/banners/amateuranks_193x72.gif" border="0" alt="Find more amateurs than you can shake your dick at!"><br>AmateurRanks.com</a></div>'

urlWarn[1]='<div align="center"> <a href="http://cgi.ynotnetwork.com/top50.cgi?angiexxx" target="_blank" class="14px-bld-CC0033" onClick="exit=false"><img src="http://angiexxx.com/banners/ynot_banner3.jpg" border="0" alt="YNOT - Click here for more free pics"><br>YNOT - Click here for more free pics</a></div>'

//urlWarn[2]='<div align="center"> <a href="http://www.angiexxx.com/cgi-bin/autorank/out.cgi?elizbeth" target="_blank" class="14px-bld-CC0033" onClick="exit=false"><img src="http://www.elizbeth.com/banners/468x60_01.jpg" border="0" alt="Sweet and innocent"><br>Cum see my nudie pics for free!</a></div>'


var whichurlWarn=Math.floor(Math.random()*(urlWarn.length))


//Rotating Banners for the bottom of pages

var urlBot=new Array()

//change the url if desired. Add/delete additional url as desired.

urlBot[0]='<div align="center"><a href="http://exchange.ranks.com/cgi-bin/xchg.cgi?D=AM&U=angiexxx&X=1" target="_blank" class="14px-bld-CC0033" onClick="exit=false"><img src="http://www.angiexxx.com/banners/amateuranks_193x72.gif" border="0" alt="Find more amateurs than you can shake your dick at!"><br>AmateurRanks.com</a></div>'

var whichurlBot=Math.floor(Math.random()*(urlBot.length))


// Main Exit PopUp
var popThis = null;
var popPage = 'http://davedoesamy.com/cgi-bin/autorank/out.cgi?id=angie&url=http%3a%2f%2fwww.angiexxx.com%2fcgi-bin%2fautorank%2frankem.cgi%3fid%3ddaveamy' ; 
var exit = true;
var ah = screen.availHeight - 50 ;
var aw = screen.availWidth - 10 ;

function popOut() {
popThis = window.open(popPage,"byeWin","width=" + aw + ",height=" + ah + ",screenX=0,screenY=0,left=0,top=0,resizable=yes,scrollbars=yes,toolbar=no,location=yes,directories=no,status=no,menubar=no");
popThis.blur();
}


function bye() {
if (exit)
popOut();
}


function openIt() {
daWin = window.open('','preview','toolbar=0,location=0,status=1,menubar=0,scrollbars=0,resizable=0,top=0,left=0');
daWin.focus ;
}


function nasty() {
if (exit)
nasty=window.open("http://www.nastyfriends.com?angiexxx","nasty","toolbar=1,menubar=1,scrollbars=1,status=1,resizable=1,top=1,left=1,width=760,height=420");
nasty.blur();
}



function findaslut() {
if (exit)
slut = window.open('http://www.findaslut.com/cgi-bin/friends/rankem.cgi?id=xxxangie','_best','resizable=no,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no');
slut.blur();
}


function pickaboobie() {
if (exit)
pickapicka = window.open('http://www.pickaboobie.com/cgi-bin/picka/rankem.cgi?id=angiexxx','_picka','width=700,height=600,screenX=0,screenY=0,left=0,top=0,resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no');
pickapicka.blur();
}

function amateurranks() {
if (exit)
ranks = window.open("http://amateur.ranks.com/cgi-bin/exit_con.cgi?P=0&U=angiexxx","_blank");
ranks.blur() ;
}




//Email check form
function isEmailAddr(address)
{
  var result = false
  var theStr = new String(address)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}

function FormValidator(theForm)
{

  if (theForm.address.value == "")
  {
    alert("Please enter a value for the \"email\" field.");
    theForm.address.focus();
    return (false);
  }

  if (!isEmailAddr(theForm.address.value))
  {
    alert("Please enter a complete email address in the form: yourname@yourdomain.com");
    theForm.address.focus();
    return (false);
  }
   
  if (theForm.address.value.length < 3)
  {
    alert("Please enter at least 3 characters in the \"email\" field.");
    theForm.address.focus();
    return (false);
  }
  return (true);
}


function openWin(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



// Function to display Angie's webcam shows
function angieCam() {

var intro = '<span class="16px-bld-ffffff">Next webcam show: </span>';
var href_start = '<a href="my_pics/page3.shtml" class="16px-bld-ffffff" onClick="exit=false">';
var href_end = '</a>';
nowDate=new Date();
theDay=nowDate.getDay();
text=new Array(30);
text[0]='Sunday';
text[1]='Monday';
text[2]='Tuesday';
text[3]='Wednesday';
text[4]='Thursday';
text[5]='Friday';
text[6]='Saturday';



if(theDay <= 2 || theDay >= 6 ) {
document.write( intro + href_start + 'Tuesday 4:30PM' + href_end );
}

else if (theDay >= 3 || now_Time_is > 1800 ) {
document.write( intro + href_start + 'Friday 7:00PM' + href_end );
}

}



// Function to open temporary pop-ups
function popTemp() {

// The page that opens the popup will be remaned 'main', so the links in the popup must be .. target="main"
window.name = 'main' ;

// change popWhat to whatever the URL of the popup will be
popWhat = 'http://www.angiexxx.com/popups/temp/index.shtml' ;

popWindow = window.open(popWhat,'popUp','width=320,height=350,left=20,top=20,screenX=20,screenY=20,location=no,toolbar=no,resize=yes') ;

}

function popShow() {
setTimeout('window.focus()', 5000);
}

// Function to open the window from the HTML page
/*
Popup Window Script
By Website Abstraction (http://wsabstract.com)
Over 200+ free scripts here
*/


function openpopup(){
window.name = 'main';
var popurl="http://www.angiexxx.com/images/temp/direct.shtml"
winpops = window.open(popurl,"one_on_one","width=210,height=290,left=10,top=10,screenX=10,screenY=10") ;
winpops.blur();
setTimeout("winpops.focus()", 6000);
}


function get_cookie(Name) {
//this function is used only if you had selected popup to load ONCE per session
//You may remove this function if variable "onoff" above is set to "off"
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

var onoff="off" ;

function popTempHTML(){
if (onoff=="on"){
openpopup();
}
else
document.write('');
}

// This script was modified from an original script from
// http://javascript.internet.com - The JavaScript Source: User Details: Must Visit From.... 

function pop_pop() {

props = 'screenX=5,screenY=5,left=5,top=5,width=500,height=400,location=yes,resize=yes' ;

if (document.referrer.indexOf("nastyfriends.com") != -1){
window.open('http://www.101amateurs.com/cgi-bin/topvlog.cgi?959012605','sponsor',props) ;
}

if (document.referrer.indexOf("101amateurs.com") != -1){
window.open('http://amateurcoalition.com/enter_premier.shtml?id=angiexxx','sponsor',props) ;
}

if (document.referrer.indexOf("amateurcoalition.com") != -1){
window.open('http://www.nastyfriends.com?angiexxx','sponsor',props) ;
}

}


// Main Popup Code 
var byebye = true ;

function popMadness() {
var ranks = 'http://amateur.ranks.com/cgi-bin/exit_con.cgi?P=0&U=angiexxx' ;
var ah = screen.availHeight - 50 ;
var aw = screen.availWidth - 10 ; 
if ( byebye ) {
winByeBye = open( ranks ,"newWindow" , "width=" + aw + ",height=" + ah + ",screenX=0,screenY=0,left=0,top=0,resizable=yes,scrollbars=yes,toolbar=no,location=yes,directories=no,status=no,menubar=no" );
winByeBye.blur() ; 
}
}

/* 
var pickaBlonde = 'http://www.angiexxx.com/cgi-bin/autorank/out.cgi?id=pickablo&url=http%3a%2f%2fwww.pickablonde.com%2fcgi-bin%2fpicka%2frankem.cgi%3fid%3dangiexxx' ;
var swingdir = 'http://www.swingerdirectory.net/hotswingers/rankem.cgi?action=in&id=angiexxx' ;
if (document.referrer.indexOf("ranks.com") != -1 ){
popRanks = window.open(pickaBlonde) ;
popRanks.blur();
}
if (document.referrer.indexOf("picka") != -1){
popPicka = window.open(ranks) ;
popPicka.blur();
}
else {
popRanks = window.open(ranks);
popRanks.blur();
}
}
*/
