// JavaScript Document

// Side Menu - IE Fix
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

// Preload Images
if (document.images){
	pic1= new Image(); 
	pic1.src="http://www.harvestchurch.org.au/site/_images/submenua_hover.gif"; 
	
	pic2= new Image(); 
	pic2.src="http://www.harvestchurch.org.au/site/_images/submenua.gif"; 
	
	pic3= new Image(); 
	pic3.src="http://www.harvestchurch.org.au/site/_images/menua_hover.gif"; 
}

// Popup Window
function popupWin(url,width,height) {
	winheight = parseFloat(height) + 30;
	winwidth = parseFloat(width) + 30;
	newWin=window.open(url, 'popupwin','resizable=yes,HEIGHT='+winheight+',WIDTH='+winwidth+', scrollbars=1', true);
	newWin.focus();
}