// enables rollovers to png images through the addition of a "rollover" class; TODO - developed in Amend; check with all browsersdoRollovers = function() {	var nodes = new Array();	var elems = document.getElementsByTagName('*');	var pattern = new RegExp("(^|\\s)rollover(\\s|$)");	for (i = 0, j = 0; i < elems.length; i++) {		if (pattern.test(elems[i].className)) {			nodes[j] = elems[i];			j++;		}	}	for (var x = 0; x < nodes.length; x++) {		nodes[x].style.cursor = "pointer";		var left = nodes[x].src.substring(0, nodes[x].src.indexOf(".png"));		var right = nodes[x].src.substring(nodes[x].src.indexOf(".png"), nodes[x].src.length);		var img = new Image();		img.src = node.src;		var rimg = new Image();		rimg.src = left + "-over" + right;		nodes[x].onmouseover = function() { nodes[x].src = rimg.src; }		nodes[x].onmouseout = function() { nodes[x].src = img.src; }	}}//font size functionsfunction setCookie(name, value, expires, path, domain, secure) {	// set time, it's in milliseconds	var today = new Date();	today.setTime(today.getTime());	if (expires) {		expires = expires * 1000 * 60 * 60 * 24;	}	var expires_date = new Date(today.getTime() + (expires));		document.cookie = name + "=" +escape( value ) +	(( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 	(( path ) ? ";path=" + path : "" ) + 	(( domain ) ? ";domain=" + domain : "" ) +	(( secure ) ? ";secure" : "" );} // setCookiefunction getCookie(name) {	var start = document.cookie.indexOf(name + "=");	var len = start + name.length + 1;	if ((!start) && (name != document.cookie.substring(0, name.length ))) {		return null;	}	if (start == -1) return null;	var end = document.cookie.indexOf( ";", len );	if (end == -1) end = document.cookie.length;	return unescape(document.cookie.substring(len, end));} // getCookiefunction loadPageFont() {	if(getCookie("font_size")) {		fs = getCookie("font_size");		alert(fs);		setPageFont(fs);	}} // loadPageFontfunction setPageFont(which) {	var c = "";	var bc = document.body.className;	if (bc != "") {		var classes = bc.split(" ");		for (var x = 0; x < classes.length; x++) {			if (classes[x].indexOf("font-") == -1) {				c += classes[x] + " ";			}			}	}		if (which != "") {		c += "font-" + which;	}		document.body.className = c;	var domain = application_webroot.substring(application_webroot.indexOf("http://") + 7, application_webroot.length - 1);	setCookie("font_size", which, 1, "/", domain, false);} // setPageFontfunction init() {	if (document.all) {		nav_root = document.getElementById("navigation").firstChild;		for (i = 0; i < nav_root.childNodes.length; i++) {			node = nav_root.childNodes[i];			if (node.id && node.id.indexOf("nav-") != -1) {				node.onmouseover = function() { this.className += " hover"; }				node.onmouseout = function() { this.className = this.className.replace(" hover", ""); }			}		}	} // adds and removes 'hover' class to the nav li elements for ie	doRollovers(); // adds rollover states for any png images with a class of 'rollover'	loadPageFont();}// placeholder for form submits during devfunction returnfalse() { return false; }// misc window opening functions//leaving the senate servers so we have to display this message:function openWin(urlToOpen) {	window.open("http://www.senate.gov/cgi-bin/exitmsg?url=" + urlToOpen);	}//leaving the current site, but staying on senate servers.function openSenateWin(urlToOpen) {	window.open(urlToOpen);	}