

function openShare() {
  if (document.getElementById('sharer').style.display == 'block'){
    document.getElementById('sharer').style.display = 'none';
  } else {
    document.getElementById('sharer').style.display = 'block';
  }
}

sfHover = function() {
	var sfEls = document.getElementById("heading").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
    
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
      
      var subnav = document.getElementById("subheading").getElementsByTagName("UL");
      for (var i=0; i<subnav.length; i++)
        subnav[i].style.display = "none";
      var colorId = this.id.split("-")[1];
      if(document.getElementById("sh-" + colorId)) document.getElementById("sh-" + colorId).style.display = "block";    
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

sfHover2 = function() {
	var sfEls = document.getElementById("subheading").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover2);

//navigation = function() {
function launchMenu(){
	var nav = document.getElementById("heading").getElementsByTagName("LI");
	for (var i=0; i<nav.length; i++) {
    nav[i].onmouseover=function() {
      var subnav = document.getElementById("subheading").getElementsByTagName("UL");
      for (var i=0; i<subnav.length; i++)
      subnav[i].style.display = "none";
      var colorId = this.id.split("-")[1];

      if(document.getElementById("sh-" + colorId)) document.getElementById("sh-" + colorId).style.display = "block";    
    }
   }
}
//window.onload = navigation;