<!--
imArray = new Array();
imArray[0] = new Array('', 'gc1_sh', 'gc2_vp', 'gc3_be', 'm12/mutaw_r', 'radar', '/07/Ferry', 'Palana', '/2008/wallaroo', '/2008/wamberra', '2008/Aquamarine', '2008/Malekula_Hydro', '2009/Mirror_Image', '2009/Desert_Dinner', '2009/Waterfall', '2009/lumbini', '2009/Excavator', '2010/Paddle237', '2010/M12_Bondi', '2010/Rust_In_Peace', '2010/Santo_Florist', '2010/WetLeaf', '2011/monkey_business', '2011/Post_Card', '2011/M12_Run_Gun', '2011/pademelon', '2011/Rivaldo', '2011/Mitre_Shell', '2011/Cucumber', '2011/M12_New_York_(USA)', '2012/Junior_Elite');
imArray[1] = new Array('', 'gulls', 'treval', 'puff', 'nzsnow', 'snowla', 'willis', 'srflor', 'mundi', 'cocos', 'wshark', 'sunbrn', 'dund', 'creek', 'srock', 'fmen', 'vash', 'campki', 'mtrack', 'banya', 'dwell', 'taro', 'colour', 'rainf', 'firew', 'portr', 'family', 'Tukosm', 'HatIsl', 'EfateF');
imArray[2] = new Array('', 'TrackP');

x_index = new Array();
x_index[0] = new Array(0, 640, 372, 326, 640, 640, 640, 640, 640, 448, 640, 360, 360, 360, 426, 400, 400, 480, 461, 480, 480, 480, 427, 427, 427, 427, 480, 427, 427, 479, 427);
x_index[1] = new Array(0, 227, 499, 580, 640, 640, 640, 640, 640, 640, 580, 228, 425, 600, 567, 595, 640, 640, 360, 640, 640, 640, 640, 360, 640, 640, 640, 640, 640, 640, 419, 400);
x_index[2] = new Array(0, 540);

y_index = new Array();
y_index[0] = new Array(0, 425, 480, 480, 480, 480, 480, 480, 426, 336, 426, 480, 480, 480, 568, 602, 602, 640, 547, 640, 640, 640, 643, 643, 643, 643, 640, 643, 643, 638, 643);
y_index[1] = new Array(0, 594, 352, 368, 432, 432, 432, 432, 326, 432, 370, 425, 282, 450, 236, 402, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 398, 602);
y_index[2] = new Array(0, 405);

function zoom(lot, nr) {
	//var textnr;
	//if (nr<10) textnr = "0" + nr;
	//	else textnr = nr;
	var fylename = imArray[lot][nr];
	var caption ="";
	//var caption = geoCapt[nr];
	var wid = x_index[lot][nr] + 50;
	var hii = y_index[lot][nr] + 40;
	var parth = "http://www.runningwateradventures.com.au/images/" + fylename + ".jpg";
	fenster = open("","Anzeige","scrollbars=no,top=20,left=20,width="+wid+",height="+hii);
	fenster.document.open();
	with (fenster.document) {
		write("<html><head><style>p {font-family: arial, helvetica; font-size: 8pt; text-align: center; } </style></head><body bgcolor='#508dca' onBlur = window.close()>");
		write("<table align='center' width='182' border='0' cellpadding='1' cellspacing='0' bgcolor='#666666'><tr><td>");
		write("<p><img src='" + parth + "'><br>" + caption);
		write("</td></tr></table></body></html>");
	}
	fenster.document.close();
}

function wopen(uRl,wname,feats) {
	popwin = window.open(uRl,wname,feats);
	setTimeout('popwin.focus();',220);
}

function toggle(thingo){
   //thingo is the name of the hidden div tag
	styleObj = document.getElementById(thingo).style;
	if (styleObj.display=='none') {
		styleObj.display = '';
	} else {
		styleObj.display = 'none';
	}
}

// JavaScript Written By Marc Castles MCWeb - version 1
// You can change the background color below

function popupMedia(url,width,height) {
	winheight = parseFloat(height) + 30;
	winwidth =  parseFloat(width) + 30;

	newWin=window.open('', 'popupwin','resizable=0,HEIGHT='+winheight+',WIDTH='+winwidth+', scrollbars=0', true);
	newWin.document.write('<html>\n');
	newWin.document.write('<head>\n');
	newWin.document.write('<title>Image</title>');
	newWin.document.write('<script language="javascript" type="text/javascript">\n<!--\n');
	newWin.document.write('var arrTemp=self.location.href.split("?");\n');
	newWin.document.write('var picUrl = (arrTemp.length>1)?arrTemp[1]:"";\n');
	newWin.document.write('var NS = (navigator.appName=="Netscape")?true:false;\n');
	newWin.document.write('function fitMedia() {\n');
	newWin.document.write('	iWidth = (NS)?window.innerWidth:document.body.clientWidth;\n');
	newWin.document.write('	iHeight = (NS)?window.innerHeight:document.body.clientHeight;\n');
	newWin.document.write('	iWidth = '+winwidth+' - iWidth;\n');
	newWin.document.write('	iHeight = '+winheight+' - iHeight;\n');
	newWin.document.write('	window.resizeBy(iWidth, iHeight);\n');
	newWin.document.write('	var posLeft = (window.screen.width - '+winwidth+')/2;\n');
	//newWin.document.write('	window.moveTo(posLeft,80);\n');
	newWin.document.write('};\n');
	newWin.document.write('-->\n</script>\n');

	newWin.document.write('<style>html,body{height:100%;padding:0px;}</style>\n');
	newWin.document.write('</head>\n');
	newWin.document.write('<body style="background-color:#508dca; margin:0px; padding:0px;">\n');
	newWin.document.write('<table border=0 style="height:100%; width:100%; text-align:center;"><tr><td>\n');
	newWin.document.write('<img src="'+url+'" width="'+width+'" height="'+height+'" alt="" />');
	newWin.document.write('</td>\n</tr>\n</table>\n</body>\n<script language="javascript" type="text/javascript">\n<!--\n');
	newWin.document.write('fitMedia();\n');
	newWin.document.write('-->\n</script>\n');	
	newWin.document.write('</html>');
	newWin.document.close()
	newWin.focus();
}

//-->
// JavaScript Document

