// -*- mode: javascript -*-

dodo.init = function () {
/*@cc_on @*/
/*@if (@_win32)	
	dodo.bodyOnLoad ();
	return;
/*@end @*/
	
	if (/WebKit/i.test (navigator.userAgent)) {
		var interval = setInterval (function () {
			if (document.readyState == "loaded" ||
			    document.readyState == "complete") {
				window.clearInterval (interval);
				dodo.bodyOnLoad ();
			}}, 10);
	} else if (document.addEventListener) {
		document.addEventListener ("DOMContentLoaded", dodo.bodyOnLoad, false);
	} else
		window.onload = dodo.bodyOnLoad;
}

dodo.init ();

