jQuery.fn.peekABooField = function() {	
	$(this).each(
		function() {			
			var field = $(this);
			var field_val = field.val();
			field.focus(function() {
				if(this.value == field_val) {
					this.value = "";
				}
			}).blur(function() {
				if(this.value == "") {
					this.value = field_val;
				}
			});
		}
	);
};

jQuery.fn.imageRoll = function() {	
	$(this).each(
		function() {			
			$(this).hover(
				function() {
				    if(this.src.search("-selected") === -1 && this.src.search("-off") === -1) {
					    this.src = this.src.replace(".png", "-over.png");
				    }
				},
				function() {
					this.src = this.src.replace("-over.png", ".png");
				}
			);			
		}
	);
};

jQuery.fn.slideFadeToggle = function(speed, easing, callback) {
    return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback); 
};

jQuery.fn.visible = function(is_visible) {
    return $(this).css("visibility", is_visible ? 'visible' : 'hidden'); 
};

jQuery.fn.slideFadeUp = function(speed, easing, callback) {
    return this.animate({opacity: 0, height: 'hide'}, speed, easing, callback); 
};

jQuery.fn.slideFadeDown = function(speed, easing, callback) {
    return this.animate({opacity: 1, height: 'show'}, speed, easing, callback); 
};


