function showPic(whichpic) {
  var source2 = whichpic.getAttribute("href");
  var placeholder2 = document.getElementById("placeholder2");
  placeholder2.setAttribute("src",source2);
  var text = whichpic.getAttribute("title");
  var description2 = document.getElementById("description2");
  description2.firstChild.nodeValue = text;
}

function countBodyChildren(message) {
	
	var description = document.getElementById("description");
	description.lastChild.firstChild.nodeValue = message;
}

function showSEO() {
	
	var seoDIV = document.getElementById("seoVideo");
	var seoImage = document.getElementById("seoImage")
	seoImage.setAttribute("src","/seo.gif")
	seoDIV.style.display = "block"
	closeSEO = setTimeout('hideSEO()',20000);
	
	
}
function hideSEO() {
var seoDIV = document.getElementById("seoVideo");
seoDIV.style.display = "none";
clearTimeout(closeSEO)

}
function after_closeTheVideo(){

hideSEO();
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

mailHide = function() {
  if (document.getElementById("mail"))
  { var source = "mailto:sales@";
 	source += "brandidentityguru";
 	source += ".com";
  
  var placeholder = document.getElementById("mail");
  var txt = document.createTextNode("Email the Sales Department");
  placeholder.setAttribute("href",source);
  placeholder.appendChild(txt);
  }
}


function openNewWindow(URLtoOpen, windowName,
windowFeatures) { newWindow=window.open(URLtoOpen,
windowName, windowFeatures); }

function openWindow(URLtoOpen, windowName,
windowFeatures) { Window=window.open(URLtoOpen,
windowName, windowFeatures); }


function gb(thePath)
{
 var a = "http://";
 var b = "www.";
 var c = "brandidentityguru.com";
 var d = "/index.html";
 var e = "/"+thePath;
 
 if (thePath){
 location = a+b+c+e;
}
else{
	 location = a+b+c+d;
}

}  


startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}


addLoadEvent(mailHide,startList);



