function init(){	initRolloverImages();	initClickableDivs()}// enable whole div to act like a link, taking its href from a child A tagfunction initClickableDivs(){	var i	divTags=document.getElementsByTagName("div");	for(i=0;i<divTags.length;i++){		if(divTags[i].className=="clickablediv_futuredevelopments" ){			href = getChildAnchorHref( divTags[i] );			target = getChildAnchorTarget( divTags[i] );			divTags[i].setAttribute("href" , href);			divTags[i].setAttribute("target" , target);			// events			divTags[i].onclick = function() {				if(this.getAttribute("target")=="blank"){					window.open(this.getAttribute("href"),"blank");					}				else {					window.location = this.getAttribute("href");					}				}			divTags[i].onmouseover = function() {				this.style.backgroundColor = "#F2FCF2";				}			divTags[i].onmouseout = function() {				this.style.backgroundColor = "#fff";				}			}		}	}//// return href value for first child anchor tag - needed for initClickableDivsfunction getChildAnchorHref(elm){	var i	nodes = new Array();	for(i=0;i<elm.childNodes.length;i++){		if(elm.childNodes[i].nodeName=="A"){			return elm.childNodes[i].href			}		}	return false;	}//function getChildAnchorTarget(elm){	var i	nodes = new Array();	for(i=0;i<elm.childNodes.length;i++){		if(elm.childNodes[i].nodeName=="A"){			return elm.childNodes[i].target			}		}	return false;	}////// DOM rollover script// apply "rollover" class to an image// will swap for image with "_ov" appended to the filename//function initRolloverImages(){	var i;	rolloverImgTags=document.getElementsByTagName("img");	for(i=0 ; i<rolloverImgTags.length ; i++){		//		// Iterate through all img tags		//		preLoadImgs=new Array();		if( rolloverImgTags[i].className=="rollover" ){			//			// Set attributes for over and out states			//			src=new String(rolloverImgTags[i].src)			rolloverImgTags[i].setAttribute("outSrc" , src);			rolloverImgTags[i].setAttribute("overSrc" , src.replace(/\.gif$/,"")+"_ov.gif");			preLoadImgs[i] = new Image();			preLoadImgs[i].src=rolloverImgTags[i].overSrc;			//			// Create mouse event handlers			//			rolloverImgTags[i].onmouseover = function() {				this.src = this.getAttribute("overSrc");				}			rolloverImgTags[i].onmouseout = function() {				this.src = this.getAttribute("outSrc");				}		}	}}function popUp(w,h,url,name,scrollbars){	if(!scrollbars)scrollbars=0;	x=Math.round((screen.width/2)-(w/2));	y=Math.round((screen.height/2)-(h/2));	features = "scrollbars="+scrollbars+",width=" + w + ",height=" + h + ",left=" + x + ",top=" + y;	window.open(url,name,features);}function largeDevImage(URL){	popUp(550,367,URL,"largeimageWindow");}function map(URL){	popUp(690,420,URL,"largeimageWindow");}function contactmap(){	popUp(690,420,"/images/contact/map_lrg.gif","largeimageWindow");}function terms(){	popUp(640,480,"/terms.html","termseWindow",1);}function virtualTour(URL){	popUp(725,435,URL,"virtualTourWindow");}