
                function ShowHomeTab(x)
                {
                
                  hidediv('tab1');
                  hidediv('tab2');
                  hidediv('tab3');
                  hidediv('tab4');
                  
                  document.getElementById('divtab1').className ="Producttab";
                  document.getElementById('divtab2').className ="Producttab";
                  document.getElementById('divtab3').className ="Producttab";
                  document.getElementById('divtab4').className ="Producttab";
                  
                  if(x == 1)
                  {
                    showdiv('tab1');
                    document.getElementById('divtab1').className ="Producttab-sel";
                  }
                  if(x == 2)
                  {
                    showdiv('tab2');
                    document.getElementById('divtab2').className ="Producttab-sel";
                  }
                  if(x == 3)
                  {
                    showdiv('tab3');
                    document.getElementById('divtab3').className ="Producttab-sel";
                  }
                   if(x == 4)
                  {
                    showdiv('tab4');
                    document.getElementById('divtab4').className ="Producttab-sel";
                  }
                }

                function hidediv(id) {
	                //safe function to hide an element with a specified id
	                if (document.getElementById) { // DOM3 = IE5, NS6
		                document.getElementById(id).style.display = 'none';
	                }
	                else {
		                if (document.layers) { // Netscape 4
			                document.id.display = 'none';
		                }
		                else { // IE 4
			                document.all.id.style.display = 'none';
		                }
	                }
                }
                
                function showdiv(id) {
	                //safe function to show an element with a specified id
                		  
	                if (document.getElementById) { // DOM3 = IE5, NS6
		                document.getElementById(id).style.display = 'block';
	                }
	                else {
		                if (document.layers) { // Netscape 4
			                document.id.display = 'block';
		                }
		                else { // IE 4
			                document.all.id.style.display = 'block';
		                }
	                }
                }
                

