
MC=0

function removeMapInfo(MapPage){
  document.location = "http://www.i-maps.com/Elk-River/" + MapPage + ".html?MC=1"
}

var timer
function Resize(MapPage){
  if (MC>0) {  // don't go here on initial intro page
    clearTimeout(timer)
    timer=setTimeout("document.location = 'http://www.i-maps.com/Elk-River/" + MapPage + ".html?MC=2'", 1000)
  }
}

function Map(){
	if (MC>0) {
	 if (window.innerWidth) {FrameWidth = window.innerWidth - 60; FrameHeight=window.innerHeight-42}
	 else {FrameWidth = document.documentElement.clientWidth - 50; FrameHeight=document.documentElement.clientHeight-38}
	 
	 // if (FrameWidth > 1340) {FrameWidth = 1340}
	 // if (FrameHeight > 950) {FrameHeight = 950}
	 // if (FrameWidth > 970) {FrameWidth = 970}     // 1024 width
	 // if (FrameHeight > 570) {FrameHeight = 570}   // 1024 height 
	 if (FrameWidth > 1200) {FrameWidth = 1200}
	 if (FrameHeight > 800) {FrameHeight = 800}
	 
	 
	 TableWidth = FrameWidth + 12; TableHeight = FrameHeight + 12
	 document.write ("<Center><TABLE bgcolor=#346040 width=" + TableWidth + " height=" + TableHeight + " border=0 cellpadding=0 cellspacing=0><TR align=center><TD>")
	 document.write ("<IFRAME NAME=IFrame1 ID=IFrame1 WIDTH=" + FrameWidth + " HEIGHT=" + FrameHeight + " FRAMEBORDER=0 ALIGN=Middle SCROLLING=No SRC='http://www.i-maps.com/Elk-River/MapInterface/MapFrame.asp?AL=11&Grp1=110000100&Grp2=00000&Grp3=100'></IFRAME></TD></TR></TABLE><Center>")
	}
}

function Page(ID, Type){
	parent.parent.document.hotelSearchCriteriaForm.ClickID.value=ID
	winheight=screen.availHeight-162
	winwidth=screen.availWidth/1.04
	wintop=25
	winleft=((screen.availWidth - winwidth)/2)-6
	if (Type=="I") {
		window.open("http://www.i-maps.com/hotel-locator/usa/hotelinfo/"+ID+".html", "I_"+ID, "width="+winwidth+",height="+winheight+",top="+wintop+",left="+winleft+",toolbar=yes,location=yes,directories=no,status=yes,menubar=no,dependent=no,resizable=yes,scrollbars=yes");
	}
	else {
		window.open("http://www.i-maps.com/hotel-locator/usa/trend/T"+ID+".html", "T_"+ID, "width="+winwidth+",height="+winheight+",top="+wintop+",left="+winleft+",toolbar=yes,location=yes,directories=no,status=yes,menubar=no,dependent=no,resizable=yes,scrollbars=yes");
  }
}

function InfoPage(ID){
  winheight=screen.availHeight-162
	winwidth=screen.availWidth/1.04
	wintop=25
  winleft=((screen.availWidth - winwidth)/2)-6
  window.open("http://www.i-maps.com", "I_"+ID, "width="+winwidth+",height="+winheight+",top="+wintop+",left="+winleft+",toolbar=yes,location=yes,directories=no,status=yes,menubar=no,dependent=no,resizable=yes,scrollbars=yes")
}
 












