navIndex = new Array('dollhouses','furniture','accessories','dolls','halfscale','viewcart','checkout')imagePrefix = "nav_"currentPage = ""filePath = (location.href.indexOf("cgi-bin") >= 0)? "../" : ""function preLoadImages() {	imgArray = navIndex	for (x=0;x<imgArray.length;x++) {		thisImage = eval("document." + imgArray[x] + "Img")		thisImage.name = imgArray[x] + "Img"		thisImage.defaultState = filePath + "images/" + imagePrefix + imgArray[x] + ".gif"		thisImage.overState = filePath + "images/" + imagePrefix + imgArray[x] + "_over.gif"		thisImage.onmouseover = function () { this.src=this.overState }		thisImage.onmouseout = function () { if (currentPage + "Img" != this.name ) this.src=this.defaultState }	}}function measureWindow() {	if (document.layers) thewidth = innerWidth - 16	if (document.all) thewidth = document.body.clientWidth 	if (document.getElementById && !document.all) thewidth = innerWidth - 20	referencepoint = Math.round((thewidth - 742) / 2)	if (thewidth < 744) referencepoint = 0	return referencepoint}function positionLayer(layername,leftoffset,ocular) {	leftPoint = measureWindow()	menuLyr = eval(doc + layername + sty);	menuLyr.left = leftPoint + leftoffset	if (ocular) {		menuLyr.visibility = "visible"	} else {		menuLyr.visibility = "hidden"	}}if (document.getElementById) {	DOM = true;	doc = "document.getElementById('"	sty = "').style";}if (document.layers) {	NS4 = true;	doc = "document['";	sty = "']";}if (document.all && !DOM) {	IE4 = true;	doc = "document.all['";	sty = "'].style";}function viewCart() {	window.open('https://www.paypal.com/cart/display=1&business=info%40tammysheirlooms.com','cartwin','width=600,height=400,scrollbars,location,resizable,status');}function addBookmark() {	if (document.all) {		window.external.AddFavorite("http://www.tammysheirlooms.com","Tammy's Heirlooms - Fine Dollhouse Miniatures")	}}function initLayers() {	positionLayer('imageLayer',250,true)}