function AuthorWebinar(id,author,authorURL,title,description,date,time,registerURL,authorPhotoURL,available){
	this.id = id;  
	this.author = author;
	this.authorURL = authorURL;
	this.title = title;
	this.description = description;  
	this.date = date;  
	this.time = time;  
	this.registerURL = registerURL;   
	this.authorPhotoURL = authorPhotoURL;
	this.available = available;
}

AuthorWebinar.prototype.toHTML = function(index){
	var html = '<tr>';
	html = html + '<td class="td1"><img alt="' + this.author + '" src="' + this.authorPhotoURL + '"/><br/>'
	if(this.authorURL != "") {
		html = html + '<a target="_blank" href=' +this.authorURL + '>' + this.author + '</a></td>';
	}
	else 
	{
		html = html + this.author + '</td>';
	}
    html = html + '<td class="title">' + this.title + '</td>';
    html = html + '<td class="desc">' + (this.description.length > 220 ? this.description.substring(0,this.description.lastIndexOf(" ",220)) + '...<br/>(<a id="authorWebinarEntry_' + index + '" class="more" href="#">more</a>)' : this.description) + '</td>';
    html = html + '<td class="date">' + this.date + '</td>';
	html = html + '<td class="time">' + this.time + '</td>';
    html = html + '<td class="register">' + (this.available == 1 ? '<a target="_blank" onclick="track(\'dtz:authorsregister:'+escapeString(this.author)+':'+escapeString(this.date)+':'+escapeString(this.time)+'\');" href="' + this.registerURL + '"><img alt="register" src="public/images/btn-register.png"/></a>' : '<img alt="register" src="public/images/btn-register-off.png"/>') + '</td>';
    html = html + '</tr>';
	return html;
}

AuthorWebinar.prototype.toHTML_forPromoSpace = function(index, only_date) {
	var date_html = "";
	if(this.available == 1) {
		date_html = '<p id="second_date" class="date"><a target="_blank" onclick="track(\'dtz:authorsregister:'+escapeString(this.author)+':'+escapeString(this.date)+':'+escapeString(this.time)+'\');" href="' + this.registerURL + '">'+getDateObject(this.date).format('mmm dd, yyyy')+ '</a></p>';
	} else {
		date_html = '<p id="second_date" class="date">'+getDateObject(this.date).format('mmm dd, yyyy')+ '</p>';
	}
	
	if(!only_date) {
		var html = '<div id="" class="info '+( index <= 0 ? 'first' : '' )+'" >';
		html += '<img class="pic" src="' + this.authorPhotoURL +'" alt="" />';
		if(index <= 0) {
			html += '<img class="header" src="public/images/h2-author_events.png" alt="Author Events" />';	
		}
		html += '<p>' + this.author + '<br />'+ this.title +'</p>';
		html += date_html;
		html += '</div>\n';
	} else {
		var html = '<div id="" class="info dateinfo" >';
		html += date_html;
		html += '</div>';		
	}
	html +="<div class='clear'></div>";
	
	return html;
}

authorWebinarEntriesBase = new Array();
authorWebinarEntriesBase.push(new AuthorWebinar(11, 'David Rose, Ed.D', 'http://teacher.scholastic.com/products/authors/rose.htm', 'Technology to Motivate and Differentiate', 'Through his work as Founding Director&#47;Chief Scientist of Cognition &#38; Learning at CAST &#40;Center for Applied Special Technology&#41;, Dr. Rose will share strategies for expanding learning opportunities for all students through the innovative use and application of technology.', 'Th. 12/9/10', '4:00 pm ET','http://www.scholastic.com/livewebcasts/teacher_talks/david_rose.htm','images/David_Rose_Headshot.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(12, 'Susan Gendron', 'http://www.leadered.com/aboutGendron.html', 'Implementing the Common Core Standards', 'Join Susan Gendron, Senior Fellow for the International Center for Leadership in Education, and Jennifer Slackman, Director of Product Management for Scholastic, to learn more about the specific requirements of the standards in English Language Arts and also receive an overview of Expert 21, a new ELA curriculum that will help schools implement the standards in grades 6â€“8.', 'W. 1/12/11', '4:00 pm ET','https://scholastic.webex.com/scholastic/onstage/g.php?d=357283220&t=a&EA=jslackman%40scholastic.com&ET=2464ba5fa95988721eb1bbf1eda07d0c&ETR=6116c357969e492dd82c1d3d4ed5e213&RT=MiMxMQ==&p','images/Sue_Gendron_Headshot.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(13, 'Timothy Rasinski', 'http://teacher.scholastic.com/products/authors/rasinski.htm', 'Fluency', 'Nationally-renowned fluency expert Tim Rasinski will discuss the latest fluency research and share effective fluency practices that are easy to integrate into a balanced reading program.', 'Th. 1/13/11', '4:00 pm ET','http://www.scholastic.com/livewebcasts/teacher_talks/tim_rasinski.htm','images/Timothy_Rasinski_Headshot.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(14, 'Jeffrey Wilhelm, Ph.D', 'http://teacher.scholastic.com/products/authors/wilhelm.htm', 'Inquiry and Motivation in English Language Arts', 'Dr. Wilhelm, a leading teacher, author, and professor at Boise State University, will share research-based strategies on using inquiry for engagement and motivation in the English language arts classroom.', 'Th. 2/10/11', '4:00 pm ET','http://www.scholastic.com/livewebcasts/teacher_talks/jeff_wilhelm.htm','images/Jeff_Wilhelm_Headshot.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(15, 'Susan Gendron', 'http://www.leadered.com/aboutGendron.html', 'Implementing the Common Core Standards', 'Join Susan Gendron, Senior Fellow for the International Center for Leadership in Education, and Jennifer Slackman, Director of Product Management for Scholastic, to learn more about the specific requirements of the standards in English Language Arts and also receive an overview of Expert 21, a new ELA curriculum that will help schools implement the standards in grades 6â€“8.', 'Tu. 3/1/11', '4:00 pm ET','https://scholastic.webex.com/scholastic/onstage/g.php?d=353105065&t=a&EA=jslackman%40scholastic.com&ET=66e5f868f2bf42e40556523107f8e8b8&ETR=6213114ae0dd2b8f5ebc4a4299b61689&RT=MiMxMQ==&p','images/Sue_Gendron_Headshot.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(16, 'Laura Robb', 'http://teacher.scholastic.com/products/authors/robb.htm', 'Adolescent Literacy', 'Drawing on current research and her most recent classroom experiences with students all over the country, best-selling author, teacher Laura Robb will discuss motivation, differentiation, assessment, classroom management, conferring, and more. Robb offers new insights and innovative ideas for working with students at this critical juncture of their literacy lives.', 'Th. 3/3/11', '4:00 pm ET','http://www.scholastic.com/livewebcasts/teacher_talks/laura_robb.htm','images/Laura_Robb_Headshot.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(17, 'Laura Robb', 'http://teacher.scholastic.com/products/authors/robb.htm', 'Adolescent Literacy', 'Drawing on current research and her most recent classroom experiences with students all over the country, best-selling author, teacher Laura Robb will discuss motivation, differentiation, assessment, classroom management, conferring, and more. Robb offers new insights and innovative ideas for working with students at this critical juncture of their literacy lives.', 'Th. 3/3/11', '4:00 pm ET','http://www.scholastic.com/livewebcasts/teacher_talks/laura_robb.htm','images/Laura_Robb_Headshot.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(18, '', '', 'Scholastic Education Technology Webinar', 'Hear about the new browser-based software updates and deployment options from Scholasticâ€™s technical experts!  From data conversion to media deployment, we are here to help ensure a smooth transition to Enterprise Edition v2.0 or <i>READ 180</i> Next Generation, both available May 2011!', 'M. 4/4/11', '3:00 pm ET', 'https://scholastic.webex.com/scholastic/k2/j.php?ED=145817962&UID=1022604857&HMAC=2764018ea04d30beedeaddf2caffeb0eaa933de7&RT=MiMxMQ%3D%3D&FM=1', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(19, '', '', 'Scholastic Hosting Webinar', '<b>Join us for a special event for schools and districts currently using Scholastic Hosting Services.</b> Hear about the new browser-based software updates from Scholasticâ€™s technical experts! From data conversion to media deployment, we are here to help ensure a smooth transition to Enterprise Edition v2.0 or <i>READ 180</i> Next Generation!', 'Th. 4/28/11', '3:00pm ET', 'https://scholastic.webex.com/scholastic/k2/j.php?ED=148204047&UID=1028426382&HMAC=6149b3e55226efe87ea7da45e43ba6f430b57e4e&RT=MiMxMQ%3D%3D&FM=1', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(20, '', '', '<i>READ 180</i> Next Generation Webinar', 'Have you heard about <i>READ 180</i> Next Generation?  Hear how the best system for raising reading achievement is getting even better', 'Th. 5/5/11', '12:00pm ET', 'https://scholastic.webex.com/scholastic/k2/j.php?ED=147317797&UID=1026338037&HMAC=02efe16a1e1c67c7d20f440f8b3e2b6220069b0f&RT=MiMxMQ%3D%3D&FM=1', 'images/R180_NG_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(21, '', '', 'Scholastic Hosting Webinar', '<b>Join us for a special event for schools and districts currently using Scholastic Hosting Services.</b> Hear about the new browser-based software updates from Scholasticâ€™s technical experts! From data conversion to media deployment, we are here to help ensure a smooth transition to Enterprise Edition v2.0 or <i>READ 180</i> Next Generation!', 'Tu. 5/10/11', '12:00pm ET', 'https://scholastic.webex.com/scholastic/k2/j.php?ED=148204112&UID=1028426517&HMAC=4fa963642b17e91190cca58125e63e9eba04b259&RT=MiMxMQ%3D%3D&FM=1', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(22, '', '', 'Scholastic Education Technology Webinar', 'Hear about the new browser-based software updates and deployment options from Scholastic&#x27;s technical experts! From data conversion to media deployment, we are here to help ensure a smooth transition to Enterprise Edition v2.0 or <i>READ 180</i> Next Generation, both available May 2011!', 'Th. 5/19/11', '12:00pm ET', 'https://scholastic.webex.com/scholastic/k2/j.php?ED=148256072&UID=1028548227&HMAC=d4eed125bc4ae48c3016c3f3053ecbf0f059728b&RT=MiMxMQ%3D%3D&FM=1 ', 'images/DTZ_SAM_logo.jpg',1));
//added 13 May
authorWebinarEntriesBase.push(new AuthorWebinar(23, '', '', 'Scholastic Education Technology Webinar', 'Hear about the new browser-based software updates and deployment options from Scholastic&#x27;s technical experts!  From data conversion to media deployment, we are here to help ensure a smooth transition to Enterprise Edition v2.0 or <i>READ 180</i> Next Generation, both available May 2011!', 'Th. 6/16/11', '3:00pm ET', 'https://scholastic.webex.com/scholastic/k2/j.php?ED=149775192&UID=1032016257&HMAC=b534d4cb8b9e8ccc99b0780b3bae63ff56fc71a6&RT=MiMxMQ%3D%3D&FM=1', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(24, '', '', 'Scholastic Education Technology Webinar', 'Hear about the new browser-based software updates and deployment options from Scholastic&#x27;s technical experts!  From data conversion to media deployment, we are here to help ensure a smooth transition to Enterprise Edition v2.0 or <i>READ 180</i> Next Generation, both available May 2011!', 'Th. 7/21/11', '12:00pm ET', 'https://scholastic.webex.com/scholastic/k2/j.php?ED=149775637&UID=1032016327&HMAC=c2050cdb5f28f4df6b0d17f91cac49daa13a0a60&RT=MiMxMQ%3D%3D&FM=1', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(25, '', '', 'Scholastic Education Technology Webinar', 'Hear about the new browser-based software updates and deployment options from Scholastic&#x27;s technical experts!  From data conversion to media deployment, we are here to help ensure a smooth transition to Enterprise Edition v2.0 or <i>READ 180</i> Next Generation, both available May 2011!', 'Th. 8/18/11', '3:00pm ET', 'https://scholastic.webex.com/scholastic/k2/j.php?ED=149775662&UID=1032016892&HMAC=023732862bdb5d3ac80d991e19acf7b33983f664&RT=MiMxMQ%3D%3D&FM=1', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(26, '', '', 'Installing and Troubleshooting <i>READ 180</i>', '<b>For technical coordinators and SAM administrators</b> Features a step-by-step walkthrough of installation as well as a list of known software issues and common troubleshooting tips. Covers both <i>READ 180</i> Next Generation and <i>READ 180</i> Enterprise Edition v2.0.', 'Mon. 9/12/11', '10:00 am ET', 'https://scholastic.webex.com/scholastic/onstage/g.php?t=a&d=651901349', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(27, '', '', 'Installing and Troubleshooting <i>READ 180</i>', '<b>For technical coordinators and SAM administrators</b> Features a step-by-step walkthrough of installation as well as a list of known software issues and common troubleshooting tips. Covers both <i>READ 180</i> Next Generation and <i>READ 180</i> Enterprise Edition v2.0.', 'Mon. 9/12/11', '5:00 pm ET', 'https://scholastic.webex.com/scholastic/onstage/g.php?t=a&d=654990293', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(28, '', '', 'Installing and Troubleshooting <i>READ 180</i>', '<b>For technical coordinators and SAM administrators</b> Features a step-by-step walkthrough of installation as well as a list of known software issues and common troubleshooting tips. Covers both <i>READ 180</i> Next Generation and <i>READ 180</i> Enterprise Edition v2.0.', 'Tue. 9/13/11', '10:00 am ET', 'https://scholastic.webex.com/scholastic/onstage/g.php?t=a&d=655948485', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(29, '', '', 'Installing and Troubleshooting <i>READ 180</i>', '<b>For technical coordinators and SAM administrators</b> Features a step-by-step walkthrough of installation as well as a list of known software issues and common troubleshooting tips. Covers both <i>READ 180</i> Next Generation and <i>READ 180</i> Enterprise Edition v2.0.', 'Tue. 9/13/11', '5:00 pm ET', 'https://scholastic.webex.com/scholastic/onstage/g.php?t=a&d=659727635', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(30, '', '', 'Installing and Troubleshooting <i>READ 180</i>', '<b>For technical coordinators and SAM administrators</b> Features a step-by-step walkthrough of installation as well as a list of known software issues and common troubleshooting tips. Covers both <i>READ 180</i> Next Generation and <i>READ 180</i> Enterprise Edition v2.0.', 'Wed. 9/14/11', '10:00 am ET', 'https://scholastic.webex.com/scholastic/onstage/g.php?t=a&d=655657381', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(31, '', '', 'Installing and Troubleshooting <i>READ 180</i>', '<b>For technical coordinators and SAM administrators</b> Features a step-by-step walkthrough of installation as well as a list of known software issues and common troubleshooting tips. Covers both <i>READ 180</i> Next Generation and <i>READ 180</i> Enterprise Edition v2.0.', 'Wed. 9/14/11', '5:00 pm ET', 'https://scholastic.webex.com/scholastic/onstage/g.php?t=a&d=657012721', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(32, '', '', 'Installing and Troubleshooting <i>READ 180</i>', '<b>For technical coordinators and SAM administrators</b> Features a step-by-step walkthrough of installation as well as a list of known software issues and common troubleshooting tips. Covers both <i>READ 180</i> Next Generation and <i>READ 180</i> Enterprise Edition v2.0.', 'Thu. 9/15/11', '10:00am ET', 'https://scholastic.webex.com/scholastic/onstage/g.php?t=a&d=658215751', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(33, '', '', 'Installing and Troubleshooting <i>READ 180</i>', '<b>For technical coordinators and SAM administrators</b> Features a step-by-step walkthrough of installation as well as a list of known software issues and common troubleshooting tips. Covers both <i>READ 180</i> Next Generation and <i>READ 180</i> Enterprise Edition v2.0.', 'Thu. 9/15/11', '5:00 pm ET', 'https://scholastic.webex.com/scholastic/onstage/g.php?t=a&d=652043609', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(34, '', '', 'Installing and Troubleshooting <i>READ 180</i>', '<b>For technical coordinators and SAM administrators</b> Features a step-by-step walkthrough of installation as well as a list of known software issues and common troubleshooting tips. Covers both <i>READ 180</i> Next Generation and <i>READ 180</i> Enterprise Edition v2.0.', 'Fri. 9/16/11', '10:00 am ET', 'https://scholastic.webex.com/scholastic/onstage/g.php?t=a&d=654795583', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(35, '', '', 'Installing and Troubleshooting <i>READ 180</i>', '<b>For technical coordinators and SAM administrators</b> Features a step-by-step walkthrough of installation as well as a list of known software issues and common troubleshooting tips. Covers both <i>READ 180</i> Next Generation and <i>READ 180</i> Enterprise Edition v2.0.', 'Fri. 9/16/11', '5:00 pm ET', 'https://scholastic.webex.com/scholastic/onstage/g.php?t=a&d=659513410', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(36, '', '', 'Version 2.0 Best Practices', 'Hear about best practices to ensure a successful implementation of Enterprise Edition v2.0 or READ 180 Next Generation. Learn about new software features, managing Scholastic Achievement Manager (SAM) rosters and data, and troubleshooting tips.', 'Thu. 9/22/11', '1:00 pm ET', 'https://scholastic.webex.com/scholastic/k2/j.php?ED=154815662&UID=1044188337&HMAC=39353da4ec1ed68e49e7d0fc91a382749a65a748&RT=MiMxMQ%3D%3D&FM=1', 'images/DTZ_SAM_logo.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(37, '', '', 'SRI and The Common Core Standards', 'Join Scholastic as Jason Turner, Director of Professional Development at MetaMetrics, the developers of the Lexile Framework for Reading, discusses the instructional implications of the Common Core State Standards. Jason will address effective approaches to meet the goals of College and Career Readiness in reading.', 'Thur. 10/13/2011', '3:30 pm ET', 'https://scholastic.webex.com/scholastic/onstage/g.php?t=a&d=650510328', './images/Jason_Turner_headshot.jpg',1));
authorWebinarEntriesBase.push(new AuthorWebinar(38, '', '', 'Version 2.0 Best Practices', 'Hear about best practices to ensure a successful implementation of Enterprise Edition v2.0 or READ 180 Next Generation. Learn about new software features, managing Scholastic Achievement Manager (SAM) rosters and data, and troubleshooting tips.', 'Tue. 10/18/2011', '3:00 pm ET', 'https://scholastic.webex.com/scholastic/k2/j.php?ED=154816077&UID=1044189632&HMAC=87f01ba6342bad11d7644e039c4b4caf9004eaeb&RT=MiMxMQ%3D%3D&FM=1', 'images/DTZ_SAM_logo.jpg',1));

authorWebinarEntries = new Array();

for(var i=0; i < authorWebinarEntriesBase.length; i++){
	var date = getDateObject(authorWebinarEntriesBase[i].date);
	var today = new Date();
	if(date >= today) {
		authorWebinarEntries.push(authorWebinarEntriesBase[i]);
	}
}
