var DM = {};

DM.initModalWindow = function(){
	YAHOO.namespace("webcast.container");
	YAHOO.webcast.container.signup = 
			new YAHOO.widget.Panel("signup",  
				{
					width:"400px", 
					fixedcenter:false, 
					close:false, 
					draggable:false, 
					zindex:200,
					modal:true,
					effect: {effect: YAHOO.widget.ContainerEffect.FADE, duration: 1},
					visible:false
				} 
			);
	YAHOO.webcast.container.signup.setBody('<div style="background-color: #FFFFFF; border: 8px solid #CC3300; padding: 15px; font-size: 80%; margin: 20px;"><div class="jacket" style="margin-top: 10px;"><div class="dropShadow"><div class="dropShadowBottomCorner"><div class="dropShadowTopCorner"><a href="waywework.html"><img src="images/covers/medium/waywework.gif" alt="The Way We Work" /></a></div></div></div></div><h2 style="color: #003366;">Live webcast with David Macaulay!</h2><p style="font-weight: bold; margin: 10px 0;">Tuesday, October 7, 2008<br />10:00AM EST</p><p style="margin: 10px 0;">Register today to watch him discuss his illustrious career and his new book, see him interact with students, and ask him questions in real time.</p><p style="margin: 10px 0;"><a href="http://www.visualwebcaster.com/event.asp?id=49504" target="_blank" onclick="YAHOO.webcast.container.signup.hide();">Click here to register</a> your class, book group, or library.</p><p style="font-weight: bold; text-align: center; clear: both; margin: 10px 0;"><a href="#" onclick="YAHOO.webcast.container.signup.hide();">Close</a></p></div>');
	YAHOO.webcast.container.signup.render(document.body);
	YAHOO.webcast.container.signup.show();
}