sfHover = function() {
	var sfEls = document.getElementById("Nav_main1_nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

/* ---------------------
	SubFrames
--------------------- */

function showSubpage(URI,sPage,sNav){
		
	//nHeight = window.navigator.height    
	//nWidth = window.navigator.width 
	//alert(sNav)
		
	var loc = URI + sPage + "?sel=" + sNav
	//alert(loc);
			
	// Changed window.open loc parameter to URI
	window.open(loc, "Subframe","toolbar=yes,status=yes,location=yes,menubar=yes, resizable=yes")
}
		
/* ---------------------
	Footer
--------------------- */

function disclaimer(){
	window.open('/disclaimer.htm','newwindow','height=500,width=500,toolbar=no, scrollbars=yes, resizable=yes')
}
		
function privacy(){
	window.open('/pdf/privacy-statement-2011.pdf','newwindow','height=500,width=500,toolbar=no, scrollbars=yes, resizable=yes')
}
		
/* ---------------------
	Investor Info
--------------------- */

function showChart(whichOne){
	if (whichOne == "6month"){
		window.open("StockChart.aspx?month=6", "Subframe","height=500,width=650,toolbar=no,status=no,location=no,menubar=no")
	}
		
	if (whichOne == "12month"){
		window.open("StockChart.aspx?month=12", "Subframe","height=500,width=650,toolbar=no,status=no,location=no,menubar=no")
	}
}
		
function getAnnPdf(pdfLocation, pdfName){
	window.open("http://www.asx.com.au/" + pdfLocation, pdfName ,"height=500,width=600,toolbar=no,status=no,location=no,menubar=no, resizable=yes")
}
		
var elName
var imgSource
function imageSwap(elName,imgSource){
	document.images[elName].src = imgSource 
}

