function Global( )
{
	var self = this;
		
	this.enable = function ( aNode )
	{
		dojo.style( aNode, "display", "block" );
	};
	
	this.disable = function ( aNode )
	{
		dojo.style( aNode, "display", "none" );
	};
	
	this.setBorderHeight = function ()
	{
		// Get elements involved
		var innerContainer =  dojo.byId("inner_container_content");
		var leftBorder =  dojo.byId("border_left");
		var rightBorder =  dojo.byId("border_right");
		
		// Get the heights
		var height = dojo.style(innerContainer, "height");

		// Set the unit
		height += "px";
		
		// Set the height to the borders left and right
		dojo.style(leftBorder, "height", height);
		dojo.style(rightBorder, "height", height);	
	};
	
	this.preloadImages = function ()
	{
		for ( var i = 0; i < preloadImageUrls.length; i++ )
		{
            preloadImageObject.src = preloadImageUrls[ i ];
		}
	};
	
	this.enableContactTooltip = function ()
	{
		var contactButton =  dojo.byId( "contact" );
		var contactTooltip =  dojo.byId( "contact_tooltip" );
		
		var enableAgent = function ()
		{
		}
		
		var disableAgent = function ()
		{
			self.disable ( contactTooltip );
		}
		
		dojo.connect ( contactButton, "onmouseover", enableAgent );
		dojo.connect ( contactButton, "onmouseout", disableAgent );
	};
	
	/**
     * Sets the active tab of the site navigation
     */
    this.setActiveTab = function () {
        var homeTab = 'home_tab';
        if (activeTab !== 'home_tab') {
            dojo.byId(homeTab).className = '';
            var tab = dojo.byId(activeTab);
            if (tab !== null) {
                tab.className = 'active'
            }
        }
    };
	
	this.init = function ()
	{
		dojo.addOnLoad ( function () { self.preloadImages () } );
		//dojo.addOnLoad ( function () { self.setBorderHeight () } );
		//dojo.addOnLoad ( function () { self.enableContactTooltip () } );
		dojo.addOnLoad ( function () { self.setActiveTab () } );
	};
	
	this.init ();
}


