// shw_siteSettings.js (c)2008 SugarHill Works LLC - http://www.sugarhillworks.com
var d = document;
var rootPath = "";
function getRootPath() {
	for(var i = 2; i < rootPathNum; i++) {
		rootPath += "../";
	}
	return rootPath;
}
var menuItems = new Array();

//// ********************************************************************************************************** //

//// ********************************************************************************************************** //
//// ********************************************************************************************************** //
//// ********************************************************************************************************** //
//// ********************************************************************************************************** //
//// *********************************                                        ********************************* //
//// *********************************      DO NOT EDIT ABOVE THIS LINE       ********************************* //
//// *********************************                                        ********************************* //
//// *********************************         SET SITE OPTIONS BELOW         ********************************* //
//// *********************************                                        ********************************* //
//// ********************************************************************************************************** //
//// ********************************************************************************************************** //
//// ********************************************************************************************************** //
//// ********************************************************************************************************** //
////
//
//// THE FOLLOWING LINES AFFECT THE TITLE THAT APPEARS IN THE BROWSER WINDOW'S TITLEBAR
//// [any legal HTML text is allowed]
var defaultTitle = "Kate Greer Yoga";
var titleSeparator = " | ";
//var contactTitle = "contact";
//var bioTitle = "bio";



//// ********************************************************************************************************** //

//// ********************************************************************************************************** //
//// ********************************************************************************************************** //
//// ********************************************************************************************************** //
//// ********************************************************************************************************** //
//// *********************************                                        ********************************* //
//// *********************************      DO NOT EDIT BELOW THIS LINE       ********************************* //
//// *********************************                                        ********************************* //
//// ********************************************************************************************************** //
//// ********************************************************************************************************** //
//// ********************************************************************************************************** //
//// ********************************************************************************************************** //

//// ********************************************************************************************************** //




// turn off 'image toolbar' in older versions of IE
if(navigator.appName == 'Microsoft Internet Explorer'){
	document.write("<meta HTTP-EQUIV=\"imagetoolbar\" content=\"no\">");
}

// for IE6+ so we can use appendChild, etc...
if (!window.Node) {
	var Node = {
		ELEMENT_NODE: 1,
		ATTRIBUTE_NODE: 2,
		TEXT_NODE: 3,
		COMMENT_NODE: 8,
		DOCUMENT_NODE: 9,
		DOCUMENT_FRAGMENT_NODE: 11
	};
}

//function randOrd(){
//	return (Math.round(Math.random())-0.5);
//}





// preload basic site images
var pld_01 = new Image();
pld_01.src = "img/";
var pld001 = new Image();
pld001.src = "img/";
var pld002 = new Image();
pld002.src = "img/";

function site_init() {
	document.getElementsByTagName('title')[0].text = defaultTitle;
	document.getElementsByTagName('title')[0].innerHTML = defaultTitle;
	getRootPath();
	makeMenu();
}

//////
//////
//////var maxvpW;
//////var maxvpH;
//////var shdw;
//////var ceibw;
//////var main_div;
//////var ldgGif;
//////
//////var thms_div;
//////var thms_p;
//////var thmsArwU_div, thmsArwD_div;
//////var hideboxB_div, hideboxL_div;//, hideboxT_div;
//////
//////// Set the thumbnails folder for this gallery
//////var picsFolder; // path relative to specific gallery dir
//////var thmsFolder = "img/thumbs"; // path relative to specific gallery dir
//////
//////var sPicsFolder; //home page slideshow pics folder
//////
//////// take various resolution possibilities and size the ceibw div 
//////function loadNums() {
//////	shdw = document.getElementById("shdw");
//////	ceibw = document.getElementById("ceibw");
//////	main_div = document.getElementById("main_div");
//////	thms_div = document.getElementById("thms_div");
//////	thms_p = document.getElementById("thms_p");
//////	thmsArwU_div = document.getElementById("thmsArwU_div");
//////	thmsArwD_div = document.getElementById("thmsArwD_div");
//////	hideboxL_div = document.getElementById("hideboxL");
//////	hideboxT_div = document.getElementById("hideboxT");
//////	hideboxB_div = document.getElementById("hideboxB");
//////	if(main_div){		
//////		if (screen.height < 855) {
//////			picsFolder = "img/medium";
//////			sPicsFolder = "shw_slideshow/images/medium/";
//////			shdw.style.height = "595px";
//////			ceibw.style.height = "575px";
//////			maxvpW = 960;
//////			maxvpH = 500;
//////			ldgGif = "ldgM.gif";
//////		}
//////		if (screen.height > 855) {
//////			picsFolder = "img/large";
//////			sPicsFolder = "shw_slideshow/images/large/";
//////			shdw.style.height = "695px";
//////			ceibw.style.height = "675px";
//////			maxvpW = 960;
//////			maxvpH = 600;
//////			ldgGif = "ldgL.gif";
//////		}
//////		main_div.style.background = "url(img/"+ldgGif+") center no-repeat";
//////	}
//////	if(thms_div) {
//////		if (screen.height < 855) {
//////			thms_div.style.height = "470px";
//////			thms_p.style.height = "481px";
//////			thmsArwU_div.style.top = "0px";
//////			thmsArwD_div.style.top = "495px";
//////			hideboxL_div.style.height = "481px";
//////			hideboxB_div.style.top = "520px";
//////		}
//////		if (screen.height > 855) {
//////			thms_div.style.height = "570px";
//////			thms_p.style.height = "581px";
//////			thmsArwU_div.style.top = "0px";
//////			thmsArwD_div.style.top = "595px";
//////			hideboxL_div.style.height = "577px";
//////			hideboxB_div.style.top = "620px";
//////		}
//////	}
//////	return picsFolder, sPicsFolder, main_div, ceibw, ldgGif, thms_div, thms_p; 
//////}
//////
//////
//////
//////var sdint;
//////function fleXcrollTo(id,x,y,relative) {
//////	var scrollDiv = document.getElementById(id);
//////	//Return if the target is null
//////	if (scrollDiv == null) return;
//////	//Do the scroll by using custom method attached by fleXcroll
//////	//but first check if the method exists.
//////	if(scrollDiv.contentScroll) { 
//////		scrollDiv.contentScroll(x,y,relative);
//////	}
//////}
//////
//////// scroll the thumbs div on mousemove
//////var mouseY;
//////var scint;
//////var ascr_to;
//////function show_coords(event) {
//////	x=event.clientX;
//////	y=event.clientY;
//////	if(ascr_to) {
//////		//alert(ascr_to);
//////		window.clearTimeout(ascr_to);
//////		window.clearInterval(scint);
//////	}
//////	if(mouseY && hSlideIsUp == true) {
////////		if(mouseY == y) return;
////////		if(y > 360 && y > mouseY)  {
//////		if(y >= mouseY) {
////////			if ((y - mouseY) < (10)) { return; }
//////			fleXcrollTo('thms_div',false,Math.round(y / 120)+'px',true);
//////			ascr_to = window.setTimeout('autoScr()', 10);
//////		}
////////		if(y < 360 && y < mouseY) {
//////		if(y < mouseY) {
////////			if (mouseY - y < 10) { return; }
//////			fleXcrollTo('thms_div',false,Math.round((y-720)  / 120)+'px',true);
//////			ascr_to = window.setTimeout('autoScrR()', 10);
//////		}
//////	}
//////	mouseY = y;
//////}
//////
//////function autoScr() {
//////	scint = window.setInterval("fleXcrollTo('thms_div',false,'3px',true)", 20);
//////}
//////
//////function autoScrR() {
//////	scint = window.setInterval("fleXcrollTo('thms_div',false,'-3px',true)", 20);
//////}
//////



//// preload basic site images
//var pld_01 = new Image();
//
//pld_01.src = "img/.gif";
//
//

