﻿<!--
	var NN4=0,W3C=0,IE=0;

	if (document.all) IE=1;
	if (document.getElementById) W3C=1;
	if (document.layers) NN4=1;

    //alert('NN4:'+NN4+'\nW3C:'+W3C+'\nIE:'+IE);

	var CurrentTab='020';
	
	function ChangeBackground(i,bgcolor,fontcolor) {

        // Check if current tab is selected?
		if (!(i == 'menu' + CurrentTab))
		{
		    if (document.layers)
		    {
			    window.document.layers[i].bgColor = bgcolor;
			    //window.document.layers[i].style = "color:" + fontcolor;
		    }
		    else 
		    {
			    if (document.all)
			    {
				    window.document.all[i].style.background = bgcolor;
				    //window.document.all[i].style.color = fontcolor;
			    }
    		    else
		        {
		            if (document.getElementById)
		            {
		                document.getElementById(i).style.background = bgcolor;
		                //document.getElementById(i).style.color = fontcolor;
		            }
                }
		    }
		}
	}

	function ChangeBackgroundTab(i,bgcolor,fontcolor) {

	    if (document.layers)
	    {
		    window.document.layers[i].bgColor = bgcolor;
		    //window.document.layers[i].style = "color:" + fontcolor;
	    }
	    else 
	    {
		    if (document.all)
		    {
			    window.document.all[i].style.background = bgcolor;
			    //window.document.all[i].style.color = fontcolor;
		    }
		    else
		    {
		        if (document.getElementById)
		        {
		            document.getElementById(i).style.background = bgcolor;
		            //document.getElementById(i).style.color = fontcolor;
		        }
            }
	    }
	}
		
	function ShowStockists(intCurrentTab) {
	
	//alert(CurrentTab);
	
		if (!(intCurrentTab == CurrentTab))
		{
			ShowDiv(intCurrentTab);
			HideDiv(CurrentTab);
			ChangeBackgroundTab('menu'+intCurrentTab,'#2064b7','#fff003')
			ChangeBackgroundTab('menu'+CurrentTab,'#31b0d1','#ffffff')
			CurrentTab = intCurrentTab;
		}
	}
	
	function ShowDiv(DivNo) {

		if (IE) document.all["divState"+DivNo].style.display='inline';
		else if (W3C) document.getElementById("divState"+DivNo).style.display='';
		else eval("document.divState"+DivNo+".visibility='show';");
	}

	function HideDiv(DivNo) {

		if (IE) document.all["divState"+DivNo].style.display='none';
		else if (W3C) document.getElementById("divState"+DivNo).style.display='none';
		else eval("document.divState"+DivNo+".visibility='hide';");
	}
//-->

