﻿//http://dean.edwards.name/weblog/2006/06/again/
if (document.addEventListener) {
    document.addEventListener("DOMContentLoaded", init, null);
}
// for Internet Explorer (using conditional comments)
/*@cc_on @*/
/*@if (@_win32)
document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
var script = document.getElementById("__ie_onload");
script.onreadystatechange = function() {
	if (this.readyState == "complete") {
		init(); // call the onload handler
	}
};
/*@end @*/
if (/WebKit/i.test(navigator.userAgent)) {
	var _timer = setInterval(function() {
		if (/loaded|complete/.test(document.readyState)) {
			clearInterval(_timer);
			init();
		}
	}, 10);
}
function init() {
	if (arguments.callee.done) return;
    arguments.callee.done = true;
	if (self.pageLoaded) pageLoaded();
	moveads();
	//addCaption("vasen");
    //addCaption("oikea");
    sendCommentHover();
}
window.onload = init;
