// <![CDATA[
// jQuery for category image fading sequences.
$('#sub-enclosure').hide();
$('#categories li a img').hide();

$(document).ready(function() {
	$('#sub-enclosure').fadeIn(1600, function() {
		$('#categories li a img').fadeIn(1600);
	});

	$('#categories').innerfade({
		speed: 1600,
		timeout: 4000,
		type: 'sequence'
	});

	// Fix images not showing in Opera.
	if ($.browser.opera == true) {
		$('#categories li a img').show();
	}

	// Fixes container explanding problems in IE6 by forcing CSS to refresh.
	if ($.browser.msie && $.browser.version <= 6) {
		$('#container').css('height', '680px');
		$('.container').css('width', '592px');
	}
	
	$("#infoTab h2").click(
    function(){
        $("#infoTab h2").attr('class','');
        $(this).attr('class','selected');
        tabname = $(this).attr('name');
        $("#infoHome [class='selected']").attr("class","hidetab");
        $("div [id="+tabname+"]").attr("class","selected");
		return false;
    }
  );
});
// ]]>

function showIconText(DivId,IconText){
		var IconDiv = document.getElementById(DivId);
		IconDiv.innerHTML=IconText;
		IconDiv.style.visibility='visible';
		return true;
	}
	function hideIconText(DivId){
		var IconDiv = document.getElementById(DivId);
		IconDiv.innerHTML='';
		IconDiv.style.visibility='hidden';
		return true;
	}
