<!--
//////////////////////////////////////////////////////////
// SiteScript 1/27/02 //
//////////////////////////////////////////////////////////

//	all of the various scripts have been placed here
//	in some chases the order is important
//	comments below call out where to change 
//	values for each particular browser

//	determine the browser and set up the arrays
//	for that browser.  4 sets of parameters, one
//	for each browser tested for.
var navName = navigator.appName ;
var brVer = navigator.appVersion;
var brVerNum = brVer.substring(0,1);
var bName = "";

//	Netscape PC	//
if  (navigator.appName == "Netscape") {	
	var bName = "NS";
	arMenu1 = new Array(		// home btn	//
	140,						
	"","",						// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"",0
	)
	
	arMenu2 = new Array(		// what's new btn	//
	140,
	"291","33",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"cisv in the news","whatsnew_news.shtml",0,	// "titl","url"	//
	"press releases","whatsnew_press.shtml",0		// "titl","url"	//
	)
	
	arMenu3 = new Array(		// about btn	//
	140,
	"408","33",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"history","about_history.shtml",0,				// "titl","url"	//
	"board of directors","about_board.shtml",0,	// "titl","url"	//
	"staff","about_staff.shtml",0,				// "titl","url"	//
	"funding partners","about_partners.shtml",0		// "titl","url"	//
	)
	
	arMenu4 = new Array(		// contact btn	//
	140,
	"527","33",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"","",0			// "titl","url"	//
	)
	
	arMenu5 = new Array(		// resource btn	//
	140,
	"641","33",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"","",0			// "titl","url"	//
	) 
}

//	Netscape Mac	//
if (navigator.appName == "Netscape" && navigator.appVersion.indexOf("Mac") != -1 ) {
	var bName = "NSMac";
	arMenu1 = new Array(		// home btn	//
	140,
	"","",
	"","",
	"","",
	"","",
	"",0
	)
	
	arMenu2 = new Array(		// what's new btn	//
	140,
	"291","33",
	"","",
	"","",
	"","",
	"cisv in the news","whatsnew_news.shtml",0,	// "titl","url"	//
	"press releases","whatsnew_press.shtml",0		// "titl","url"	//
	)
	
	arMenu3 = new Array(		// about btn	//
	140,
	"408","33",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"history","about_history.shtml",0,				// "titl","url"	//
	"board of directors","about_board.shtml",0,	// "titl","url"	//
	"staff","about_staff.shtml",0,				// "titl","url"	//
	"funding partners","about_partners.shtml",0		// "titl","url"	//
	)
	
	arMenu4 = new Array(		// contact btn	//
	140,
	"527","32",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"","",0			// "titl","url"	//
	)
	
	arMenu5 = new Array(	// resource btn	//
	140,
	"641","32",					//	"left pos","top pos"	//
	"","",
	"","",
	"","",
	"","",0			// "titl","url"	//
	)
}

//	IE PC	//
if (navigator.appName == "Microsoft Internet Explorer") { 
	var bName = "IE";
	arMenu1 = new Array(
	140,
	"","",						//	"left pos","top pos"	//
	"","",
	"","",
	"","",
	"",0
	)
	
	arMenu2 = new Array(		// what's new btn	//
	140,
	"291","40",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"cisv in the news","whatsnew_news.shtml",0,	// "titl","url"	//
	"press releases","whatsnew_press.shtml",0		// "titl","url"	//
	)
	
	arMenu3 = new Array(		// about btn	//
	140,
	"409","40",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"history","about_history.shtml",0,				// "titl","url"	//
	"board of directors","about_board.shtml",0,	// "titl","url"	//
	"staff","about_staff.shtml",0,				// "titl","url"	//
	"funding partners","about_partners.shtml",0		// "titl","url"	//
	)
	
	arMenu4 = new Array(		// contact btn	//
	140,
	"529","40",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"","",0			// "titl","url"	//
	)
	
	arMenu5 = new Array(		// resource btn	//
	140,
	"643","40",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"","",0			// "titl","url"	//
	)
}

//	IE Mac	//
if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.indexOf("Mac") != -1 ) { 
	var bName = "IEMac";
	arMenu1 = new Array(		// home btn	//
	140,						//	"left pos","top pos"	//
	"","",
	"","",
	"","",
	"","",
	"",0
	)
	
	arMenu2 = new Array(		// what's new btn	//
	140,
	"293","40",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"cisv in the news","whatsnew_news.shtml",0,	// "titl","url"	//
	"press releases","whatsnew_press.shtml",0		// "titl","url"	//
	)
	
	arMenu3 = new Array(		// about btn	//
	140,
	"411","40",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"history","about_history.shtml",0,				// "titl","url"	//
	"board of directors","about_board.shtml",0,	// "titl","url"	//
	"staff","about_staff.shtml",0,				// "titl","url"	//
	"funding partners","about_partners.shtml",0		// "titl","url"	//
	)
	
	arMenu4 = new Array(		// contact btn	//
	140,
	"529","40",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"","",0			// "titl","url"	//
	)
	
	arMenu5 = new Array(		// resource btn	//
	140,
	"643","40",					// "left pos","top pos"	//
	"","",
	"","",
	"","",
	"","",0			// "titl","url"	//
	)
}
//////////////////////////////////////////////////////////
// now wirte out the stylesheet //
document.write("<link rel='stylesheet' href='css/" + bName + "style.css' type='text/css'>");

//////////////////////////////////////////////////////////	
// Dreamweaver Rollovers //
//////////////////////////////////////////////////////////
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];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}

//////////////////////////////////////////////////////////
// Menus //
//////////////////////////////////////////////////////////
NS4 = (document.layers);     IE4 = (document.all);    ver4 = (NS4 || IE4);	 
IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1);   
isMac = (navigator.appVersion.indexOf("Mac") != -1);  
isMenu = (NS4 || (IE4 && !isMac) || (IE5 && isMac));
function popUp(){return};
function popDown(){return};
if (!ver4) event=null;

if (isMenu) {
	menuVersion = 3;			// 
	menuWidth = 120;						// overridden by the array settings
	childOverlap = 20;						// where sub menus are displayed
	childOffset = 5;						// where sub menus are displayed
	perCentOver = null;						//
	secondsVisible = .1;					// time till disappears
	fntCol = "black";						//
	fntSiz = "9";							//
	fntBold = false;						//
	fntItal = false;						//
	fntFam = "Verdana,Arial,helvetica";		//	
	backCol = "#DDDDDD";					//
	overCol = "#FFCCCC";					//
	overFnt = "black";						//
	borWid = 1;								//
	borCol = "#ca6869";						//
	borSty = "solid";						//
	itemPad = 2;							// space between items
	imgSrc = "tri.gif";						//
	imgSiz = 10;							//
	separator = 1;							// seperator size
	separatorCol = "#cccccc";				// seperator color
	isFrames = false;						//
	keepHilite = true;						//
	clickStart = false;						// must click to start
	clickKill = false;						// must click to go away
}
//////////////////////////////////////////////////////////
// attach the script that runs the menus //
//////////////////////////////////////////////////////////
if (isMenu) {
	document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='js/hierMenus.js' TYPE='text/javascript'><\/SCRIPT>");
}
//////////////////////////////////////////////////////////
// preload //
MM_preloadImages('media/nav_whatsnew_over.gif','media/nav_about_over.gif','media/nav_contact_over.gif');
//////////////////////////////////////////////////////////
//-->