function profile(){ 

  if (typeof profile._initialized == "undefined") {
    
    profile.prototype.build = function () {
      dash_loader = new jobvana();
      dash_loader.build();
      
      //setup the left menu links
		  if ($("prof_butts")){
        var top_buttons = $("prof_butts").getElementsByTagName("button");
        $ev(top_buttons, "click", this.button_click, this); 
		  }
    }
         
    
    /*
    *
    * Process a button click
    *
    */
    profile.prototype.button_click = function (e, obj) {
      var parts = this.id.split("_");
      obj.poplink(parts[0],parts[1], "if(typeof(menu) != \"undefined\"){ menu.reload_menu(); } $LD('"+parts[0]+"', '"+parts[1]+"'); if(typeof(signup_pop) != \"undefined\"){ signup_pop.popup.hide(); }"); 

			/*if (parts[0] == "profilebrag") {
				YAHOO.util.Get.script(
  				add_js_file("/www/js/objects/bragpopup_obj.js"), {
  					onSuccess: function() {
  					  bragpopup_obj = new bragpopup_obj();
  					  bragpopup_obj.build();
  				  }, scope:this
  				}
		    );
			} else {
			*/
			//}
    }
    
    
    /*
    *
    * Create a Popup link
    *
    */
    profile.prototype.poplink = function (dash, tab, buildcode) { 
      if (dash_loader.jobvana_uid == "NA"){
        dash_loader.passed_in_url_vars = "";
        YAHOO.util.Get.script(
  				add_js_file("/www/js/signup_popup.js"), {
  					onSuccess: function() {
  					  signup_pop = new signup_popup();
  					  signup_pop.build(buildcode);
  				  }, scope:this
  				}
		    );
      }else{
        $LD(dash, tab);
      }
    } 
    

    profile._initialized = true;
  } 
  
}
