	//--------------------------------------------------
	if (document.images) {
	home_off = new Image(64,23); home_off.src = "images/nav_home_off.gif";
	home_on = new Image(64,23); home_on.src = "images/nav_home_on.gif";
	doors_off = new Image(74,23); doors_off.src = "images/nav_doors_off.gif";
	doors_on = new Image(74,23); doors_on.src = "images/nav_doors_on.gif";
	photo_gallery_off = new Image(115,23); photo_gallery_off.src = "images/nav_photo_gallery_off.gif";
	photo_gallery_on = new Image(115,23); photo_gallery_on.src = "images/nav_photo_gallery_on.gif";
	about_us_off = new Image(89,23); about_us_off.src = "images/nav_about_us_off.gif";
	about_us_on = new Image(89,23); about_us_on.src = "images/nav_about_us_on.gif";
	contact_us_off = new Image(106,23); contact_us_off.src = "images/nav_contact_us_off.gif";
	contact_us_on = new Image(106,23); contact_us_on.src = "images/nav_contact_us_on.gif";
	estimate_off = new Image(115,23); estimate_off.src = "images/nav_estimate_off.gif";
	estimate_on = new Image(115,23); estimate_on.src = "images/nav_estimate_on.gif";
	}
	//-------------------------------------------------------
	function imgon(imgName) {
		if (document.images)
		document[imgName].src = eval(imgName + '_on.src');
	}
	//-------------------------------------------------------
	function imgoff(imgName) {
		if (document.images)
		document[imgName].src = eval(imgName + '_off.src');
	}
	//--------------------------------------------------
	// Pop up window
	function newWindow(filename,w,h) {
		var Prop="location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes"+",width=" + w + ",height=" + h + ",top=" +10+ ",left=" +10;
		if (!window.window2) {
			// has not yet been defined
			window2 = window.open(filename,'windowRef',Prop);
		}
		else {
			// has been defined
			if (window2.focus) {
				// still open
				window2.close();
				window2 = window.open(filename,'windowRef',Prop);
			}
			else {
				window2 = window.open(filename,'windowRef',Prop);
			}
		}
	}
	//--------------------------------------------------
	// (C) 2000 www.CodeLifter.com
	// Free for all users, but leave in this header
	// NS4-6,IE4-6

	// Set slideShowSpeed (milliseconds)
	var slideShowSpeed = 2000

	// Duration of crossfade (seconds)
	var crossFadeDuration = 2

	var Pic = new Array() 

	Pic[0] = '../images/2DoorRotate1.jpg'
	Pic[1] = '../images/2DoorRotate2.jpg'
	Pic[2] = '../images/2DoorRotate3.jpg'
	Pic[3] = '../images/2DoorRotate4.jpg'
	Pic[4] = '../images/2DoorRotate5.jpg'
	Pic[5] = '../images/2DoorRotate6.jpg'
	Pic[6] = '../images/2DoorRotate7.jpg'
	Pic[7] = '../images/2DoorRotate8.jpg'
	Pic[8] = '../images/2DoorRotate9.jpg'

	var t
	var j = 0
	var p = Pic.length

	var preLoad = new Array()
	for (i = 0; i < p; i++){
		preLoad[i] = new Image()
		preLoad[i].src = Pic[i]
	}

	function runSlideShow(){
		if (document.all){
			document.images.SlideShow.style.filter="blendTrans(duration=2)"
			document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
			document.images.SlideShow.filters.blendTrans.Apply()
		}
		document.images.SlideShow.src = preLoad[j].src
		if (document.all){
			document.images.SlideShow.filters.blendTrans.Play()
		}
		j = j + 1
		if (j > (p-1)) { //keep looping
			j = 0
		}
		//if (j > (p-1)) return false; //no loop
		t = setTimeout('runSlideShow()', slideShowSpeed)
	}
	//--------------------------------------------------
	/*
		name - name of the cookie
		value - value of the cookie
		[expires] - expiration date of the cookie (defaults to end of current session)
		[path] - path for which the cookie is valid (defaults to path of calling document)
		[domain] - domain for which the cookie is valid (defaults to domain of calling document)
		[secure] - Boolean value indicating if the cookie transmission requires a secure transmission
		* an argument defaults when it is assigned null as a placeholder
		* a null placeholder is not required for trailing omitted arguments
	*/
	function setCookie(name, value, expires, path, domain, secure) {
		var curCookie = name + "=" + escape(value) +
		((expires) ? "; expires=" + expires.toGMTString() : "") +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		((secure) ? "; secure" : "");
		document.cookie = curCookie;
	}
	//--------------------------------------------------
	/*
		name - name of the desired cookie
		return string containing value of specified cookie or null
		if cookie does not exist
	*/
	function getCookie(name) {
		var dc = document.cookie;
		var prefix = name + "=";
		var begin = dc.indexOf("; " + prefix);
		if (begin == -1) {
			begin = dc.indexOf(prefix);
			if (begin != 0) return null;
		} else
			begin += 2;
		var end = document.cookie.indexOf(";", begin);
		if (end == -1)
			end = dc.length;
		return unescape(dc.substring(begin + prefix.length, end));
	}
	//--------------------------------------------------
	/*
		name - name of the cookie
		[path] - path of the cookie (must be same as path used to create cookie)
		[domain] - domain of the cookie (must be same as domain used to create cookie)
		path and domain default if assigned null or omitted if no explicit argument proceeds
	*/
	function deleteCookie(name, path, domain) {
		if (getCookie(name)) {
			document.cookie = name + "=" +
			((path) ? "; path=" + path : "") +
			((domain) ? "; domain=" + domain : "") +
			"; expires=Thu, 01-Jan-70 00:00:01 GMT";
		}
	}
	//--------------------------------------------------
	/*
		date - any instance of the Date object
		hand all instances of the Date object to this function for "repairs"
	*/
	function fixDate(date) {
		var base = new Date(0);
		var skew = base.getTime();
		if (skew > 0)
			date.setTime(date.getTime() - skew);
	}
	//--------------------------------------------------
	function getQueryVariable(variable) {
		var query = window.location.search.substring(1);
		var vars = query.split("&");
		for (var i=0;i<vars.length;i++) {
			var pair = vars[i].split("=");
			if (pair[0] == variable) {
				return pair[1];
			}
		}
	}
	//--------------------------------------------------
	function setTrackingCookie() {
		if (!getCookie("ld_sc")) {
			var qs_sc = getQueryVariable("sc");
			//alert("qs_sc = " + qs_sc);
			if (qs_sc != "") {
				setCookie("ld_sc", qs_sc);
			}
		}
		if (!getCookie("ld_kw")) {
			var qs_kw = getQueryVariable("kw");
			//alert("qs_kw = " + qs_kw);
			if (qs_kw != "") {
				setCookie("ld_kw", qs_kw);
			}
		}
	}
	//--------------------------------------------------
