﻿function RegisterButtonSwap()
{
    var shop = document.getElementById("ShowcaseShop");
    var services = document.getElementById("ShowcaseServices");

    if (shop != null)
    {
        var iShop = shop.getElementsByTagName("img");
        
        for (var i=0; i<iShop.length; i++) {
		    iShop[i].onmouseover=function() { this.src = "/images/bgbutton_shopping_alt.gif"; }
		    iShop[i].onmouseout=function() { this.src = "/images/bgbutton_shopping.gif"; }
	    }
    }
	
	if (services != null)
	{
		var iServices = services.getElementsByTagName("img");

	    for (var i=0; i<iServices.length; i++) {
		    iServices[i].onmouseover=function() { this.src = "/images/bgbutton_quote_alt.gif"; }
		    iServices[i].onmouseout=function() { this.src = "/images/bgbutton_quote.gif"; }
	    }
	}
}

function RegisterSideButtonsSwap()
{
    var sideButtons = document.getElementById("SideButtons");

	if (sideButtons != null)
	{
		var ibuttons = sideButtons.getElementsByTagName("img");

	    for (var i=0; i<ibuttons.length; i++) {
		    ibuttons[i].onmouseover=function() { this.src = "/images/bgbutton_quote_alt.gif"; }
		    ibuttons[i].onmouseout=function() { this.src = "/images/bgbutton_quote.gif"; }
	    }
	}
}

function RegisterDefinitionEffects()
{
    var services = document.getElementById("ServicesSummary");
    
    if (services == null)
        return;

	var tags = services.getElementsByTagName("dl");

	for (var i=0; i<tags.length; i++) {
		tags[i].onmouseover=function() { this.className = "definition_alt"; }
		tags[i].onmouseout=function() { this.className = "definition"; }
	}
}
