function initialize()
{
	document.getElementById('TopNavBtn1').onclick = navBtnClick;
	document.getElementById('TopNavBtn2').onclick = navBtnClick;
	document.getElementById('TopNavBtn3').onclick = navBtnClick;
	document.getElementById('TopNavBtn4').onclick = navBtnClick;
	document.getElementById('LeftNavBtn1').onclick = navBtnClick;
	document.getElementById('LeftNavBtn2').onclick = navBtnClick;
	document.getElementById('LeftNavBtn3').onclick = navBtnClick;
	document.getElementById('LeftNavBtn4').onclick = navBtnClick;
	document.getElementById('LeftNavBtn5').onclick = navBtnClick;
	document.getElementById('LeftNavBtn6').onclick = navBtnClick;
	document.getElementById('LeftNavBtn7').onclick = navBtnClick;
	document.getElementById('LeftNavBtn8').onclick = navBtnClick;
	document.getElementById('LeftNavBtn9').onclick = navBtnClick;
	document.getElementById('LeftNavBtn10').onclick = navBtnClick;
}

function navBtnClick()
{
	switch(event.srcElement.id)
	{
		case "TopNavBtn1":
			window.location = "/?page=welcome";
			break;
		case "TopNavBtn2":
			window.location = "/sitemap.htm";
			break;
		case "TopNavBtn3":
			window.location = "/?page=contact";
			break;
		case "TopNavBtn4":
			window.location = "http://www.maccasoft.com.au/";
			break;
		case "LeftNavBtn1":
			window.location = "/?page=about";
			break;
		case "LeftNavBtn2":
			window.location = "/?page=businessModel";
			break;
		case "LeftNavBtn3":
			window.location = "/?page=clients";
			break;
		case "LeftNavBtn4":
			window.location = "/?page=opportunities";
			break;
		case "LeftNavBtn5":
			window.location = "/?page=partners";
			break;
		case "LeftNavBtn6":
			window.location = "/profiles.htm";
			break;
		case "LeftNavBtn7":
			window.location = "/?page=services";
			break;
		case "LeftNavBtn8":
			window.location = "/?page=clientTest";
			break;
		case "LeftNavBtn9":
			window.location = "/?page=virtualHelpdesk";
			break;
		case "LeftNavBtn10":
			window.location = "/?page=website";
			break;
	}
}

function checkAdvCSS()
{
	var browserName=navigator.appName; 
	var appVer = navigator.appVersion.toLowerCase(); 

	var iePos  = appVer.indexOf('msie'); 
	var is_ie   = (iePos!=-1);     
	is_minor = parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos))); 
	var is_major = parseInt(is_minor); 
	var is_ie5_5up =(is_ie && is_minor >= 5.5); 
	
	return ((browserName == "Microsoft Internet Explorer") && is_ie5_5up) 
}