/*var Octopia = {
	
	init: function() {
		Octopia.bindButtons();
	},
	unBindButtons: function() {
		$('ul.items a').unbind().click(function() {
			return false;
		});
	},
	bindButtons: function() {
		$('ul.items a').click(function() {
			$('ul.items li').removeClass('selected');				   
			$(this).parent().addClass('selected');
			return false;
		});
	}
	
};*/

$(document).ready(function() {
	//Octopia.init();

	// handle hide/show for text field default values in only one form
	$("#Support input:text, #Support textarea").clearDefaultText();
});



jQuery.fn.clearDefaultText = function() {
	
	return this.each(function(){
		var element = $(this);
		
		element.attr("title", element.val());
		
		element.focus(function() {
			if ( element.val() == element.attr("title") ) {
				element.val('');
			}
		});
		
		element.blur(function() {
			if (element.val() == '') {
				element.val( element.attr("title") );
			}
		});
	});
} 

