jQuery(window).load(function(){
	jQuery('.eyepostimg a').mouseover(function(e){
    	jQuery(this).find('img').stop().fadeTo("slow",1.0);	
	});
	jQuery('.eyepostimg a').mouseout(function(e){
    	jQuery(this).find('img').stop().fadeTo("slow",0.7);
	});
  	jQuery('.imageall').mouseover(function(e){
    	jQuery(this).find('img').stop().fadeTo("slow",1.0);	
	});
	jQuery('.imageall').mouseout(function(e){
    	jQuery(this).find('img').stop().fadeTo("slow",0.7);
	});
});

$(document).ready(function(){ 
	$('.eyepost').hover(function(){  
			 $(".eyepostdate", this).stop().animate({left:'0px'},{queue:false,duration:300});  
		}, function() {  
			 $(".eyepostdate", this).stop().animate({left:'10px'},{queue:false,duration:300});  
	}); 
	
	$('.image').hover(function(){  
			 $(".imagedate", this).stop().animate({bottom:'-60px'},{queue:false,duration:300});  
		}, function() {  
			 $(".imagedate", this).stop().animate({bottom:'0px'},{queue:false,duration:300});  
	}); 	
});	

$(function () {
	var scroll_timer;
	var displayed = false;
	var $message = $('#message a');
	var $window = $(window);
	var top = $(document.body).children(0).position().top;
	$window.scroll(function () {
		window.clearTimeout(scroll_timer);
		scroll_timer = window.setTimeout(function () {
			if($window.scrollTop() <= top)
			{
				displayed = false;
				$message.fadeOut(700);
			}
			else if(displayed == false)
			{
				displayed = true;
				$message.stop(true, true).show().click(function () { $message.fadeOut(700); });
			}
		}, 100);
	});
});
