var NS = (document.all)?0:1;
var col = 'BCDEFGHIJKLMNOPQRSTU';
var currentMap = '';
var aerial = '';


var validMap = '.B7.B8.B9.B10.B11.B12.B13.C7.C8.C9.C10.C11.C12.C13.D7.D8.D9.D10.D11.D12.D13.E7.E8.E9.E10.E11.E12.E13.F7.F8.F9.F10.F11.F12.F13.G6.G7.G8.G9.G10.G11.G12.G13.H6.H7.H8.H9.H10.H11.H12.H13.H14.H15.H16.H17.I6.I7.I8.I9.I10.I11.I12.I13.I14.I15.I16.I17.I18.I19.I20.I21.J6.J7.J8.J9.J10.J11.J12.J13.J14.J15.J16.J17.J18.J19.J20.J21.K6.K7.K8.K9.K10.K11.K12.K13.K14.K15.K16.K17.K18.K19.K20.K21.L6.L7.L8.L9.L10.L11.L12.L13.L14.L15.L16.L17.L18.L19.L20.L21.M1.M2.M3.M4.M5.M6.M7.M8.M9.M10.M11.M12.M13.M14.M15.M16.M17.M18.M19.M20.M21.N1.N2.N3.N4.N5.N6.N7.N8.N9.N10.N11.N12.N13.N14.N15.N16.N17.N18.N19.N20.N21.O3.O4.O5.O6.O7.O15.O16.O17.O18.O19.O20.O21.P15.P16.P17.P18.P19.P20.P21.Q15.Q16.Q17.Q18.Q19.Q20.Q21.R15.R16.R17.R18.R19.R20.R21.S15.S16.S17.S18.S19.S20.S21.T15.T16.T17.T18.T19.T20.T21.';


var n = (document.layers) ? 1:0;
var ie = (document.all) ? 1:0;
var browser=((n || ie) && parseInt(navigator.appVersion)>=4);


function loadImage(map,segment)	{
currentMap = map;

//if(!segment)	var segment = 'C';

//	normalize filename
var g = document.location.href.split('#');
document.location.href = g[0] + '#' + map + ',' + segment;

document.images['map'].src = '../maps/'+map+'.gif';
document.images['overlay'].title = ' Grid Reference: '+map+' ';
//document.forms['label']['street'].value = 'Albury-Wodonga: ' + map;

	if(NS)	document.linkImage.className = 'show';
	else	linkImage.className = 'show';

if(segment !='')	{

if(NS)	document.cursor.className = segment;
else	cursor.className = segment;
}
else
{
if(NS)	document.cursor.className = 'cursor';
else	cursor.className = 'cursor';
}

if(NS)	document.overlay.className = 'overlay';
else	overlay.className = 'overlay';


window.scrollTo(0,0);
document.images['overlay'].focus();
document.images['overlay'].blur();


}


function loadMap()	{
coords = document.location.hash.substring(1);
if(coords != "" && coords != "undefined")
{

var g = coords.split(',');
test = '.'+g[0]+'.';
if(validMap.indexOf(test.toUpperCase()) != -1)
	{
	loadImage(g[0],g[1]);
	}
}
}


function aerialView()	{
var url = '../aerial.htm#'+currentMap;
if(aerial != '')	{aerial.close();aerial='';}
aerial=window.open(url,'aerialWin','width=640,height=630,top=0,left=0,resizable=0,scrollbars=0,menubar=0,location=0');
aerial.focus();
}


function zoomOut()	{
//	where are we?
var m =document.location.hash.substring(2);
var g =m.split(',');var p=eval(g[0]);
if (p<14) theMap =document.location.href='../wodonga/a.htm';
else document.location.href='../albury/a.htm';
}


function navigate(dir)	{
if(currentMap == '')	return;
var newMap = '';
var test = '';

var x = col.indexOf(currentMap.substring(0,1));
var y = eval(currentMap.substring(1));

if(dir.indexOf('N') != -1)	++y;
if(dir.indexOf('S') != -1)	--y;

if(dir.indexOf('E') != -1)	++x;
if(dir.indexOf('W') != -1)	--x;


newMap = col.substring(x,x+1)+y;
test = '.'+newMap+'.';


if(validMap.indexOf(test) != -1)
	loadImage(newMap,'C')
}

function printMe()
{
window.print();
}



function links()
{

document.write('<a href="javascript:printMe()" TITLE=" Print Map ">| PRINT THIS MAP |</a>');
document.write('<A href="mailto:?subject=Albury-Wodonga Street Map&body=Please click on the link >> " onClick="history.go(0);this.href+=escape(document.location.href)" title=" Email Page Link "> EMAIL PAGE LINK |</a>');
//document.writeln('<a href="javascript:aerialView()" TITLE=" Aerial Photo "> AERIAL PHOTO |</a>');




document.writeln('<P>');
document.writeln('<P class=section>Corporation Development Areas');
document.writeln('<P class=text>Streets in residential estates and industrial parks developed by the Albury-Wodonga Corporation are shown on street maps in magenta.');
document.writeln('<P class=text>The Corporation has home sites, industrial and commercial sites for sale in a broad range of sizes, priced to suit all needs. Enquiries for residential, commercial and industrial sites can be directed to any Albury-Wodonga real estate agents or directly with the Corporation with Nina Merrilees on 02 6023 8066.');
document.writeln('<P class=text>Corrections? Please report any errors or omissions to <a href="mailto:mapping@awc.gov.au">mapping@awc.gov.au</a>.');



document.writeln('<table cellpadding=16 cellspacing=0 border=0 width=80%><tr><td width=50%>');
document.writeln('<ul class=list>');
document.writeln('<li><a class=menu href="../albury/a.htm">Albury Street Map</a>');
document.writeln('<li><a class=menu href="../wodonga/a.htm">Wodonga Street Map</a>');
document.writeln('<li><a class=menu href="../other/locate.htm">Estates and Localities</a>');
document.writeln('<li><a class=menu href="../other/community.htm">Community Facilities</a>');
document.writeln('<br>');
document.writeln('<li><a class=menu href="../../landsale/index.htm">Land for Sale</a>');
document.writeln('</ul>');
document.writeln('</td><td width=50%>');
document.writeln('<DIV style="background-color:#efffef;border:solid 1px #ffcc33;padding:8px;white-space:nowrap;margin:16px;width:120px">');
document.writeln('<P class=section>How to buy</P>');
document.writeln('<P>Print versions of this map<br>are available from:');
document.writeln('<ul>');
document.writeln('<li>AWC Office');
document.writeln('<li><a href="mailto:awc@awc.gov.au?subject=Albury-Wodonga Street Map">email order</a>');
document.writeln('<li>Council Offices');
document.writeln('<li>Regional<br>Newsagents');
document.writeln('</UL>');
document.writeln('<DIV align=center><h1>$5</h1>inc. GST</DIV></DIV></td></tr></table>');

document.writeln('<P>');



//document.writeln('<br><a href="http://www.awc.gov.au" title=" www.awc.gov.au ">AWC HOME</a>');
document.writeln('<P style="color:#666666;">&copy; 2004 <a href="http://www.awc.gov.au" title=" www.awc.gov.au ">Albury-Wodonga Corporation</A>');
//document.writeln('<br><br>Reproduction of this map in whole or in part is permissible only with the prior written approval of the Albury-Wodonga Corporation.');
document.writeln('<br><br>SCALE: <font face="arial"> 1 grid interval = 1 kilometre</font><br><br>');

/*

var m=validMap.split('.');

document.writeln('<br><br>Grid Reference:');
document.writeln('<DIV id="grid">');
document.writeln('<table cellspacing=0 cellpadding=0 border=0><tr>');

for(var i=1;i<m.length;i++)
{
document.writeln('<td><a href="javascript:loadImage(\''+m[i]+'\')">'+m[i]+'</A></td>');
if(i % 24 == 0)	document.writeln('</tr><tr>');
}

document.writeln('</tr></table>');
document.writeln('</div>');

*/


//document.writeln('<br><a href="http://www.beautifullyplaced.iaw.com.au/welcome/welcome.htm" target="_bp_"><img src="../images/bp.gif" alt=" www.beautifullyplaced.iaw.com.au " border=0 width=150 height=104 style="margin-top:24px" align="middle"></A>');
//document.writeln('<a href="javascript:window.scrollTo(0,0)">| TOP OF PAGE |</a>');


}



function copyright()	{

document.writeln('<DIV class="footer">');
document.writeln('<img src="../images/awdclogo.gif" alt="" border=0 style="border:none 0">');
document.writeln('<P>Map &copy; 2004 Albury-Wodonga Corporation.<br>');
document.writeln('Web site: http://www.awc.gov.au<br>email: awc@awc.gov.au');

document.writeln('<br clear=all><img src="../images/bp.gif" alt="" border=0 style="margin:12px;border:none 0;"><br>');
document.writeln('Please visit http://www.beautifullyplaced.iaw.com.au<br>');
document.writeln('<br>Site Engineering: Rafiki Concepts &#151; rafiki@hotkey.net.au');
document.writeln('</DIV>');

}
