/**
 * Utility to enable external links in new window.  
 */ 

var LinkHandler = {

  init: function() 
  {
    $('a.ext').click(function(){ window.open(this.href); return false; });
    $('a[href$=".pdf"]').click(function(){ window.open(this.href); return false; });
  }
  
};
$(document).ready(LinkHandler.init);


/**
 * Sort the peepers out  
 */ 

var PeepingBabies = {
	
 	init: function() 
	{			
		$('.peeper.peeper_1').mouseover(function()
		{
			$(this).animate( { top: '-42px' }, 1000);
		}).mouseout(function(){
			$(this).animate( { top: '-27px' }, 1000);
		});
		
		$('.peeper.peeper_1_2').mouseover(function()
		{
			$(this).animate( { top: '-35px' }, 1000);
		}).mouseout(function(){
			$(this).animate( { top: '-15px' }, 1000);
		});	
		
		$('.peeper.peeper_2').mouseover(function()
		{
			$(this).animate( { top: '-35px' }, 1000);
		}).mouseout(function(){
			$(this).animate( { top: '-23px' }, 1000);
		});	
		
		$('.peeper.peeper_3').mouseover(function()
		{
			$(this).animate( { top: '-42px' }, 1000);
		}).mouseout(function(){
			$(this).animate( { top: '-30px' }, 1000);
		});	
				
		$('.peeper.peeper_4').mouseover(function()
		{
			$(this).animate( { left: '-27px' }, 1000);
		}).mouseout(function(){
			$(this).animate( { left: '-15px' }, 1000);
		});			
		
		$('.peeper.peeper_5').mouseover(function()
		{
			$(this).animate( { top: '-42px' }, 1000);
		}).mouseout(function(){
			$(this).animate( { top: '-30px' }, 1000);
		});			
		
		$('.peeper.peeper_6').mouseover(function()
		{
			$(this).animate( { top: '-35px' }, 1000);
		}).mouseout(function(){
			$(this).animate( { top: '-23px' }, 1000);
		});	
		
		$('.peeper.peeper_7').mouseover(function()
		{
			$(this).animate( { left: '-27px' }, 1000);
		}).mouseout(function(){
			$(this).animate( { left: '-15px' }, 1000);
		});		
	
		$('.peeper.peeper_8').mouseover(function()
		{
			$(this).animate( { right: '-25px' }, 1000);
		}).mouseout(function(){
			$(this).animate( { right: '-7px' }, 1000);
		});		

		$('.peeper.peeper_9').mouseover(function()
		{
			$(this).animate( { right: '-25px' }, 1000);
		}).mouseout(function(){
			$(this).animate( { right: '-13px' }, 1000);
		});				
	}
};
$(document).ready(PeepingBabies.init);