/**
 * Creator: npercell
 * Date: May 28, 2009
 * Time: 10:06:17 AM
 * Contents are property of Cappex.com LLC, and strictly confidential.
 */
 
/** 
 * CLASS: ProfileExtraTabSwitcher
 * DESCR: 
 * USAGE: 
 * EXMPL: 
 */
var ProfileExtraTabSwitcher = new Class({

	isMouseOverMenu : false,

	initialize : function () {

		window.addEvent('domready', function () {
			this.domReady();
		}.bind(this));
		
	},

	domReady : function () {

	},

	showExtraTab : function(theId) {
		tabSwitcher.switchTab('tabSix');
		$ES('div.extraTab','moreTabsTabContent').addClass('jsHide');
		$(theId).removeClass('jsHide');
	},

	keepShowingMenu : function() {

		this.isMouseOverMenu = true;
	},

	hideIfNecessary : function() {

		this.isMouseOverMenu = false;

		(function () {
			if(!this.isMouseOverMenu) {
				$('collegeProfileExtraTabs').addClass('jsHide');
			}

		}).delay(500, this);

	}




});

// be sure to change the case of the first char of the var name (or delete this line if not necessary) 
var profileExtraTabSwitcher = new ProfileExtraTabSwitcher();