startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("menu");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="DIV") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}

window.onload=startList;


function mess() // Scramble my email address
{
  var a,b,c,d,e

  a='<a hr'
  a+='ef=\"mai'
  b='w'
  b+='e'
  b+='b'
  b+='site'
  c='\">'
  a+='lto:'
  b+='@'
  e='</' + 'a>'
  d='webs'
  d+='ite@facebookblast.com'
  b+='facebookblast.com'

  document.write(a+b+c+d+e)
}


function getcode(codeblockbox)
{
  var textbloc = eval("document."+codeblockbox)
  textbloc.focus()
  textbloc.select()
  
  if (document.all)
  {
    therange = textbloc.createTextRange()
    therange.execCommand("Copy")
    alert("Glitter HTML copied successfully!")
  }
}

function openNewWindow(windowurl)
{
  popupWin = window.open(windowurl, 'open_window', 'scrollbars,resizable,dependent,width=440,height=305,left=0,top=0')
}


function addbookmark()
{
  var urlAddress = "http://www.facebookblast.com";
  var pageName = "facebookblast.com - Style Your Facebook";
  if(window.external)
    window.external.AddFavorite(urlAddress,pageName)
  else
   alert("Sorry! We could not bookmark facebookblast.com automatically.");
}


function openhelpwin()
{
  popupWin = window.open('http://www.facebookblast.com/help.asp', 'open_window', 'toolbar,scrollbars,resizable,dependent,width=490,height=450,left=0,top=0')
}
