function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

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_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}


function toggleThis(whichOne) {
	if (document.getElementById(whichOne).style.display == 'none')
		document.getElementById(whichOne).style.display = '';
	else
		document.getElementById(whichOne).style.display = 'none';
}

function hideThis(whichOne) {
	if (document.getElementById(whichOne).style.display == 'none')
		document.getElementById(whichOne).style.display = 'none';
	else
		document.getElementById(whichOne).style.display = 'none';
}


function bookmark(url, description) {
	netscape="First push OK and then hit CTRL+D to add a bookmark to this site."
	
	if (navigator.appName=='Microsoft Internet Explorer') {
		window.external.AddFavorite(url, description);
	}
	else if (navigator.appName=='Netscape') {
		alert(netscape);
	}
}


function top(url){

parent.window.location=url;

}

function exit(url){

window.open(url);

}

function remember(){
	
history.back();

}

function breakOut() {
  
//  if (parent.frames.length > 0){ top.location.replace(document.location); }
// if (top.location != location){ top.location.href = document.location.href; }
//  if(top.location!=self.location){ top.location=self.location; }

}

if(top.location!=self.location){ top.location=self.location; }


function setfocus(field_id){
	//$(field).focus();
	//window.document.field.focus();
	document.getElementById(field_id).focus();
}

function countDown() {

	document.getElementById('timer').innerHTML = counter-- + ' seconds';
    if (counter != -1)
        setTimeout('countDown()',1000);
   // else
     //   alert('You lose');
}

function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 } 
} 

function gonzo(){

hot = new Array;

hot[1]="<a href='#' onclick='exit(\"http://www.givemepink.com/go/810260/19/9/n/salacious\");'>Gimme Pink!</a>";
hot[2]="<a href='#' onclick='exit(\"http://www.primecups.com/go/810260/21/9/n/salacious\");'>Prime Cups</a>";
hot[3]="<a href='#' onclick='exit(\"http://www.tamedteens.com/go/810260/22/9/n/salacious\");'>Tamed Teens</a>";
hot[4]="<a href='#' onclick='exit(\"http://www.moregonzo.com/go/810260/23/9/n/salacious\");'>More Gonzo</a>";
hot[5]="<a href='#' onclick='exit(\"http://www.spermswap.com/go/810260/20/9/n/salacious\");'>Sperm Swap</a>";
hot[6]="<a href='#' onclick='exit(\"http://www.allinternal.com/go/810260/2/9/n/salacious\");'>All Internal</a>";
hot[7]="<a href='#' onclick='exit(\"http://www.asstraffic.com/go/810260/1/9/n/salacious\");'>Ass Traffic</a>";
hot[8]="<a href='#' onclick='exit(\"http://www.cumforcover.com/go/810260/25/9/n/salacious\");'>Cum for Cover</a>";
hot[9]="<a href='#' onclick='exit(\"http://www.purepov.com/go/810260/26/9/n/salacious\");'>Pure POV</a>";
hot[10]="<a href='#' onclick='exit(\"http://www.milfthing.com/go/810260/27/9/n/salacious\");'>MILF Thing</a>";

random_num = (Math.round((Math.random()*9)+1));

document.write(hot[random_num]);

}


function nasty(num){

hot = new Array;
random_num = (Math.round((Math.random()*8)+1));

hot[1]="<a href='#' onclick='exit(\"http://www.flowertucci.com/main.htm?id=salacious\");'><img src=\"http://sa.lacio.us/_img/flower_tucci_8.jpg\" width=\"468\" height=\"100\" alt=\"Flower Tucci\" title=\"Flower Tucci\" /></a>";
hot[2]="<a href='#' onclick='exit(\"http://www.extremenaturals.com/main.htm?id=salacious\");'><img src=\"http://sa.lacio.us/_img/extremenaturals.gif\" width=\"468\" height=\"100\" alt=\"Extreme Naturals\" title=\"Extreme Naturals\" /></a>";
hot[3]="<a href='#' onclick='exit(\"http://www.40inchplus.com/main.htm?id=salacious\");'><img src=\"http://sa.lacio.us/_img/40inchplus.gif\" width=\"468\" height=\"100\" alt=\"40 Inch Plus\" title=\"40 Inch Plus\" /></a>";
hot[4]="<a href='#' onclick='exit(\"http://www.bigtitsboss.com/main.htm?id=salacious\");'><img src=\"http://sa.lacio.us/_img/bigtitsboss.gif\" width=\"460\" height=\"100\" alt=\"Big Tits Boss\" title=\"Big Tits Boss\" /></a>";
hot[5]="<a href='#' onclick='exit(\"http://www.pure18.com/main.htm?id=salacious\");'><img src=\"http://sa.lacio.us/_img/pure18.jpg\" width=\"450\" height=\"120\" alt=\"Pure 18\" title=\"Pure 18\" /></a>";
hot[6]="<a href='#' onclick='exit(\"http://www.monstercurves.com/main.htm?id=salacious\");'><img src=\"http://sa.lacio.us/_img/monstercurves.jpg\" width=\"468\" height=\"116\" alt=\"Monster Curves\" title=\"Monster Curves\" /></a>";
hot[7]="<a href='#' onclick='exit(\"http://www.moneytalks.com/main.htm?id=salacious\");'><img src=\"http://sa.lacio.us/_img/moneytalks.jpg\" width=\"450\" height=\"120\" alt=\"Money Talks\" title=\"Money Talks\" /></a>";
hot[8]="<a href='#' onclick='exit(\"http://www.teamsquirt.com/main.htm?id=salacious\");'><img src=\"http://sa.lacio.us/_img/teamsquirt.gif\" width=\"468\" height=\"100\" alt=\"Team Squirt\" title=\"Team Squirt\" /></a>";
hot[9]="<a href='#' onclick='exit(\"http://www.realorgasms.com/main.htm?id=salacious\");'><img src=\"http://sa.lacio.us/_img/realorgasms.jpg\" width=\"450\" height=\"100\" alt=\"Real Orgasms\" title=\"Real Orgasms\" /></a>";


if(num == 0){
num = random_num;
} 

document.write(hot[num]);

}



/////////////////////////

function submitForm(){

if (document.layers)
  document.captureEvents(Event.KEYDOWN);
  document.onkeydown =
    function (evt) { 
      var keyCode = evt ? (evt.which ? evt.which : evt.keyCode) : event.keyCode;
      if (keyCode == 13)   //13 = the code for pressing ENTER
 
      {
         document.form.submit();
      }
    }
	
}	

function submitThis(){
	
	if(event.keyCode == 13){
	this.form.submit();
	}
	
}



function nudge(whichOne) {

if(navigator.userAgent.indexOf("Firefox")!=-1){

var versionindex=navigator.userAgent.indexOf("Firefox")+8;

if(whichOne == "leftbar"){
nudgeClass = 'nudgeleft';
} else if(whichOne == "rightbar"){
nudgeClass = 'nudgeright';
} 


if (parseInt(navigator.userAgent.charAt(versionindex))>=1){
document.getElementById(whichOne).className = nudgeClass;
} 

}

}



//configure shake degree (where larger # equals greater shake)
var rector=3

///////DONE EDITTING///////////
var stopit=0 
var a=1

function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}

function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}

function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
