// Cool CSS Menu- By JavaScriptKit.com (http://www.javascriptkit.com)
// Fading routine based on Dynamic Drive script: http://www.dynamicdrive.com/dynamicindex4/highlightgrad.htm


// This will show the menu information

var baseopacity=0

function showtext(thetext){
if (!document.getElementById)
return
textcontainerobj=document.getElementById("menu_info")
browserdetect=textcontainerobj.filters? "ie" : typeof textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""
instantset(baseopacity)
document.getElementById("menu_info").innerHTML=thetext
highlighting=setInterval("gradualfade(textcontainerobj)",50)}

function hidetext(){
  cleartimer()
  instantset(baseopacity)}

function instantset(degree){
  if (browserdetect=="mozilla")
    textcontainerobj.style.MozOpacity=degree/100
  else if (browserdetect=="ie")
    textcontainerobj.filters.alpha.opacity=degree
  else if (document.getElementById && baseopacity==0)
    document.getElementById("tabledescription").innerHTML=""}

function cleartimer(){
  if (window.highlighting) clearInterval(highlighting)}

function gradualfade(cur2){
  if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
    cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.2, 0.99)
  else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
    cur2.filters.alpha.opacity+=20
  else if (window.highlighting)
    clearInterval(highlighting)}


// This is to highlight the active menu button

function synchMenu(frameName) {
  var elList, i;
    if (frameName == null)
      return;
    elList = document.getElementsByTagName("A");
    for (i = 0; i < elList.length; i++)
      if (elList[i].target == frameName) {
        if (elList[i].href == window.frames[frameName].location.href) {
        elList[i].className += " activeTab";
      elList[i].blur();}
    else
      ResetName(elList[i], "activeTab")}}

function ResetName(el, name) {
  var i, curList, newList;
  if (el.className == null)
    return;
  newList = new Array();
  curList = el.className.split(" ");
  for (i = 0; i < curList.length; i++)
    if (curList[i] != name)
      newList.push(curList[i]);
  el.className = newList.join(" ")}



// This is to link the cell-link to another frame      

function functionName() {
  parent.main_frame.location.href =
    window.document.formName.textName.value;
  return false}