/* 
	Rollover linking from and between each mirvac site
	
*/
var hideIntervalID;

function showDashboard () {
	
	
	$("div#page div#dashboard").show();
	$("div#page div#header a#header_logo img").attr("src", "/templates/mirvac_spa/images/framework/logo_mirvac_colour.gif");
	clearInterval(hideIntervalID);
	
}

function hideDashboard () {
	
	// hidden after a short delay to avoid potential flicker when 'hovering' between logo and the dash
	hideIntervalID = setInterval ( function () { 
			$("div#page div#dashboard").hide();
			$("div#page div#header a#header_logo img").attr("src", "/templates/mirvac_spa/images/framework/logo_mirvac.gif");
		}, 100 );
	
}

$(function() {
	
	// hover shows and hides the dash...!
	$("div#page div#header a#header_logo").hover(showDashboard, hideDashboard);
	$("div#page div#dashboard").hover(showDashboard, hideDashboard);
	
});
