// JavaScript Document
<!--


function getLyrRef(lyr,doc) {
        if (document.layers) {
                var theLyr;
                for (var i=0; i<doc.layers.length; i++) {
                theLyr = doc.layers[i];
                        if (theLyr.name == lyr) return theLyr;
                        else if (theLyr.document.layers.length > 0) 
                if ((theLyr = getLyrRef(lyr,theLyr.document)) != null)
                                        return theLyr;
          }
                return null;
  }
}

function showMedium() {
   objName="LyrMedium"
   objName1="LyrStyle"
   objName2="LyrTheme"
   
   show(objName)
   hide(objName1)
   hide(objName2)
  }
  
function showSubMedium() {
   objName="LyrSubMedium"
   objName1="LyrStyle"
   objName2="LyrTheme"
   
   show(objName)
   hide(objName1)
   hide(objName2)
  }
  
function showStyle() {
   objName="LyrSubMedium"
   objName1="LyrStyle"
   objName2="LyrTheme"
   
   show(objName1)
   hide(objName)
   hide(objName2)
   }

function showTheme() {
   objName="LyrSubMedium"
   objName1="LyrStyle"
   objName2="LyrTheme"
   
   show(objName2)
   hide(objName)
   hide(objName1)
   }

function getObject(obj) {
	var theObj
	if (typeof obj == "string") {
	    if (document.layers) {
		  theObj = getLyrRef(obj,document)
		 
		}
		else {
		  if (document.all) {
		    theObj = document.all[obj]
	      }
		  else {
		    theObj = document.getElementById(obj)
		  }
		}
	}
	else {
		theObj = obj
	}
	return theObj
}
function hide(obj) {
	var theObj = getObject(obj)
	if ((document.layers) && !(typeof(theObj)=='undefined')) {
	  theObj.visibility = "hidden"
	}
	else {
		if (!(typeof(theObj)=='undefined'))
			theObj.style.visibility = "hidden"
	}
}
function show(obj) {
    
	var theObj = getObject(obj)
	if (document.layers) {
	  theObj.visibility = "visible"
	}
	else {
	  theObj.style.visibility = "visible"
	}
}
