// JavaScript Document

<!--

if (TransMenu.isSupported()) {
	var ms = new TransMenuSet(TransMenu.direction.down, 0,1, TransMenu.reference.bottomLeft);
	
	// Add Venues to Menu
	var venues = ms.addMenu(document.getElementById("venues"));
	venues.addItem("<div>UQ St Lucia</div>", "/stlucia", "0");
	venues.addItem("<div class='child'>UQ Athletics Centre</div>", "/athletics", "0");
	venues.addItem("<div class='child'>UQ Aquatic Centre</div>", "/aquatics", "0");
	venues.addItem("<div class='child'>UQ Playing fields and ovals</div>", "/ovals", "0");
	venues.addItem("<div class='child'>UQ Sport &amp; Fitness Centre</div>", "/fitness", "0");
	venues.addItem("<div class='child'>UQ Tennis Centre</div>", "/tennis", "0");
	venues.addItem("<div>UQ Gatton</div>", "/gatton", "0");
	venues.addItem("<div>UQ Ipswich</div>", "/ipswich", "0");
	
	
	
	// Add Clubs to Menu
	var clubs = ms.addMenu(document.getElementById("clubs"));
	clubs.addItem("<div>Our Clubs</div>", "/clubs", "0");
	clubs.addItem("<div>Club Administration</div>", "/club-administration", "0");
	clubs.addItem("<div>Club News</div>", "http://uqsport.wordpress.com/category/uq-sporting-clubs/", "1");
	clubs.addItem("<div>Awards & Alumni</div>", "/sportsawards", "0");
	clubs.addItem("<div>Sporting Scholarships</div>", "/scholarships", "0");
		
	// Add Competitions to Menu
	var competitions = ms.addMenu(document.getElementById("competitions"));
	competitions.addItem("<div>Social sport</div>", "/socialsport", "0");
	competitions.addItem("<div>College sport</div>", "/collegesport", "0");
	competitions.addItem("<div>University Games</div>", "/unigames", "0");
	
	// Add Lifestyle Courses to Menu
	var lifestyle = ms.addMenu(document.getElementById("lifestyle"));
	lifestyle.addItem("<div>Dance</div>", "http://www.uqlifestyleprogram.com.au/dance", "0");
	lifestyle.addItem("<div>Holistic health</div>", "http://www.uqlifestyleprogram.com.au/holistichealth", "0");
	lifestyle.addItem("<div>Martial arts</div>", "http://www.uqlifestyleprogram.com.au/martialarts", "0");
	lifestyle.addItem("<div>Personal development</div>", "http://www.uqlifestyleprogram.com.au/personaldevelopment", "0");
	lifestyle.addItem("<div>Sports coaching and fitness</div>", "http://www.uqlifestyleprogram.com.au/sportscoaching", "0");
	
	// Add High Performance Sport to Menu
	var performance = ms.addMenu(document.getElementById("performance"));
	performance.addItem("<div>Services</div>", "/highperformance", "0");
	performance.addItem("<div>Sporting scholarships</div>", "/scholarships", "0");	
	performance.addItem("<div>News</div>", "/hpnews", "0");
	performance.addItem("<div>Awards and alumni</div>", "/sportsawards", "0");

	// Add Events to Menu
	var events = ms.addMenu(document.getElementById("events"));
	events.addItem("<div>Great Court Race</div>", "/greatcourt", "0");
	events.addItem("<div>Blues Dinner</div>", "/bluesdinner", "0");
	
	// Add Specialised Services to Menu
	var specialisedServices = ms.addMenu(document.getElementById("specialisedServices"));
	specialisedServices.addItem("<div>Active Tribes junior programs</div>", "http://www.activetribes.com.au", "1");
	specialisedServices.addItem("<div>Education courses</div>", "/education", "0");
	specialisedServices.addItem("<div>UQ Inter-Professional Clinics</div>", "/clinics", "0");
	
	// Add News to Menu
	var news = ms.addMenu(document.getElementById("news"));
	news.addItem("<div>Blog</div>", "http://uqsport.wordpress.com/", "1");
	news.addItem("<div>Newsletters</div>", "/newsletter-archive", "0");
	
	// Add Contact to Menu
	var contact = ms.addMenu(document.getElementById("contact"));
	contact.addItem("<div>Contact details</div>", "/contact-us", "0");
	contact.addItem("<div>How to find us<br/>and parking</div>", "/how-to-find-us-and-parking", "0");
	contact.addItem("<div>Opening hours</div>", "/openinghours", "0");
	
	


	
	function init73() { 
		if (TransMenu.isSupported()) { 
			TransMenu.initialize();
		}
	}
	
	TransMenu.spacerGif = "images/spacers/x.gif";
	TransMenu.sub_indicator = true; 
	TransMenu.menuPadding = 0;
	TransMenu.itemPadding = 0;
	TransMenu.shadowSize = 0;
	TransMenu.shadowOffset = 3;
	TransMenu.shadowColor = "#888";
	TransMenu.hideDelay = 600;
	TransMenu.slideTime = 300;
	TransMenu.modid = 73;
	TransMenu.selecthack = 1;
	TransMenu.renderAll();
	
	if (typeof window.addEventListener != "undefined") {
		window.addEventListener( "load", init73, false );
	} else if (typeof window.attachEvent != "undefined") {
		window.attachEvent( "onload", init73 );
	} else {
		if (window.onload != null) {
			var oldOnload = window.onload;
			window.onload = function ( e ) {
				oldOnload( e );
				init73();
			}
		} else {
			window.onload = init73();
		}
	}
}
//-->
