// JavaScript Document (C) 2007 Flare4 Communication - Flare4.com

// if (document.referrer&&document.referrer!="")alert('document.referrer =  '+document.referrer+'<BR>');

HT='http://www.'
DN='' // value set by main
U0='' // ditto ...
U1=HT+'videobox.com/'
U2=''
U3=''
U4=U1+'filmstrip.seam?'
U5=U1+'content'
ID='&pid=PornoBand'
A0='<a href= "ja'+'vascr'+'ipt:;" onC'+'lick="'
A1=A0+'this.href=\''

function dWr(s){document.write(s)}

// FREE SAMPLES THUMBS
cats = new Array('100.All Categories','1.Amateur','2.Anal','4.Asian','18.BBW','7.BDSM','58.Behind the Scenes ','13.Big Boobs','10.Black','11.Blonde','12.Blowjob.Oral','14.Brunette','61.Classic','57.Cream Pie','20.Cumshots','50.Double Penetration','55.Feature','56.Femdom','22.Fetish','25.Gangbang','51.Gonzo','28.Group Sex','59.Handjob','30.Straight Sex.Hardcore','32.Interracial','34.Japanese','35.Latinas','36.Lesbian','38.Masturbation','39.Mature','52.One-on-One','41.Outdoors','43.Peeing','54.POV','45.Redhead','60.Squirting','46.Teen','23.Threesome','21.Toys','53.Transsexual')
FreeC = new Array(1,2,4,22,30,32,36,12,46)
dyz = new Array('today','yesterday','2 days ago','3 days ago')

function getCat(x){
 for(i=0;i<cats.length;i++){
  a = cats[i].split('.');
  if(FreeC[x]==a[0]){
   if (a.length>2)a[1]=a[2];
   if(FreeC[x]==a[0]){
	z = new Array(a[1],a[1].toLowerCase())
	return z;
	break
   }
  }
 }
}

A4=A1+U4
function vidT(i,c){ // video samples
 c+='';if(c.length<2){c='0'+c;};
 h='<br>'+A4+'id='+i+ID+'\'" target="vid"><img src="'+U5+'/'+c+'/'+i+'/110x78.jpg" width="110" height="78" alt="'+DN+' - Download This Video - CLICK NOW!!"></a>'
 return h;
}

function freeVt(t,u,c,d,i){
 h='from '+t+'<br>'+A4+'sample='+c+d+i+'\'" target="vb"><img src='+U5+'/free_'+c+'_140x102_'+d+'.jpg border="0" width="140" height="102" alt="free '+c+' video"></a>'
 return h;
}

function freeV1(i){// horiz
 c=getCat(i); s='<table cellpadding="5"><tr>';
 for(d=1;d<5;d++){s+='<th>'+freeVt(dyz[d-1],U1,c[1],d,ID)+'</th>'};
  s+='</tr></table>';
 dWr(s);
}

function freeV2(i,l){ // vert
 c=getCat(i);
 s1='<h3>'+A0+'clk1(';s2=')">';s3=c[0]+'<br>Sex Videos';s4='View All';s5='</a>...</h3>';
 s=s1+l+s2+s3+s5.replace('...','')
 for(d=1;d<5;d++){s+=freeVt(dyz[d-1],U1,c[1],d,ID)+'<br>'};
 s+=s1+l+s2+s4+s5;
 dWr(s);
}

function clk1(i,n){  // search by category/(series/star/studio)
 u=U1+'index.seam?';z='bspec=';
 if(n>999 && n>0){z=i+'_id='}else{n=i}
 u+= z+n+ID; window.open(u,"xxx")
}

 // category link
bb='<br><br>'
function clk2(n){for(i=0;i<cats.length;i++){a = cats[i].split('.');if(n==a[0]){s=A0+'clk1('+n+')" target="xxx">'+a[1]+'</a>';return s;break;}}}

function vbTGP(){
  s='';r0=(Math.floor(Math.random()*224)+1);
 for(i=r0;i<(r0+32);++i){
  for(j=1;j<5;j++,i++){
   r=(Math.floor(Math.random()*6))+1;
   s+=A1+U1+'tgp.jsp?gid='+i+ID+'\'" target="tgp"><img src="'+U1+'tgp/'+i+'/frame'+r+'_160x119.jpg" width="160" height="119" alt="'+DN+' Sex Gallery - Click Here NOW!!"></a>';
  };
  i--;s+='<br>';
 }
 document.getElementById('tgp').innerHTML=s;
}

// age vfy menus
function SelOpts(x){
 if(x=='m'){
  var z = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
  for(i=0;i<z.length;i++){dWr('<option value="'+z[i]+'">'+z[i]+'</option>')};
 };
 if(x=='d'){for(i=1;i<32;i++){if(i<10){v="0"+i};dWr('<option value="'+v+'">'+i+'</option>')};};
 if(x=='y'){z=new Date().getFullYear();for(i=1900;i<z;i++){dWr('<option value="'+i+'">'+i+'</option>')};};
}

function bkmk(t,u){
 if (window.sidebar)window.sidebar.addPanel(t, u, "");  // ffx
 else if(window.opera && window.print){ // opr
  var elem = document.createElement('a');
  elem.setAttribute('href',u);
  elem.setAttribute('title',t);
  elem.setAttribute('rel','sidebar');
  elem.click();
 }
 else if(document.all)window.external.AddFavorite(u, t); // ie
 else if(navigator.appName == "Netscape"){
  var m = "Bookmark '+U0+' - Type (CTRL-D)";
  alert(m);
 }
}

function addF(){dWr('<h2>&gt;&gt; '+A0+'bkmk(\''+DN+'\',\'http://www.'+DN+'?=bookmark\')">BOOKMARK '+DN+'</a> &lt;&lt;</h2>');}

function adv1(){dWr('<p><span class="hdr2">* '+A0+'clk1(100)">Download 3000+ DVDs  for only $9.95/month</a> *</span><br><b>Daily updates * No hidden charges * No download limits * No DRM</b></p>');}

function wcc1(){dWr('<p><IFRAME width="750" height="450" align="Center" frameborder="0" scrolling="no" src="http://tools.webcamcash.com/int/modellist.html?refid=C002570&classpath='+U0+'local.css&target=_wcc&titlealign=Center&titlesize=5&customid='+DN+'&titleface=Verdana&domain=camclub&cols=6&fontsize=2&fontface=Verdana&title=FREE+CHAT+with+girls+seeking+men+from+GEOTARGET%3A&thumbs=true&caption=MODELNAME&linkto=chatroom&linktext=More+Webcams+Here&autorefresh=90&rows=4&cellalign=Center&geotype=city"></IFRAME></p>')}

wcam = new Array('1on1-live-sex.Live Sex','allanalcams.Anal','hotasiancamgirls.Asia','allasscams.Ass','chubbycamgirls.BBW','bigtittycams.Busty','realcouplecams.Couples','hotebonycamgirls.Ebony','hotlatinacamgirls.Latina','girlongirlwebcams.Lesbian','olderwomencams.Mature','realmilfcams.MILF','genderbendercams.Shemale','allteenwebcams.Teen')
function wcc2(){
 s='<span class="hdr3">';l=wcam.length;h=Math.floor(l/2);
 for(i=0;i<l;i++){
  w = wcam[i].split('.');
  s+=A1+HT+w[0]+'.com/int/PublicChat?refid=C002570&performer=random&customid='+DN+'\'" target="wcc">'+w[1]+'</a>';
  if( i!=(l-1)){ s+= ( i==h )?'<br>':' * ' }
 }
 s+='</span>'
 dWr(s);
}








