function leftPane(str){
	document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">')

	document.writeln('<tr><td align="center" bgcolor="#e9aa54" height="30" width="100%"><a class="MenuHeading" href="earthquake_risk_menu.htm">Earthquake Risk</a></td></tr>')

	document.writeln('<tr><td height="25" width="100%"><a class="MenuItem" href="earthquake_punjab_at_risk.htm">&nbsp;Punjab - At Risk</td></tr>')
	
	document.writeln('<tr><td height="25" width="100%"><a class="MenuItem" href="earthquake_impact.htm">&nbsp;Impact of Earthquake</td></tr>')
	
	document.writeln('<tr><td height="25" width="100%"><a class="MenuItem" href="earthquake_earth_shaking.htm">&nbsp;Earthquake - Shaking of Earth</td></tr>')

	document.writeln('<tr><td height="25" width="100%"><a class="MenuItem" href="earthquake_preparedness.htm">&nbsp;Preparedness</a></td></tr>')

	document.writeln('<tr><td height="25" width="100%"><a class="MenuItem" href="earthquake_resistant_guidelines.htm">&nbsp;Earthquake Resistant Guidelines</a></td></tr>')

	document.writeln('<tr><td height="25" width="100%"><a class="MenuItem" href="earthquake_disaster_management.htm">&nbsp;The GoI-UNDP Project in Jalandhar</a></td></tr>')
	
	document.writeln('<tr><td height="25" width="100%"><a class="MenuItem" href="earthquake_seismic_map.htm">&nbsp;Seismic Zone Map of India</a></td></tr>')
	
	document.writeln('<tr><td height="25" width="100%"><a class="MenuItem" href="earthquake_disaster_gallery.htm">&nbsp;Disaster Gallery</a></td></tr>')

	//document.writeln('<tr><td height="25" width="100%"><a class="MenuItem" >&nbsp;Forthcoming: Jalandhar Disaster Directory</a></td></tr>')

	document.writeln('<tr><td height="25" width="100%"><a class="MenuItem" href="earthquake_contribution.htm">&nbsp;Contributions </a></td></tr>')
	
	document.writeln('</table>')
}

var imageDirectory = getImageDirectory()

function getImageDirectory(){
	var address = document.URL
	var index = address.lastIndexOf("html")
	address   = address.substring(0, index)
	address  += "images/earthquake/"
	return address
}

function CacheImage(ImageSource) { // turns the string into an image object
   var ImageObject = new Image();
   ImageObject.src = ImageSource;
   return ImageObject;
}

function fullView1(title, filename){
		var image = CacheImage(imageDirectory+filename)
}

function fullView(title, filename){
	var image = CacheImage(imageDirectory+filename)
	image.alt = title	
	var w1 = window.open("", "FullView", 'toolbar=0,scrollbars=0,width=460,height=500,top=10,left=50')
	w1.focus()	
	w1.document.open()
	w1.document.writeln('<html><head><title>'+image.alt+'</title></head>')
	w1.document.writeln('<body marginheight=5 marginwidth=5 topmargin=5 leftmargin=5>')
	w1.document.writeln('<center><img src="'+image.src+'" alt="'+image.alt+'" border="0"></center>')
	w1.document.writeln('<br><center><font face="Verdana" size="2"><b>'+image.alt+'</b></font></center>')
	w1.document.writeln('<center><a href="javascript:self.close()" title="Close this window"><font face="arial" size="2">Close Window</font></a></center>')
	w1.document.writeln('</body></html>')
	w1.document.close()
	var w = image.width
	var h = image.height + 100
	if (w > 460 || h > 500) w1.resizeTo(w, h)
	return false;
}
