   var currentPanel;
   
   function showPanel(panelNum) {
      //hide visible panel, show selected panel, 
      //set tab
      if (currentPanel != null) {
         hidePanel();
      }
      document.getElementById 
         ('panel'+panelNum).style.visibility = 'visible';
         currentPanel = panelNum;
         setState(panelNum);
   }
   
   function hidePanel() {
      //hide visible panel, unhilite tab
      document.getElementById
        ('panel'+currentPanel).style.visibility = 
         'hidden';
      document.getElementById
        ('tab'+currentPanel).style.backgroundColor = 
        '#ba7bb5';
      document.getElementById
        ('tab'+currentPanel).style.color = 'white';
   }

   
    
   function setState(tabNum) {
      if (tabNum==currentPanel) {
         document.getElementById 
           ('tab'+tabNum).style.backgroundColor = 
           '#ffffff';
         document.getElementById
           ('tab'+tabNum).style.color = 'black';

		   }
      else {
         document.getElementById
           ('tab'+tabNum).style.backgroundColor = 
           '#ba7bb5';
         document.getElementById
           ('tab'+tabNum).style.color = 'white';		 
      }
   }
   
   function hover(tab) {
      tab.style.backgroundColor = 'cccccc'; 
	  tab.style.color = 'black';
   }
   
   
// MaxStream tables-----------------------------------------------------------------------------------------------------------------
   function purpleHover() {
	   style.backgroundColor = 'ba7bb5'; 
	   style.color = 'white';
   }
   
   function purpleSetState() {
	   style.backgroundColor = 'transparent'; 
	   style.color = 'black';
   }
   
//Brief Description Code----------------------------------------------------

   var currentpanelBrief;
   
   function showpanelBrief(panelBriefNum) {
      //hide visible panelBrief, show selected panelBrief, 
      //set tabBrief
      if (currentpanelBrief != null) {
         hidepanelBrief();
      }
      document.getElementById 
         ('panelBrief'+panelBriefNum).style.visibility = 'visible';
         currentpanelBrief = panelBriefNum;
         setStateBrief(panelBriefNum);
   }
   
   function hidepanelBrief() {
      //hide visible panelBrief, unhilite tabBrief
      document.getElementById
        ('panelBrief'+currentpanelBrief).style.visibility = 
         'hidden';
      document.getElementById
        ('tabBrief'+currentpanelBrief).style.backgroundColor = 
        '#ffffff';
      document.getElementById
        ('tabBrief'+currentpanelBrief).style.color = '#000000';
   }

   
    
   function setStateBrief(tabBriefNum) {
      if (tabBriefNum==currentpanelBrief) {
         document.getElementById 
           ('tabBrief'+tabBriefNum).style.backgroundColor = 
           '#ffffff';
         document.getElementById
           ('tabBrief'+tabBriefNum).style.color = 'black';

		   }
      else {
         document.getElementById
           ('tabBrief'+tabBriefNum).style.backgroundColor = 
           '#ffffff';
         document.getElementById
           ('tabBrief'+tabBriefNum).style.color = '#000000';		 
      }
   }
   
   function hoverBrief(tabBrief) {
      tabBrief.style.backgroundColor = 'ffffff'; 
	  tabBrief.style.color = 'black';
	  tabBrief.style.cursor = 'pointer';
	  tabBrief.style.cursor = 'hand';
   }
  
//ILLUMRA Item Page Tabs ----------------------------------------------------
 
   var currentPanelI;
   
   function showPanelI(PanelINum) {
      //hide visible PanelI, show selected PanelI, 
      //set tabI
      if (currentPanelI != null) {
         hidePanelI();
      }
      document.getElementById 
         ('PanelI'+PanelINum).style.visibility = 'visible';
         currentPanelI = PanelINum;
         setStateI(PanelINum);
   }
   
   function hidePanelI() {
      //hide visible PanelI, unhilite tabI
      document.getElementById
        ('PanelI'+currentPanelI).style.visibility = 
         'hidden';
      document.getElementById
        ('tabI'+currentPanelI).style.backgroundColor = 
        '#FFC20E';
      document.getElementById
        ('tabI'+currentPanelI).style.color = 'black';
   }

   function setStateI(tabINum) {
      if (tabINum==currentPanelI) {
         document.getElementById 
           ('tabI'+tabINum).style.backgroundColor = 
           '#ffffff';
         document.getElementById
           ('tabI'+tabINum).style.color = 'black';

		   }
      else {
         document.getElementById
           ('tabI'+tabINum).style.backgroundColor = 
           '#FFC20E';
         document.getElementById
           ('tabI'+tabINum).style.color = 'black';		 
      }
   }
   
   function hoverI(tabI) {
      tabI.style.backgroundColor = '808080'; 
	  tabI.style.color = 'white';
   }
   
   var currentpanelAvalan;
   
   function showpanelAvalan(panelAvalanNum) {
      //hide visible panelAvalan, show selected panelAvalan, 
      //set tabAvalan
      if (currentpanelAvalan != null) {
         hidepanelAvalan();
      }
      document.getElementById 
         ('panelAvalan'+panelAvalanNum).style.visibility = 'visible';
         currentpanelAvalan = panelAvalanNum;
         setStateAvalan(panelAvalanNum);
   }
   
   function hidepanelAvalan() {
      //hide visible panelAvalan, unhilite tabAvalan
      document.getElementById
        ('panelAvalan'+currentpanelAvalan).style.visibility = 
         'hidden';
      document.getElementById
        ('tabAvalan'+currentpanelAvalan).style.backgroundColor = 
        '#ffffff';
      document.getElementById
        ('tabAvalan'+currentpanelAvalan).style.color = '#000000';
   }
    
   function setStateAvalan(tabAvalanNum) {
      if (tabAvalanNum==currentpanelAvalan) {
         document.getElementById 
           ('tabAvalan'+tabAvalanNum).style.backgroundColor = 
           '#ffffff';
         document.getElementById
           ('tabAvalan'+tabAvalanNum).style.color = 'black';

		   }
      else {
         document.getElementById
           ('tabAvalan'+tabAvalanNum).style.backgroundColor = 
           '#ffffff';
         document.getElementById
           ('tabAvalan'+tabAvalanNum).style.color = '#000000';		 
      }
   }
   
   function hoverAvalan(tabAvalan) {
      tabAvalan.style.backgroundColor = '#ba7bb5'; 
	  tabAvalan.style.color = 'white';
	  tabAvalan.style.cursor = 'pointer';
	  tabAvalan.style.cursor = 'hand';
   }