/* ====================================================
General Site variables script © john@manhunter.net 2003
==================================================== */

pagelink		= document.location
pagename		= document.title
pagetype		= 1
leftmenuname		= 'none'
findername		= 'none'
sitename		= 'The Peak School of Reiki'
siteurl			= 'http://www.peakreiki.org'
developer		= 'John Mounsey'
developerurl		= 'http://www.manhunter.net'
setupdomain		= 'http://www.manhunter.net/reiki'
today			= new Date
thisYear		= today.getYear()
defaultStatus		= siteurl

if (thisYear <2000) { thisYear = thisYear + 1900; }

/* ====================================================
Determine location of viewed file to create correct root_path value
==================================================== */

if ((location.protocol=="file:") && (pagetype==0))	{ root_path = "./"		} 
else if (location.protocol=="file:" && pagetype==1)	{ root_path = "../"		}
else							{ root_path = "/"		}


/* ====================================================
NEW Detect for correct browser to determine CSS file
==================================================== /* 

/*
if	(browser == "n4") { document.write('<LINK REL="STYLESHEET" HREF="' + root_path + 'n4.css">');	}
else if	(browser == "ie") { document.write('<LINK REL="STYLESHEET" HREF="' + root_path + 'ie.css">');	}
else if (browser == "n6") { document.write('<LINK REL="STYLESHEET" HREF="' + root_path + 'n6.css">')	}
*/


/* ====================================================
MENU image rollover pre-loader
==================================================== */

var preGfx = new Array(7);

preGfx[0] = "/gfx/menu/home2.gif";
preGfx[1] = "/gfx/menu/basket2.gif";
preGfx[2] = "/gfx/menu/how2.gif";
preGfx[3] = "/gfx/menu/recipes2.gif";
preGfx[4] = "/gfx/menu/enquiries2.gif";
preGfx[5] = "/gfx/menu/shop2.gif";
preGfx[6] = "/gfx/menu/email2.gif"


for (i=0; i < preGfx.length; i++)

	{
	var preload = new Image();
	preload.src = preGfx[i];
	}


/* ====================================================
Left menu rollover script
==================================================== */

function menuON(slot)	{ slot.className='menuitemON';	}
function menuOFF(slot)	{ slot.className='menuitem';	}
function menuON2(slot)	{ slot.className='menuitemON2';	}
function menuOFF2(slot)	{ slot.className='menuitem2';	}


/* ====================================================
Bookmark / Add to Favorites script
==================================================== */

function bookmark()

{ 
if	 (document.layers)				{ browser="n4"; }
else if  (document.all)		 			{ browser="ie"; }   
else if  (!document.all && document.getElementById)	{ browser="n6"; }
if (browser == "ie") { external.AddFavorite(pagelink,pagename) }
	
else if (browser == "n4") 			{ alert('press control and D now!') }
else if (navigator.appName == "Opera") 		{ alert('press control and T now!') }
}


/* ====================================================
Send page to friend
==================================================== */

function sendlink() { window.location='mailto:?subject=Take a look at this!&body=' + pagename + ' : ' + pagelink }

/* ====================================================
Previous Page
==================================================== */

function previous() { history.go(-1); }



