//// Academic IT Website functions//var fcurrent=-1, ecurrent=-1;var tmpInterval = 10, interval = 0.01;var t;function updateFacts(){	t = setTimeout(update, interval * 1000);}function update(){	var divEvents = document.getElementById("divEvents");	var divFacts = document.getElementById("divFacts");	if (ecurrent == eval(events.length-1))		ecurrent = 0;	else		ecurrent++;	if (fcurrent == eval(facts.length-1))		fcurrent=0;	else		fcurrent++;	divEvents.innerHTML = events[ecurrent];	divFacts.innerHTML = facts[fcurrent];	if (interval < 1)		interval = tmpInterval;	updateFacts();}var facts = [	"<b>AIT</b> staff can help you create course websites through workshops or one-on-one consultations. <a href='?view=workshops'>Visit our Faculty Workshops</a>.",	"<b>AIT</b> is finalizing the integration of a new digital asset management product (<b>TEAMS</b>). <b>TEAMS</b> will allow authorized users to access digitized multimedia holdings via the Web. Please contact NMC manager.",	"As the Library Café Expansion and Renovation Project moves into its next phase, it is necessary to <a href='librarycafe/CafeClosingMarch2005.pdf' target='_blank'>close the Library Café</a> to the public for 11 consecutive days from Thursday, March 24 through Sunday, April 3.",	"Faculty may use the Library Cafe to distribute printed material, diskettes, photocopies, or CDs to your students. Please contact Library Cafe Managers to arrange this service. <a href='librarycafe/' target='_blank'>Libary Caf&eacute;</a>.",	"Brooklyn College Library goes wireless. Wireless zone coverage and additional instructions can be found <a href='http://ait.brooklyn.cuny.edu/wireless/'>here</a>."];var events = [	"<b>3 steps to make sure that your PC is protected:</b><br>Help from <a href='http://www.microsoft.com/security/protect/' target='_blank'>Microsoft Security</a>.",	"<b>Can I be notified automatically when there is a threat?</b><br>Virus alert subscription services: <a href='http://www.symantec.com/avcenter/newsletter.html' target='_blank'>Symantec</a>, <a href='http://dispatch.mcafee.com/default.asp' target='_blank'>McAfee</a>, <a href='http://www.f-secure.com/v-descs/' target='_blank'>F-Secure Corporation Virus News</a>.",	"<b>How to get latest Security Updates?</b><br>Microsoft provides critical updates and service packs on-line: <a href='http://www.windowsupdate.com' target='_blank'>Windows Update</a>."];//// Other//var ait_news = new Array('first message', 'second message');function Rotator(itemArray, divId, intValue){	this.current = -1;	this.interval = 100;	this.elementId = divId;	this.items = itemArray;	this.tmpInterval = intValue;	var intId;	this.setElementId = function(newValue)	{		this.elementId = newValue;	}	this.setInterval = function(newValue)	{		this.interval = newValue;	}	this.start = function()	{		intId = setInterval(this.writeMessage, this.interval * 1000, this);	}	this.stop = function()	{		clearInterval(intId);	}	this.writeMessage = function(obj)	{		if (obj.current == obj.items.length) obj.current = -1;		document.getElementById(obj.elementId).innerHTML = obj.items[++obj.current];		if (obj.interval == 100) obj.interval = obj.tmpInterval;	}}var arVersion = navigator.appVersion.split("MSIE");var version = parseFloat(arVersion[1]);function fixPNG(myImage){    if ((version >= 5.5) && (version < 7) && (document.body.filters))    {       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : "";			 var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : "";			 var imgTitle = (myImage.title) ?									 "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' ";			 var imgStyle = "display:inline-block;" + myImage.style.cssText;			 var strNewHTML = "<span " + imgID + imgClass + imgTitle										+ " style=\"" + "width:" + myImage.width										+ "px; height:" + myImage.height										+ "px;" + imgStyle + ";"										+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"										+ "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>";			 myImage.outerHTML = strNewHTML;    }}