var TabSwitcher = new Class({

	initialize: function(containerId, tabOnePrefix, tabTwoPrefix, tabThreePrefix, tabFourPrefix, tabFivePrefix, tabSixPrefix, tabSevenPrefix){
		this.containerId = containerId;
		this.tabOnePrefix = tabOnePrefix;
		this.tabOneId = tabOnePrefix + 'Tab';
		this.tabOneContent = tabOnePrefix + 'TabContent';
		this.tabTwoPrefix = tabTwoPrefix;
		this.tabTwoId = tabTwoPrefix + 'Tab';
		this.tabTwoContent = tabTwoPrefix + 'TabContent';
		this.tabThreePrefix = tabThreePrefix;
		this.tabThreeId = tabThreePrefix + 'Tab';
		this.tabThreeContent = tabThreePrefix + 'TabContent';
		this.tabFourPrefix = tabFourPrefix;
		this.tabFourId = tabFourPrefix + 'Tab';
		this.tabFourContent = tabFourPrefix + 'TabContent';
		this.tabFivePrefix = tabFivePrefix;
		this.tabFiveId = tabFivePrefix + 'Tab';
		this.tabFiveContent = tabFivePrefix + 'TabContent';
        this.tabSixPrefix = tabSixPrefix;
        this.tabSixId = tabSixPrefix + 'Tab';
        this.tabSixContent = tabSixPrefix + 'TabContent';
        this.tabSevenPrefix = tabSevenPrefix;
        this.tabSevenId = tabSevenPrefix + 'Tab';
        this.tabSevenContent = tabSevenPrefix + 'TabContent';

    },


    switchTab : function (newTab) {

		switch (newTab) {

			case 'tabOne' :

			//  tab one
			if (this.tabOnePrefix != undefined) {
				$(this.tabOneId).addClass('active');
				$(this.tabOneContent).removeClass('jsHide');
			};
			// tab two
			if (this.tabTwoPrefix != undefined) {
				$(this.tabTwoId).removeClass('active');
				$(this.tabTwoContent).addClass('jsHide');
			};
			// tab three
			if (this.tabThreePrefix != undefined) {
				$(this.tabThreeId).removeClass('active');
				$(this.tabThreeContent).addClass('jsHide');
			};
			// tab four
			if (this.tabFourPrefix != undefined) {
				$(this.tabFourId).removeClass('active');
				$(this.tabFourContent).addClass('jsHide');
			};
			// tab five
			if (this.tabFivePrefix != undefined) {
				$(this.tabFiveId).removeClass('active');
				$(this.tabFiveContent).addClass('jsHide');
			};
            // tab six
            if (this.tabSixPrefix != undefined) {
                $(this.tabSixId).removeClass('active');
                $(this.tabSixContent).addClass('jsHide');
            };
            // tab seven
            if (this.tabSevenPrefix != undefined) {
                $(this.tabSevenId).removeClass('active');
                $(this.tabSevenContent).addClass('jsHide');
            };
                break;

			case 'tabTwo' :

			//  tab one
			if (this.tabOnePrefix != undefined) {
				$(this.tabOneId).removeClass('active');
				$(this.tabOneContent).addClass('jsHide');
			};
			// tab two
			if (this.tabTwoPrefix != undefined) {
				$(this.tabTwoId).addClass('active');
				$(this.tabTwoContent).removeClass('jsHide');
			};
			// tab three
			if (this.tabThreePrefix != undefined) {
				$(this.tabThreeId).removeClass('active');
				$(this.tabThreeContent).addClass('jsHide');
			};
			// tab four
			if (this.tabFourPrefix != undefined) {
				$(this.tabFourId).removeClass('active');
				$(this.tabFourContent).addClass('jsHide');
			};
			// tab five
			if (this.tabFivePrefix != undefined) {
				$(this.tabFiveId).removeClass('active');
				$(this.tabFiveContent).addClass('jsHide');
			};
            // tab six
            if (this.tabSixPrefix != undefined) {
                $(this.tabSixId).removeClass('active');
                $(this.tabSixContent).addClass('jsHide');
            };
            // tab seven
            if (this.tabSevenPrefix != undefined) {
                $(this.tabSevenId).removeClass('active');
                $(this.tabSevenContent).addClass('jsHide');
            };
                break;

			case 'tabThree' :

			//  tab one
			if (this.tabOnePrefix != undefined) {
				$(this.tabOneId).removeClass('active');
				$(this.tabOneContent).addClass('jsHide');
			};
			// tab two
			if (this.tabTwoPrefix != undefined) {
				$(this.tabTwoId).removeClass('active');
				$(this.tabTwoContent).addClass('jsHide');
			};
			// tab three
			if (this.tabThreePrefix != undefined) {
				$(this.tabThreeId).addClass('active');
				$(this.tabThreeContent).removeClass('jsHide');
			};
			// tab four
			if (this.tabFourPrefix != undefined) {
				$(this.tabFourId).removeClass('active');
				$(this.tabFourContent).addClass('jsHide');
			};
			// tab five
			if (this.tabFivePrefix != undefined) {
				$(this.tabFiveId).removeClass('active');
				$(this.tabFiveContent).addClass('jsHide');
			};
            // tab six
            if (this.tabSixPrefix != undefined) {
                $(this.tabSixId).removeClass('active');
                $(this.tabSixContent).addClass('jsHide');
            };
            // tab seven
            if (this.tabSevenPrefix != undefined) {
                $(this.tabSevenId).removeClass('active');
                $(this.tabSevenContent).addClass('jsHide');
            };
            break;

			case 'tabFour' :

			//  tab one
			if (this.tabOnePrefix != undefined) {
				$(this.tabOneId).removeClass('active');
				$(this.tabOneContent).addClass('jsHide');
			};
			// tab two
			if (this.tabTwoPrefix != undefined) {
				$(this.tabTwoId).removeClass('active');
				$(this.tabTwoContent).addClass('jsHide');
			};
			// tab three
			if (this.tabThreePrefix != undefined) {
				$(this.tabThreeId).removeClass('active');
				$(this.tabThreeContent).addClass('jsHide');
			};
			// tab four
			if (this.tabFourPrefix != undefined) {
				$(this.tabFourId).addClass('active');
				$(this.tabFourContent).removeClass('jsHide');
			};
			// tab five
			if (this.tabFivePrefix != undefined) {
				$(this.tabFiveId).removeClass('active');
				$(this.tabFiveContent).addClass('jsHide');
			};
            // tab six
            if (this.tabSixPrefix != undefined) {
                $(this.tabSixId).removeClass('active');
                $(this.tabSixContent).addClass('jsHide');
            };
            // tab seven
            if (this.tabSevenPrefix != undefined) {
                $(this.tabSevenId).removeClass('active');
                $(this.tabSevenContent).addClass('jsHide');
            };
                break;

			case 'tabFive' :

			//  tab one
			if (this.tabOnePrefix != undefined) {
				$(this.tabOneId).removeClass('active');
				$(this.tabOneContent).addClass('jsHide');
			};
			// tab two
			if (this.tabTwoPrefix != undefined) {
				$(this.tabTwoId).removeClass('active');
				$(this.tabTwoContent).addClass('jsHide');
			};
			// tab three
			if (this.tabThreePrefix != undefined) {
				$(this.tabThreeId).removeClass('active');
				$(this.tabThreeContent).addClass('jsHide');
			};
			// tab four
			if (this.tabFourPrefix != undefined) {
				$(this.tabFourId).removeClass('active');
				$(this.tabFourContent).addClass('jsHide');
			};
			// tab five
			if (this.tabFivePrefix != undefined) {
				$(this.tabFiveId).addClass('active');
				$(this.tabFiveContent).removeClass('jsHide');
			};
            // tab six
            if (this.tabSixPrefix != undefined) {
                $(this.tabSixId).removeClass('active');
                $(this.tabSixContent).addClass('jsHide');
            };
            // tab seven
            if (this.tabSevenPrefix != undefined) {
                $(this.tabSevenId).removeClass('active');
                $(this.tabSevenContent).addClass('jsHide');
            };

                break;

            case 'tabSix' :

            //  tab one
            if (this.tabOnePrefix != undefined) {
                $(this.tabOneId).removeClass('active');
                $(this.tabOneContent).addClass('jsHide');
            };
            // tab two
            if (this.tabTwoPrefix != undefined) {
                $(this.tabTwoId).removeClass('active');
                $(this.tabTwoContent).addClass('jsHide');
            };
            // tab three
            if (this.tabThreePrefix != undefined) {
                $(this.tabThreeId).removeClass('active');
                $(this.tabThreeContent).addClass('jsHide');
            };
            // tab four
            if (this.tabFourPrefix != undefined) {
                $(this.tabFourId).removeClass('active');
                $(this.tabFourContent).addClass('jsHide');
            };
            // tab five
            if (this.tabFivePrefix != undefined) {
                $(this.tabFiveId).removeClass('active');
                $(this.tabFiveContent).addClass('jsHide');
            };
            // tab six
            if (this.tabSixPrefix != undefined) {
                $(this.tabSixId).addClass('active');
                $(this.tabSixContent).removeClass('jsHide');
            };
            // tab seven
            if (this.tabSevenPrefix != undefined) {
                $(this.tabSevenId).removeClass('active');
                $(this.tabSevenContent).addClass('jsHide');
            };

                break;

            case 'tabSeven' :

            //  tab one
            if (this.tabOnePrefix != undefined) {
                $(this.tabOneId).removeClass('active');
                $(this.tabOneContent).addClass('jsHide');
            };
            // tab two
            if (this.tabTwoPrefix != undefined) {
                $(this.tabTwoId).removeClass('active');
                $(this.tabTwoContent).addClass('jsHide');
            };
            // tab three
            if (this.tabThreePrefix != undefined) {
                $(this.tabThreeId).removeClass('active');
                $(this.tabThreeContent).addClass('jsHide');
            };
            // tab four
            if (this.tabFourPrefix != undefined) {
                $(this.tabFourId).removeClass('active');
                $(this.tabFourContent).addClass('jsHide');
            };
            // tab five
            if (this.tabFivePrefix != undefined) {
                $(this.tabFiveId).removeClass('active');
                $(this.tabFiveContent).addClass('jsHide');
            };
            // tab six
            if (this.tabSixPrefix != undefined) {
                $(this.tabSixId).removeClass('active');
                $(this.tabSixContent).addClass('jsHide');
            };
            // tab seven
            if (this.tabSevenPrefix != undefined) {
                $(this.tabSevenId).addClass('active');
                $(this.tabSevenContent).removeClass('jsHide');
            };

                break;
        }
		global.jogHeight($(this.containerId));
	}
});