// ------------------------------------------------------------------------------------------------// THIS SCRIPT INSERTS THE CORRECT TAB IMAGEfunction insertTabImage()		{		// Grab page from URL		var URL = window.location;		document.invisibleForm.invisibleField.value = URL;		var grabbedURL	= document.invisibleForm.invisibleField.value;		var CurrentPage = grabbedURL.slice( (grabbedURL.lastIndexOf("/")+1) , grabbedURL.length );		// Pick the Image		if ( CurrentPage.charAt(0) == "s" )			{			document.write('<img src="../img/interface/head_strategies.gif">');			}		else if ( CurrentPage.charAt(0) == "r" )			{			document.write('<img src="../img/interface/head_resources.gif">');			}		else if ( CurrentPage.charAt(0) == "e" )			{			document.write('<img src="../img/interface/head_meetings.gif">');			}		else			{			document.write('<img src="../img/interface/head_what_is.gif">');			}		}// ------------------------------------------------------------------------------------------------// THIS SCRIPT PRINTS THE NAME OF A MENU IN ORANGEfunction nameInOrange()		{		// Grab page from URL		var URL = window.location;		// Put the URL in an invisible field		document.invisibleForm.invisibleField.value = URL;		// Set a variable to the value of the invisible field		var grabbedURL	= document.invisibleForm.invisibleField.value;		// Pull the current page from the variable and store it variable for use in nav builder.		var CurrentPage = grabbedURL.slice( (grabbedURL.lastIndexOf("/")+1) , grabbedURL.length );		// Begin loop through the strategy categories		switch(CurrentPage.charAt(0))				{				case "s":						for (i = 0; i < strategyCategories.length; i++ )							{							if ( strategyCategories[i].File == CurrentPage )								{								document.write('<p class="categorywhite">' + strategyCategories[i].Name + '</p>');								}							}						break;				case "r":						for (i = 0; i < resourceCategories.length; i++ )							{							if ( resourceCategories[i].File == CurrentPage )								{								document.write('<p class="categorywhite">' + resourceCategories[i].Name + '</p>');								}							}						break;				default:						document.write('<p class="categorywhite">Events</p>');				}		}// ------------------------------------------------------------------------------------------------// THIS SCRIPT PRINTS THE NAME OF A MENU IN ORANGEfunction nameInOrangePage(page)		{		var txtOrange = page.charAt(0)		switch( txtOrange )				{				case "s":						for (i = 0; i < strategyCategories.length; i++ )							{							if ( strategyCategories[i].ID == page )								{								document.write('<p class="categorywhite">' + strategyCategories[i].Name + '</p>');								}							}						break;				case "r":						for (i = 0; i < resourceCategories.length; i++ )							{							if ( resourceCategories[i].ID == page )								{								document.write('<p class="categorywhite">' + resourceCategories[i].Name + '</p>');								}							}						break;				default:						document.write('<p class="categorywhite">Events</p>');				}		}// ------------------------------------------------------------------------------------------------// THIS SCRIPT PRINTS THE SIDE MENU NAVIGATIONfunction navigreat()		{		// Grab page from URL		var URL = window.location;		// Put the URL in an invisible field		document.invisibleForm.invisibleField.value = URL;		// Set a variable to the value of the invisible field		var grabbedURL	= document.invisibleForm.invisibleField.value;		// Pull the current page from the variable and store it variable for use in nav builder.		var CurrentPage = grabbedURL.slice( (grabbedURL.lastIndexOf("/")+1) , grabbedURL.length );		// Begin loop through the strategy categories, but find which ones to loop through		switch(CurrentPage.charAt(0))					{					// In case of "Strategy"					case "s":							for (i = 0; i < strategyCategories.length; i++ )								{								if ( strategyCategories[i].File != CurrentPage && strategyCategories[i].File != "" )									{									document.writeln( '<p class="carrotlink"><img src="../img/interface/carrot.gif"><a href="' + strategyCategories[i].File + '">' + strategyCategories[i].Name + '</a></p>' );									}								else if ( strategyCategories[i].File != "" )									{									document.writeln( '<p>' + strategyCategories[i].Name + '</p>' );									}								}							break;					// In case of "Resources"					case "r":							for (i = 0; i < resourceCategories.length; i++ )								{								if ( resourceCategories[i].File != CurrentPage && resourceCategories[i].File != "" )									{									document.writeln( '<p class="carrotlink"><img src="../img/interface/carrot.gif"><a href="' + resourceCategories[i].File + '">' + resourceCategories[i].Name + '</a></p>' );									}								else if ( resourceCategories[i].File != "" )									{									document.writeln( '<p>' + resourceCategories[i].Name + '</p>' );									}								}							break;					// In case of "default"					default:							document.writeln( '&nbsp;' );					}		}// ------------------------------------------------------------------------------------------------// BEGIN FUNCTIONS THAT CREATE IMAGE SWAPSfunction MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; }function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} }function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x; }function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} }
