/*
 * jQuery formtoolip
 * form alanlarına odaklanıldığında yardım metini görüntülenmesini sağlar
 *
 * Kullanım: $('#form_id').formhighlight();
 * Copyright (c) 2008 Yılmaz Uğurlu, <yilugurlu@gmail.com>, http://www.2nci.com
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * $Version: 2008.05.02 rev. 17
 */
 
(function($) {
	$.fn.formhighlight = function(){
		$(":input", this).each(function(){
		    // form alanına odaklanıldığında
			if($(this).attr('type') != 'submit')
			{
				$(this).focus(function(){
			    	$(this).addClass("focus");
			    }).blur(function() { // odak form alanından çıktığında
			    	$(this).removeClass("focus");
			    });
			}
			else
			{
				$(this).hover(function(){$(this).addClass('btn_hover');},function(){$(this).removeClass('btn_hover');});
			}
		});
	}
})(jQuery);

