 $.fn.resizeIt = function(options) {  
   	
    return this.each(function() {  
   		obj = $(this);
			data = obj.metadata();
			botOffset = parseInt(data.botOS) || 0
			topOffset = parseInt(data.topOS) || 0
			leftOffset = parseInt(data.leftOS) || 0
			rightOffset = parseInt(data.rightOS) || 0
			if (botOffset && topOffset) {
				windowHeight = $(window).height();
				newHeight = windowHeight - topOffset - botOffset;
				obj.height(newHeight);
			}
			if (leftOffset && rightOffset) {
				windowWidth = $(window).width();
				newWidth = windowWidth - leftOffset - rightOffset;
				obj.width(newWidth);
			}
    });  
 };

$.fn.textToggle = function(first, second) {
	
	return this.each(function() {
		obj = $(this)
		if (obj.text() == first) {
			obj.text(second);
		}
		else {
			obj.text(first);
		}
	});
};