// Core Javascript
$(function() {
	if ($("#tabs"))
	{
		// Home Page Stuff
		$("#tabs").tabs();
	
		$(".puff-home:odd").addClass("odd");
		
    $("#slideshow").tabs({fx:{opacity: "toggle", duration:'slow'}}).tabs("rotate", 3000, true);
    $("#slideshow").hover(
        function() {$("#slideshow").tabs("rotate",0,true);},
        function() {$("#slideshow").tabs("rotate",3000,true);}
    );
		
	}
	
	$('.nav-footer').hide()
	
    $('#sitemap-holder dt a').click(function () {
		if (parseInt($('#sitemap-holder').css('height')) > 36)			{
			// Close the panel
			$('#sitemap').removeClass('on');
			$('.nav-footer').fadeOut('fast');
			$('.nav-footer').queue(function () {
				$('#sitemap-holder').animate( { height:'35px', top: '-35' }, 300 );
				$(this).dequeue();
			});

		}	else	{
			// Open it
			$('#sitemap').addClass('on');
			$('#sitemap-holder').animate( { height:'400px', top: '-400px' }, 300 );
			$("#sitemap-holder").queue(function () {
				$('.nav-footer').fadeIn('fast');
				$(this).dequeue();
			});
		}
	});
		

//    function moveFloatMenu() {
//        var menuOffset = menuYloc.top + $(this).scrollTop() + "px";
//        $('#float-menu').animate({top:menuOffset},{duration:500,queue:false});
//    }
//
//    menuYloc = $('#float-menu').offset();
//
//    $(window).scroll(moveFloatMenu);
//
//    moveFloatMenu();
			
});

var RecaptchaOptions = {
   theme : 'clean'
};

