var imagePath = "assets/"var navFlag;var theCol = "#FFCCFF";var rolloverCol = "#B8E6E6"; /* navbar rollover color */var selectCol = "#99CCCC";   /* navbar hilite color */var ssSelectCol = "#036"; /* css selection hilite color */var w3c = (document.getElementById) ? 1:0var ns4 = (document.layers) ? 1:0var ie4 = (document.all) ? 1:0var isOp = (window.opera) ? 1:0navItems = new Array("index.htm","autisminfo.htm","afterdx.htm","aboutirabina.htm","whatweoffer.htm","transition.htm","how2help.htm","contact.htm")imageList = new Array();imageOn = new Array(); imageOff = new Array();for (x=0; x<7; x++) {	imageList[x] = 'pmenu_0' + (x+1);}for (x=0; x<imageList.length;x++)	{	imageOn[x] = new Image(); imageOn[x].src =  imagePath + 'pmenu_0' + (x+1) + '_on.gif';	imageOff[x]  = new Image(); imageOff[x].src =  imagePath + 'pmenu_0' + (x+1) + '.gif';	}styleInsert();hiliteNav();function rollOver(i){	document.images[imageList[i-1]].src = imageOn[i-1].src;	if(document.navFlag != ("link" + i)) {		wh = document.getElementById("link" + i);		wh.style.background = rolloverCol;	}}function rollOut(i){	document.images[imageList[i-1]].src = imageOff[i-1].src;	if(document.navFlag != ("link" + i)) {		wh = document.getElementById("link" + i);		wh.style.background = "transparent";		}}function hiliteNav() {	docString = document.location.href;	docString = docString.substring((docString.lastIndexOf("/") + 1));	for (a=0;a<navItems.length;a++) {		if (docString == navItems[a]) 			{			document.navFlag = "link" + a			makeNavStyle(a);			rollOver(a+1);			}			}}function makeNavStyle(x) {		theStyleStr = '<style>';		theStyleStr += '#link' + x + '{';		theStyleStr +=  'background-color: ' + selectCol + '; color: transparent;}</style>'		document.write(theStyleStr);}/* cookie scripts for setting style sheet */function styleHiLite(theId) {if(w3c) {	h=document.getElementById(theId)	StyleStr = '<style>'	StyleStr += '#' + theId + '{\n';	StyleStr +=  'background-color: ' + ssSelectCol + '; color: transparent;}\n</style>'	document.write(StyleStr);	}}   function styleInsert() {	if (document.cookie.indexOf('style=1')>=0)	{		theStyleString =  '<link rel="stylesheet" type="text/css" href="irabina_sml.css" />\n'		theStyleString += '<link rel="alternate stylesheet" type="text/css" href="irabina_mid.css" title="Normal text" />\n'; 		theStyleString += '<link rel="alternate stylesheet" type="text/css" href="irabina_lrg.css" title="Large text" />\n';		document.write(theStyleString);		styleHiLite('Style1');		} else if (document.cookie.indexOf('style=3')>=0) {        theStyleString =  '<link rel="stylesheet" type="text/css" href="irabina_lrg.css" />\n';		theStyleString += '<link rel="alternate stylesheet" type="text/css" href="irabina_mid.css" title="Normal text" />\n'; 		theStyleString += '<link rel="alternate stylesheet" type="text/css" href="irabina_sml.css" title="Small text" />\n';		document.write(theStyleString);		styleHiLite('Style3');			} else { 		theStyleString =  '<link rel="stylesheet" type="text/css" href="irabina_mid.css" />\n';		theStyleString += '<link rel="alternate stylesheet" type="text/css" href="irabina_lrg.css" title="Large text" />\n'; 		theStyleString += '<link rel="alternate stylesheet" type="text/css" href="irabina_sml.css"  title="Small text" />\n';		document.write(theStyleString);		styleHiLite('Style2');		}}function setStyle (newstyle) {	var expdate = new Date();	expdate.setTime(expdate.getTime() + (1000*3600*24*365));	document.cookie = 'style=' + newstyle + '; expires=' + expdate.toGMTString() + '; path=/';	alert ('This style choice will persist for a year unless changed.\n You may need to reload the page.');	self.location = self.location;}