
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://newman.dnsalias.net/old_test_results/summary_report.html" target="_top" title="24/7 testing of the distributed system">Clarens Python Client Tests</a>'
menu1[1]='<a href="http://newman.dnsalias.net/new_test_results/junit-noframes.html" target="_top" title="24/7 testing of the distributed system">Clarens Java Client Tests</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://discover.gridservice.info/web/rendezvous/rendezvous_interface.html" target="_top" title="Discover Services (press \'submit\')">GAE Discovery</a>'
menu2[1]='<a href="http://ultralight.caltech.edu:8080/jclarens/web/rendezvous/rendezvous_interface.html" target="_top" title="Discover Services (press \'submit\')">OSG Discovery</a>'
menu2[2]='<a href="http://ultralight.caltech.edu/web-site/gae/html/refdb.html?softwareDiscovery" target="_top" title="Discovery Software">Software Disocvery</a>'

var menu3=new Array()
menu3[0]='<a href="http://monalisa.caltech.edu/jClient/MonaLisa.jnlp" target="_top" title="Monitor thousands of resources">MonALISA Monitoring Client (old)</a>'
menu3[1]='<a href="http://gocmon.uits.iupui.edu/ganglia-webfrontend/" target="_top" title="Grid3">Grid3 Monitor Data</a>'
menu3[2]='<a href="http://mgmt.datatag.org/" target="_top" title="Datatag">Datatag Switches</a>'
menu3[3]='<a href="http://mgmt.hep.caltech.edu/" target="_top" title="Caltech">Caltech Switches</a>'

var menu4=new Array()
menu4[0]='<a href="http://www.vrvs.org" target="_top" title="Collaborate and Communicate">VRVS</a>'

var menu5=new Array()
menu5[0]='<a href="http://clarens.sourceforge.net" target="_top">Clarens </a>'
menu5[1]='<a href="http://monalisa.cacr.caltech.edu" target="_top">MonALISA</a>'
menu5[2]='<a href="http://www.vrvs.org" target="_top"> VRVS</a>'
menu5[3]='<a href="http://monalisa.cacr.caltech.edu" target="_top">FAST</a>'
menu5[4]='<a href="http://monalisa.cacr.caltech.edu/MONARC/" target="_top">MONARC</a>'
menu5[5]='<a href="http://ultralight.caltech.edu/gaeweb/" target="_top">GAE</a>'
menu5[6]='<a href="http://hepgrid1.caltech.edu/GAE" target="_top">GAE (developers)</a>'
menu5[7]='<a href="http://ultralight.caltech.edu/portal/" target="_top">UltraLight</a>'
menu5[8]='<a href="http://lhcnet.caltech.edu/" target="_top"> LHCNet</a>'
menu5[9]='<a href="http://pcbunn.cacr.caltech.edu/Collaboratory/GECSR_Final.pdf" target="_top">GESCR</a>'

var menu6=new Array()
menu6[0]='<a href="http://www.ppdg.net" target="_top"> PPDG </a>'
menu6[1]='<a href="http://www.opensciencegrid.org" target="_top">OSG</a>'
menu6[2]='<a href="http://ultralight.caltech.edu" target="_top">Ultralight</a>'
menu6[3]='<a href="http://www.ivdgl.org/grid2003/" target="_top">Grid3</a>'
menu6[4]='<a href="http://www.griphyn.org" target="_top">Griphyn</a>'
menu6[5]='<a href="http://lcg.web.cern.ch/LCG/peb/arda/Default.htm" target="_top">ARDA</a>'

var menu7=new Array()
menu7[0]='<a target="_top" href="http://www.ufl.edu">UFL</a>'
menu7[1]='<a target="_top" href="http://www.ucsd.edu">UCSD</a>'
menu7[2]='<a target="_top" href="http://www.pub.ro/English/eng.htm">UPB</a>'
menu7[3]='<a target="_top" href= "http://www.nust.edu.pk">NUST</a>'
menu7[4]='<a target="_top" href= "http://www.uerj.br/prinicpal/linguas/english.html">UERJ</a>'
menu7[5]='<a target="_top" href= "http://www.fnal.gov">Fermi lab</a>'
menu7[6]='<a target="_top" href= "http://www.slac.stanford.edu">SLAC</a>'
menu7[7]='<a target="_top" href="http://public.web.cern.ch/Public/Welcome.html">CERN</a>'

var menu8=new Array()
menu8[0]='<a target="_top" href="http://www.cisco.com">CISCO</a>'
menu8[1]='<a target="_top" href= "http://www.hp.com">HP</a>'
menu8[2]='<a target="_top" href= "http://www.microsoft.com">Microsoft</a>'

var menu9=new Array()
menu9[0]='<a target="_top" href= "http://cms-project-ccs.web.cern.ch/cms-project-ccs/">CERN CMS</a>'
menu9[1]='<a target="_top" href= "http://uscms.fnal.gov">US CMS</a>'
menu9[2]='<a target="_top" href= "http://hep.caltech.edu">Caltech HEP</a>'
menu9[3]='<a target="_top" href= "http://atlas.web.cern.ch/Atlas/internal/Welcome.html">ATLAS</a>'
menu9[4]='<a target="_top" href= "http://www.uscms.org/SoftwareComputing/Grid/MCPS/">Runjob</a>'
menu9[5]='<a target="_top" href= "http://computing.fnal.gov/docs/products/voprivilege/">Privilege Project</a>'
menu9[6]='<a target="_top" href= "http://grid.racf.bnl.gov/GUMS/">GUMS</a>'
menu9[7]='<a target="_top" href="http://www.atlasgrid.bnl.gov/magda/info"> MAGDA </a>'
menu9[8]='<a target="_top" href="https://uimon.cern.ch/twiki/bin/view/Atlas/DonQuijote"> Don Quijote </a>'
menu9[9]='<a target="_top" href="http://cms-project-phedex.web.cern.ch/cms-project-phedex/"> PHEDEX </a>'
menu9[10]='<a target="_top" href="http://cmsdoc.cern.ch/cms/production/www/html/general/index.html"> CMS Prod. (Refdb)</a>'
menu9[11]='<a target="_top" href="http://cmsdoc.cern.ch/cms/production/www/html/general/How_to_run_production.html">CMS Prod. </a>'

var menu10=new Array()
menu10[0]='<a target="_top" href= "http://www.cacr.caltech.edu">CACR Home</a>'
menu10[1]='<a target="_top" href= "http://eu-datagrid.web.cern.ch/eu-datagrid/">EU data grid</a>'
menu10[2]='<a target="_top" href= "http://egee-intranet.web.cern.ch/egee-intranet/">EGEE</a>'
menu10[3]='<a target="_top" href= "http://sdm.lbl.gov/srm-wg/">SRM</a>'
menu10[4]='<a target="_top" href="http://www.mgrid.umich.edu/projects/accounting.html"> MGrid Accounting </a>'

var menu11=new Array()
menu11[0]='<a target="_top" href= "http://pcbunn.cacr.caltech.edu/projdesc/project_descriptions.htm">GIOD</a>'
menu11[1]='<a target="_top" href= "http://pcbunn.cacr.caltech.edu/GAE/CAIGEE/default.htm">CAIGEE</a>'
menu11[2]='<a target="_top" href= "http://pcbunn.cacr.caltech.edu/aldap/kdi_proposal.htm">ALDAP</a>'


var menuwidth='165px' //default menu width
var menubgcolor='orange'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth,leftoffset){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+leftoffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

