//alert('adfdsf')

var fatContent_cellpadding;

blank='';
l='<br>';
s='<img src="/newchris/images/transparent.gif" width="5" height="1">';
for(p=1;p<=2;p++){
eval('o'+p+'=0');
};

date = new Date();

var o21 = 0;
var o11 = 0;
var o12 = 0;

subsave = new Array();

var s1l1 = l+s+'<span onClick="view(1,2)">thing</span><span id="sub2level1"></span>';
var s1l2 = l+s+'not a thing';

var s2l1 = l+s+s+'hello';

function view(w,t){
eval('oo=o'+t+w);
if(oo==0)
	{
//	if(eval('sub'+t+'save'+w)!=null)
	if(eval('subsave[w,t]')!=null)
		{
//		eval('sub'+t+'level'+w+'.innerHTML=sub'+t+'save'+w);
		eval('sub'+t+'level'+w+'.innerHTML=subsave[w,t]');
		}
	else
		{
		eval('sub'+t+'level'+w+'.innerHTML=s'+t+'l'+w);
		};
	eval('o'+t+w+'=1');
	}
else
	{
//	eval('sub'+t+'save'+w+'=sub'+t+'level'+w+'.innerHTML');
	eval('subsave[w,t]=sub'+t+'level'+w+'.innerHTML');
	eval('sub'+t+'level'+w+'.innerHTML=blank');
	eval('o'+t+w+'=0');
	};
}
function printWindow(){
document_location = document.location;
c = ':'; //c for colon
s = ' '; //s for space
d = '.'; //d for dot
dateStuff();

document_information = '<table cellpadding="0" cellspacing="0" class="bottom_tab"><tr><td><img src="/images/transparent.gif" height="10" width="1"></td></tr><tr><td><b>Document Information</b></td></tr><tr><td><span class="bottom_subtitles">Time and date printed: </span>' + realhour + c + realminute + d + realsecond + s + realday + s + dat + s + realmonth + s + year + '</td></tr><tr><td><span class="bottom_subtitles">Location: </span>' + document_location + '</td></tr></table>';
//alert(navigator.appVersion);
if	(window.navigator.appName!="Netscape")
	{
	bottom.style.visibility = 'visible';
	bottom.innerHTML = document_information;
	if	(
		(/MSIE 5/.test(navigator.appVersion))
		||
		(/MSIE 6/.test(navigator.appVersion))
		)
		{
		can_i_print_zero_or_one = 1;
		}
	else
		{
		can_i_print_zero_or_one = 0;
		};
	}
else
	{
	if	(
		(/5/.test(navigator.appVersion))
		||
		(/6/.test(navigator.appVersion))
		)
		{ 	
		alert()
		bottom = document.bottom.document;
			//with(document.layers["bottom"].document)
			//{
			bottom.open();
			bottom.write('hi'/*document_information*/);
			bottom.close();
			//};
		can_i_print_zero_or_one = 1;
		}
	else
		{
		can_i_print_zero_or_one = 0;
		};
	};
if	(can_i_print_zero_or_one==1)
	{
	window.print();
	}
else
	{
	alert('Who the hell do you think you are?\rYou\'re a bastard that\'s what.\rTrying to print with a browser that it is old and/or shit.\rI ought to kill you.\rYou\'ll just have to access your browser\'s printing functions yourself.\rIf it has any.');
	};
setTimeout("bottom.style.visibility = 'hidden'",10000);
}

function dateStuff(){
//Date information
days_array = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
months_array = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

dadate = new Date();
hour = dadate.getHours();
minute = dadate.getMinutes();
second = dadate.getSeconds();
day = dadate.getDay();
dat = dadate.getDate();
month = dadate.getMonth();
year = dadate.getFullYear();

realday = days_array[day];
realmonth = months_array[month];
realhour = new String(hour);
	if(realhour.length==1){realhour="0"+realhour};
realminute = new String(minute);
	if(realminute.length==1){realminute="0"+realminute};
realsecond = new String(second);
	if(realsecond.length==1){realsecond="0"+realsecond};
/*for(i=1;i<=3;i++){
if	(i==1)	{wn='hour'}	//wn = which number
if	(i==2)	{wn='minute'}
if	(i==3)	{wn='second'};
//realHourMinuteSecond(wn);
eval('alert('+wn+')');
eval('alert('+wn+'+1)');
eval('temp =' + wn);
eval('if(' + wn + '.length<2){real' + wn + '=new String("0"+' + wn +')}else{real' + wn + '=' + wn + '};');
//alert(realhour);
}*/
}

//This function adds a zero (0) to the beggining of the hour, minute, and second variable if they are only one digit long and creates realhour, realminute, and realsecond varibles

function realHourMinuteSecond(wnn){
eval('temp = ' + wnn + '.length');alert(temp);
eval('if(' + wnn + '.length<2){real' + wnn + '="0"+' + wnn +'};');
}//end realHourMinuteSecond()

nav_normalcolour = "#FF6633";
nav_hovercolour = "#FF9933";
nav_clickcolour1 = "#FCCE04";
nav_clickcolour2 = "#FF9933";			//old colours "pink";
nav_clickcolour3 = "#FCCE04";			//            "lightblue";
/*hover = 'hover';
normal = 'normal';*/

function nav_hover(whichcell){
eval('nav' + whichcell + '.style.background = nav_hovercolour');
}

function nav_normal(whichcell){
eval('nav' + whichcell + '.style.background = nav_normalcolour');
}

function nav_down(whichcell){
eval('nav' + whichcell + '.style.background = nav_clickcolour1');
}

function nav_up(whichcell){
nav_up_flash(whichcell,2,1);
}

function nav_up_flash(whichcell,whichcolour,howmanyflashes){
if	(howmanyflashes <= 4)
	{
	eval('nav' + whichcell + '.style.background = nav_clickcolour' + whichcolour);
	if	(whichcolour == 2)
		{
		whichcolour = 3;
		}
	else
		{
		whichcolour = 2;
		};
	howmanyflashes++;
	whichcell2 = whichcell;
	whichcolour2 = whichcolour;
	howmanyflashes2 = howmanyflashes;
	setTimeout('nav_up_flash(whichcell2,whichcolour2,howmanyflashes2)',50);
	}
else{location.href = mainSectionsURL[whichcell];
//alert('Happy now?')
    }
}

d = new Array();

d["http://www.fatdotchris.f9.co.uk"] = "fatdotchris";
d["http://www.fatdotchris.co.uk"] = "fatdotchris"; //for new domain....woohoo (05.01.2004)
d["http://fatdotchris.co.uk"] = "fatdotchris"; //let's be thorough, eh?
d["http://home.fatdotchris.co.uk"] = "fatdotchris"; //one last one.

d["www.fatdotchris.co.uk"] = "fatdotchris"; //for new domain....woohoo (05.01.2004)
d["fatdotchris.co.uk"] = "fatdotchris"; //let's be thorough, eh?
d["home.fatdotchris.co.uk"] = "fatdotchris"; //one last one.
d["212.227.127.232"] = "fatdotchris.co.uk ip";
d["watserve:8088"] = "fatdotchris @ WatServe";


d["/newchris"] =  'newchris';
d["afourthlook.html"] = 'A Fourth Look';

d["localhost"] = 'localhost';
d["/newchris/art"] = "Art";
d["/art"] = "Art";

d["/go.html"] = "Go to...";


d["/art/karate_sam"] = "Art By Karate Sam";
d["/art/4thapril2000"] = "The 4th of April 2000 Pictures";
d["/bizarre/fleming"] = "The Fleming Saga";
d["/bizarre/springleaversconcert2000"] = "Spring Leaver's Concert 2000";
d["/bizarre/springleaversprom2000"] = "The Spring Leavers Prom' 2000";

d["/newchris/misc/admin.html"] = "fatdotchris admin";
d["/misc/admin.html"] = "fatdotchris admin";
d["/misc"] = "Misc";

d["/bizarre"] = "Bizarre";

d["/bizarre/fleming"] = "The Fleming Saga";
d["/bizarre/springleaversconcert2000"] = "The Spring Leaver's Concert 2000";
d["/bizarre/springleaversprom2000"] = "The Spring Leavers Prom' 2000";
d["/bizarre/nicktherockstar"] = "Nick the rockstar";
d["/bizarre/thelastweek"] = "The Last Week";
d["/bizarre/fdc"] = "fdc";
d["/bizarre/chris_javascript"] = "Chris' JavaScript";
d["/bizarre/flash_movies"] = "Flash Movies";
d["/bizarre/ketom"] = "Ketom";
d["/bizarre/games"] = "Games";
d["/bizarre/ripper_mcroo"] = "Ripper McRoo";
d["/bizarre/a_day_in_the_life_of_chris_watson"] = "A Day in the Life of Chris Watson";
d["/bizarre/springleaversprom2000/samsphotos"] = "Sam's Photos";
d["/bizarre/springleaversprom2000/samsphotos/bigpicture/01.html"] = "Sam in a fez";
d["/bizarre/springleaversprom2000/samsphotos/bigpicture/02.html"] = "Ken in a fez";
d["/bizarre/springleaversprom2000/samsphotos/bigpicture/03.html"] = "D Razza in a fez";
d["/bizarre/springleaversprom2000/samsphotos/bigpicture/04.html"] = "Johno in a fez";
d["/bizarre/springleaversprom2000/samsphotos/bigpicture/05.html"] = "Nick et al";
d["/bizarre/springleaversprom2000/samsphotos/bigpicture/06.html"] = "Paul";
d["/bizarre/nicktherockstar/rockstar.html"] = "Nick the rockstar";
d["/bizarre/thelastweek/picture.html"] = "The Last Week: Picture";
d["/bizarre/fdc/bring_back_ole_mamma/index.html"] = "Bring Back Ole Mamma";
d["/bizarre/chris_javascript/slap_sam_screenshots"] = "\"Slap Sam!\" Screenshots";
d["/bizarre/chris_javascript/vicki"] = "Vicki is a nice person";
d["/bizarre/games/colliers_games"] = "Colliers Games";
d["/bizarre/a_day_in_the_life_of_chris_watson/page1.html"] = "26 February 2001 - ...";
d["/bizarre/some_observations"] = "Some Observations";
d["/bizarre/some_observations/some_observations.html"] = "Some Observations";
d["/bizarre/deeksys_christmas_countdown"] = "Deeksy's Christmas Countdown";
d["/bizarre/weeds_college_card"] = "Weed's New College ID Card";
d["/bizarre/festive_season"] = "Festive Season";
d["/bizarre/photos"] = "Photos";

d["/qbasic"] = "Q Basic";
d["/qbasic/ken"] = "Kenneth Baker";
d["/qbasic/ken/anthem"] = "The National Anthem (UK)";
d["/qbasic/ken/redalert"] = "Red Alert";
d["/qbasic/adventuresof"] = "The Adventures of...";
d["/qbasic/adventuresof/mullard"] = "Mullard";
d["/qbasic/adventuresof/chriswatson"] = "Chris Watson";
d["/qbasic/adventuresof/petersims"] = "Peter Sims";
d["/qbasic/adventuresof/petersims/theme.html"] = "Pete's Theme";
d["/qbasic/adventuresof/chriswatson2"] = "Chris Watson 2";
d["/qbasic/nick"] = "Nick";
d["/qbasic/nick/dotrace"] = "DotRace";

d["/newchris/games"] = "games";
d["/games"] = "games";
d["/games/fatdotchris"] = "fatdotchris games";
d["/games/fatdotchris/hangman"] = "Hangman";
d["/games/fatdotchris/pairs"] = "Pairs";

d["/software"] = "Software";
d["/software/rss"] = "RSS Generator for Ublog (Access Version) 1.6";
d["/software/ed2kLinkHarvester"] = "ed2k Link Harvester";
d["/software/VOBRenamer"] = "VOB Renamer";


	/*
	function directoryListingLinksBACKUP(){
	var dirlist_html = "", cumpath = "";
	z2 = location.pathname.split("/");
	z2l = z2.length;
	for(i=1;i<z2l;i++){
	cumpath += '/' + z2[i];
	//alert(z2[i]);
	//alert(d[z2[i]]);
	dirlist_html += '<a href="' + location.protocol + '//' + location.hostname + cumpath + '" title="' + d[z2[i]] + '"  class="dirlist_top">' + d[z2[i]] + '</a>';
	if	(i != z2l-1)
		{
		dirlist_html += ' > ';
		};
	};
	document.write(dirlist_html);
	}//end of directoryListingLinks()

	//BACK UP OF THE directoryListingLinks() FUNCTION
	*/


function directoryListingLinks(){
  if ( rootDetermine() == false )
     {
     directoryListingLinks_2();
     };
}//end directoryListingLinks

var cumpath = "", z2l, sectit = ""; //sectit = "d";
var cumpath2 = ""; //to be used later to hold the path part of the url. ie. minus the location.hostname
var cumpathFirst = ""; //will hold the www.fatdotchris.co.uk or whatever part.
function directoryListingLinks_2(){
var dirlist_html = "&nbsp;", doneOne = 'no'; //, cumpath = "";
z2 = location.href.split("/");
z2l = z2.length;

	//add a starting "fatdotchris"
	//dirlist_html += '<a href="' + location.protocol + '//' + location.hostname + cumpath + '" title="' + "fatdotchris" + '"  class="dirlist_top">' + "fatdotchris" + '</a>';

for(i=2;i<z2l-1;i++){
cumpathNewBit = z2[i];
cumpath += cumpathNewBit;
  //alert("cumpath = " + cumpath + ' & cumpathNewBit = ' + cumpathNewBit);
  //alert("z2[" + i + "] = " + z2[i]);
  //alert("d[z2[" + i + "]] = " + d[z2[i]]);
if	(  (cumpathNewBit == '')  ||  (cumpathNewBit == '/')  ||  (cumpathNewBit == '/index.html')  ||  (cumpathNewBit == '/index.htm')  ||  (cumpathNewBit == '/default.htm')  ||  (cumpathNewBit == '/default.html')  ||  (cumpathNewBit == '/index.asp')  )
	{
	}
else{
	if	(doneOne=='yes')
		{
//		if	(cumpathNewBit != '/')
//			{
			dirlist_html += ' > ';
			cumpath2 = cumpath.substring(cumpathFirst.length,cumpath.length);
			//alert("cumpath2 =" + cumpath2);
//			};//end if...
		}
	else{
		cumpathFirst = cumpath;
		cumpath2 = cumpath;
		};//end if doneOne
	dirlist_html += '<a href="' + location.protocol + '//' + cumpath + '" title="' + d[cumpath2] + '"  class="dirlist_top">' + d[cumpath2] + '</a>';
	sectitIndex = cumpath2;	//i;
	cumpath += '/';
	doneOne = 'yes';
	};//end first if...
};
sectit = d[sectitIndex];
//alert('sectitIndex = ' + sectitIndex);
//alert('z2[' + sectitIndex + '] = ' + z2[sectitIndex]);
//alert(sectit);
//setTimeout("sectionTitle()",2000);
document.write(dirlist_html);
};//end of directoryListingLinks_2()


function rootDetermine(){
  var rootDet;
  if ( (location.href == "http://www.fatdotchris.f9.co.uk") || (location.href == "http://www.fatdotchris.f9.co.uk/") )
     {
     rootDet = true;
     }
  else
     {
     if ( location.href.indexOf("http://www.fatdotchris.f9.co.uk/index.html") > -1 )
        {
        rootDev = true;
        }
     else
        {
        rootDet = false;
        };
     };

  rootDet = false; //i don't want to use this function anymore.
  return rootDet;
}//end rootDetermine


function sectionTitle(){
  if ( rootDetermine() == false )
     {
     sectionTitle_2();
     };
}//end sectionTitle



function sectionTitle_2(){
sectit = sectit.toUpperCase(); //Section Title
var sectit2 = "";
for(i=0 ; i<sectit.length ; i++){
sectit2 += sectit.substring(i,i+1) + "&nbsp;";
};
sectit2 = sectit2.substring(0,sectit2.length-6);
document.write(sectit2);
//sectionTitleCell.innerHTML = sectit2;
}

function launchMonkey(){
clickX = event.x;
clickY = event.y;
//alert(clickX);
//monkey.style.left = clickX;
monkey.style.top = clickY;
curMonY = clickY;
curMonX = -155;
moveMonkey();
//for(i=-155;i<=(155*3);i++){
//curMonY
//monkey.style.left = i;
//}
}//End of function launchMonkey()

function moveMonkey(){
curMonX += 10;
monkey.style.left = curMonX;
setTimeout('moveMonkey()',30);
}

function launchThing(){
thingCell.innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="99" height="68"><param name=movie value="file:///C|/WEBS/fatdotchris/thing.swf">  <param name=quality value=high>  <embed src="file:///C|/WEBS/fatdotchris/thing.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="99" height="68">  </embed> </object> ';
}

//mainSections & mainSectionsURL arrays
mainSections = new Array('','Bizarre','Games','Qbasic','Art','Software');
mainSectionsURL = new Array('','/bizarre','/games','/qbasic','/art','/software');
//end of mainSections & mainSectionsURL arrays

function mainNav(){
	
	if(navigator.appName == "Microsoft Internet Explorer")
		{	MSIEyes = 1	}
	else
		{	MSIEyes = 0	};
	  //check to see if browser is MSIE
	    //alert("MSIEyes = " + MSIEyes);
	
document.write('<table border="0" cellspacing="0" cellpadding="0" width="100" class="fourth_main_nav_tab">');
for(i=1;i<mainSections.length;i++){
document.write('<tr><td>');

document.write('<table border="0" cellspacing="0" cellpadding="1" width="100%" class="fourth_main_nav_tab"><tr>');

if(MSIEyes==1)
	{
		document.write('<td id="nav' + i + '" onMouseOver="nav_hover(' + i + ')" onMouseOut="nav_normal(' + i + ')" onMouseDown="nav_down(' + i + ')" onMouseUp="nav_up(' + i + ')" bgcolor="#FF6633">' + mainSections[i] + '</td>');
	}
else
	{
		document.write('<td id="nav' + i + '" bgcolor="#FF6633"><a href="' + mainSectionsURL[i] + '">' + mainSections[i] + '</a></td>');
	};
  //change content depending on whether browser is MSIE or not

document.write('</tr></table>');

if(i!=mainSections.length-1){
document.write('</td></tr><tr><td><img src="/images/grey_block.gif" width="100%" height="1">');
}//end if

document.write('</td></tr>');
//document.write('<tr><td background="#7D7D7D"><img src="/images/transparent.gif" width="1" height="1"></td></tr>');
};//End for
document.write('</table>');
}//End of function mainNav()

	function MM_openBrWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
	}
	//for the benefit of an old page that uses this.


function setPageVariables(SPGone){
fatContent_cellpadding = SPGone;
}

function writeCounter(Counter_Name){

	if(navigator.appName == "Microsoft Internet Explorer")
		{	MSIEyes = 1	}
	else
		{	MSIEyes = 0	};
	  //check to see if browser is MSIE

if(MSIEyes==1)    
	{	document.write('<iframe class="custom_counter_iframe_style" src="http://www21.brinkster.com/fatdotchris/counter/counter_brinkster.asp?CounterName=' + Counter_Name + '" frameborder="no" height="10"></iframe>');	}
else
	{	document.write('<ilayer src="http://fatdotchris/fci/home.html" width="200" height="200" left="0" top="0" z-index="11" visibility="show"></ilayer>');	};
	
}//end writeCounter