   $(document).ready(function(){ 
         $(document).pngFix();
		 //$("#container").pngFix();

		 var screenwidth = $(window).width();
		 var screenheight = $(window).height();
		 $("#footer").css("left", (screenwidth/2)-291);  
		 $("#rope").css("height", screenheight - 120 - 152 - 466);
		 //var flheight = (screenheight - 120 - 152 - 466) + 120 + 466 + 100
		 //$("#footer-links").css("top", flheight);
		 
	//$('#links div').biggerlink();
	
	
	$('.news').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});


		 
	$('#smallcontent').jScrollPane();
	$('#smallcontent2').jScrollPane();
	$('#smallcontent3').jScrollPane();
	$('#termscontent').jScrollPane({animateTo:true});
	
	$('div#container').scrollTo( 0 );
	$.scrollTo( 0 );

	var $paneTarget = $('#container');
	
	$('#kris').click(function(){
		$paneTarget.stop().scrollTo( 'li:eq(1)', 400, { axis:'x' } );
		
	});
	$('#dan').click(function(){
		$paneTarget.stop().scrollTo( 'li:eq(2)', 400, { axis:'x' } );
		
	});
	$('#how').click(function(){
		$paneTarget.stop().scrollTo( 'li:eq(3)', 400, { axis:'x' } );
		
	});
	$('#back1, #back2, #back3').click(function(){
		$paneTarget.stop().scrollTo( 'li:eq(0)', 400, { axis:'x', queue:true } );
	});



	$('a.top').bind(
					'click',
					function()
					{
						$("#termscontent")[0].scrollTo(0);
						return false;
					}
				);

		
    });
