function getElementsByStyleClass (className) {	var all = document.all ? document.all :	document.getElementsByTagName('*');	var elements = new Array();	for (var e = 0; e < all.length; e++)	if ( ( all[e].className.indexOf(className) !=-1 ) && ( ( all[e].className.indexOf('soldout') ==-1 ) || ( className != 'calendar_dates' ) ) )	elements[elements.length] = all[e];	return elements;	}	function createTooltipsByClass (targetClass,tooltipClass,html) {	myDates = getElementsByStyleClass(targetClass);	for ( i=0; i < myDates.length ; i++ ) {		var myDate = myDates[i];		if ( ( myDate.childNodes.length <= 1 ) && ( myDate.innerHTML ) ) {			var newdiv = document.createElement('div');			newdiv.className ='tooltip ' + tooltipClass;			newdiv.style.display = 'none';			if (targetClass == 'calendar_dates') {				newdiv.innerHTML = myDate.id + '<br><br>' + html;			} else {				newdiv.innerHTML = html;			}			myDate.appendChild(newdiv);			Tooltip.add(myDate,newdiv);		}	}}function tagDates () {	createTooltipsByClass ('shrinkrap','','<p><strong>ShrinkRap<\/strong><br><br>Local psychiatrist Rendueles Villalba, MD and a guest lead a post-show discussion to examine the play and playwright from the psychological perspective.  ShrinkRap is included in the price of admission.<\/p>');	createTooltipsByClass ('discuss','','<img src="/images/rich.jpg" style="float:left;padding-right:10px;"><p><em>Discussion Sunday<\/em> at 2nd Story Theatre is made possible through major funding support from the Rhode Island Council for the Humanities, an independent state affiliate of the National Endowment for the Humanities.<\/p>');	createTooltipsByClass ('edification','','<p><strong>What&rsquo;s Ed-ification Week?<\/strong><br><br>During the third week of each production&rsquo;s run, Ed Shea will host brief, informal post-show discussions about the play and the process.<\/p>');	createTooltipsByClass ('calendar_dates','available','seats still available');}if (window.addEventListener) {	window.addEventListener("load", function () { tagDates(); }, false);	} else if (window.attachEvent) {	window.attachEvent('on' + "load", function () { tagDates(); });}