var tarht=425;
var tarwd=780;
if(screen.availWidth>789){tarwd=screen.availWidth-10};
if(screen.availHeight>428){tarht=screen.availHeight-172};
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 wrtr1() {
document.write('<table border=0 cellspacing=0 cellpadding=0 bgcolor="'+backgrndovr+'"><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>');
document.write('<td><INPUT TYPE="button" name="b1" Size="2" VALUE="Slideshow" OnClick="pictr()" 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>');
document.write('</tr><tr height=22>');
former("b2","My Pictures","http://www.elliemcafee.net/Pix/");
document.write('</tr><tr height=22>');
former("bmail","Mail","http://mail.yahoo.com/");
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","Sophie","http://www.sophiemcafee.net/");
document.write('</tr><tr height=22>');
former("b7","Webkinz","http://www.webkinz.com");
document.write('</tr><tr height=22>');
former("b8","Last Pumpkin","http://www.elliemcafee.net/Pumpkinbook.wmv");
document.write('</tr><tr height=22>');
former("b9","Blythe","http://www.elliemcafee.net/Blythe/");
document.write('</tr><tr height=22>');
former("bsearch","Search","http://search.yahoo.com/");
document.write('</tr><tr height=22>');
former("b10","Earthquake","http://quake.usgs.gov/recenteqs/latest.htm");
document.write('</tr><tr height=22>');
former("b11","States Games","http://www.sheppardsoftware.com/web_games.htm");
document.write('</tr><tr height=22>');
former("b14","TicTacToe","http://www.elliemcafee.net/TicTacToe/index.html");
document.write('</tr><tr height=22>');
former("b16","Cat Game","http://www.gamedesign.jp/flash/chatnoir/chatnoir.html");
document.write('</tr><tr height=22>');
former("b17","Star Sizes","http://i51.photobucket.com/albums/f351/dabears1020/1202609635165.gif");
document.write('</tr><tr height=22>');
former("b18","Chess Intro","http://www.chesscorner.com/tutorial/learn.htm");
document.write('</tr></form><form name="two"><tr height=22>');
former("b19","BFF","http://d.hatena.ne.jp/Class-2018/");
document.write('</tr></form><form name="two"><tr height=22>');
document.write('<td><INPUT TYPE="button" name="razzer" Size="2" VALUE="Razzle" OnClick="document.photox.src=\'razzle.jpg\';document.one.b1.value=\'Slideshow: Razzle\'" 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>');
document.write('</tr></table></form></td>');
document.write('<td valign=top bgcolor="'+backgrndovr+'">');
document.write('<img src="'+startphoto+'" name=photox border="0px" style="cursor:hand" OnClick="pictr()" alt="Click for another picture!">');
document.write('</td></tr></table>');
}

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 pictr() {
var picnum=Math.round(.4999999+nslide*Math.random());
rnpic = new Image;
rnpic.src=pixfldr+"/"+picnum+".jpg";
document.photox.src=rnpic.src;
document.one.b1.value='Slideshow # '+picnum;
}

function razzer() {
document.write('<td><INPUT TYPE="button" name="razzer" Size="2" VALUE="Razzle" OnClick="document.photox.src=\'razzle.jpg\';document.one.b1.value=\'Slideshow: Razzle\'" 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 ager() {
var yr=1999;
var mo=9; //Javascript months go from 0 to 11
var da=7;
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.');}
