var joinup = new Image();
joinup.src = "autotour-1a.gif";

function poptab() {
//tag = document.images.joinpic;
//tag.src = joinup.src
}

var member = 0;
var galopen = 0;

function welcome() {
member = 1;
}

function peekaboo(num3,div1){
  if(num3) {
    voh="visible";
    }
  else {
    voh="hidden";
    }
  if(document.layers) {
    eval('document.' + div1 + '.visibility=voh');
    }
  if(document.all) {
    eval('document.all.' + div1 + '.style.visibility=voh');
    }
  if(document.getElementById) {
    eval('document.getElementById("' + div1 + '").style.visibility=voh');
    }
  } 

var agnt=navigator.userAgent.toLowerCase();
var opera=(agnt.indexOf("opera") != -1);
var webTV=(agnt.indexOf("webtv") != -1);
var hotjava=(agnt.indexOf("hotjava") != -1);
var layersok=(document.layers&&!hotjava);
var doc_all=(document.all&&!webTV);
var itsa5=(document.getElementById&&parseInt(navigator.appVersion)>=5) ? true : false;
var Lvl=(opera?0:(doc_all?2:(itsa5?3:(layersok?1:0))));

//Lvl = 0;

function fullScreen(theURL) {
var sw = screen.width;
var sh = screen.height;
//alert('sw = ' + sw + ' height = ' + sh);
galopen = 1;
var woptions0 = 'fullscreen';
var woptions1 = 'fullscreen,resizable';
var woptions2 = 'width=' + sw + ',height=' + sh + ',scrollbars,fullscreen,resizable';
var winID = window.open(theURL, '', woptions0);
//window.open(theURL, '', woptions0);
// NS6 opens too small in hi res
if ((document.getElementById) && (!document.all)) {
//alert('sw = ' + sw + ' height = ' + sh);
winID.moveTo(0,0);
winID.resizeTo(sw,sh);
}

}

photos1 = new Image();
photos1.src ="photos1.gif";
photos2 = new Image();
photos2.src ="photos2.gif";
videos1 = new Image();
videos1.src ="videos1.gif";
videos2 = new Image();
videos2.src ="videos2.gif";
streams1 = new Image();
streams1.src ="streams1.gif";
streams2 = new Image();
streams2.src ="streams2.gif";
movies1 = new Image();
movies1.src ="movies1.gif";
movies2 = new Image();
movies2.src ="movies2.gif";
shows1 = new Image();
shows1.src ="shows1.gif";
shows2 = new Image();
shows2.src ="shows2.gif";
biography1 = new Image();
biography1.src ="biography1.gif";
biography2 = new Image();
biography2.src ="biography2.gif";
shopping1 = new Image();
shopping1.src ="shopping1.gif";
shopping2 = new Image();
shopping2.src ="shopping2.gif";
bookings = new Image();
bookings.src ="bookings.gif";
bookings2 = new Image();
bookings2.src ="bookings2.gif";
lapdance = new Image();
lapdance.src ="lapdance.gif";
lapdance2 = new Image();
lapdance2.src ="lapdance2.gif";


//function LinePrep() { }

//var Lines = new LinePrep();

// BANK 1

var Lines = new Array();
  Lines[1] = "Welcome to the new PlayClubs website, homepage ";
  Lines[2] = "for The Playpen in Los Angeles, and Players in ";

  Lines[3] = "nearby Sun Valley.  Come in and see us any day or ";
  Lines[4] = "night of the week for the hottest adult strip  ";
  Lines[5] = "action in town, your favorite top nationally known ";
  Lines[6] = "feature dancers and pornstars too! ";

//  Lines[3] = "nearby Sun Valley.  Celebrate our 4th anniversary ";
//  Lines[4] = "March 20-21 at The Playpen with Syren, one of the ";
//  Lines[5] = "hottest XXX porn stars and feature dancers in the ";
//  Lines[6] = "business.  And she's our special treat to you! ";

// BANK 2
Lines[7] = "Click the videos link below to see some of the world ";
Lines[8] = "famous pornstars who have let it all hang out on our  ";
Lines[9] = "up close and personal stages. Or click on our girls ";
Lines[10] = "page to meet some of the hottest local full nude ";
Lines[11] = "babes, just waiting to snuggle up next to you in one  ";
Lines[12] = "of our secluded private booths. ";

// BANK 3

Lines[13] = "Feeling hungry? . . . It's more that just a feast for ";
Lines[14] = "the eyes at Playclubs.  Every weekday from 11:30 AM";
Lines[15] = "to 2 PM enjoy our fabulous free buffet, featuring our ";
Lines[16] = "famous jumbo shrimp.  Monday is also pizza night 7 PM ";
Lines[17] = "on.  Or get down with all the Bar-B-Q you can eat ";
Lines[18] = "2 PM - 7 PM on weekends. Plus free drinks on Sunday.";


//links not active during writing
//if ((Lvl < 3) && (Lvl > 0)) {
//Lines[16] = "<a href=\"tina-coupon-pppl.htm\">Click Here For Your Free/Lapdance</a>. ";
//}
//else {
//Lines[16] = " ";
//}


var msgNum = 1;
var msgCnt = 6;
var numbanks = 3;
var totMsg = numbanks * msgCnt;
var delay = 25;
var pagLen = msgCnt;
var classfntsize="10";
var classfntfam="verdana,arial,helvetica,sans-serif";
var classfntwgt=600;
var sTag="<div id='TypWrId'>";
var eTag="<\/div>";    
var tally = 1;
var outMsg = "";
var i = -1;
var Lth=0;
var x,p,msg,divMsg,mlen,t;
var banknum = 0;
var placeNum = 1;
var blankf = 0;
var outMsg2 = '';
var Hgt = 100;
var Wdth = 420;
classfntsize+="pt";
var firsttype = 0;

var popup1 = new Image();
popup1.src = "joinup.gif";

var cr="\n";
if (Lvl>2) {
cr="";
}
else if (Lvl>0) {
cr="<br>";
}
else if (navigator.appVersion.lastIndexOf('Win') != -1) {
cr ="\r\n";
}

function WriteBlank() {
if (Lvl < 3) {
  divMsg="<p class='TypWr'><nobr>"+outMsg+"<\/nobr><\/p>";
  if (Lvl==2) {
    document.all.TypWrId.innerHTML=divMsg;
    }
  else if (self.innerWidth != strtWidth) {
    window.location.reload();
     }
  else {
    document.TypWrId.document.TypWr.document.open();
    document.TypWrId.document.TypWr.document.write(divMsg);
    document.TypWrId.document.TypWr.document.close();
    }
  }
else if (Lvl>2) {
  document.getElementById('tw1').firstChild.deleteData(0,Lth);
  for (p = 1; p < (pagLen); p++) {
    eval("document.getElementById('tw"+(p+1)+"').firstChild.deleteData(0,Lth)");
    } 
  }
}


function WriteMsg() {
if (Lvl < 3) {
  outMsg += msg.charAt(i);
  if (msg.charAt(i) == "<") {  //clean up stutter
    while (msg.charAt(i) != ">") {
      i++;
      outMsg += msg.charAt(i);
      }
    }
  divMsg="<p class='TypWr'><nobr>"+outMsg+"<\/nobr><\/p>";
  if (Lvl==2) {
    document.all.TypWrId.innerHTML=divMsg;
    }
  else if (self.innerWidth != strtWidth) {
    window.location.reload();
    }
  else {
    document.TypWrId.document.TypWr.document.open();
    document.TypWrId.document.TypWr.document.write(divMsg);
    document.TypWrId.document.TypWr.document.close();
    }
  i++; 
  }
else if (Lvl>2){
  mlen = msg.length;
  eval("document.getElementById('tw"+placeNum+"').firstChild.replaceData(i,mlen,msg.charAt(i))");
  i++;
  }
}

function DisplayMsg() {
if (blankf == 1) {
  blankf = 0;
  WriteBlank();
  setTimeout("DisplayMsg()",500);
  }
else {
  if (msg.indexOf(cr)!=-1&&msg.substring(i,i+cr.length)==cr){
    outMsg+=cr;
    i+=cr.length;
    }
  if (msg.length <= i) {
    ChangeMsg();
    }
  else {
    WriteMsg();
    setTimeout("DisplayMsg()",delay);
    }
  }
}

function ChangeMsg() {
msgNum++;
placeNum++
if (totMsg < msgNum) {
  msgNum = 1;
  placeNum = 1;
  }
if (pagLen <= tally) {
  banknum++;
  if (banknum >= numbanks) {
    banknum = 0;
    }
  }
msg = Lines[msgNum];
i = 0;
if (pagLen <= tally) {
  chgPage();
  }
else {
  tally++;
  setTimeout("DisplayMsg()",delay);
  }
}

function chgPage() {
  tally = 1;
  outMsg = "";
  i = 0;
  msgNum = 1 + (msgCnt*banknum);
  placeNum = 1;
  blankf = 1;
  if (firsttype == 0){
    firsttype = 1;
    if (member == 0) {
      poptab();
      }
    }
  setTimeout("DisplayMsg()",6000);
  }

function NNlode(){
 if (self.innerWidth!= strtWidth||self.innerHeight!=strtHeight) {
  window.location.reload();
 }
}

function linemaker() {

for (t = 1; t < (msgCnt + 1); t++) {
  outMsg2 += Lines[t];
  }

for (x = totMsg; 1 <= x; x--) {
  Lines[x] = Lines[x] + cr;
  if (Lines[x].length>Lth) {
    Lth=Lines[x].length;
    }
}

msg = Lines[1];

}

function divmaker() {

if (Lvl>0) {
  document.writeln("<style id='typewr' type='text\/css'><\/style>");
  if (Lvl==1) {
    sTag="<ilayer id='TypWrId'><layer id='TypWr' left=0 top=0 width="+Wdth+" height="+Hgt+">";
    eTag="<\/layer><\/ilayer>";
    document.classes.TypWr.all.fontFamily=classfntfam;
    document.classes.TypWr.all.fontSize=classfntsize;
    document.classes.TypWr.all.fontWeight=classfntwgt;
    }
  else if (Lvl==2){
//    document.styleSheets['typewr'].addRule ('body', 'overflow:scroll;');
    document.styleSheets['typewr'].addRule ('#TypWrId', 'position:absolute;');
    document.styleSheets['typewr'].addRule ('.TypWr', 'font-family:'+classfntfam);
    document.styleSheets['typewr'].addRule ('.TypWr', 'font-size:'+classfntsize);
    document.styleSheets['typewr'].addRule ('.TypWr', 'font-weight:'+classfntwgt);
    }
  document.writeln(sTag+eTag);
  if (Lvl>2) {
    for (x = 1; x<=(pagLen); x++) {
      document.write("<span id='tw"+x+"' class='TypWr'>&nbsp;<br><\/span>");
      }
    }
  }
else {
  outMsg3 = '<table bgcolor="FFAACC" cellspacing=0 cellpadding=0 border=0><tr><td valign=top><img src="lightpinkline.gif" width=' + Wdth + 'height=1><br><font face="arial" color="000000" size=2><b>'
  + outMsg2 + '</b></font></td></tr></table>';
  document.write(outMsg3);
  }

}

function TypeWr(){

if (member == 1) {
//alert('Hello member');

  Lines[1] = "Welcome loyal member ! ";
  Lines[2] = " ";
  Lines[3] = "You now have full access to all the full size ";
  Lines[4] = "pictures and hi-res videos in my new site.   ";
  Lines[5] = "I'm going to be uploading tons of new stuff ";
  Lines[6] = "real soon, and don't forget you also have ";
  Lines[7] = "member's access to Stripper's Webring. ";
if ((Lvl < 3) && (Lvl > 0)) {
Lines[8] = "<a href=\"http://www.johnnybest.com/members/webring2a.htm\">Check It Out Here</a>. ";
}
else {
Lines[8] = " ";
}






}

linemaker();



if (Lvl>2){
 for (x = 1; x<=(pagLen); x++) {
 eval("document.getElementById('tw"+x+"').style.fontFamily=classfntfam");
 eval("document.getElementById('tw"+x+"').style.fontSize=classfntsize");
 eval("document.getElementById('tw"+x+"').style.fontWeight=classfntwgt");
 }
}
if (Lvl==1){
  strtWidth = self.innerWidth;
  strtHeight = self.innerHeight;
  self.onresize=NNlode;
  }  
i=0;
if (Lvl > 0) {
  DisplayMsg();
  }
}

// VOTING FUNCTIONS


var today = new Date();
var expires = new Date(today.getTime() + (30 * 86400000));

function Set_Cookie(name,value,expires,path,domain,secure) {
  document.cookie = name + "=" +escape(value) +
    ( (expires) ? ";expires=" + expires.toGMTString() : "") +
    ( (path) ? ";path=" + path : "") + 
    ( (domain) ? ";domain=" + domain : "") +
    ( (secure) ? ";secure" : "");
  }
  
function Get_Cookie(name) {
  var start = document.cookie.indexOf(name+"=");
  var len = start+name.length+1;
  if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
  if (start == -1) return null;
  var end = document.cookie.indexOf(";",len);
  if (end == -1) end = document.cookie.length;
  return unescape(document.cookie.substring(len,end));
  }

var sw = screen.width;
var sh = screen.height;
var woptions = "left=0,top=0,scrollbars,resizable,width=" + sw + ",height=" + sh;

function vote() {
  if (galopen == 0) {
    if ((!Get_Cookie('voter')) || (Get_Cookie('voter') == "test")) { 
      //alert('cookie not found');
      if(confirm("Hi, this is Tina.  Won't you please vote to see me at a Spearmint Rhino club near you?  Vote by clicking OK.  You only have to vote one time, and I won't ask you again.  If you don't want to vote right now, simply Cancel.")) {
      votepage = window.open("vote2.htm","",woptions);
        }
      else {
        }
      }
    else {
      //alert('cookie found')
      }
    }
  }

function delayvote() {
setTimeout('vote();',3000);
}

function closevote() {
  setTimeout('votepage.close();',5000);
  }

