// JavaScript Document
var sampImage;
var fontFamily1="Monotype Corsiva";
function resizeMap(){
var windowWidth, windowHeight, allResized;
	
	windowWidth=getWindowWidth();	
	windowHeight=getWindowHeight();
	myBorder=Math.round(windowWidth/1000)+"px solid #BF617E";
    myBorderWidth = Math.round(windowWidth/1000);
	
	if (!scaleToWidth(homePic9, mainDiv.offsetWidth*0.982)) { return false; }
	homePic9.style.position="absolute";
	//homePic9.style.visibility="hidden";
	if (!myMap.appendChild(homePic9)) { return false; }
	
//	greenPic.style.height=Math.round(homePic9.offsetHeight) + "px";
			
	if (!scaleToWidth(arrow4, mainDiv.offsetWidth*0.04)) { return false; }
	arrow4.style.top=Math.round(homePic9.offsetHeight/1.2) + "px";
	arrow4.style.left=Math.round(mainDiv.offsetWidth/2.08) + "px";
	arrow4.style.position="absolute";
	if (!myMap.appendChild(arrow4)) { return false; }
	
	myMap.style.height = Math.round(homePic9.offsetHeight) + "px";

	myMap.style.visibility="hidden";	
	return true;
}

function createmapPage(){

	//create home page
	myMap = createDiv();
	myMap.style.position="absolute";
	clearMargins(myMap);
	
	//for the detection of the browser in our main picture
	if (browserInfo().browserShortName=="Firefox") {
		
		//alert("Firefox")				
		homePic9 = xImage("images/Pueblo-Map2.jpg");
		homePic9.oncontextmenu=protectImage;
		
	} else { if (browserInfo().browserShortName=="IE") {
	
		//alert("IE")
		homePic9 = xImage("images/Pueblo-Map1.jpg");
		homePic9.oncontextmenu=protectImage;
		homePic9.style.height="620px";		
		}
		else{
		homePic9 = xImage("images/Pueblo-Map1.jpg");
		homePic9.oncontextmenu=protectImage;
		homePic9.style.height="620px";		
		}
	}
	//end of our browser detection
	
	arrow4 = xImage("images/arrow4.gif");
	arrow4.oncontextmenu=protectImage;
	arrow4.id="Location";
	arrow4.onclick=basicMenuClick;
	arrow4.onmouseover=onMouseOver;
				
	myMap.resize=resizeMap;	
	
return myMap;
}
