var tarht=425; var tarwd=780;
if(screen.availHeight>428){tarht=screen.availHeight-172};
if(screen.availWidth>789){tarwd=screen.availWidth-10};
var settings="toolbar=yes,directories=no,location=yes,top=0,left=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,height="+tarht+",width="+tarwd;

function opener (x){
if(document.all) {window.open(x,"",settings)}
if(navigator.appName=="Netscape") 
{window.open(x,"","toolbar=yes,location=yes,top=0,left=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes")}
}

function former(namer,valuer,locale) {
document.write('<td><INPUT TYPE="button" name="'+namer+'" Size="2" VALUE="'+valuer+'" OnClick="opener(\''+locale+'\')" style="background-color: '+butnclr+'; color: '+fontbutnclr+'; FONT-SIZE: 14px; WIDTH: 150; font-family: arial, times new roman; font-weight:bold; cursor:hand" onmouseover="this.style.backgroundColor=\''+backgrndovr+'\'; this.style.color=\''+fontovr+'\'; return true" onmouseout="this.style.backgroundColor=\''+butnclr+'\';this.style.color=\''+fontbutnclr+'\'; return true"></td>');
}
function jformer(namer,valuer,jvaluer) {
document.write('<td><INPUT TYPE="button" name="'+namer+'" Size="2" VALUE="'+valuer+'" OnClick="'+jvaluer+'" style="background-color: '+butnclr+'; color: '+fontbutnclr+'; FONT-SIZE: 14px; WIDTH: 150; font-family: arial, times new roman; font-weight:bold; cursor:hand" onmouseover="this.style.backgroundColor=\''+backgrndovr+'\'; this.style.color=\''+fontovr+'\'; return true" onmouseout="this.style.backgroundColor=\''+butnclr+'\';this.style.color=\''+fontbutnclr+'\'; return true"></td>');
}

function pictr() {
var picnum=Math.round(.4999999+npx*Math.random());
rnpic = new Image;
rnpic.src=pixfldr+"/"+picnum+".jpg";
document.photox.src=rnpic.src;
document.one.b1.value='Picture # '+picnum;
}

function ager() {
var yr=2002;
var mo=11; //Javascript months go from 0 to 11
var da=27;
var today=new Date();

var dyr=1;
if (today.getMonth()>mo|| (today.getMonth()==mo&&today.getDate()>=da)) 
{dyr=0} else {dyr=1}
var yrs=today.getFullYear()-yr-dyr;
var dx=new Date(today.getFullYear()-dyr, mo, da) 
var dy=new Date(today.getFullYear(), today.getMonth(), today.getDate())
dd=dy-dx;

var dday=Math.floor(dd/(60*60*1000*24)*1);

var yrz="Years"; if(yrs==1){yrz="Year"}
var daz="Days"; if(dday==1){daz="Day"}
document.write('I am '+yrs+' '+yrz+' and '+dday+' '+daz+' old.');}

function wrtr1() {
document.write('<table border=0 cellspacing=0 cellpadding=0 bgcolor="#000000" bordercolor="#000000"><form name=one><tr valign=top>');
document.write('<td valign=top>');
document.write('<table BORDER=3 CELLSPACING=1 CELLPADDING=5 WIDTH=170 bgcolor="'+backgrnd+'" bordercolor="'+bdrcolor+'">');
document.write('<tr height=45><td><center>');
document.write('<marquee name="scx" scrollAmount=2 direction=up width=150 height=80 style="background-color:'+butnclr+'; font-color'+fontbutnclr+'; color'+fontbutnclr+'; border:2px solid gray;" ');
document.write(' onmouseover="this.stop();this.style.backgroundColor=\''+backgrndovr+'\'; this.style.color=\''+fontovr+'\';  return true" onmouseout="this.start(); this.style.backgroundColor=\''+butnclr+'\';this.style.color=\''+fontbutnclr+'\'; return true">');
document.write('<div STYLE="font-family: Verdana; font-weight:bold; color:'+fontbutnclr+'; font-size: 11px; background-color:'+butnclr+'"');
document.write(' onmouseover="this.style.backgroundColor=\''+backgrndovr+'\'; this.style.color=\''+fontovr+'\';  return true" onmouseout="this.style.backgroundColor=\''+butnclr+'\';this.style.color=\''+fontbutnclr+'\'; return true">');
}

function wrtr2() {
document.write('<tr height=22>');
jformer("b1","New Picture","pictr()");
document.write('</tr><tr height=22>');
jformer("b2","My Photos","window.location.href=\'Pix/index.html\'");
document.write('</tr><tr height=22>');
former("b3","My Family","http://www.mcafeefamily.net/");
document.write('</tr><tr height=22>');
former("b4","Mom","http://www.kristinmcafee.net/");
document.write('</tr><tr height=22>');
former("b5","Dad","http://www.mcafee.cc/");
document.write('</tr><tr height=22>');
former("b6","Ellie","http://www.elliemcafee.net/");
document.write('</tr><tr height=22>');
former("b7","States Games","http://www.sheppardsoftware.com/web_games.htm");
document.write('</tr><tr height=22>');
former("b8","TicTacToe","http://www.elliemcafee.net/TicTacToe/index.html");
document.write('</tr><tr height=22>');
former("b9","Webkinz","http://www.webkinz.com");
document.write('</tr><tr height=22>');
former("b10","Cat Game","http://www.gamedesign.jp/flash/chatnoir/chatnoir.html");
document.write('</tr><tr height=22>');
former("b11","Star Sizes","http://i51.photobucket.com/albums/f351/dabears1020/1202609635165.gif");

document.write('</tr><tr height=22>');
jformer("razzer","Razzle","document.photox.src=\'razzle.jpg\';document.one.b1.value=\'Picture: Razzle\'");
document.write('</tr><tr height=22>');
jformer("sienna","Sienna","document.photox.src=\'sienna.jpg\';document.one.b1.value=\'Picture: Sienna\'");

document.write('</tr></table></form></td>');

document.write('<td valign=top bgcolor="Black">');
document.write('<img src="'+startphoto+'" name=photox border="0px" style="cursor:hand" OnClick="pictr()" alt="Click for another picture!">');
document.write('</td></tr></table>');}
