/* -------------------------------------------------- *
 * "hover" function                                   *
 * Allows for hover effects on non-link elements      *
 * -------------------------------------------------- */

$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover(
            function() { $(this).removeClass(c+'-none');$(this).addClass(c); },
            function() { $(this).removeClass(c);$(this).addClass(c+'-none'); }
        );
    });
};
$(document).ready(function(){
													 
	$(".highlight").hover(function(){
	  $(this).addClass("active");
	}, function() {
	  $(this).removeClass("active");
	}
	);
		
});


/* -------------------------------------------------- *
 * navigation show/hide function                      *
 * -------------------------------------------------- */
//$(document).ready(function() {
//	$('ul.nav-level1').hide();
//});
//$('a.guys').click(function() {
//	$('ul.nav-level1').toggle(400);
//	return false;
//});










/* -------------------------------------------------- *
 * ToggleVal Plugin for jQuery                        *
 * Version 1.0                                        *
 * -------------------------------------------------- *
 * Author:   Aaron Kuzemchak                          *
 * URL:      http://kuzemchak.net/                    *
 * E-mail:   afkuzemchak@gmail.com                    *
 * Date:     8/18/2007                                *
 * -------------------------------------------------- */

jQuery.fn.toggleVal = function(focusClass) {
	this.each(function() {
		$(this).focus(function() {
			// clear value if current value is the default
			if($(this).val() == this.defaultValue) { $(this).val(""); }
			
			// if focusClass is set, add the class
			if(focusClass) { $(this).addClass(focusClass); }
		}).blur(function() {
			// restore to the default value if current value is empty
			if($(this).val() == "") { $(this).val(this.defaultValue); }
			
			// if focusClass is set, remove class
			if(focusClass) { $(this).removeClass(focusClass); }
		});
	});
}
$(document).ready(function() {
	$(":text,textarea").toggleVal("active");
}); 




