
$(document).ready
(


	function()
	{
	
		//fix IE6 png bugs
		$(document).pngFix();
	
		/* add class to last items in list (for IE6) */
		$('ul.side li:last').addClass('last bool');

		/* botttom nav pop ups */
		$('#footer dd').hide();	
		//$('#footer dt').hover(function(){show_page_info($(this).next('dd'));},function(){hide_page_info($(this).next('dd'));});
		//$('#footer').hover( function(){footer_in()}, function(){footer_out()});
		
		/* rotating header images */
		//$('#headCycle').cycle({speed: 1000, timeout:  2500});
		$('#gallery').sqGallery({prev_button: '<span>back</span>',next_button: '<span>next</span>'});
		
		/* add smooth scrolling for section links */
		//$('#jump').sqJump();
		//$.localScroll();
		
		/* track pdf downloads */
		$('a[href$=".pdf"]').click(function()
		{
			pdf_link  = $(this).attr('href');
			pdf_index = pdf_link.lastIndexOf("/") + 1;
			pdf_file = pdf_link.substr(pdf_index);
			pageTracker._trackPageview(pdf_file);
		});
	

	}
);

function show_page_info(the_dd)
{
	$('#footer dd').hide();	
	$(the_dd).show();
	$(the_dd).animate({
	                marginTop: "-0px"
                }, 500 );
}


function hide_page_info(the_dd)
{
}


function footer_in()
{
}

function footer_out()
{
	$('#footer dd').hide();	
}
