function displayHomePageMarqueeText(display)
{
	$('div.mouseover, p.home').css("display", "none");
	
	if (display != "home")
		$('div.' +display +'_text').css("display", "block");
	else
		$('p.home').css("display", "block");
}

$('a.link_climate, a.link_discussion, a.link_foundation, a.link_rebates').live("mouseover", function() {
	var src = $('img', this).attr("src").replace(".jpg", "_over.jpg");
	
	$('img', this).attr("src", src);
	displayHomePageMarqueeText($(this).attr("class").replace("link_", ""));
});

$('a.link_climate, a.link_discussion, a.link_foundation, a.link_rebates').live("mouseout", function() {
	var src = $('img', this).attr("src").replace("_over.jpg", ".jpg");
	
	$('img', this).attr("src", src);
	displayHomePageMarqueeText("home");
});

$('div.button').live("mouseover", function() {
	$('span.primary_button_left', this).addClass("primary_button_left_over");
	$('span.primary_button_right', this).addClass("primary_button_right_over");
	$('span.primary_button', this).addClass("primary_button_over");
	
	$('span.secondary_button_left', this).addClass("secondary_button_left_over");
	$('span.secondary_button_right', this).addClass("secondary_button_right_over");
	$('span.secondary_button', this).addClass("secondary_button_over");
	
    $('span.primary_button a', this).css("margin-top", "0px");
    $('span.secondary_button a', this).css("margin-top", "0px");	
});

$('div.button').live("mouseout", function() {
	$('span.primary_button_left', this).removeClass("primary_button_left_over");
	$('span.primary_button_right', this).removeClass("primary_button_right_over");
	$('span.primary_button', this).removeClass("primary_button_over");
	
	$('span.secondary_button_left', this).removeClass("secondary_button_left_over");
	$('span.secondary_button_right', this).removeClass("secondary_button_right_over");
	$('span.secondary_button', this).removeClass("secondary_button_over");
	
    $('span.primary_button a', this).css("margin-top", "2px");
    $('span.secondary_button a', this).css("margin-top", "2px");
});
