/*
 * Field input hints - jQuery field input hints
 * by Nathan Martin <nathan@knupska.com>
 */
jQuery.fn.inputHint=function() {
    $(this).each(function(i) {
		if($(this).val() == '') {
			$(this).val($(this).attr('title')).addClass('default');
		} else {
			$(this).removeClass('default').addClass('user');
		}
    });
    return $(this).focus(function() {
        if ($(this).val() == $(this).attr('title')) $(this).val('').removeClass('default').addClass('user');
    }).blur(function() {
        if ($(this).val() == '') $(this).val($(this).attr('title')).addClass('default').removeClass('user');
    });
};
/*
 * Console logging
 */
(function(b){var a=function(c,d){if(typeof console=="object"){if(!d){console.log(c)}else{if(d=="warn"){console.warn(c)}else{if(d=="error"){console.error(c)}}}}else{if(typeof opera=="object"){opera.postError(c)}else{alert(c)}}};b.fn.log=a;b.log=a})(jQuery);
