function init() 
{
	//==========================================================================================
	// if supported, initialize TransMenus
	//==========================================================================================
	// Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
	// This is better than server-side checking because it will also catch browsers which would
	// normally support the menus but have javascript disabled.
	//
	// If supported, call initialize() and then hook whatever image rollover code you need to do
	// to the .onactivate and .ondeactivate events for each menu.
	//==========================================================================================
	if (TransMenu.isSupported()) {
		TransMenu.initialize();

		// hook all the highlight swapping of the main toolbar to menu activation/deactivation
		// instead of simple rollover to get the effect where the button stays hightlit until
		// the menu is closed.

		// blog
		document.getElementById("menu1").onmouseover = function() {
			document.getElementById("menu1").getElementsByTagName('img')[0].src = 'img/menu/blog_dark.gif'
			ms.hideCurrent();
			this.className = "hover";
		}
		document.getElementById("menu1").onmouseout = function() { this.className = ""; document.getElementById("menu1").getElementsByTagName('img')[0].src = 'img/menu/blog.gif' }

		// about
		document.getElementById("menu2").onmouseover = function() {
			document.getElementById("menu2").getElementsByTagName('img')[0].src = 'img/menu/about_us_dark.gif'
			ms.hideCurrent();
			this.className = "hover";
		}
		document.getElementById("menu2").onmouseout = function() { this.className = ""; document.getElementById("menu2").getElementsByTagName('img')[0].src = 'img/menu/about_us.gif' }

		// faq
		document.getElementById("menu3").onmouseover = function() {
			document.getElementById("menu3").getElementsByTagName('img')[0].src = 'img/menu/faq_dark.gif'
			ms.hideCurrent();
			this.className = "hover";
		}
		document.getElementById("menu3").onmouseout = function() { this.className = ""; document.getElementById("menu3").getElementsByTagName('img')[0].src = 'img/menu/faq.gif' }

		// portfolio
		document.getElementById("menu4").onmouseover = function() {
			document.getElementById("menu4").getElementsByTagName('img')[0].src = 'img/menu/portfolio_dark.gif'
			ms.hideCurrent();
			this.className = "hover";
		}
		document.getElementById("menu4").onmouseout = function() { this.className = ""; document.getElementById("menu4").getElementsByTagName('img')[0].src = 'img/menu/portfolio_light.gif' }
		
		// testimonial
		document.getElementById("menu5").onmouseover = function() {
			document.getElementById("menu5").getElementsByTagName('img')[0].src = 'img/menu/testimonial_dark.gif'
			ms.hideCurrent();
			this.className = "hover";
		}
		document.getElementById("menu5").onmouseout = function() { this.className = ""; document.getElementById("menu5").getElementsByTagName('img')[0].src = 'img/menu/testimonial.gif' }
		
		// contact
		menu6.onactivate = function() 
		{ 
			document.getElementById("menu6").className = "hover"; 
			document.getElementById("menu6").getElementsByTagName('img')[0].src = 'img/menu/contact_us_dark.gif';
		}
		
		menu6.ondeactivate = function() 
		{ 
			document.getElementById("menu6").className = ""; 
			document.getElementById("menu6").getElementsByTagName('img')[0].src = 'img/menu/contact_us.gif';
		}
		
		if(document.admin)
		{
			// admin
			menuAdmin.onactivate = function() 
			{ 
				document.getElementById("menuAdmin").className = "hover"; 
				document.getElementById("menuAdmin").getElementsByTagName('img')[0].src = 'img/menu/admin_dark.gif';
			}

			menuAdmin.ondeactivate = function() 
			{ 
				document.getElementById("menuAdmin").className = ""; 
				document.getElementById("menuAdmin").getElementsByTagName('img')[0].src = 'img/menu/admin.gif';
			}
		}	
			

		

	}
}

