﻿ jQuery(document).ready(function(){

     var Tab1a = '#nBrightUI_Tab1-1'
     var Tab1b = '#nBrightUI_Tab1-2'
     var Tab1c = '#nBrightUI_Tab1-3'

	 var Tab2a = '#nBrightUI_Tab2-1'
     var Tab2b = '#nBrightUI_Tab2-2'

    jQuery(Tab1b).hide();
    jQuery(Tab1a).show();
    jQuery(Tab1a+'but').addClass('nBrightUI_Tab1-1selclass');
    jQuery(Tab1b+'but').addClass('nBrightUI_Tab1-2class');
    jQuery(Tab1a+'butGB').addClass('nBrightUI_Tab1-1selclassGB');
    jQuery(Tab1b+'butGB').addClass('nBrightUI_Tab1-2classGB');

    jQuery(Tab2b).hide();
    jQuery(Tab2a).show();
    jQuery(Tab2a+'but').addClass('nBrightUI_Tab2-1selclass');
    jQuery(Tab2b+'but').addClass('nBrightUI_Tab2-2class');
    jQuery(Tab2a+'butGB').addClass('nBrightUI_Tab2-1selclassGB');
    jQuery(Tab2b+'butGB').addClass('nBrightUI_Tab2-2classGB');


    jQuery(Tab1a+'but').click(
    function() {		
		jQuery(Tab1a).show(0);
		jQuery(Tab1c).show(0);
	    jQuery(Tab1b).hide();

	    jQuery(Tab1a+'but').removeClass('nBrightUI_Tab1-1class');
        jQuery(Tab1a+'but').addClass('nBrightUI_Tab1-1selclass');
	    jQuery(Tab1b+'but').removeClass('nBrightUI_Tab1-2selclass');
        jQuery(Tab1b+'but').addClass('nBrightUI_Tab1-2class');
		
        return false;
    });
	
    jQuery(Tab1b+'but').click(
    function() {
		jQuery(Tab1b).show(0);
	    jQuery(Tab1a).hide();
	    jQuery(Tab1c).hide();

	    jQuery(Tab1b+'but').removeClass('nBrightUI_Tab1-2class');
        jQuery(Tab1b+'but').addClass('nBrightUI_Tab1-2selclass');
	    jQuery(Tab1a+'but').removeClass('nBrightUI_Tab1-1selclass');
        jQuery(Tab1a+'but').addClass('nBrightUI_Tab1-1class');		

        return false;
    });


    jQuery(Tab2a+'but').click(
    function() {		
		jQuery(Tab2a).show(0);
	    jQuery(Tab2b).hide();

	    jQuery(Tab2a+'but').removeClass('nBrightUI_Tab2-1class');
        jQuery(Tab2a+'but').addClass('nBrightUI_Tab2-1selclass');
	    jQuery(Tab2b+'but').removeClass('nBrightUI_Tab2-2selclass');
        jQuery(Tab2b+'but').addClass('nBrightUI_Tab2-2class');
		
        return false;
    });
	
    jQuery(Tab2b+'but').click(
    function() {
		jQuery(Tab2b).show(0);
	    jQuery(Tab2a).hide();

	    jQuery(Tab2b+'but').removeClass('nBrightUI_Tab2-2class');
        jQuery(Tab2b+'but').addClass('nBrightUI_Tab2-2selclass');
	    jQuery(Tab2a+'but').removeClass('nBrightUI_Tab2-1selclass');
        jQuery(Tab2a+'but').addClass('nBrightUI_Tab2-1class');		

        return false;
    });


	
	
	    jQuery(Tab1a+'butGB').click(
    function() {		
		jQuery(Tab1a).show(0);
		jQuery(Tab1c).show(0);
	    jQuery(Tab1b).hide();

	    jQuery(Tab1a+'butGB').removeClass('nBrightUI_Tab1-1classGB');
        jQuery(Tab1a+'butGB').addClass('nBrightUI_Tab1-1selclassGB');
	    jQuery(Tab1b+'butGB').removeClass('nBrightUI_Tab1-2selclassGB');
        jQuery(Tab1b+'butGB').addClass('nBrightUI_Tab1-2classGB');
		
        return false;
    });
	
    jQuery(Tab1b+'butGB').click(
    function() {
		jQuery(Tab1b).show(0);
	    jQuery(Tab1a).hide();
	    jQuery(Tab1c).hide();

	    jQuery(Tab1b+'butGB').removeClass('nBrightUI_Tab1-2classGB');
        jQuery(Tab1b+'butGB').addClass('nBrightUI_Tab1-2selclassGB');
	    jQuery(Tab1a+'butGB').removeClass('nBrightUI_Tab1-1selclassGB');
        jQuery(Tab1a+'butGB').addClass('nBrightUI_Tab1-1classGB');		

        return false;
    });


    jQuery(Tab2a+'butGB').click(
    function() {		
		jQuery(Tab2a).show(0);
	    jQuery(Tab2b).hide();

	    jQuery(Tab2a+'butGB').removeClass('nBrightUI_Tab2-1classGB');
        jQuery(Tab2a+'butGB').addClass('nBrightUI_Tab2-1selclassGB');
	    jQuery(Tab2b+'butGB').removeClass('nBrightUI_Tab2-2selclassGB');
        jQuery(Tab2b+'butGB').addClass('nBrightUI_Tab2-2classGB');
		
        return false;
    });
	
    jQuery(Tab2b+'butGB').click(
    function() {
		jQuery(Tab2b).show(0);
	    jQuery(Tab2a).hide();

	    jQuery(Tab2b+'butGB').removeClass('nBrightUI_Tab2-2classGB');
        jQuery(Tab2b+'butGB').addClass('nBrightUI_Tab2-2selclassGB');
	    jQuery(Tab2a+'butGB').removeClass('nBrightUI_Tab2-1selclassGB');
        jQuery(Tab2a+'butGB').addClass('nBrightUI_Tab2-1classGB');		

        return false;
    });


});



