

addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);

function hideURLbar(){
window.scrollTo(0,1);
}



$(document).ready(function()
{
   $('#color_wrap').hide();
   $('#tags').hide();
   
   $(".entry_responsive_inner").hover(
	function() {
		$(this).stop().animate({"opacity": "1"},  "medium");
		$("p.responsive_meta", this).animate({"opacity": ".98"},  "medium");
		},
	function() {
		$(this).stop().animate({"opacity": ".85"},  "slow");
		$("p.responsive_meta", this).animate({"opacity": "0"},  "6000");
	});

   $("#previous").hover(
	function() {
		$("#previous_arrow").animate({
    		left: '+=30',
    		opacity: '1',
    		paddingRight: '23px'
    		}),
        $("p#previous_arrow").animate({  
			fontColor: 'black'
			}
		),
		$("#previous_title").animate({  
			opacity: '1',
			}
		),
		$("#previous_glow").animate({  
			opacity: '.75',
			}
		)
},
	function() {
		$("#previous_arrow").animate({
    		left: '-=30',
    		opacity: '.35',
    		paddingRight: '10px'
    		}),
    	
    	$("#previous_title").animate({  
			opacity: '0',
			}
		),
		$("#previous_glow").animate({  
			opacity: '0',
			}
		)
    	
});


$("#next").hover(
	function() {
		$("#next_arrow").animate({
    		right: '+=30',
    		opacity: '1', 
    		paddingLeft: '23px'
    		}),
    	$("#next_title").animate({  
			opacity: '1',
			}
		),
		$("#next_glow").animate({  
			opacity: '.75',
			}
		)
    	

},
	function() {
		$("#next_arrow").animate({
    		right: '-=30',
    		opacity: '.35',
    		paddingLeft: '10px'
    		}),
    	$("#next_title").animate({  
			opacity: '0',
			}
		),
		$("#next_glow").animate({  
			opacity: '0',
			}
		)
    	});


	$("#logo_biosfear").hover(
		function() {
			$("#header_tip_top").animate({
  			height:8, opacity: 1
			}, 300, "linear");
		},
		function() {
			$("#header_tip_top").animate({
  				height:0, opacity: 0
			}, 300, "linear");
		});


 
});


function ShowColors(){

$("#color_wrap").animate({
    opacity: 'toggle',
    left: '+=0',
    height: 'toggle'
  }, 500 )

}


function ShowTags(){

$("#tags").animate({
    opacity: 'toggle',
    left: '+=0',
    height: ['toggle', 'swing'],
  }, 500 )

}


 
	
		jQuery(function( $ ){
 
			
			var placeholder = $( "#subheader_placeholder" );
			var message = $( "#subheader" );
 
			var view = $( window );
 
 
			
			view.bind(
				"scroll resize",
				function(){
					
					var placeholderTop = placeholder.offset().top;
 
					
					var viewTop = view.scrollTop();
 
					
					if (
						(viewTop > placeholderTop) &&
						!message.is( ".subheader-fixed" )
						){
 
						
						placeholder.height(
							placeholder.height()
						);
 
						
						message.addClass( "subheader-fixed" );
 
					
					} else if (
						(viewTop <= placeholderTop) &&
						message.is( ".subheader-fixed" )
						){
 
						
						placeholder.css( "height", "auto" );
 
						
						message.removeClass( "subheader-fixed" );
 
					}
				}
			);
 
		});
 




