// Feature script
if (browser == "NN4" || browser == "OP")
promoNum = Math.ceil((Math.random() * 10)/2);
else
	promoNum = 1;
	show1 = "COMPUTER DROP OFF DAY(S) BEGINNING THURSDAY SEPTEMBER 17TH THROUGH SATURDAY SEPTEMBER 19TH! - 9/8/2009";
	url1 = "javascript:;";
	subhdr1 = "";
	promo1 = "<p>The Borough of Princeton, through cooperation with Goodwill Industries of Southern NJ & Philadelphia, will be conducting a Computer Drop Off program. Donations of all unwanted computers and computer equipment of any brand will be accepted. The purpose of this program allows residents to discard their used and outdated computer equipment to Goodwill in a “Green” mannerand to reduce the Princeton Borough waste stream. The proceeds from these donations are returned to Goodwill and help support Goodwill\'s important mission of putting people to work. Help protect the environment and benefit the community with support of this program. Where: Princeton Hook & Ladder, 27 N. Harrison Street, Princeton Borough When: Thursday September 17, Friday September 18 and Saturday, September 19, 2009 Time: Between 9 AM and 4 PM What to bring: Any old used computer equipment, including PC’s, CRT monitors, flat screen monitors, laptops, printers, scanners, fax machines, keyboards, cables, mouse, etc. Any questions regarding this program should be directed to the Princeton Borough Engineering Department at 609-497-7634. Thank you for helping make Princeton Borough a “Green” community.</p><p>THE BOROUGH WILL ALSO BE COLLECTING<br />DONATIONS FOR C.A.R.E.<br />Community Access to Rehabilitation Equipment Your ReSource, Inc., a 501(c)(3) nonprofit organization will be present at the site to accept your donations of no-longer-needed, gently used medical equipment for their CARE Program. All items are refurbished and made available to anyone, for affordable costs or distributed free of charge. Examples of items to be collected are: manual wheelchairs, walkers, canes, crutches, commodes, shower chairs, grab bars, hand and ankle weights, reachers, shoe horns, etc. Unopened boxes of medical supplies will also be accepted. All donors will receive a tax deduction receipt. Special arrangements must be made for the donation of larger items. To find out more about the CARE Program call 609-530-1513 www.yourresourcenj.org</p>";
	show2 = "S. TULANE STREET & LINCOLN COURT ROAD CLOSURE - 7/31/2009";
	url2 = "javascript:;";
	subhdr2 = "";
	promo2 = "<p>There will be a temporary closure of S.Tulane Street & Lincoln Court beginning Tuesday, August 4, 2009 thru Friday, August 7, 2009, from 7 am to 4 pm. During these time periods, accommodations will be made for delivery & emergency vehicles as necessary.</p> <p>For those individuals who have parking arrangements on S.Tulane, individuals will be able to park in their normal space in the morning. However, if planning on moving vehicle prior to 4 pm, we request that you park in the Spring Street Municipal Garage for the day and follow the parking voucher instructions. Parking Vouchers will be distributed to those effected individuals. We apologize for the continued disruption and sincerely appreciate your patience and cooperation.</p>";
	show3= "UPDATE: HARRIET DRIVE RECONSTRUCTION - 7/23/2009";
	url3 = "javascript:;";
	subhdr3 = "";
	promo3 = "<p>Reconstruction of Harriet Drive will begin on or about Monday, July 27, 2009. The road will be closed to through traffic from 7 AM to 5 PM. Residents will be given weekly updates via email and/or written notice. Questions about the Harriet Drive project can be directed to Robert Pagan in the Borough Engineers office at 609-497-7634. Anyone wishing to be added to the listserve for the Harriet Drive Reconstruction Project can submit their email address to <a href='mailto:rpagan@princetonboro.org'>rpagan@princetonboro.org</a></p>";
i = 0;
fade = "out";
state = "display";
fadeBlack = new Array('#000000','#333333','#666666','#999999','#CCCCCC','#EEEEEE','#FFFFFF');
fadeWhite = new Array('#000000','#333333','#666666','#999999','#CCCCCC','#EEEEEE','#008080');
fadeBlue = new Array('#483D8B','#5B5196','#766EA8','#B6B2D0','#D5D2E4','#EEEEF5','#FFFFFF');
fadeRed = new Array('#990000','#993333','#996666','#CC6666','#CC9999','#FFCCCC','#FFFFFF');
function fader() {
	var getUHead = getLayer('featHead');
//	var getUSubHdr = getLayer('featSubHdr');
	var getUBody = getLayer('featBody');
	getUHead.style.color = fadeBlue[i];
//	getUSubHdr.style.color = fadeBlue[i];
	getUBody.style.color = fadeBlack[i];
	if (i < 3 && fade == "out") {  // CHANGE THIS NUMBER TO REFLECT NUMBER OF PROMOS
		i++;
		intID = setTimeout('fader()', 100);
	} else if (i == 3 && fade == "out") {  // CHANGE THIS NUMBER TO REFLECT NUMBER OF PROMOS
		fade = "in";
		if (promoNum != 3)  // CHANGE THIS NUMBER TO REFLECT NUMBER OF PROMOS
			promoNum++;
		else
			promoNum = 1;
		getUHead.innerHTML = "<b>"+eval('show'+promoNum)+"</b>";
	//	getUSubHdr.innerHTML = eval('subhdr'+promoNum);
		getUBody.innerHTML = eval('promo'+promoNum);
		intID = setTimeout('fader()', 100);
	} else if (i > 0 && fade == "in"){
		i--;
		intID = setTimeout('fader()', 100);
	} else if (i == 0 && fade == "in") {
		fade = "out"
		clearTimeout(intID);
	}
}
function featPromo() {
	if (browser != "NN4" && browser != "OP") {
		if (state == "display") {
			state = "fade";
			intPromoID = setTimeout('featPromo()', 9000);
		} else if (state == "fade") {
			fader();
			state = "display";
			intPromoID = setTimeout('featPromo()', 2000);
		}
	}
}
function featLink() {
	featUrl = eval("url"+promoNum);
	if (featUrl != "") {
//		window.location.replace = featUrl;
		window.open(featUrl,'new','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
	}
}