    /*
    Javascript Browser Sniff 1.0
    Jim Cummins - http://www.conxiondesigns.com
    */
    var isIE = false;
    var isOther = false;
    var isNS4 = false;
    var isNS6 = false;
    if(document.getElementById)
    {
    	if(!document.all)
    	{
    		isNS6=true;
    	}
    	if(document.all)
    	{
    		isIE=true;
    	}
    }
    else
    {
    	if(document.layers)
    	{
	    	isNS4=true;
    	}
    	else
    	{
     		isOther=true;
    	}
    }

    /*
    End of Browser Sniff 1.0
    */
    
    /*
    Access Layer Style Properties
    Jim Cummins - http://www.conxiondesigns.com
    Required components:  Javascript Browser Sniff 1.0
    */
    function aLs(layerID)
    {
      var returnLayer;
    	if(isIE)
    	{
    		returnLayer = eval("document.all." + layerID + ".style");
    	}
    	if(isNS6)
    	{
    		returnLayer = eval("document.getElementById('" + layerID + "').style");
    	}
    	if(isNS4)
    	{
    		returnLayer = eval("document." + layerID);
    	}
    	if(isOther)
	    {
		    returnLayer = "null";
		    alert("-[Error]-\nDue to your browser you will probably not\nbe able to view all of the following page\nas it was designed to be viewed. We regret\nthis error sincerely.");
	    }
    return returnLayer;
    }
    /*
    End of Accessing Layer Style Properties
    */


    /*
    HideShow 1.0
    Jim Cummins - http://www.conxiondesigns.com
    Required components:  Accessing Layer Style Properties (and Req. Comp.)
    */
    function HideShow(ID)
    {
    	if((aLs(ID).visibility == "visible") || (aLs(ID).visibility == ""))
    	{
    		aLs(ID).visibility = "hidden";
    	}
    	else if(aLs(ID).visibility == "hidden")
    	{
    		aLs(ID).visibility = "visible";
    	}
    }
	/* Hide and Show added by Gabor Balazs */
	function Hide(ID)
    {
    	if((aLs(ID).display == "inline") || (aLs(ID).display == ""))
    	{
    		aLs(ID).display = "none";
    	}
    }
    function Show(ID)
    {
		if(aLs(ID).display == "none")
    	{
    		aLs(ID).display = "inline";
    	}
    }
    function ShowHideAll(ID)
    {
    	//var coll = document.all;
		var coll=document.getElementsByTagName('div');
		if (coll!=null) 
		{
			for (i=0; i<coll.length; i++){
//				if (coll.item(i).name=="div")
				{
					if (coll.item(i).id==ID)
						coll.item(i).style.display="inline";
					else
						coll.item(i).style.display="none";
				}
			}
		}

//		if(aLs(ID).display == "none")
//    	{
//    		aLs(ID).display = "inline";
//    	}
    }

    /*
    End of HideShow 1.0
    */

