// JavaScript Document
var ie=document.all;  
var headerLinkRollover = "#FF0000";
var headerLinkRollout = "";

function useGradient()
 { windowWidth=window.document.body.clientWidth;
   windowHeight=window.document.body.clientHeight;
   if (windowWidth>=906)
    { document.getElementById("t0").style.top=(-.66*windowWidth)+"px";
      if (document.getElementById("fakebody").style.height>=1000)
	    { document.getElementById("fakebody").style.height=(.66*windowWidth)+"px"; }
	  document.getElementById("fakebody").style.width=windowWidth+"px";
	}
 }

function showMenu(name)
  { hideAllMenus();
    document.getElementById(name).style.display="block";
  }
  
function hideMenu(name)
  { document.getElementById(name).style.display="none";
  }
  
function hideAllMenus()
  { document.getElementById("instructormenu").style.display="none";
    document.getElementById("defensemenu").style.display="none";
	document.getElementById("storiesmenu").style.display="none";
	document.getElementById("faqmenu").style.display="none";
  }
function googTrans(lang)
  { currentURL=window.location.href;
    currentURL=currentURL.slice(7);
    newURL="http://translate.google.com/translate?u=http%3A//" + currentURL + "&amp;langpair=en|" + lang +  "&amp;hl=en&amp;ie=UTF-8&amp;oe=UTF-8&amp;prev=/language_tools";
	window.location.href=newURL;
  }