/*
  Overlabel plugin for JQuery
  
  Get placeholder text in inputs by placing the label over the text field.
  
  Modifications:
    - Adds and removes 'overlabel-hide' class to hide label rather than inline style
  
  http://scott.sauyet.com/thoughts/archives/2007/03/31/overlabel-with-jquery/
*/
( function( $ ) {
 
    // plugin definition
    $.fn.overlabel = function( options ) {
 
        // build main options before element iteration
        var opts = $.extend( {}, $.fn.overlabel.defaults, options );
 
        var selection = this.filter( 'label[for]' ).map( function() {
 
            var label = $( this );
            var id = label.attr( 'for' );
            var field = document.getElementById( id );
 
            if ( !field ) return;
 
            // build element specific options
            var o = $.meta ? $.extend( {}, opts, label.data() ) : opts;
 
            label.addClass( o.label_class );
 
            var hide_label = function() { label.addClass( o.hide_class ) };
            var show_label = function() { this.value || label.removeClass( o.hide_class ) };
 
            $( field )
                 .parent().addClass( o.wrapper_class ).end()
                 .focus( hide_label ).blur( show_label ).each( hide_label ).each( show_label );
 
            return this;
 
        } );
 
        return opts.filter ? selection : selection.end();
    };
 
    // publicly accessible defaults
    $.fn.overlabel.defaults = {
 
        label_class:   'overlabel-apply',
        wrapper_class: 'overlabel-wrapper',
        hide_class: 'overlabel-hide',
        filter:        false
 
    };
 
} )( jQuery );

jQuery(function($) {
  $("label.overlabel").overlabel();
});


function getStarted() {
	document.getElementById('url').className = 'input-text-alert';
	var  t=setTimeout("document.getElementById('url').className = 'input-text'",250);
}
