var isDOM=document.getElementById?1:0;
var isIE=document.all?1:0;
var isNS4=navigator.appName=='Netscape'&&!isDOM?1:0;
var isOp=window.opera?1:0;
var isWin=navigator.platform.indexOf('Win')!=-1?1:0;
var isDyn=isDOM||isIE||isNS4;
function getRef(id,par){par=!par?document:(par.navigator?par.document:par);
return isIE?par.all[id]:(isDOM?(par.getElementById?par:par.ownerDocument).getElementById(id):(isNS4?par.layers[id]:null));};
function getSty(id,par){var r=getRef(id,par);return r?(isNS4?r:r.style):null;};if(!window.LayerObj)var LayerObj=new Function('id','par','this.ref=getRef(id, par); this.sty=getSty(id, par); return this');function getLyr(id,par){return new LayerObj(id,par)};function LyrFn(fn,fc){LayerObj.prototype[fn]=new Function('var a=arguments,p=a[0],px=isNS4||isOp?0:"px"; '+'with (this) { '+fc+' }');};LyrFn('x','if (!isNaN(p)) sty.left=p+px; else return parseInt(sty.left)');LyrFn('y','if (!isNaN(p)) sty.top=p+px; else return parseInt(sty.top)');LyrFn('w','if (p) (isNS4?sty.clip:sty).width=p+px; '+'else return (isNS4?ref.document.width:ref.offsetWidth)');LyrFn('h','if (p) (isNS4?sty.clip:sty).height=p+px; '+'else return (isNS4?ref.document.height:ref.offsetHeight)');LyrFn('vis','sty.visibility=p');LyrFn('write','if (isNS4) with (ref.document){write(p);close()} else ref.innerHTML=p');LyrFn('alpha','var f=ref.filters,d=(p==null); if (f) {'+'if (!d&&sty.filter.indexOf("alpha")==-1) sty.filter+=" alpha(opacity="+p+")"; '+'else if (f.length&&f.alpha) with(f.alpha){if(d)enabled=false;else{opacity=p;enabled=true}} }'+'else if (isDOM) sty.MozOpacity=d?"":p+"%"');var CSSmode=document.compatMode;CSSmode=(CSSmode&&CSSmode.indexOf('CSS')!=-1)||isDOM&&!isIE||isOp?1:0;if(!window.page)var page={win:window,minW:0,minH:0,MS:isIE&&!isOp,db:CSSmode?'documentElement':'body'};page.winW=function(){with(this)return Math.max(minW,MS?win.document[db].clientWidth:win.innerWidth)};page.winH=function(){with(this)return Math.max(minH,MS?win.document[db].clientHeight:win.innerHeight)};page.scrollY=function(){with(this)return MS?win.document[db].scrollTop:win.pageYOffset};page.scrollX=function(){with(this)return MS?win.document[db].scrollLeft:win.pageXOffset};function tipTrack(evt,always){with(this){evt=evt?evt:window.event;sX=page.scrollX();sY=page.scrollY();mX=isNS4?evt.pageX:sX+evt.clientX;mY=isNS4?evt.pageY:sY+evt.clientY;if(tipStick==1)position();}};function tipPosition(forcePos){with(this){if(!actTip)return;var wW=page.winW()-(isIE?0:15),wH=page.winH()-(isIE?0:15);var t=tips[actTip],tipX=eval(t[0]),tipY=eval(t[1]),tipW=div.w(),tipH=div.h(),adjY=1;if(typeof(t[0])=='number')tipX+=mX;if(typeof(t[1])=='number')tipY+=mY;if(tipX+tipW+5>sX+wW){tipX=sX+wW-tipW-5;adjY=2};if(tipY+tipH+5>sY+wH)tipY=sY+wH-(adjY*tipH)-5;if(tipX<sX+5)tipX=sX+5;if(tipY<sY+5)tipY=sY+5;if((!showTip&&(doFades?!alpha:true))||forcePos){xPos=tipX;yPos=tipY;};xPos+=(tipX-xPos)*tipStick;yPos+=(tipY-yPos)*tipStick;div.x(xPos);div.y(yPos);}};function tipShow(tipN){with(this){if(!isDyn)return;if(tips[tipN].parentObj)tips[tipN].parentObj.show(tips[tipN].parentTip);if(!div)div=getLyr(myName+'Layer');if(isDOM)div.sty.width='auto';if(actTip!=tipN){actTip=tipN;if(tipStick==0){if(isNS4)div.ref.captureEvents(Event.MOUSEOVER|Event.MOUSEOUT);div.ref.onmouseover=new Function('evt',myName+'.show("'+tipN+'"); '+'if (isNS4) return this.routeEvent(evt)');div.ref.onmouseout=new Function('evt',myName+'.hide(); '+'if (isNS4) return this.routeEvent(evt)');};position(true);var str=template;for(var i=0;i<tips[tipN].length;i++)str=str.replace('%'+i+'%',tips[tipN][i]);div.write(str+((document.all&&!isWin)?'<small><br></small>':''));};clearInterval(trackTimer);if(tipStick!=parseInt(tipStick))trackTimer=setInterval(myName+'.position()',50);clearTimeout(fadeTimer);if(showDelay||isNS4)fadeTimer=setTimeout('with ('+myName+') { showTip = true; fade() }',showDelay+10);else{showTip=true;fade()}}};function tipHide(){with(this){if(!isDyn||!actTip)return;if(isNS4&&tipStick==0&&xPos<=mX&&mX<=xPos+div.w()&&yPos<=mY&&mY<=yPos+div.h())return;if(tips[actTip].parentObj)tips[actTip].parentObj.hide();clearTimeout(fadeTimer);fadeTimer=setTimeout('with ('+myName+') { showTip=false; fade() }',hideDelay);}};function tipFade(){with(this){clearTimeout(fadeTimer);if(showTip){div.vis('visible');if(doFades){alpha+=fadeSpeed;if(alpha>maxAlpha)alpha=maxAlpha;div.alpha(alpha);if(alpha<maxAlpha)fadeTimer=setTimeout(myName+'.fade()',50);}}else{if(doFades&&alpha>minAlpha){alpha-=fadeSpeed;if(alpha<minAlpha)alpha=minAlpha;div.alpha(alpha);fadeTimer=setTimeout(myName+'.fade()',50);return;};div.vis('hidden');actTip='';clearInterval(trackTimer);}}};function TipObj(myName){this.myName=myName;this.tips=new Array();this.template='<table bgcolor="#3f558b" cellpadding=1 cellspacing=0 border=0><tr><td><table cellpadding=4 cellspacing=0 border=0><tr><td bgcolor="#FFFF00" class="p">%2%</td><td bgcolor="#666666" class="p">%3%</td></tr></table></td></tr></table>';this.actTip='';this.showTip=false;this.tipStick=0.5;this.showDelay=100;this.hideDelay=0;this.xPos=this.yPos=this.sX=this.sY=this.mX=this.mY=0;this.track=tipTrack;this.position=tipPosition;this.show=tipShow;this.hide=tipHide;this.fade=tipFade;this.div=null;this.trackTimer=this.fadeTimer=0;this.alpha=0;this.doFades=true;this.minAlpha=0;this.maxAlpha=90;this.fadeSpeed=30;};if(isNS4)document.captureEvents(Event.MOUSEMOVE);document.onmousemove=function(evt){if(isNS4)return document.routeEvent(evt);};var nsWinW=window.innerWidth,nsWinH=window.innerHeight;function ns4BugCheck(){if(isNS4&&(nsWinW!=innerWidth||nsWinH!=innerHeight))location.reload()};window.onresize=function(){ns4BugCheck();};var ag=navigator.userAgent;var ie=ag.substr(ag.indexOf('MSIE ')+5,3);ie=parseFloat(ie);function a(){var r=a.arguments;for(var i=0;i<r.length;i++)this[i]=r[i];this.length=r.length;};function l(i){j=i;lighting=setInterval('h(j)',1);};function c(i){clearInterval(lighting);i.filters.alpha.opacity=100;};function h(i){if(i.filters.alpha.opacity>88)i.filters.alpha.opacity-=3;else if(window.lighting)clearInterval(lighting);};function s(i,j){var mn=new a('January','February','March','April','May','June','July','August','September','October','November','December');var ok=true;if(nd[u-1].length==0)ok=false;var o=new Date(t-sc*(i-1));var q=o.getDate();var oy=o.getYear();if(oy<1000)oy+=1900;oz=''+oy;oz=oz.substring(2,4);var um=o.getMonth();var om=''+(um+1);if(om.length==1)om='0'+om;var f=oy+'/'+om+'/'+nd[q-1]+'.jpg';var ft=oy+'/'+om+'/t/'+nd[q-1]+'.jpg';var e='th';if(q=='1'||q=='21'||q=='31')e='st';else if(q=='2'||q=='22')e='nd';else if(q=='3'||q=='23')e='rd';if(j==1){if(ok)document.write('<a href="pics.html?i='+f+'"><img src="pics/'+ft+'" width=144 height=108 alt="" border=0 vspace=3 class="a" onMouseOver="l(this)" onMouseOut="c(this)"></a>');else document.write('<img src="refresh2.png" width=144 height=108 alt="" vspace=3>');}else if(j==2)document.write(q+e+' '+mn[um]+' \''+oz);else if(j==3){var g=oy;var lm=um-1;if(lm==-1){lm=11;g--;}var ll=''+(lm+1);if(ll.length==1)ll='0'+ll;document.write('<a href="pics/'+g+'/'+ll+'/pictures1.html">'+mn[lm]+' '+g+'</a>');}else if(ok)document.write('<a href="pics.html?i='+f+'">'+dn[q-1]+'</a><br><img src="s.gif" alt="" width=1 height=2><br><font class="k">'+dm[q-1]+'</font>');else{if(i==1)document.write('<img src="s.gif" alt="" width=1 height=2><br><font class="k">Please press refresh (F5)<br>to view the daily pics.</font><br><img src="s.gif" alt="" width=1 height=3>');else document.write('<img src="s.gif" alt="" width=1 height=2><br><font class="k">Page needs refreshing.</font>');}}function link(i,j){var rand=Math.random()*j;rand=Math.floor(rand);if(i==1){if(rand>0)document.write('');else document.write('');}else{if(rand>0)document.write('');else document.write('');}}function celeb(x,n){var cf=x.toLowerCase();cf=cf.replace(' ','_');document.write('');if(ie>=5.5)document.write('');else document.write('');}function beam(x,n){var md='allsexycelebs.com';if(n==0)document.write('');else document.write('');}
/************* 
**** <mouse fade config> 
**/ 
startColor = "#ffcc66"; // MouseOut link color 
endColor = "#3d3d3d"; // MouseOver link color 

stepIn = 20; // delay when fading in 
stepOut = 20; // delay when fading out 

/* 
** set to true or false; true will 
** cause all links to fade automatically 
***/ 
autoFade = true; 
/* 
** set to true or false; true will cause all CSS 
** classes with "fade" in them to fade onmouseover 
***/ 
sloppyClass = true; 
/** 
**** </config> 
**************/ 
/************* 
**** <install> 
** 
** 
**** </install> 
**************/ 

hexa = new makearray(16); 
for(var i = 0; i < 10; i++) 
hexa[i] = i; 
hexa[10]="a"; hexa[11]="b"; hexa[12]="c"; 
hexa[13]="d"; hexa[14]="e"; hexa[15]="f"; 

document.onmouseover = domouseover; 
document.onmouseout = domouseout; 

startColor = dehexize(startColor.toLowerCase()); 
endColor = dehexize(endColor.toLowerCase()); 

var fadeId = new Array(); 

function dehexize(Color){ 
var colorArr = new makearray(3); 
for (i=1; i<7; i++){ 
for (j=0; j<16; j++){ 
if (Color.charAt(i) == hexa[j]){ 
if (i%2 !=0) 
colorArr[Math.floor((i-1)/2)]=eval(j)*16; 
else 
colorArr[Math.floor((i-1)/2)]+=eval(j); 
} 
} 
} 
return colorArr; 
} 

function domouseover() { 
if(document.all){ 
var srcElement = event.srcElement; 
if ((srcElement.tagName == "A" && autoFade) || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1)) 
fade(startColor,endColor,srcElement.uniqueID,stepIn); 
} 
} 

function domouseout() { 
if (document.all){ 
var srcElement = event.srcElement; 
if ((srcElement.tagName == "A" && autoFade) || srcElement.className == "fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1)) 
fade(endColor,startColor,srcElement.uniqueID,stepOut); 
} 
} 

function makearray(n) { 
this.length = n; 
for(var i = 1; i <= n; i++) 
this[i] = 0; 
return this; 
} 

function hex(i) { 
if (i < 0) 
return "00"; 
else if (i > 255) 
return "ff"; 
else 
return "" + hexa[Math.floor(i/16)] + hexa[i%16];} 

function setColor(r, g, b, element) { 
var hr = hex(r); var hg = hex(g); var hb = hex(b); 
element.style.color = "#"+hr+hg+hb; 
} 

function fade(s,e, element,step){ 
var sr = s[0]; var sg = s[1]; var sb = s[2]; 
var er = e[0]; var eg = e[1]; var eb = e[2]; 

if (fadeId[0] != null && fade[0] != element){ 
setColor(sr,sg,sb,eval(fadeId[0])); 
var i = 1; 
while(i < fadeId.length){ 
clearTimeout(fadeId[i]); 
i++; 
} 
} 

for(var i = 0; i <= step; i++) { 
fadeId[i+1] = setTimeout("setColor(Math.floor(" +sr+ " *(( " +step+ " - " +i+ " )/ " +step+ " ) + " +er+ " * (" +i+ "/" + 
step+ ")),Math.floor(" +sg+ " * (( " +step+ " - " +i+ " )/ " +step+ " ) + " +eg+ " * (" +i+ "/" +step+ 
")),Math.floor(" +sb+ " * ((" +step+ "-" +i+ ")/" +step+ ") + " +eb+ " * (" +i+ "/" +step+ ")),"+element+");",i*step); 
} 
fadeId[0] = element; 
}
