function expandIt(whichEl) 
{
whichEl.style.display = (whichEl.style.display == "none" ) ? "" : "none";
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}	 
s_clickmap_handler('flash_id');
function press(page) 
{ 
var OpenWin = this.open(page, "CtrlWindow","toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=865,height=800,top=38,left=125");
}
function Launch(page) 
{ 
var OpenWin = this.open(page, "CtrlWindow","toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=865,height=521,top=38,left=125"); 
}
function photo_tour(url)
{
window.open(url,"win", "width=865,height=521,resizable=no,scrollbars=no,top=38,left=125");
}
function video(url)
{
window.open(url,"win", "width=460,height=375,resizable=no,scrollbars=no,top=38,left=100");
}
function popup_flash()
{
var hWnd1 = window.open("popup.cfm","flash1","width=700,height=500,resizable=n,top=50,left=125");
if (hWnd1.focus != null) hWnd1.focus();
}
		var markers = new Array();
		var lefts = [];
		var rights = [];
		var curtab = 0;
		update_tabs = function(a,b,c)
		{
			if (a == "page")
			{
				var text = gentab(curtab, parseFloat(b));
				markers[curtab].openInfoWindowHtml(text);
			}
		}
		dummy_function = function(a,b,c) {}
		function gentab(i,p)
		{
			if (p==1)
			{
				var text='<div style="white-space: nowrap;" page="1" label="Address" class="active">'+lefts[i]+'</div><div style="white-space: nowrap;" page="2" label="Directions"></div>'
			}
			else
			{
				var text='<div style="white-space: nowrap;" page="1" label="Address"></div><div style="white-space: nowrap;" page="2" label="Directions" class="active">'+rights[i]+'</div>'
			}
			return text;
		}
		function gennotab(i)
		{
			return lefts[i];
		}
		function makeMarker(id,text,x,y,icon,directions,showdir)
		{
			var ttext;
			point = new GPoint(x,y);
			marker = new GMarker(point,icon);
			markers[id]=marker;
			lefts[id]=text;
			rights[id]=unescape(directions);
			if (showdir==1)
			{
				ttext=gentab(id,1);
			}
			else
			{
				ttext=gennotab(id);
			}
			map.addOverlay(markers[id]);
			GEvent.addListener(marker,"click",function ()
			{
				curtab=id
				markers[id].openInfoWindowHtml(ttext);
			});
		};