//<script language="JavaScript1.2">

/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/


var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
 //membership
submenu[0]= '<a href="http://www.internet2.edu/membership/resources.html" class="four">Resources</a> ' +
			'<a href="http://www.internet2.edu/membership/membership_structure.cfm" class="two">Levels & Categories</a> ' +
						'<a href="http://www.internet2.edu/membership/dues.html" class="one">Dues</a> ' +
			'<a href="http://www.internet2.edu/membership/apply/" class="three">Apply Now</a>';
//network 
submenu[1]='<a href="http://www.internet2.edu/network/ip/" class="one">IP Network</a> ' +
			'<a href="http://www.internet2.edu/ion" class="two">ION</a> ' +
			'<a href="http://www.internet2.edu/network/cp/" class="three">CP Service</a> ' +
			'<a href="http://www.internet2.edu/connectors/" class="four">Connectors</a> ' +
			'<a href="http://www.internet2.edu/network/participants/" class="five">Participants</a> ' +
			'<a href="http://www.internet2.edu/network/peers/" class="six">Peers</a>' +
			'<a href="http://www.internet2.edu/network/rhcpp/" class="seven">RHCPP</a>';
//communities
submenu[2]='<a href="http://www.internet2.edu/arts/" class="one">Arts</a> ' +
			'<a href="http://www.internet2.edu/health/" class="two">Health</a> '+
			'<a href="http://www.internet2.edu/science/" class="three">Science</a> '+
			'<a href="http://www.internet2.edu/networkresearch/" class="four">Network Research</a> '+
			'<a href="http://members.internet2.edu/corporate/" class="five">Industry</a> '+
			'<a href="http://www.internet2.edu/renm/" class="six">R&amp;E Network</a> '+
			'<a href="http://www.internet2.edu/k20/" class="seven">K20</a> '+
			'<a href="http://international.internet2.edu/index.cfm" class="eight">International</a> '+
			'<a href="http://www.internet2.edu/government/" class="nine">Government</a>';
//services
submenu[3]='<a href="http://www.internet2.edu/network/" class="one">Network</a> '+
			'<a href="http://www.internet2.edu/waveco/" class="two">WaveCo</a> '+
			'<a href="http://www.fiberco.org/" class="three">FiberCo</a> '+
			'<a href="http://www.internet2.edu/manlan/" class="seven">MAN LAN</a> '+
			'<a href="http://commons.internet2.edu/" class="four">The Commons</a> '+
			'<a href="http://www.incommonfederation.org/" class="five">InCommon</a> '+
			'<a href="http://usher.internet2.edu/" class="six">USHER</a>';
//projects
submenu[4]='<a href="http://www.internet2.edu/networkresearch" class="one">Network Research</a> '+
			'<a href="http://www.internet2.edu/performance/" class="two">Performance</a> '+
			'<a href="http://www.internet2.edu/observatory/" class="three">The Observatory</a> '+
			'<a href="http://www.internet2.edu/middleware/" class="four">Middleware</a> '+
			'<a href="http://www.internet2.edu/security/" class="five">Security</a> '+
			'<a href="http://voip.internet2.edu/sip.edu/" class="six">SIP.edu</a> '+
			'<a href="http://www.internet2.edu/dcresearch" class="seven">Hybrid Networks</a>';
//Tools
submenu[5]='<a href="http://www.internet2.edu/shibboleth/" class="one">Shibboleth</a> '+
						'<a href="http://www.internet2.edu/grouper/" class="two">Grouper</a> '+
						'<a href="http://www.opensaml.org/" class="three">OpenSAML</a> '+
						'<a href="http://www.internet2.edu/performance/bwctl/index.html" class="four">BWCTL</a> '+
						'<a href="http://www.internet2.edu/performance/ndt/index.html" class="five">NDT</a> '+
						'<a href="http://www.internet2.edu/performance/owamp/index.html" class="six">OWAMP</a> '+
						'<a href="http://www.internet2.edu/performance/toolkit/" class="seven">pS-Performance Toolkit</a> '+
			'<a href="http://www.internet2.edu/performance/pS-PS/" class="eight">perfSONAR</a> '+
			'<a href="http://middleware.internet2.edu/e2ed/" class="nine">EDDY</a>';

//events
submenu[6]='<a href="http://www.internet2.edu/meetings/" class="one">Member Meetings</a> '+
			'<a href="http://www.internet2.edu/jt/" class="two">Joint Techs</a> '+
			'<a href="http://www.internet2.edu/workshops" class="three">Workshops</a>';
//newsroom
submenu[7]='';
//about
submenu[8]='<a href="http://www.internet2.edu/strategicplanning/" class="one">Strategic Planning</a> '+
			'<a href="http://www.internet2.edu/governance/" class="two">Governance</a> '+
				'<a href="http://www.internet2.edu/budget/" class="eight">Budget</a> '+
		 	'<a href="http://www.internet2.edu/about/staff/" class="three">Staff</a> '+
			'<a href="http://www.internet2.edu/about/contact/" class="four">Contact</a> '+
			'<a href="http://www.internet2.edu/about/staff/careers" class="five">Careers</a> '+
			'<a href="http://www.internet2.edu/about/timeline/" class="six">Timeline</a>'+
			'<a href="http://www.internet2.edu/info/" class="seven">Information Kit</a>';



//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=1000;

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("nav2") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
clear_delayhide()
//thecontent=(which==-1)? "" : submenu[which]
thecontent=(which==-1)? default_subnav : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
////////////////////////////////////////From here on out- Iman's functions 
/* Toggle function for top layer I2 menus */
function toggle(obj) {
	var el = document.getElementById(obj);
	//if ( el.style.display != 'none' ) {
	if ( el.style.display == 'block') {	
		el.style.display = 'none';
	}
	else {
		el.style.display = 'block';
	}
}


function focusS(s) {
var el = document.getElementById(s);
if (el.value == "Search Internet2") {
	el.value = ''; 
	el.style.color = 'black';
	}
}

function blurS(s) {
var el = document.getElementById(s);
if (el.value == '') { 
	el.value = 'Search Internet2'; 
	el.style.color = 'gray';
	}
}

//If JS is enabled, replace the link with a # so as to prevent location change
function replaceLink(obj) {
	if (typeof obj == 'string')
		var el = document.getElementById(obj);
	else 
		var el = obj;
	if (el) {
		el.href='#';
	}
}
/*</script>*/