function launch(D,B,A){var C=open(D,B,A);return C;}function popuplaunch(E,C,B,A,D){if(D=="flexi"){Remote=launch(E,C,"height="+A+",width="+B+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=yes,scrollbars=yes,status=0,toolbar=0,title=0");}else{Remote=launch(E,C,"height="+A+",width="+B+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,title=0");}}function popuppics(B){var A=Math.round(Math.random()*9999);Remote=launch(B,"pop"+A+"up","height=593,width=700,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,title=0");}function popupvids(B){var A=Math.round(Math.random()*9999);Remote=launch(B,"vidpop"+A+"up","height=543,width=750,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,title=0");}var whatmappath="topographical";function togglemap(A){if(A=="topographical"){document.getElementById("maptoggle").innerHTML='<a href="#" onclick="togglemap(\'george\');return false;"><img src="images/map-toggle-george.jpg" width="57" height="57" border="0" alt="change to George Anderson\'s Indigenous Map of the Hunter River" title="change to George Anderson\'s Indigenous Map of the Hunter River" /></a>';tilelocation="topographical";whatmappath="topographical";}if(A=="george"){document.getElementById("maptoggle").innerHTML='<a href="#" onclick="togglemap(\'topographical\');return false;"><img src="images/map-toggle-topographical.jpg" width="57" height="57" border="0" alt="change to Topographical Map of the Hunter River" title="change to Topographical Map of the Hunter River" /></a>';tilelocation="george";whatmappath="george";}shutpin();loadmap(currentx,currenty);}function swapkey(A){document.getElementById("inset3").style.backgroundImage="url(images/txt-inset_"+A+"_2_1.gif)";}function pin(B,A){if(datashown=="1"){shutpin();return ;}else{document.getElementById("thedata").src=B;document.getElementById("locationtxt").style.display="block";focusarea="textscroller";document.getElementById("icoprint").className="icoon";datashown="1";return ;}}function initarticles(C,A,E,B,F,D){if(document.getElementById(D)){document.getElementById(D).innerHTML=document.getElementById(D).innerHTML+'<a href="articles/'+C+'" onclick="pin(this.href,\'pin1\');return false;" class="icopin" id="pin'+A+'" style="background-image:url(images/'+whatmappath+"/"+F+");background-repeat:no-repeat;left:"+E+"px;top:"+B+'px;"><img src="images/blank.gif" width="40" height="50" border="0" alt="click to read the article" /></a>';}}function showdata(){document.getElementById("locationtxttitle").innerHTML=frames.thedata.document.getElementById("locationtxttitle").innerHTML;document.getElementById("locationtxtcontent").innerHTML=frames.thedata.document.getElementById("locationtxtcontent").innerHTML;document.getElementById("locationtxtcontent").scrollTop=0;}function shutpin(){document.getElementById("locationtxt").style.display="none";document.getElementById("thedata").src="articles/index.html";datashown="0";focusarea="unknown";document.getElementById("icoprint").className="icooff";return ;}var pageload="unknown";var datashown="0";var xlimit=(111-2);var xmin=(101);var ylimit=(122-2);var ymin=(101);var tilelocation="topographical";var currentx=101;var currenty=101;var northavail="inactive";var eastavail="inactive";var southavail="inactive";var westavail="inactive";function loadmap(I,H){shutpin();if(pageload=="unknown"){if(location.search){var R=window.location.search.substr(1).split("&");for(i=0;i<R.length;i++){R[i]=R[i].split("=");}var O=new Array();for(i=0;i<R.length;i++){R[i][0]=R[i][0].replace(/\+/g," ");R[i][0]=unescape(R[i][0]);R[i][1]=R[i][1].replace(/\+/g," ");R[i][1]=unescape(R[i][1]);O[R[i][0]]=R[i][1];}var C=O.status;if(C=="article"){var Q=O.xcoord;var A=O.ycoord;var F=O.article;pageload="normal";loadmap((Q-1+1),(A-1+1));pin(F,"pin1");return false;}else{if(C=="mapstyle"){var Q=O.xcoord;var A=O.ycoord;var T=O.mapstyle;pageload="normal";loadmap((Q-1+1),(A-1+1));togglemap(T);return false;}else{if(C=="mapstylearticle"){var Q=O.xcoord;var A=O.ycoord;var T=O.mapstyle;var F=O.article;pageload="normal";loadmap((Q-1+1),(A-1+1));togglemap(T);pin(F,"pin1");return false;}else{pageload="normal";}}}}else{pageload="normal";}}currentx=I;currenty=H;var L=(((I-101)*(18))+2);var K=(((H-101)*(9))+2);document.getElementById("inset4").style.backgroundPosition=L+"px "+K+"px";document.getElementById("tile1a").style.backgroundImage="url(images/"+tilelocation+"/map"+I+H+".jpg)";document.getElementById("tile2a").style.backgroundImage="url(images/"+tilelocation+"/map"+(I+1)+H+".jpg)";document.getElementById("tile3a").style.backgroundImage="url(images/"+tilelocation+"/map"+(I+2)+H+".jpg)";document.getElementById("tile1b").style.backgroundImage="url(images/"+tilelocation+"/map"+I+(H+1)+".jpg)";document.getElementById("tile2b").style.backgroundImage="url(images/"+tilelocation+"/map"+(I+1)+(H+1)+".jpg)";document.getElementById("tile3b").style.backgroundImage="url(images/"+tilelocation+"/map"+(I+2)+(H+1)+".jpg)";document.getElementById("tile1c").style.backgroundImage="url(images/"+tilelocation+"/map"+I+(H+2)+".jpg)";document.getElementById("tile2c").style.backgroundImage="url(images/"+tilelocation+"/map"+(I+1)+(H+2)+".jpg)";document.getElementById("tile3c").style.backgroundImage="url(images/"+tilelocation+"/map"+(I+2)+(H+2)+".jpg)";document.getElementById("tile1a").innerHTML='<div class="tile-inner" id="map'+I+"by"+H+'"><!-- ie --></div>';document.getElementById("tile2a").innerHTML='<div class="tile-inner" id="map'+(I+1)+"by"+H+'"><!-- ie --></div>';document.getElementById("tile3a").innerHTML='<div class="tile-inner" id="map'+(I+2)+"by"+H+'"><!-- ie --></div>';document.getElementById("tile1b").innerHTML='<div class="tile-inner" id="map'+I+"by"+(H+1)+'"><!-- ie --></div>';document.getElementById("tile2b").innerHTML='<div class="tile-inner" id="map'+(I+1)+"by"+(H+1)+'"><!-- ie --></div>';document.getElementById("tile3b").innerHTML='<div class="tile-inner" id="map'+(I+2)+"by"+(H+1)+'"><!-- ie --></div>';document.getElementById("tile1c").innerHTML='<div class="tile-inner" id="map'+I+"by"+(H+2)+'"><!-- ie --></div>';document.getElementById("tile2c").innerHTML='<div class="tile-inner" id="map'+(I+1)+"by"+(H+2)+'"><!-- ie --></div>';document.getElementById("tile3c").innerHTML='<div class="tile-inner" id="map'+(I+2)+"by"+(H+2)+'"><!-- ie --></div>';var N=document.createElement("script");document.getElementById("tile1a").appendChild(N);N.setAttribute("id","mapscript1a",0);N.setAttribute("type","text/javascript",0);N.setAttribute("src","cartography/map"+I+"by"+H+".js",0);var E=document.createElement("script");document.getElementById("tile2a").appendChild(E);E.setAttribute("id","mapscript2a",0);E.setAttribute("type","text/javascript",0);E.setAttribute("src","cartography/map"+(I+1)+"by"+H+".js",0);var S=document.createElement("script");document.getElementById("tile3a").appendChild(S);S.setAttribute("id","mapscript3a",0);S.setAttribute("type","text/javascript",0);S.setAttribute("src","cartography/map"+(I+2)+"by"+H+".js",0);var J=document.createElement("script");document.getElementById("tile1b").appendChild(J);J.setAttribute("id","mapscript1b",0);J.setAttribute("type","text/javascript",0);J.setAttribute("src","cartography/map"+I+"by"+(H+1)+".js",0);var D=document.createElement("script");document.getElementById("tile2b").appendChild(D);D.setAttribute("id","mapscript2b",0);D.setAttribute("type","text/javascript",0);D.setAttribute("src","cartography/map"+(I+1)+"by"+(H+1)+".js",0);var P=document.createElement("script");document.getElementById("tile3b").appendChild(P);P.setAttribute("id","mapscript3b",0);P.setAttribute("type","text/javascript",0);P.setAttribute("src","cartography/map"+(I+2)+"by"+(H+1)+".js",0);var G=document.createElement("script");document.getElementById("tile1c").appendChild(G);G.setAttribute("id","mapscript1c",0);G.setAttribute("type","text/javascript",0);G.setAttribute("src","cartography/map"+I+"by"+(H+2)+".js",0);var B=document.createElement("script");document.getElementById("tile2c").appendChild(B);B.setAttribute("id","mapscript2c",0);B.setAttribute("type","text/javascript",0);B.setAttribute("src","cartography/map"+(I+1)+"by"+(H+2)+".js",0);var M=document.createElement("script");document.getElementById("tile3c").appendChild(M);M.setAttribute("id","mapscript3c",0);M.setAttribute("type","text/javascript",0);M.setAttribute("src","cartography/map"+(I+2)+"by"+(H+2)+".js",0);document.getElementById("tile3c").className="tile";if(H==ymin){document.getElementById("north").style.display="none";northavail="inactive";}else{document.getElementById("north").style.display="block";document.getElementById("north").innerHTML='<a href="#" onclick="shutpin();loadmap('+I+","+(H-1)+');return false;"><img src="images/ico-north_1_1.gif" width="46" height="26" border="0" alt="North - Hunter River" /></a>';northavail="active";}if(I==xlimit){document.getElementById("east").style.display="none";eastavail="inactive";}else{document.getElementById("east").style.display="block";document.getElementById("east").innerHTML='<a href="#" onclick="shutpin();loadmap('+(I+1)+","+H+');return false;"><img src="images/ico-east_1_1.gif" width="26" height="46" border="0" alt="East - Hunter River" /></a>';eastavail="active";}if(H==ylimit){document.getElementById("south").style.display="none";southavail="inactive";}else{document.getElementById("south").style.display="block";document.getElementById("south").innerHTML='<a href="#" onclick="shutpin();loadmap('+I+","+(H+1)+');return false;"><img src="images/ico-south_1_1.gif" width="46" height="26" border="0" alt="South - Hunter River" /></a>';southavail="active";}if(I==xmin){document.getElementById("west").style.display="none";westavail="inactive";}else{document.getElementById("west").style.display="block";document.getElementById("west").innerHTML='<a href="#" onclick="shutpin();loadmap('+(I-1)+","+H+');return false;"><img src="images/ico-west_1_1.gif" width="26" height="46" border="0" alt="West - Hunter River" /></a>';westavail="active";}}var focusarea="unknown";document.onkeyup=keycheck;function keycheck(B){if(focusarea!="textscroller"){var A=(window.event)?event.keyCode:B.keyCode;switch(A){case 37:if(westavail=="active"){loadmap((currentx-1),currenty);}break;case 38:if(northavail=="active"){loadmap(currentx,(currenty-1));}break;case 39:if(eastavail=="active"){loadmap((currentx-1+2),currenty);}break;case 40:if(southavail=="active"){loadmap(currentx,(currenty-1+2));}break;case 72:herebedragons("h");break;case 66:herebedragons("b");break;case 68:herebedragons("d");break;}}}function riverjourney(A){if(A=="1"){if((currentx=="106")&&(currenty=="103")){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'3\');return false;">River Journey - Stage 2</a>';loadmap(105,103);}else{document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'2\');return false;">River Journey - Stage 1</a>';loadmap(106,103);}}if(A=="2"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'3\');return false;">River Journey - Stage 2</a>';loadmap(105,103);}if(A=="3"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'4\');return false;">River Journey - Stage 3</a>';loadmap(104,104);}if(A=="4"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'5\');return false;">River Journey - Stage 4</a>';loadmap(104,105);}if(A=="5"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'6\');return false;">River Journey - Stage 5</a>';loadmap(103,106);}if(A=="6"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'7\');return false;">River Journey - Stage 6</a>';loadmap(103,107);}if(A=="7"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'8\');return false;">River Journey - Stage 7</a>';loadmap(103,108);}if(A=="8"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'9\');return false;">River Journey - Stage 8</a>';loadmap(102,109);}if(A=="9"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'10\');return false;">River Journey - Stage 9</a>';loadmap(102,110);}if(A=="10"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'11\');return false;">River Journey - Stage 10</a>';loadmap(102,111);}if(A=="11"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'12\');return false;">River Journey - Stage 11</a>';loadmap(103,111);}if(A=="12"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'13\');return false;">River Journey - Stage 12</a>';loadmap(104,111);}if(A=="13"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'14\');return false;">River Journey - Stage 13</a>';loadmap(104,112);}if(A=="14"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'15\');return false;">River Journey - Stage 14</a>';loadmap(105,113);}if(A=="15"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'16\');return false;">River Journey - Stage 15</a>';loadmap(106,113);}if(A=="16"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'17\');return false;">River Journey - Stage 16</a>';loadmap(107,113);}if(A=="17"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'18\');return false;">River Journey - Stage 17</a>';loadmap(107,114);}if(A=="18"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'19\');return false;">River Journey - Stage 18</a>';loadmap(108,114);}if(A=="19"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'20\');return false;">River Journey - Stage 19</a>';loadmap(108,115);}if(A=="20"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'21\');return false;">River Journey - Stage 20</a>';loadmap(109,115);}if(A=="21"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'22\');return false;">River Journey - Stage 21</a>';loadmap(109,116);}if(A=="22"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'23\');return false;">River Journey - Stage 22</a>';loadmap(109,117);}if(A=="23"){document.getElementById("icoriver").innerHTML='<a href="#" onclick="riverjourney(\'1\');return false;">River Journey - The End</a>';loadmap(109,118);}}function swapclass(B){var A=document.getElementById(B).className;if(A=="off"){document.getElementById(B).className="on";}else{document.getElementById(B).className="off";}}var hbd1="neg";var hbd2="neg";var hbd3="neg";function herebedragons(A){if((southavail=="inactive")&&(eastavail=="inactive")&&(datashown=="0")&&(tilelocation=="topographical")){if(A=="h"){hbd1="pos";}if(A=="b"){if(hbd1=="pos"){hbd2="pos";}else{hbd1="neg";hbd2="neg";hbd3="neg";}}if(A=="d"){if((hbd1=="pos")&&(hbd2=="pos")){hbd1="neg";hbd2="neg";hbd3="neg";document.getElementById("tile3c").className="tile hbd";}else{hbd1="neg";hbd2="neg";hbd3="neg";}}}else{hbd1="neg";hbd2="neg";hbd3="neg";}}