var txtArray = new Array();
txtArray[0] = "do not change this line";

var linkArray = new Array();
linkArray[0] = "do not change this line";

var fadeimages=new Array()
fadeimages[0] = ["do not change this line","",""];

function myFunc(){
}
bannerObj = new Array();

today = new Date();
eventDate = new Date();

//DEFINITIONS
//bannerObj[i] = new myFunc(); ==> Include this at the beginning of each of your listings.
//bannerObj[i].'startDate' ==> This property is the startDate of the event. event.setFullYear(yyyy,mm-1,dd)
//bannerObj[i].text        ==> The Text(Description of the event) to be display in the Green Box of the find_a_store 
//bannerObj[i].url         ==> On click of 'See other events at this store' on search-stores page, the url it has to go to. Look up the store number from the url of the store detail page.
//bannerObj[i].image       ==> Image for fadein at top right of search-stores for each author event

//Dont change anything in the bannerObj[0].
bannerObj[0] = new myFunc();
bannerObj[0].startDate = "do not change this line";
bannerObj[0].text 	   = "do not change this line";
bannerObj[0].url 	   = "do not change this line"
bannerObj[0].image 	   = "do not change this line";

//CONTENT DEFINITION AREA START HERE.


bannerObj[1] = new myFunc();
bannerObj[1].startDate = eventDate.setFullYear(2009,3-1,19);
bannerObj[1].text = "<b>March 19, 1:00 PM</b>: Joy Behar signs <i>Max Goes to the Dogs</i> in New York City.";
bannerObj[1].url = "<a href='eventdetail.do?store=2628&event=22770675' style='color:#CCCC9A; font-weight:bold; font-size:1.1em;align:left;padding-left:6px;'>Get details</a>";
bannerObj[1].image = "img/banner/0309_joy_behar.JPG";

bannerObj[2] = new myFunc();
bannerObj[2].startDate = eventDate.setFullYear(2009,3-1,23);
bannerObj[2].text = "<b>March 23, 7:00 PM</b>: Laura Lippman discusses and signs <i>Life Sentences</i> in Baltimore, MD.";
bannerObj[2].url = "<a href='eventdetail.do?store=2890&event=22763275' style='color:#CCCC9A; font-weight:bold; font-size:1.1em;align:left;padding-left:6px;'>Get details</a>";
bannerObj[2].image = "img/banner/0309_laura_lippman.JPG";

bannerObj[3] = new myFunc();
bannerObj[3].startDate = eventDate.setFullYear(2009,3-1,24);
bannerObj[3].text = "<b>March 24, 7:30 PM</b>: Donovan Campbell reads, discusses and signs <i>Joker One</i> in Princeton, NJ.";
bannerObj[3].url = "<a href='eventdetail.do?store=2646&event=22765174' style='color:#CCCC9A; font-weight:bold; font-size:1.1em;align:left;padding-left:6px;'>Get details</a>";
bannerObj[3].image = "img/banner/0309_donovan_campbel.JPG";

bannerObj[4] = new myFunc();
bannerObj[4].startDate = eventDate.setFullYear(2009,4-1,2);
bannerObj[4].text = "<b>April 2, 7:00 PM</b>: Lisa Jackson, author of <i>Malice</i>, appearing in Portland, OR.";
bannerObj[4].url = "<a href='eventdetail.do?store=2262&event=22766402' style='color:#CCCC9A; font-weight:bold; font-size:1.1em;align:left;padding-left:6px;'>Get details</a>";
bannerObj[4].image = "img/banner/0409_lisa_jackson.jpg";

bannerObj[5] = new myFunc();
bannerObj[5].startDate = eventDate.setFullYear(2009,4-1,7);
bannerObj[5].text = "<b>April 7, 6:00 PM</b>: Mark Teague, author of <i>Funny Farm</i>, appearing in Greensboro, NC.";
bannerObj[5].url = "<a href='eventdetail.do?store=2795&event=22776682' style='color:#CCCC9A; font-weight:bold; font-size:1.1em;align:left;padding-left:6px;'>Get details</a>";
bannerObj[5].image = "img/banner/0409_mark_teague.jpg";

bannerObj[6] = new myFunc();
bannerObj[6].startDate = eventDate.setFullYear(2009,4-1,8);
bannerObj[6].text = "<b>April 8, 7:00 PM</b>: Walter Mosley, author of <i>The Long Fall</i>, appearing in Edina, MN.";
bannerObj[6].url = "<a href='eventdetail.do?store=2514&event=22774946' style='color:#CCCC9A; font-weight:bold; font-size:1.1em;align:left;padding-left:6px;'>Get details</a>";
bannerObj[6].image = "img/banner/0409_walter_mosley.jpg";

bannerObj[7] = new myFunc();
bannerObj[7].startDate = eventDate.setFullYear(2009,4-1,11);
bannerObj[7].text = "<b>April 11, 2:00 PM</b>: Harlan Coben, author of <i>Long Lost</i>, appearing in Livingston, NJ.";
bannerObj[7].url = "<a href='eventdetail.do?store=2340&event=22767295' style='color:#CCCC9A; font-weight:bold; font-size:1.1em;align:left;padding-left:6px;'>Get details</a>";
bannerObj[7].image = "img/banner/0409_harlan_coben.jpg";



//CONTENT DEFINITION AREA ENDS HERE

var j = 1;
for(var i=1; i<bannerObj.length;i++){
	if(bannerObj[i].startDate >= today){
		txtArray[j] = bannerObj[i].text;
		linkArray[j] = bannerObj[i].url;
		fadeimages[j]=[bannerObj[i].image, "", ""];
		j++;
	}
}