document.write("<link rel='stylesheet' type='text/css' href='/bendigomining/styles/navigation.css' media='screen' />");

sfHover = function()
{
	var sfEls = document.getElementById("navigation").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"), ""); }
	}
}


doPageLoad = function()
{
	var sfEls = document.getElementById("navigation").getElementsByTagName("LI");
	for (var i = 0; i < sfEls.length; i++)
	{
		if (sfEls[i].parentNode.parentNode.id != 'navigation') {
			var oULs = sfEls[i].getElementsByTagName("UL");
			
			if (oULs.length > 0) {
				sfEls[i].className += ' parentmenu';
			}
		}
	}
	
	// Lastly, scan for row classable tables..
	rowClassing();
}

if(window.addEventListener){ // Mozilla, Netscape, Firefox
	window.addEventListener('load', doPageLoad, false);	
} else { // IE
	window.attachEvent('onload', doPageLoad);
	window.attachEvent("onload", sfHover);
}


/* Table row classing */
function rowClassing ()
{
	var tbls = document.getElementsByTagName("TABLE");
	
	for (var i = 0; i != tbls.length; i++) {
		var tbl = tbls[i];
		if (tbl.className.indexOf('rowClass') >= 0) {
			var tbody = tbl.getElementsByTagName("TBODY")[0];

			if (tbody) {
				var rows = tbl.getElementsByTagName("TR");
				var rClass = '';
				for (var j = 0; j != rows.length; j++) {
					var row = rows[j];
					if (rClass == 'tblRow') {
						rClass = 'tblAltRow';
					} else {
						rClass = 'tblRow';
					}
					row.className += " " + rClass;
				}
			}
		}
	}
}

function Newsletter()
{
	var strFile="http://www.bendigomining.com.au/newsletter/";
	desktop =window.open(strFile,"Newsletter","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=1024,height=768,resizable=no,top=0,left=0");
}

function RestrictedASX(Doc)
{
	var strFile="http://www.bendigomining.com.au/documents/restricted.aspx?asx="+Doc;
	desktop =window.open(strFile,"Restricted","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=1024,height=768,resizable=no,top=0,left=0");
}

function openWin(){
	var strFile = "http://www.bendigomining.com.au/careers/"
	desktop =window.open(strFile,"","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=858,height=650,resizable=yes");
}

function openTraining()	{
	var strFile="http://www.bendigomining.com.au/training/default.aspx";
	desktop =window.open(strFile,"Training","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=1024,height=768,resizable=yes,top=0,left=0");
}

function SharePrice()
{
	var strFile="http://www.asx.com.au/asx/research/companyInfo.do?by=asxCode&asxCode=BDG";
	desktop =window.open(strFile,"SharePrice","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=1024,height=768,resizable=yes,top=0,left=0");
}

function ShareChart()
{
	var strFile="http://hfgapps.hubb.com/asxtools/Charts.aspx?TimeFrame=D6&compare=comp_index&indicies=XJO&pma1=20&pma2=20&asxCode=BDG";
	desktop =window.open(strFile,"ShareChart","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=1024,height=768,resizable=yes,top=0,left=0");
}

function Kitco()
{
	var strFile="http://www.kitco.com/gold_currency/charts.htm?AUD";
	desktop =window.open(strFile,"Kitco","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=1024,height=768,resizable=yes,top=0,left=0");
}
