// Feracao Design ++ JavaScript Document
jQuery.fn.peekAbooToggle = function(speed, easing, callback) {
  var h = this.height() - parseInt(this.css('paddingTop')) - parseInt(this.css('paddingBottom'));
  return this.animate({marginTop: parseInt(this.css('marginTop')) <0 ? 0 : -h}, speed, easing, callback);
};

jQuery.fn.peekAbooToggleDn = function(speed, easing, callback) {
 this.animate({marginTop: 5}, speed, easing, callback);
};

jQuery.fn.peekAbooToggle2 = function(speed, easing, callback) {
  var h = this.height() - parseInt(this.css('paddingTop')) - parseInt(this.css('paddingBottom'));
  return this.animate({marginTop: parseInt(this.css('marginTop')) <0 ? 0 : -h}, speed, easing, callback);
};

jQuery.fn.peekAbooToggle2Up = function(speed, easing, callback) {
this.animate({marginTop: -150}, speed, easing, callback);
};

$(document).ready(function() {
	var $sBox = $('#sushiBox')
	var $pBox = $('#planeBox')


	$('#homeLoc').mouseover(function() { $pBox.peekAbooToggle2('slow');
  });
    $('#homeLoc').mouseout(function() { $pBox.peekAbooToggle2Up('slow');
  });
	
  $('#baseConnect').mouseover(function() {  $sBox.peekAbooToggle('slow');
  });
    $('#baseConnect').mouseout(function() { $sBox.peekAbooToggleDn('slow');
  });
	


});
