/* shw_siteSettings.js (c)2007 SugarHill Works LLC - http://www.sugarhillworks.com */
var homePageImages = new Array();
var i = 0;

var defaultTitle = "";
var titleSeparator = "";
var contactTitle = "";

//
//
//
//
//
// ********************************************************************************************************** //
// ********************************************************************************************************** //
// *********************************                                        ********************************* //
// *********************************      DO NOT EDIT ABOVE THIS LINE       ********************************* //
// *********************************                                        ********************************* //
// ********************************************************************************************************** //
// ********************************************************************************************************** //
//
//
//
//
//
//
//


// THE FOLLOWING LINES AFFECT THE TITLE THAT APPEARS IN THE BROWSER WINDOW'S TITLEBAR
defaultTitle = "Susan Kuhlman";
titleSeparator = " | ";
contactTitle = "Contact";


// THE FOLLOWING SECTION LISTS THE POOL OF IMAGES FROM WHICH TO SHOW ONE RANDOMLY ON THE HOME PAGE
//homePageImages[i] = "home.jpg";
//i++;

homePageImages[i] = "01.jpg";
i++;

homePageImages[i] = "02.jpg";
i++;

homePageImages[i] = "03.jpg";
i++;

homePageImages[i] = "04.jpg";
i++;

homePageImages[i] = "05.jpg";
i++;

homePageImages[i] = "06.jpg";
i++;


//
//
//
//
//
// ********************************************************************************************************** //
// ********************************************************************************************************** //
// *********************************                                        ********************************* //
// *********************************      DO NOT EDIT BELOW THIS LINE       ********************************* //
// *********************************                                        ********************************* //
// ********************************************************************************************************** //
// ********************************************************************************************************** //
//
//
//
//
//
//
//
// randomize the order
homePageImages.sort( randOrd );


// for IE6+ so we can use appendChild, etc...
if (!window.Node) {
//	alert("no 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);
}


var maxvpW = 900; //for slideshow image centering: should be set to same as xfsoContianer width in shw_global.css
var maxvpH = 515; //for slideshow image centering
var horzTopOffset = 0;
var ceibw;
var main_div;
var gPicsFolder, sPicsFolder;
var ldgGif;
function loadNums() {
	ceibw = document.getElementById("ceibw");
	main_div = document.getElementById("main_div");
	txt = document.getElementById("txt");
	if(main_div){
		if (screen.height < 855) {
			gPicsFolder = "img/medium";
			sPicsFolder = "img/homepage/medium/";
			ceibw.style.height = "600px";
			if (screen.height < 770) {
				ceibw.style.margin = "2px auto 0px auto";
			}
			else {
				ceibw.style.margin = "25px auto 0px auto";
			}
			maxvpH = 515;
			main_div.style.height = maxvpH + "px";
			ldgGif = "ldg.gif";
		}
		if (screen.height > 855) {
			gPicsFolder = "img/large";
			sPicsFolder = "img/homepage/large/";
			ceibw.style.height = "700px";
			ceibw.style.width = "1000px";
			ceibw.style.margin = "25px auto 0px auto";
			maxvpH = 615;
			main_div.style.height = maxvpH +"px";
			ldgGif = "ldg.gif";
		}
		main_div.style.background = "url(img/"+ldgGif+") center no-repeat";
	return ceibw, main_div, gPicsFolder, sPicsFolder, ldgGif;
}}

var txt;
function ctr_txt() {
	//set the text position on the bio/contact page
	var pageBody = document.getElementsByTagName("body");
	if (pageBody[0].id == 'contact') {
		if (screen.height < 855) {
			document.getElementById('txt').style.margin = "156px auto 0px auto";
		}
		if (screen.height > 855) {
			document.getElementById('txt').style.margin = "202px auto 0px auto";
		}
	}
}

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

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


// global portfolio vars
var imgs = [];
var gi = 0;
var imageFilenames = [];
var statement = new Boolean();

//var portfolioTitles = []; // used in each photographer's photographerSettings.js
//var photogBio = "";
//var photogWebsite = "";
//var photogClients = [];
//var pci = 0;


// ------------------------------ SHW webmark ----------------------------
function make_shwFtr() {
	//set the pCap text on the splash page
	var pageBody = document.getElementsByTagName("body");
//	if (pageBody[0].id == 'splash') {
//		document.getElementById('pCap').innerHTML = ftrTxt;
//	}
	//-----------------------------------------------------
	// set up header img rollover
//	var hdrImg = document.getElementById("logo");
//	hdrImg.onmouseover = function hdrover() {
//		hdrImg.src = rtPth + "img/name_on.gif";
//	};
//	hdrImg.onmouseout = function hdrout() {
//		hdrImg.src = rtPth + "img/name.gif";
//	};
	//-----------------------------------------------------
	//add the sugarhill works webmark
	var shwFtrDiv = document.createElement("div");
	shwFtrDiv.style.position = "absolute";
	shwFtrDiv.style.right = "15px";
	shwFtrDiv.style.bottom = "5px";
	shwFtrDiv.style.width = "auto";
	shwFtrDiv.style.height = "auto";
	
	var shwFtrLnk = document.createElement("a");
	shwFtrLnk.href = "http://sugarhillworks.com";
	shwFtrLnk.target = "newWin";
	
    var shwWebmark = new Image();
	shwWebmark = document.createElement("img");
	shwWebmark.src = rtPth + "img/webmark.gif";
	shwWebmark.onmouseover = function shwWover() {
		shwWebmark.src = rtPth + "img/webmark_on.gif";
	};
	shwWebmark.onmouseout = function shwWout() {
		shwWebmark.src = rtPth + "img/webmark.gif";
	};
	
	pageBody[0].appendChild(shwFtrDiv);
	shwFtrDiv.appendChild(shwFtrLnk);
	//shwFtrLnk.appendChild(document.createTextNode("site by sugarhill works"));
	shwFtrLnk.appendChild(shwWebmark);
	//-----------------------------------------------------

}
