addLoadListener(begin);

function begin(){
  biog=document.getElementById("biog");
  if(biog){biog.onmouseover=c1;}
  if(biog){biog.onmouseout=c2;}
  stat=document.getElementById("stat");
  if(stat){stat.onmouseover=c1;}
  if(stat){stat.onmouseout=c2;}
  avai=document.getElementById("avai");
  if(avai){avai.onmouseover=c1;}
  if(avai){avai.onmouseout=c2;}
  fash=document.getElementById("fash");
  if(fash){fash.onmouseover=c1;}
  if(fash){fash.onmouseout=c2;}
  feti=document.getElementById("feti");
  if(feti){feti.onmouseover=c1;}
  if(feti){feti.onmouseout=c2;}
  burl=document.getElementById("burl");
  if(burl){burl.onmouseover=c1;}
  if(burl){burl.onmouseout=c2;}
  glam=document.getElementById("glam");
  if(glam){glam.onmouseover=c1;}
  if(glam){glam.onmouseout=c2;}
  cont=document.getElementById("cont");
  if(cont){cont.onmouseover=c1;}
  if(cont){cont.onmouseout=c2;}
  pres=document.getElementById("pres");
  if(pres){pres.onmouseover=c1;}
  if(pres){pres.onmouseout=c2;}
  link=document.getElementById("link");
  if(link){link.onmouseover=c1;}
  if(link){link.onmouseout=c2;}
  link=document.getElementById("leav");
  if(link){link.onmouseover=c1;}
  if(link){link.onmouseout=c2;}
}

function c1(){
  var v1=this.getAttribute('id');
  var v2=document.getElementById((v1)).style;
  if(v1=='leav'){
    v2.background='#faa';
  }
  else v2.background='#bfe75a';
}
function c2(){
  var v1=this.getAttribute('id');
  var v2=document.getElementById((v1)).style;
  v2.background='#fff';
}

function addLoadListener(fn)
{
  if (typeof window.addEventListener != 'undefined')
  {
    window.addEventListener('load', fn, false);
  }
  else if (typeof document.addEventListener != 'undefined')
  {
    document.addEventListener('load', fn, false);
  }
  else if (typeof window.attachEvent != 'undefined')
  {
    window.attachEvent('onload', fn);
  }
  else
  {
    var oldfn = window.onload;
    if (typeof window.onload != 'function')
    {
      window.onload = fn;
    }
    else
    {
      window.onload = function()
      {
        oldfn();
        fn();
      };
    }
  }
}
//links
var tth='http://www.lydiamclane.com/LadyLydia/';
tth='';

//page info
aa="string"+location;
ab=aa.lastIndexOf("/");
ac=aa.substring(ab+1,ab+5);
//altText="";

//info for layer
ad=aa.substring(ab+1,ab+6);

function mon(a){
}
function stat(){
}

function dwtt(dt,da,db,dc){
  document.write("<p><a class='out' href=\"javascript:showTmls('"+da+"')\" "+
  "tabindex='"+db+"' title='"+dc+"' "+
  //"onmouseover='mon(this)' onmouseout=\"altText=''\" onfocus='mon(this);' "+
  //"onblur=\"altText=''\">"+dt+"</a></p>");
  ">"+dt+"</a></p>");
}
function showTmls(a){
  new2257=eval("window.open('"+a+".htm','subwin','width=400,height=300,scrollbars=yes')");
}

//******************************************************************************
//******************************************************************************
var fcgal=[
['nyfa2','SnM Underworld'],
['nessltxa','Andrew Ness'],
['nessbw','Andrew Ness'],
['lyd500_urb','Carl Geers'],
['andraste1','andraste.com'],
['lyd7','Guy Powers'],
['WreckedBC','Bob Coulter'],
['choyvt','G Choy']
]
var fcga2=[
['ling','Mark Wilkins'],
['290','City Slab'],
['jock1','Lydia McLane'],
['lyd3','Guy Powers'],
['Robin1','Graphic Features'],
['Robin2','Graphic Features'],
['upBc','Bob Coulter'],
['lm853','Jerry Harke']
]
var fcga3=[
['lydia29','Jonathan Wilkins'],
['nesscor1','Andrew Ness'],
['choydr','G Choy'],
['lyd2','Guy Powers'],
['jleon2','Jessie Leon'],
['nyfa0304061017','New York Fashion Academy Show'],
['lmfeet','Bob Coulter']
];
var fetga=[
['midori1','Midori'],
['fetcon2005a','fetishcon'],
['fetcon2005b','fetishcon'],
['ivanboulder1','Ivan Boulder'],
['ivanboulder2','Ivan Boulder'],
['jewelllydia162','jewellmarceau.com'],
['knotnice1','knotnice.com'],
['nybd5446','NYB Imageworks']
]
var fetg2=[
['bench017','Paablo'],
['caughtchloro','Lydia McLane'],
['hypnoidbox','Lydia McLane'],
['midoribamboo','Midori'],
['venusisle','Venus Isle'],
['strappedsos','Gallery SOS'],
['strapped2sos','Gallery SOS'],
['romance39','NawaShibari.com']
]
var fetg3=[
['lydia-gray','BondageJones.Com'],
['lyd4008','lookNsee.com'],
['lydia27','HouseOfGord.Com'],
['lydia37','HouseOfGord.Com'],
['ll-01-169','HouseOfGord.Com'],
['lydia03','NakedGord.Com'],
['lmtwisted','boundNdetermined.com'],
['lydbank045','www.bindher.com']
]
var fetg4=[
['cgeorgeredroom','C George'],
['6429','Fetishcon.com'],
['2216','Fetishcon.com'],
['AP-04-045','HouseOfGord.com'],
['LL-01-029','HouseOfGord.com'],
['lydia081','andraste.com'],
['SA-11-059','HouseOfGord.com'],
['SA-11-138','HouseOfGord.com']
]
var fetg5=[
['romance','NawaShibari.com'],
['seelair2','Shadowplay Imaging'],
['seelair3','Shadowplay Imaging'],
['dogcollar','Gallery SOS'],
['amatbound','Amateur Bondage'],
['etude','James Mogul'],
['petgirls','www.petgirls.com'],
['seelair1','Shadowplay Imaging']
]
var fetg6=[
['EV-01-232','HouseOfGord.com'],
['miyou052904-014','RubberBound.com'],
['mlj-051504-502','RubberBound.com'],
['mlj-051504-533','RubberBound.com'],
['EV-01-050','HouseOfGord.com'],
['skinii','Midori and Skin II'],
['SA-11-065','HouseOfGord.com']
]
var burly=[
['mlacy01','Mark Anthony Lacy'],
['P6234322','Jerry Johnson'],
['P6234423','Jerry Johnson'],
['plydia2','Dirty Darla'],
['plydia3','John of Von Foxies'],
['plydia5','Exotic World 2003'],
['plydia4','Lance Wagner'],
['P6FE0B1','Jerry Johnson']
]
var burl2=[
['plydia6','Jerry Johnson'],
['plydia7','John of Von Foxies'],
['ppress3','Lance Wagner'],
['IMG-3970','John of Von Foxies'],
['IMG-3971','John of Von Foxies'],
['breakfast01','Jerry Johnson '],
['breakfast02','Jerry Johnson '],
['spider01','LeeB']
]
var burl3=[
['spider02','LeeB']
]
var glamg=[
['lydiainlevis','LydiaMcLane.com'],
['242E','D L Cantas'],
['nude1','Mark Hanauer'],
['gall','J Gallagher'],
['greco','Lydia McLane'],
['lydiaflor','Carl Geers'],
['P7096815','Jerry Johnson'],
['P7096926','Jerry Johnson']
]
var glam2=[
['ll1','Jerry Harke'],
['lydiaLns2','lookNsee.com'],
['lydiaLns3','lookNsee.com'],
['latex500','Carl Geers'],
['lydcong500','Carl Geers'],
['lydedit3','Shadowplay Imaging'],
['lydia1','Lance Wagner'],
['lydiaLns1','lookNsee.com']
]
var glam3=[
['brickwall','Carl Geers'],
['nude2','Mark Hanauer'],
['hair','Studio Erotic'],
['johnsonpt','Jerry Johnson'],
['LydiaNude2','J Conte'],
['lm829','Jerry Harke'],
['mclane1','Wendel Maruyama'],
['vjpablo1','V J Pablo']
]
var glam4=[
['Lydia_top','Garry Ho'],
['lyd01S','lookNsee.com'],
['jleon1','Jessie Leon'],
['jleon3','Jessie Leon'],
['Img_0628','Alexander Osbourne'],
['eden01','Jerry Johnson'],
['last_days',''],
['eden02','Jerry Johnson']
]

var glam5=[
['eden03','Jerry Johnson'],
['njordan-1','Neal Jordan']
]

//prepare thumb arrays
var imgs=new Array();
var imgArr=new Array()

//if page with thumbs, create array
if(ac=='fcga'||ac=='fetg'||ac=='burl'||ac=='glam')makeImgs(ad);

function makeImgs(ad){
  //find length of image array for page
  anl=eval(ad+".length");
  
  for(s=0;s<anl;s++){
    //populate standard img array [created on the page] with page array stored above
    //used below for loading big pics and creating thumbs and copyright statements
    imgs[s]=eval(ad+"["+s+"]");
    
    //when page loads, precache 1 pixel for each big pic
    //essential so thumb mouseover before big pic loads doesn't cause js error
    imgArr[s]=new Image();
    imgArr[s].src="images/0.gif";
  }
}

//after page loads, cache big pics
function show(){

  for(s=0;s<imgs.length;s++)
    imgArr[s].src=tth+"images/"+imgs[s][0]+".jpg";
}

//create divs with copyright statement for each big pic
function writeCpy(){
 wt="";
 //for each pic
 for(w=0;w<imgs.length;w++){
   //find copyright holder
   //initially first copyright holder is visible
   (w==0)?v='visible':v='hidden';
   
   //create copyright div
   (imgs[w][1]!="")?wtc="Copyright: "+imgs[w][1]:wtc="&nbsp;";
   wt+="<div class='cpy' style='visibility:"+v+";' "+
   "id='c"+w+"'>"+wtc+"</div>";
 }
 return wt;
}
//write the thumbs
function writeThumbs(){
  //text
  th="";
  
  //tabindex
  ti=500;
  
  //for each thumb
  for(w=0;w<imgs.length;w++){
  
    //pick up copyright info if any info if any
    (imgs[w][1]==''||imgs[w][1]=='Lydia McLane')?tht='Lydia McLane':tht='Lydia McLane by '+imgs[w][1];
    if(imgs[w][0]=='P6234322'||imgs[w][0]=='P6FE0B1')tht='BurlyQ by '+imgs[w][1];

    //onmouseover and onfocus change border color and big pic
    //thn="grow("+w+",'i');grow2("+w+");mon(this);";
    thn="grow("+w+",'i');grow2("+w+");";

    //onmouseout and on blur change border color
    //thf="grow("+w+",'o');altText='';"
    thf="grow("+w+",'o');"

    //create div
    th+="<div class='s"+w+"' ><a "+

    "href='javascript:ch()' tabindex='"+ti+"' "+
    //"href=\"javascript:"+thn+"\" tabindex='"+ti+"' "+

    "title='"+tht+"' "+
    
    "onmouseover=\""+thn+"\" "+
    "onfocus=\""+thn+"\" "+

    "onmouseout=\""+thf+"\" "+
    "onblur=\""+thf+"\">"+

    //add thumb
    "<img src='images/"+imgs[w][0]+"-th.jpg' class='thumbpic' "+

    "title='"+tht+"' "+
    "alt='"+tht+"' "+

    "id='x"+w+"' /></a></div>";
    
    //increase tabindex
    ti+=1;
    
  }
 return th;
}

//onmouseover thumbs
var cc=0;//to cancel beginning copyright
function grow(p,c){
//alert(p)
  //get style of thumb
  ps=eval("document.getElementById('x"+p+"').style");
  
  //if mouseover
  if(c=='i'){
    //get style of big pic
    bs=eval("document.getElementById('bp').style");
    //get style of old copyright statement
    co=eval("document.getElementById('c"+cc+"').style");
    //get style of new copyright statement
    ci=eval("document.getElementById('c"+p+"').style");
    //record id of new copyright statement
    cc=p;
    
    //change thumb border color
    ps.borderColor='#f00';
    //to overcome firefox problem with larger big pics
    //hide old pic
    bs.visibility='hidden';
    //replace old pic with transparent pixel
    document.images.bp.src=imgArr[0].src;
    //"reveal" transparent pixel
    bs.visibility='visible';
    //hide old copyright statement
    co.visibility='hidden';
    //show new copyright statement
    ci.visibility='visible';
  }
  //else if mouseout
  else{
    //change thumb border color
    ps.borderColor='#fff';
  }
}
//onmouseover show new big pic with alt and title
//seperate function used to overcome firefox problem with pics larger than standard
function grow2(p){
  (imgs[p][1]==''||imgs[p][1]=='Lydia McLane')?gt='Lydia McLane':gt='Lydia McLane by '+imgs[p][1];
  if(imgs[p][0]=='P6234322'||imgs[p][0]=='P6FE0B1')gt='BurlyQ by '+imgs[p][1];
  document.images.bp.src=imgArr[p].src;
  document.images.bp.title=gt;
  document.images.bp.alt=gt;
}
//nothing happens onclick of thumbs
function ch(){}
function mm(xx){}
function mmm(xx){}


