﻿// built with a JQuery-1.2.6.js
// allows for fading and with half the code pretty cool.

function reEnable(theObj){
	$("#" + theObj).attr("enabled","enabled");
}

function doSelect(){
	$('.rollOverImageLink:selected').find('.overImage').fadeIn('slower');	
}

$(document).ready(function()
{

    $('.rollOverImageLink:enabled').hover(function()
        {
			
			if($(this).attr("enabled") == "enabled"){
            	$(this).find('.overImage').fadeIn('slower');
				$(this).attr("enabled","disabled");
			}
			
        },
        function()
        {
		
			if($(this).attr("selected") != "true")
			{
				if($(this).attr("enabled") == "disabled"){
		            $(this).find('.overImage').fadeOut('slower');
					$(this).attr("enabled","disabled");
					window.setTimeout("reEnable('" + $(this).attr("id") + "')",900)	;
				}
					
			}
        }
    );
    
    $('.rollOverImageLink:disabled').find('.baseImage').hide();
    $('.rollOverImageLink:disabled').find('.disabledImage').show();
	
	setTimeout(doSelect,1000);

	 
});