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 dosubmit(imageform)
{
  selectedimage = new Image();
  selectedimage.src = document.getElementById("imageurl").value;
  document.getElementById("imageheight").value = selectedimage.height;
  document.getElementById("imagewidth").value = selectedimage.width;
  if (document.getElementById("imageurl").value == "http://")
    alert("Please enter the URL of an image you wish to edit.")
  else
  imageform.submit();
}

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 addbookmark()
{
  var urlAddress = "http://www.cdomain.com";
  var pageName = "cdomain.com";
  if(window.external)
    window.external.AddFavorite(urlAddress,pageName)
  else
   alert("Sorry! We could not bookmark cdomain.com automatically.");
}

function openNewWindow(windowurl)
{
  popupWin = window.open(windowurl, 'open_window', 'scrollbars,resizable,dependent,width=440,height=305,left=0,top=0')
}
