// mootools version
startList = function() 
{
	if(window.ie6) 
	{
		var navRoot = $("nav");
		var chNodes = navRoot.getChildren();
		
		chNodes.each(function(node) {
			if(node.getTag() == "li") {
					
				node.addEvent('mouseover', function() {
					this.addClass('over');
				});
				node.addEvent('mouseout', function() {
					this.removeClass('over');
				});				
			}
		});
	}
}

window.addEvent('domready', function() {
	startList();
});

function pageTools(printer, email){
	document.write('<div id="pageTools">');
	if(printer == 1) {
		document.write('<img class="page_tool" src="images/icons/icon_sml_print.gif" alt="Print page" onclick="window.print();" onmouseover="this.style.cursor=\'pointer\'" border="0" />');
	}
	if(email == 1) {
		document.write('<img class="page_tool" src="images/icons/icon_sml_email.gif" alt="Email page" onmouseover="this.style.cursor=\'pointer\'" border="0" />');
	}
	document.write('</div>');
}

function changeLogo(name,path,action){
	if(action == 1){
		document.getElementById(name).src = path + 'images/design/logos/' + name + '.gif';
	}else{
		document.getElementById(name).src = path + 'images/design/logos/' + name + '_grey.gif';
	}
}

function wmPopup() {
	window.open('http://www.profinvest.com.au/clients/the_wealthmaker/popup.php','The_Wealthmaker','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width=690,height=400,left=200,top=60');
}