//로그인 레이어 팝업이란다~
		function LayerPopupLogin(msg){
			jQuery(".popup_mode").css("display","block").css("opacity","0.5");
			jQuery(".popup_window").fadeIn(500).css({display:"block",position:"absolute",left:"50%",top:"50%"});
			document.fhead.mb_id.focus();
			jQuery(".popup_mode").click(
				function(){
				jQuery(".popup_mode").fadeOut("slow");
				jQuery(".popup_window").fadeOut("slow");
				});
			}
//회원가입 레이어 팝업이란다~
		function LayerPopupJoin(){
			jQuery(".popup_mode").css("display","block").css("opacity","0.5");
			jQuery(".popup_join").fadeIn(500).css({display:"block",position:"absolute",left:"50%",top:"50%"});
			jQuery(".popup_join_content").html("<iframe src='/bbs/register.php' width='490' height='250' frameborder='0' scrolling='no'></iframe>");
			jQuery(".popup_mode").click(
				function(){
				jQuery(".popup_mode").fadeOut("slow");
				jQuery(".popup_join").fadeOut("slow");
				});
			}

/* Overlabel */
(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.css( o.hide_css ) };
            var show_label = function() { this.value || label.css( o.show_css ) };
             $( 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();
    };
    $.fn.overlabel.defaults = {
         label_class:   'overlabel-apply',
        wrapper_class: 'overlabel-wrapper',
        hide_css:      { 'background-position': '-10000px' },
        show_css:      { 'background-position': '10px 7px', 'cursor': 'text' },
        filter:        false
     };
 })( jQuery );
jQuery(document).ready(function() {
    jQuery("label.overlabel1").overlabel();//ID
    jQuery("label.overlabel2").overlabel();//PASSWORD
    
})
/* //Overlabel */
