	var events= new Array();
	var i= 0;
	// Add or Remove Evemts from this list; 
	// format = new Array("Title", "SubTitle", "Description", "Location", "Contact", "Image");
/* template
	events[i++]= new Array(<span class='ow' onclick=\"OW('URL', 'TITLE', H, W);\">title</span>", // title
							"<b>Sub</b><br>",													// subtitle
							"Desc", 															// description (may be an array)
				"The Cosmo Factory at The Mill<br>131 Front Street<br>Santa Cruz, CA",			// location
				"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>",				// contact
				"JPG");																			// Image - may be left out						
    events[i++]= new Array("<span class='ow'>The 2010 Bridal Expo</span>",
							"<b>The 2010 Bridal Expo</b>",
							new Array("<br>All the information you need to plan the perfect wedding, under one roof",
									  "<br>Enjoy bridal fashion shows in the Sun Room throughout the day.",
									  "<br>Hair and Makeup services provided by Area Salons, including <b>The Cosmo Factory</b> Cosmetology Academy",
									  "<br>Sunday January 31, 2010",
									  "<p>10am-4pm"),
							"The Cocoanut Grove<br>Santa Cruz, CA",
				"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>",    // contact
				"Images/Event Images/2010-bridal_expo-titletop.gif");	// Image
*/	

    events[i++]= new Array("<span class='ow'>The Cosmo Factory Open House</span>",
							"<b>Open House</b>",
							new Array("<br>The Cosmo Factory Cosmetology Academy is hosting an Open House",
									  "<p>to say Thank You for a great year, and to kick off another Fall Semester",
									  "<br>Special Enrollment Offers for those who attend",
									  "<br>Friday August 13, 2010",
									  "<p>4pm-8pm"),
							"The Cosmo Factory Cosmetology Academy<br>Santa Cruz, CA",
				"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>",    // contact
				"Images/TCF-Outside-1.jpg");	// Image
/*    events[i++]= new Array("<span class='ow'>The 4th Annual Women's Council of Realtors Fashion Show</span>",
							"<b>WCR Fashion Show</b>",
							new Array("<br>The always fun, always innovative Women's Council of Realtors Fashion show is back",
									  "<br>This year's theme:  James Bond - For Your Eyes Only",
									  "<br>Featuring a local youth dance group and local fashions, this show is not one to be missed.",
									  "<br>Hair and Makeup services provided by Area Salons, including <b>The Cosmo Factory</b> Cosmetology Academy",
									  "<br>Friday April 23, 2010",
									  "<p>6pm-9pm"),
							"The Cocoanut Grove<br>Santa Cruz, CA",
				"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>",    // contact
				"");	// Image
	*/
	events[i++]= new Array("<span class='ow' onclick=\"OW('http://www.communitytv.org/programs/series/inside-santa-cruz', 'Inside Santa Cruz', 450, 700);\">Inside Santa Cruz</span>", // title
				"<b>Inside Santa Cruz</b><br>",	// subtitle
				new Array("Produced and hosted by Joyce Anderson, Inside Santa Cruz highlights local people and their talents", // description
							"<br><b>Next Taping: </b>Ongoing",
						  "<br><b>Opportunities:</b><br>Enthusiastic Stylist Assistants are always welcome"),
				"Community TV of Santa Cruz<br>816 Pacific Ave<br>Santa Cruz, CA",			// location
				"<a href=\"mailto:info@thecosmofactory.com\">TheCosmoFactory</a>");	// contact
	/*
events[i++]= new Array("<span class='ow'>First Friday July 3rd, 2009</span>",		// title
							"<b>\"New Visions\", Photographs by recent UCSC graduates Peregrine Destry Starin and Allie Behm</b>",	// subtitle
							new Array("<br>We invite you to see the world through a different lens, through the eyes of Peregrine Starin and Allie Behm.",
							"<br>In \"The Altered Landscape\", Pere takes the everyday and skews it with the aid of a Holga camera and her unique eye.",
							"<br>Allie beckons us to join her on her volunteer project that took her to distant lands in \"Welcome to Haiti\"",
							"<br>Through August 30th",
							"<br>Opening July 3, 6-9pm"),
							"The Cosmo Factory<br>131-B Front Street<br>Santa Cruz, CA",	// location
							"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>",	// contact
							"Images/Event Images/Pere.JPG");	// contact

    events[i++]= new Array("<span class='ow' onclick=\"OW('http://internationalsurfingday.ning.com/events/surf-art-photography-film', 'International Surfing Day', 500, 500);\">Surf Art, Photography & Film Fest</span>",
							"<b>Come celebrate International Surfing Day (ISD) Santa Cruz style!</b>",
							new Array("<br>Emerging and distinguished local artists, photographers, and videographers will be showcasing their work at our 1st Annual Surf Art, Photography & Film Fest.",
							"<br>June 20th 7-10pm"),
							"The Cosmo Factory<br>131 Front Street<br>Santa Cruz, CA",
				"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>",
				"Images/Event Images/isd_poster_8.5x11.jpg");	// contact


    events[i++]= new Array("<span class='ow'>Joico Color Quest Regional Academy Certification Series</span>",
							"<b>A Two-Day Educational Event</b>",
							new Array("<br>Whether you are a color specialist or a novice, this series is designed to make you a color expert.",
							"<br>Day 1:  Color Immersion, Corrective Color and Advanced Formulation",
							"<br>Day 2: Trend Evolution",
							"<br>June 14th and 15th",
							"<p>10am-5pm"),
							"The Cosmo Factory<br>131 Front Street<br>Santa Cruz, CA",
				"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>",    // contact
				"Images/Event Images/Joico.jpg");	// Image
*/
/*
    events[i++]= new Array("<span class='ow' onclick=\"OW('http://www.cinemarfilm.org', 'Cinemar', 250, 800);\">Cinemar's SchmoozFest</span>",	// title
					"<a onClick=\"OW('http://www.cinemarfilm.org', 'Cinemar', 400, 600)\">" +
 					"<b>Cinemar's SchmoozFest</b> is a place to meet people involved in all aspects of the Film Industry",
						new Array("<br>Lectures and Presentations from Industry Veterans are highlighted",
  						          "<br>The SchmoozeFest is held every third Friday of the Month",
								  "<br><b>Next Event:</b> June 20th 7:30pm"
								  ),
/*					"<br>April 18th",
					"<br>May 16th",
					"<br>June 20th",
					"<br>July 18th",
					"<br>August 15th"
					),
*//*				"The Cosmo Factory at The Mill<br>131 Front Street<br>Santa Cruz, CA",
				"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>");	// contact
*/				
/*
    events[i++]= new Array("<span class='ow' onclick=\"OW('http://www.talkingmagpies.com', 'Trip', 600, 700);\">Trip Independent Film</span>",	// title
					"<b>PreTrip</b>, filming now, is a prologue to the feature film  <b>Trip</b>",
					new Array("<br>A young man must decide at what lengths to participate in an out of control school rivalry,  all the while struggling for the attentions of his dream girl who doesn't seem to notice him. It isn't long before those two worlds intersect.",
					"<br>Shooting dates for the promo short are Dec 26-30 with pick-up shots occurring throughout the Spring.",
					"<br><b>Opportunities:</b><br>Various Hair and Makeup Positions available"),
				"The Cosmo Factory and other locations in and around<br>Santa Cruz, CA",
				"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>");	// contact
*/				
/*					
	events[i++]= new Array("Bridal Fair '08", 	// title
				"The Bridal Fair is a fabulous annual event and a great opportunity for Makeup and Hair personnel to " +
				"work on live models for a professional fashion show<br>",							  	// Subtitle								
				new Array("<b>Model Call</b>", "<ul><li>December 12, 2007, 4-8 pm</li></ul>", 
						  "<b>Rehearsal</b>",   "<ul><li>January 15, 2008, 4-8 pm</li></ul>",
						  "<b>Rehearsal</b>",   "<ul><li>January 22, 2008, 4-8 pm</li></ul>",
						  "<b>Bridal Show</b>","<ul><li>January 27, 2008</li></ul>"),
				"The Cocoanut Grove<br>Santa Cruz, CA",
				"<a href=\"mailto:info@thecosmofactory.com\">info@thecosmofactory.com</a>");
	events[i++]= new Array("<a href=\"http://www.arrangementsmovie.com\">\"Arrangments\"</a> Independent Film", 
				"<i>where morality meets mortality</i><br>",
				"\"Arrangements\" will be shot over the course of three days, currently scheduled for November 10, 11 and 12 in Santa Cruz, California. " ,
				"Santa Cruz, CA",
				"<a href=\"mailto:\"info@thecosmofactory.com\">info@thecosmofactory.com</a>  (for hair and makeup positions)");
*/				
/*
DONE!    events[i++]= new Array("<span class='ow'>John Kim's Vampire Movie </span>",	// title
					"Eclectic director John Kim is filming a serious and funny Vampire film " +
					"in Santa Cruz (think leather corsets, fangs and lots of fake blood)" + 
//					"<br><a href='http://picasaweb.google.com/dcvisuals/080427VampPosterShots?authkey=6XYJcHHWR2A'>Photos from the Poster Shot</a>",
					"<br><span class='ow' style='color:blue;' onclick=\"OW('http://picasaweb.google.com/dcvisuals/080427VampPosterShots?authkey=6XYJcHHWR2A', 'Vamp Photos', 450, 700);\">Photos from the Poster Shot</span>",					
					new Array("<br>Photo Shoot Wednesday April 30th" +
							"<br>Movie Shoot Saturday May 3-Monday May 5",
					"<br><b>Opportunities:</b><br>Various Hair and Makeup Positions available<br>Extras Wanted"),
				"The Cosmo Factory at The Mill",
				"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>");	// contact
/* Done!    events[i++]= new Array("<span class='ow'>3rd Annual Santa Cruz Fashion Show </span>",	// title
					"The 3rd Annual Santa Cruz Fashion Show is going full steam ahead.  Don't miss out on this great marketing opportunity for " +
					"Stylists and Salons alike." + 
					"<p><span class='ow' onclick=\"OW('http://www.csegurson.com/video/santa_cruz_fashion_2007_trailer','SC Art and Fashion 2007', 650, 900);\">View clip of last year's event</span>",
					new Array("<br>The Fashion show takes place in September, with model calls and rehersals occuring in the weeks and months before",
					"<br><b>Opportunities:</b><br>Various Hair and Makeup Positions available<br>Models Wanted"),
				"The Santa Cruz Civic Auditorium",
				"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>");	// contact
No More??
    events[i++]= new Array("<span class='ow' onclick=\"OW('http://www.denisekisershaw.com/home.html', 'Denise Shaw', 500, 500);\">First Friday May 1st, 2009</span>",
							"<b>Acrylics, Collages, and Spirals</b> by Denise Kiser Shaw",
							new Array("<br>Please join us in celebrating the artwork of painter and instructor Denise Shaw.",
							"<br>Denise creates a story in each of her paintings using layers of images and words, all accentuated by the vibrant hues of her palette.",
							"<br>Through July 2nd",
							"<br>Opening May 1st, 5-7pm"),
							"The Cosmo Factory<br>131-B Front Street<br>Santa Cruz, CA",
				"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>");	// contact
events[i++]= new Array("<span class='ow'>J Beverly Hills Academy with Masaki</span>",		// title
							"<b>2-day Hands-On Advanced Haircutting Class</b>",	// subtitle
							new Array("<br>Learn the concept of designing a haircut, while incorporating contrast and harmony to achieve the perfect balance of both technique and artistry.",
							"<br>Sunday and Monday, October 18-19",
							"<br>9am-5pm"),
							"The Cosmo Factory<br>131-B Front Street<br>Santa Cruz, CA",	// location
							"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>",	// contact
							"Images/Event Images/Mod_Masaki_Class_October_2009_Flyer.JPG");	// contact												 

events[i++]= new Array("<span class='ow'>Aquage Masters Class</span>",		// title
							"<b>Chris Vandehey, Master Stylist </b>",	// subtitle
							new Array("<br>Join Chris for an intense day of education, innovation and inspiration.",
									  "<br>Chris Vandehey, from Portland, OR possesses the unique ability to create original hair ",
									  "designs that translate easily to the salon, helping stylists hone their skills and become more successful.",
							"<br>Class includes a Pure Forms haircutting system demo and a LUNA updo hands-on workshop",
							"<br>Monday, November 2, 2009",
							"<br>10am-4pm"),
							"The Cosmo Factory<br>131-B Front Street<br>Santa Cruz, CA",	// location
							"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>",	// contact
							"Images/Event Images/Aquage.JPG");	// contact


events[i++]= new Array("<span class='ow' onclick=\"OW('http://www.michaelangelogallery.net/fashionart_runway_show/', 'SC Fashion Art', 500, 500);\">The 4th Annual Santa Cruz Fashion Art Runway Show</span>",	// title
						"<b>The 4th Annual Santa Cruz Fashion Art Runway Show</b>",		// subtitle
					new Array("<br>This 4rd Annual Runway Show is highlighted by sometimes outrageous and always thought-provoking fashion creations from some of "+
							  "Santa Cruz's foremost artists, as well as fashions from local area designers",// description
					 "<br>Saturday, September 26th, 7:00 pm",
					"<br><b>Stylist Opportunities:</b><br>Hair and Makeup Positions available<br>Models Wanted"),
					"The Civic Center Auditorium<br>Santa Cruz, CA",		// location
							"<a href=\"mailto:events@thecosmofactory.com\">TheCosmoFactory</a>",
							"Images/Event Images/FASHIONARTPOSTER.jpg");	// contact
		
*/		

	// continue adding events[i++]				

				
	// always remember to put \ in front of embedded quotes as in \"sdfadff\"
	// to add a link, surround text with <a href=\" [website url]\">[text that will be the link ]</a>
	// END EDITABLE PORTION OF CODE
	
	function displayEvents() {
		var eventSpan= document.getElementById("EventsList");
		if (eventSpan==null) {
			alert("Error on Page: EventsList");
			return;
		}
		var i= 0;
		if (events.length==0) {
			eventSpan.innerHTML= "Sorry, there are no Upcoming Events at this time."
		} else 
			eventSpan.innerHTML= "<ul>";
		while (i < events.length) {
			var curEvent= events[i];
			var s= "";
			if (curEvent!=null && curEvent.length>0) {
				// title + mouse-over
//				s= "<div onMouseOver=\"changeCursor(this, true); showEvent(" + i + ",true)\" onMouseOut=\"changeCursor(this,false);\">"  +
//					"<li>" + curEvent[0] + "</li></div><p>";
//				s= "<div onMouseOver=\"showEvent(" + i + ",true)\" onMouseOut=\"showEvent(0,false)\" style='text-decoration:none'>" +
//					"<li>" + curEvent[0] + "</li></div><p>";
				s= "<div onMouseOver=\"showEvent(" + i + ",true)\" style='text-decoration:none'>" +
					"<li>" + curEvent[0] + "</li></div><p>";
				eventSpan.innerHTML+=s
				if (s!='' && eventSpan.innerHTML==null)	// for some pda's ...
					document.write(s);	
			}
			i++;
		}
		eventSpan.innerHTML+="</ul>";		
	}
	
	
	
	
	function displayEventsOLD() {
		var eventSpan= document.getElementById("EventsList");
		if (eventSpan==null) {
			alert("Error on Page: EventsList");
			return;
		}
		var i= 0;
		if (events.length==0) {
			eventSpan.innerHTML= "Sorry, there are no Upcoming Events at this time."
		} else 
			eventSpan.innerHTML= " ";
		while (i < events.length) {
			var curEvent= events[i];
			var s= "";
			if (curEvent!=null && curEvent.length>0) {
				// title
				s+="<div onClick=\"toggleDisplay(event_" + i + ");\" onMouseOver=\"changeCursor(this, true);\" onMouseOut=\"changeCursor(this,false);\"><li>" +
						"<b><span style=\"color:darkblue\">" + curEvent[0] + "</span></b>";
				// subtitle
				s+="<div id=event_" + i + " style=\"display:none\">";
				if (curEvent.length>1)  
					s+="<ul>" + curEvent[1] 	// subtitle				
				// description/other info
				if (curEvent.length>2) {
					if (isArray(curEvent[2])) {// its an array description
						var z= 0;
						while (z < curEvent[2].length) {
							s+= "<br>"+curEvent[2][z];
							z++;
						}			
					} else 
						s+= "<br>" + curEvent[2]			// description/other information
				}
				// location
				if (curEvent.length>3) s+="<br><br><b>Location:</b><br>"+ curEvent[3]
				// contact	
				if (curEvent.length>4) s+="<br><br><b>Contact:</b><br>" + curEvent[4]	    
				s+="</ul></li><p>";
				s+="</div>";
				s+="</div>";
//				if (eventSpan.innerHTML)
				eventSpan.innerHTML+=s
				if (s!='' && eventSpan.innerHTML==null)	// for some pda's ...
					document.write(s);	
			}
			i++;
		}		
	}
	function isArray(obj) {
	   if (obj.constructor.toString().indexOf("Array") == -1)
		  return false;
	   else
		  return true;
	}	
	// On Click, toggle display of rest of text
	function toggleDisplay(thisObj) {
//alert("On Click! " + thisObj);	
		if (thisObj.style.display=="none") {
			thisObj.style.display="block";
			thisObj.style.cursor= "default";
		} else
			thisObj.style.display="none";
	}
	
	// Change cursor on show mouseover
	function changeCursor(thisObj, on) {
		if (on) {
			thisObj.style.cursor= "pointer";
		} 
		else {
			thisObj.style.cursor= "default";
		}
	}
	function OW(url, t, h, w) {
		window.open(url, t, "height=" + h +", width=" + w + ", status=yes, menubar=yes, resizable=yes, scrollbars=yes");
	}

	displayEvents();	// do onload
	
	function showEvent(evt, show) {
		var eventDetails= document.getElementById("EventDetails");
		var eventImage= document.getElementById("EventImage");
		if (eventImage!=null) {	// hide any previous images ...
			eventImage.style.visibility="hidden";
		}
		if (eventDetails!=null) {
			if (show) {
				var curEvent= events[evt];
				var s= "";
				if (curEvent!=null && curEvent.length>0) {
					var j= 1;
					while (j < curEvent.length) {
						switch (j) {
						case 1:	// subtitle
							s+=curEvent[1];
							break;
						case 2:	// description/other info
							if (isArray(curEvent[2])) {// its an array description
								var z= 0;
								while (z < curEvent[2].length) {
									s+= "<br>"+curEvent[2][z];
									z++;
								}			
							} else {
								s+= "<br>" + curEvent[2];			// description/other information
							}
							break;
						case 3:		// location
							s+="<br><br><b>Location:</b><br>"+ curEvent[3];
							break;
						case 4:	// contact
							s+="<br><br><b>Contact:</b><br>" + curEvent[4];
							break;
						case 5:	// image
							if (eventImage!=null) {
								eventImage.src=curEvent[5];;
								//eventImage.width=w;
								//eventImage.height=h;
								eventImage.style.visibility="visible";
							} 
							break;
						}						
						j++;
					}				
				}
				eventDetails.innerHTML=s;
				eventDetails.style.visibility="visible";
			} else {
				eventDetails.style.visibility="hidden";
			}
		}
	}
