/*!
 * jQuery wrapNextTextNode Plugin v1.0
 * http://outwestmedia.com/
 */
jQuery.fn.wrapNextTextNode = function(wrap) {
    return this.each(function() {
        var ns = this.nextSibling;
        while ( ns ) {
            if ( ns.nodeType == 3 ) {
                var node = jQuery(wrap)[0];
                ns.parentNode.insertBefore(node , ns);
                node.appendChild( ns );
                break;
            }
            ns = ns.nextSibling;
        }
    });
};

jQuery( function($){
	
	$( "#wpjb-input-listing .listtype label b" ).wrapNextTextNode("<span class='listType-label' />");		
	$( "#wpjb-input-listing .listtype label").append("<div class='clear'></div>");
	
	$("#wpjb-input-listing input").click( function(){
			
		if( $( this ).attr( "id" ) == "listing_6" ){
			
			$("#job-information").hide();
			$("#location").hide();
		}else{
			$("#job-information").show();			
			$("#location").show();			
		}
		
		
	});
	
	
});
