





		






		
var mainLabelArray = new Array("About Us", "Sales", "Services", "Specials", "Contact Us", "Feedback", "Site map");
var mainURLArray = new Array("/mts/about_us/index.html", "/mts/sales/index.html", "/mts/services/index.html", "/mts/specials/index.html", "/mts/contact_us/index.html", "/mts/feedback/index.html", "/mts/site_map.htm");

var aboutLabelArray = new Array("Where we are", "What we do", "How you benefit", "Quality guaranteed", "Looking after our environment", "View our Macquarie Technology Services video");
var aboutURLArray = new Array("/mts/about_us/location.htm", "/mts/about_us/it_services.htm", "/mts/about_us/it_services_benefits.htm", "/mts/about_us/quality_it_services.htm", "/mts/about_us/computer_disposal.htm", "javascript:var newwin=window.open('http://www.streamx.com.au/macquarie/spinifex/full/webcast/index.htm','_blank','menubar=no, addressbar=no, copyhistory=no, location=no, directories=no, toolbar=no, status=no, resizable=0, scrollbars=0, width=525, height=522');");

//TAKEN OUT
//"Meet the team"
//"/mts/about_us/mts_team.htm", 

var salesLabelArray = new Array("What you can buy from us", "eBay store", "Terms of sale", "FAQs"); 
var salesURLArray = new Array("/mts/sales/secondhand_computers.htm", "http://stores.ebay.com.au/Macquarie-Technology-Services", "/mts/sales/terms_of_sale.htm", "/mts/sales/faqs.htm"); 

var servicesLabelArray = new Array("Pre-delivery services", "Installation services", "De-installation services", "Data destruction", "Redeployment & refurbishment", "Remarketing", "Asset management", "Environmentally-friendly disposal", "View our pre-delivery services video");
var servicesURLArray = new Array("/mts/services/pre_delivery_services.htm","/mts/services/installation_services.htm","/mts/services/deinstallation_services.htm","/mts/services/data_destruction.htm","/mts/services/redeployment_and_refurbishment.htm","/mts/services/remarketing.htm","/mts/services/asset_management.htm","/mts/services/environmental_disposal.htm", "javascript:var newwin=window.open('http://www.streamx.com.au/macquarie/spinifex/delivery/webcast/index.htm','_blank','menubar=no, addressbar=no, copyhistory=no, location=no, directories=no, toolbar=no, status=no, resizable=0, scrollbars=0, width=525, height=522');");

var specialsLabelArray = new Array("Apple Items", "Servers", "Network Gear", "Other Items", "Printers", "Email Us", "Visit our eBay store");
var specialsURLArray = new Array("http://stores.ebay.com.au/macquarie-technology-services_Apple-Brand-Items_W0QQcolZ4QQdirZ1QQftidZ2QQtZkm", "http://stores.ebay.com.au/macquarie-technology-services_Servers-and-Workstations_W0QQcolZ4QQdirZ1QQftidZ2QQtZkm", "http://stores.ebay.com.au/macquarie-technology-services_Networking-Equipment_W0QQcolZ4QQdirZ1QQftidZ2QQtZkm", "http://stores.ebay.com.au/macquarie-technology-services_Other_W0QQcolZ4QQdirZ1QQsclZallQQsotimedisplayZ2QQtZkm", "http://stores.ebay.com.au/macquarie-technology-services_Printers-Plotters_W0QQcolZ4QQdirZ1QQftidZ2QQtZkm", "mailto:mts@macquarie.com?subject=Specials", "http://stores.ebay.com.au/Macquarie-Technology-Services");

var feedbackLabelArray = new Array("Projects", "Services", "Sales");
var feedbackURLArray = new Array("/mts/feedback/projects/index.html", "/mts/feedback/services/index.html","/mts/feedback/sales/index.html"); 


function createMenu(page, active) {
	var currentLabelArray; 
	var currentURLArray; 
	
	if (page == "about") {
		currentLabelArray = aboutLabelArray;
		currentURLArray = aboutURLArray;
	} else if (page == "sales") {
		currentLabelArray = salesLabelArray;
		currentURLArray = salesURLArray;
	} else if (page == "services") {
		currentLabelArray = servicesLabelArray;
		currentURLArray = servicesURLArray;	
	} else if (page == "specials") {
		currentLabelArray = specialsLabelArray;
		currentURLArray = specialsURLArray;	
	} else if (page == "feedback") {
		currentLabelArray = feedbackLabelArray;
		currentURLArray = feedbackURLArray;
	} else {
		currentLabelArray = mainLabelArray;
		currentURLArray = mainURLArray;	
	}
	
	
	for (var i = 0; i < currentURLArray.length; i++) {
		var isActive = "inactiveMenu"; 
		var menuLink = "menuLink"; 
		
		if (active == currentLabelArray[i] && i == (currentLabelArray.length - 1)) {
			isActive = "activeMenuBottom";
		} else if (active == currentLabelArray[i] && i != (currentLabelArray.length - 1)) {
			isActive = "activeMenu";	
		} else if (active != currentLabelArray[i] && i == (currentLabelArray.length - 1)) {
			isActive = "inactiveMenuBottom";
		} else if (active != currentLabelArray[i] && i != (currentLabelArray.length - 1)) {
			isActive = "inactiveMenu";			
		}
		
		if (currentLabelArray[i].indexOf("video") != -1) {
			document.write("<div class=\"" + isActive + "\">"); 
			document.write("<a href=\"" + currentURLArray[i] + "\" style=\"font-face:helvetica; color: #333333;font-size: 13px; text-decoration: none;\">" + 
				currentLabelArray[i] + "</a> &nbsp;&nbsp;&nbsp; <span class=\"whiteArrow\">>></span>");
			document.write("</div>");	
		} else if (currentLabelArray[i].indexOf("Visit our eBay store") != -1) {
			document.write("<div class=\"" + isActive + "\">"); 
			document.write("<a href=\"" + currentURLArray[i] + "\" style=\"font-face:helvetica; color: #333333;font-size: 13px; text-decoration: none;\">" + 
				currentLabelArray[i] + "</a> &nbsp;&nbsp;&nbsp; <span class=\"whiteArrow\">>></span>");
			document.write("</div>");
		} else {
			document.write("<div class=\"" + isActive + "\">"); 
			document.write("<a href=\"" + currentURLArray[i] + "\" style=\"font-face:helvetica; font-size: 13px; color: white;  font-weight:bold;text-decoration: none;\">" 
			+ currentLabelArray[i] + "</a>");
			document.write("</div>");		
		}
		
	}

}


function generateSitemap(section) {
	var currentLabelArray; 
	var currentURLArray; 
	var topLevelIndex; 
	
	if (section == "about") {
		currentLabelArray = aboutLabelArray;
		currentURLArray = aboutURLArray;
		topLevelIndex = 0; 
	} else if (section == "sales") {
		currentLabelArray = salesLabelArray;
		currentURLArray = salesURLArray;
		topLevelIndex = 1; 		
	} else if (section == "services") {
		currentLabelArray = servicesLabelArray;
		currentURLArray = servicesURLArray;
		topLevelIndex = 2; 
	} else if (section == "specials") {
		topLevelIndex = 3; 	
	} else if (section == "contact") {
		topLevelIndex = 4; 			
	} else if (section == "feedback") {
		currentLabelArray = feedbackLabelArray;
		currentURLArray = feedbackURLArray;
	}	
	
	document.write("<a style=\"font-face:helvetica; font-size:13px; color: #00adce; text-decoration: none; font-weight: bold;\" href=\"" + mainURLArray[topLevelIndex] + "\">" + mainLabelArray[topLevelIndex] + "</a><p />");
	
	if (currentLabelArray) {
		for (var i = 0; i < currentLabelArray.length; i++) {
			document.write("&nbsp;&nbsp;&nbsp;<a style=\"font-face:helvetica; font-size:12px;color: #9F9F9;text-decoration: none; font-weight: bold;\" href=\"" + currentURLArray[i] + "\">" + currentLabelArray[i] + "</a><br />");
		}
	}
}




