(function($){
    
// placeHolder plugin by Uğur Özyılmazel, @ugurozyilmazel
// ---------------------------------------------------------------------------
    $.fn.placeHolder = function(options){
        var defaults = {
            "text_color": "#000",
            "placeholder_color": "#ccc"
        },
        settings = $.extend({}, defaults, options);
        this.each(function(){
            if("placeholder" in this == false && $(this).attr("placeholder") != undefined){
                var $this = $(this),
                    t = $this.attr("placeholder");
                    oc = $this.css('color');
                $this.css('color', settings['placeholder_color']).val(t).focus(function(){
                    if($this.val() == t){
                        $this.val("").css('color', settings['text_color']);
                    }
                }).blur(function(){
                    if($this.val().length == 0){
                        $this.val(t).css('color', settings['placeholder_color']);
                    }
                });
                return this;
            }
        });
    };
// ---------------------------------------------------------------------------
    
})(jQuery);

