/* Attempt to overcome IE nasties */
/* ------------------------------ */

startList = function()
{
var isIE5m = 0;
var isIE = 0;
var i,j,k,navRoot,node,cnode,knode;

 if ((navigator.platform.indexOf('Mac') != -1) && (navigator.appVersion.indexOf("MSIE 5") != -1))
 {
  isIE5m = 1;
 }
 if (navigator.appVersion.indexOf("MSIE ") != -1)
 {
  isIE = 1;
 }
 navRoot = document.getElementById("t-menu-navigation");
 for (i=0; i < navRoot.childNodes.length; i++)
 {
  node = navRoot.childNodes[i];
  if (node.nodeName=="LI")
  {
/*   if (isIE)
   {
    node.style.width = "146px";
   } */
   node.onmouseover=function() { this.className+=" over"; this.style.zIndex=200; }
   node.onmouseout=function() { this.className=this.className.replace(" over", ""); this.style.zIndex=100; }
/*   if (isIE)
   {
    for (j=0; j < node.childNodes.length; j++)
    {
     cnode = node.childNodes[j];
     if (cnode.nodeName=="UL")
     {
      for(k=0; k < cnode.childNodes.length; k++)
      {
       knode = cnode.childNodes[k];
       if (knode.nodeName=="LI")
        knode.style.width = "136px"; 
      }
     }
    }
   } */
  }
 }
}
window.onload=startList;

var clickmessage="Right click disabled on images!"

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
