// JavaScript Document	var divName = "", bolPrint=false;	var ua = navigator.userAgent.toLowerCase(); 	var is_pc_ie  = ( (ua.indexOf('msie') != -1 ) && ( ua.indexOf('win') != -1 ) && ( ua.indexOf('opera') == -1 ) && ( ua.indexOf('webtv') == -1 ) );		var activeTab;		var minX = 0;	var maxX = 0;		//////////////////////////	window.onload = _init;		function _init(){		if(typeof sIFR == "function" && !bolPrint){			// add any specifications for flash text header here			// This is the preferred "named argument" syntax			sIFR.replaceElement(named({sSelector:".image>h1", sFlashSrc:"flash/fonts/industria.swf", sColor:"#000000", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=2"}));			};		if(typeof setScroller == "function") setScroller();		if(typeof initMap == "function") initMap();	};		function initScroller(total){		slides = $('window').getFirst();		winW = $('window').getSize().x;						slides.setStyle('width',(total*4)*177);		new iCarousel("carousel_holder", {          idPrevious: "carousel_prev",          idNext: "carousel_next",          idToggle: "undefined",          item: {              klass: "entry",              size: 177          },          animation: {  						type: "scroll",            duration: 1000,              amount: 4          }      });		slides.setStyle('visibility','visible');			}		function displayDropdown(id) {		$(id).toggleClass('display');	}		function changeInput(obj,empty, def){		obj.value = (empty && obj.value == def)? "" : (obj.value.length > 0)? obj.value : def;	};	function displayTab(obj,tabName,tempID) {		if (activeTab == undefined) {			activeTab = $('news_tabs').getFirst().getFirst();			activeId = 0;		}		if (activeId != tempID) {		var l = $(tabName+'_tabs').getChildren().length - 1;		for (i=0; i<l; i++) {			$(tabName+'_tab_'+i).setStyle('display', 'none');		}		$(tabName+'_tab_'+tempID).setStyle('display', 'block');		$(obj).addClass('selected');		activeTab.removeClass('selected');		activeTab = obj;		activeId = tempID;		}	}	//function for popup windows --	function _newWindow(url,name,fwidth,fheight,status,directories,location,toolbar,menubar,scrollbars,resizable,vLeft,vTop,fCloseSelf) {		// setting the new window size dependng on whats passed		switch (fwidth){			case "max":				fwidth = screen.width;			break			case "half":				fwidth = screen.width/2;			break			default:				fwidth = Number(fwidth);		}		switch (fheight){			case "max":				fheight = screen.height-15;//adjust for browser chrome			break			case "half":				fheight = screen.height/2;			break			default:				fheight = Number(fheight);		}		// set the position 		if(vLeft == "center"){vLeft = (screen.width/2) - (fwidth/2);}		if(vTop == "center"){vTop = (screen.height/2)  - (fheight/2);}			options = ((fwidth!="")?"width="+fwidth:"")+((fheight!="")?",height="+fheight:"")+",status="+((status=="1")?"yes":"no")+",directories="+((directories=="1")?"yes":"no")+",location="+((location=="1")?"yes":"no")+",toolbar="+((toolbar=="1")?"yes":"no")+",menubar="+((menubar=="1")?"yes":"no")+",scrollbars="+((scrollbars=="1")?"yes":"no")+",resizable="+((resizable=="1")?"yes":"no")+",left="+vLeft+",top="+vTop ;		var sWinObject = name.replace(" ","_");		eval(sWinObject+"=window.open('"+url+"','"+sWinObject+"','"+options+"')");		if (fCloseSelf == true) this.close();			};		function printWin(){		var strParams = document.location.search;			strParams += (strParams == "" )? "?" : "&";					var strPrintLink = "default.asp" + strParams + "print=1";		//alert("New window:"+strPrintLink);		_newWindow(strPrintLink,'printWindow',780,600,0,1,1,1,1,1,1,0,0);	}		function showEnlarged(strImageLink){		var strParams = document.location.search;			strParams += (strParams == "" )? "?" : "&";		_newWindow(strImageLink,'imageWindow',605,590,0,0,0,0,0,1,0,'center','center');	};		function loadMap() {				var infoBoxHtml = "<div style=\'color:#000000\'><b>Charlotte Research Institute</b><br />9201 University City Blvd<br />Charlotte, NC 28213<br /><a href=\'javascript:GoogleInfoBoxLinkClick()\'>Click here</a> for directions</div>";	        var map = new GMap2(document.getElementById("map"));	        map.setCenter(new GLatLng(35.303816, -80.735887), 12);					map.addControl(new GSmallMapControl());												var logo = new GIcon();						logo.image = "images/map_icon.png";						logo.iconSize = new GSize(26,26);						logo.iconAnchor = new GPoint(12,12);						logo.infoWindowAnchor = new GPoint(10, 2);						var point = new GPoint(-80.735887, 35.303816);						marker = new GMarker(point,logo);					// end custom						GEvent.addListener(marker, "click", function()						{							//var infoBoxHtml = "<div><b>Bromley</b><br />Hemby Rd<br />Matthews, NC 28104<br /><a href='javascript:GoogleInfoBoxLinkClick()'>Click here</a> for directions</div>";					   		marker.openInfoWindowHtml(infoBoxHtml);						});						map.addOverlay(marker);							marker.openInfoWindowHtml(infoBoxHtml);	      	    }				function GoogleInfoBoxGetDirections(){				var winURL = "http://maps.google.com/maps?f=d&hl=en&saddr=" 					+ document.getElementById("txtGoogleInfoBox").value 					+ "&daddr=9201+University+City+Blvd,+Charlotte,+Mecklenburg,+North+Carolina+28213&sll=35.30257, -80.729191&ie=UTF8&om=1";				window.open(winURL);			};			function GoogleInfoBoxLinkClick(){				var getDirectionsHtml = "<div><b>Enter your address</b><br />"					+ "<input id='txtGoogleInfoBox' type='text' style='width:215px' /><br />"					+ "<a href='javascript:GoogleInfoBoxGetDirections()'>Get Directions</a></div>";				marker.openInfoWindowHtml(getDirectionsHtml);			};	