YAHOO.namespace("example.container");

function init() {
	
	// Define various event handlers for Dialog
	var handleYes = function() {
		this.hide();
	};
	var handleNo = function() {
		this.hide();
                window.location = "http://www.burnettcounty.com/";
	};

        var messageText = "<p align='left'>The BLIS (Burnett County Land Information System) website and other Burnett County land related websites are being replaced. These websites will no longer exist after February 24, 2010. The new website address is: <a href='http://burnettwi.mapping-online.com/BurnettCoWi/' target='blank'>http://burnettwi.mapping-online.com/BurnettCoWi/</a>.</p>";
        messageText = messageText + "<p align='left'>The new website has a Help menu available in the upper right corner of the page.</p>";
        messageText = messageText + "<p align='left'>BLIS and the other Burnett County land related websites will continue to be updated on a regular basis until February 24, 2010.</p>";
        messageText = messageText + "<p align='left'>Training will be available on how to use the new website. Please send an email to <a href='mailto:jtowne@burnettcounty.org'>jtowne@burnettcounty.org</a> if you would like training.</p>";
        messageText = messageText + "<p align='left'>If you have comments about the new website, please send an email to <a href='mailto:jtowne@burnettcounty.org'>jtowne@burnettcounty.org</a></p>";
        messageText = messageText + "<p align='left'>Thank you,<br>Burnett County Land Information Office</p>";

	// Instantiate the Dialog
	simpledialog = new YAHOO.widget.SimpleDialog("simpledialog1", 
																			 { width: "500px",
																			   fixedcenter: true,
																			   visible: true,
																			   draggable: true,
																			   close: true,
																			   modal: true, 
																			   text: messageText,
																			   icon: YAHOO.widget.SimpleDialog.ICON_WARN,
																			   constraintoviewport: false,
																			   buttons: [ { text:"Continue to BLIS Website", handler:handleYes, isDefault:true },
																						  { text:"Leave BLIS Website",  handler:handleNo } ]
																			 } );
	simpledialog.setHeader("NOTICE:");
	
	// Render the Dialog
	simpledialog.render(document.body);

	YAHOO.util.Event.addListener("show", "click", simpledialog.show, simpledialog, true);
}

YAHOO.util.Event.addListener(window, "load", init);