/**
 * @author jallen
 * 
 * Created: 07/28/2009
 * Dependencies:
 * 	jquery-1.3.2.js
 */

jQuery.fn.openFlyout = function(openTop, openHeight, openClass) {
    $(this).animate({
    	top : openTop,
    	height  : openHeight
    }, 800, "linear", function() {
        // inline styles are messy, use classes instead
        $(this).addClass(openClass);
        $(this).removeAttr('style');
      })

}

jQuery.fn.closeFlyout = function(newTop, newHeight, openClass) {
    $(this).animate({
    	top 	: newTop,
    	height  : newHeight
    }, 800, "linear", function() {
        // inline styles are messy use classes instead
        $(this).removeClass("open");
        $(this).removeAttr('style');
      })

}
