/*!
 * Flipnoodle: Small jQuery plugin to toggle
 * a text value, such as 'Search the site'
 * in form field on blur/focus. 
 *
 * - version 1.0
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * <form>
 *   <input type="text" id="search-q" />
 * </form>
 *
 *   jQuery('#search-q').flipnoodle();
 * 
 * @author Johannes Hilden (johannes@tristarafrica.com)
 *
 * Compressed using Dean Edwards' Packer (http://dean.edwards.name/packer/)
 */

$.fn.flipnoodle=function(c){var d={str:'Search the site\u2026'};$(this).each(function(){var o=$.extend(d,c);var f=$(this);f.attr('value',o.str);f.focus(function(){flip($(this),o.str,'')});f.blur(function(){flip($(this),'',o.str)});function flip(t,a,b){if(t.attr('value')==a){t.attr('value',b)}}})}