if ( typeof(add_domonload) == "undefined" )
{
add_domonload=function(fn)
{
	add_domonload=function(fn){add_domonload.cb.push(fn);}
	add_domonload.cb=[];
	add_domonload.execute=function()
	{
		arr=add_domonload.cb;
		for (i=0;i<arr.length;i++) arr[i]();
	}
	add_domonload(fn);

	var o={
		ie:0,
		opera:0,
		gecko:0,
		webkit:0,
		mobile: null
	};

	//noinspection PlatformDetectionJS
	var ua=navigator.userAgent, m;

	// Modern KHTML browsers should qualify as Safari X-Grade
	if ((/KHTML/).test(ua)) {
		o.webkit=1;
	}
	// Modern WebKit browsers are at least X-Grade
	m=ua.match(/AppleWebKit\/([^\s]*)/);
	if (m&&m[1]) {
		o.webkit=parseFloat(m[1]);

		// Mobile browser check
		if (/ Mobile\//.test(ua)) {
			o.mobile = "Apple"; // iPhone or iPod Touch
		} else {
			m=ua.match(/NokiaN[^\/]*/);
			if (m) {
				o.mobile = m[0]; // Nokia N-series, ex: NokiaN95
			}
		}
	}

	if (!o.webkit) { // not webkit
		m=ua.match(/Opera[\s\/]([^\s]*)/);
		if (m&&m[1]) {
			o.opera=parseFloat(m[1]);
			m=ua.match(/Opera Mini[^;]*/);
			if (m) {
				o.mobile = m[0]; // ex: Opera Mini/2.0.4509/1316
			}
		} else { // not opera or webkit
			m=ua.match(/MSIE\s([^;]*)/);
			if (m&&m[1]) {
				o.ie=parseFloat(m[1]);
			} else { // not opera, webkit, or ie
				m=ua.match(/Gecko\/([^\s]*)/);
				if (m) {
					o.gecko=1; // Gecko detected, look for revision
					m=ua.match(/rv:([^\s\)]*)/);
					if (m&&m[1]) {
						o.gecko=parseFloat(m[1]);
					}
				}
			}
		}
	}

	// Execute DomOnLoad
	if (o.ie) {
		domReadyTimer = setInterval(function() {
			var n = document.createElement('p');
			try {
				// throws an error if doc is not ready
				//noinspection JSUnresolvedFunction
				n.doScroll('left');
				clearInterval(domReadyTimer);
				add_domonload.execute();
			} catch (e) {
				n = null;
			}
		}, 100);
	} else if (o.webkit && o.webkit < 525) {
		domReadyTimer = setInterval(function() {
			var rs=document.readyState;
			if ("loaded" == rs || "complete" == rs) {
				clearInterval(domReadyTimer);
				add_domonload.execute();
			}
		}, 100);
	} else {
		if (window.addEventListener) document.addEventListener("DOMContentLoaded", add_domonload.execute, false);
		else if (window.attachEvent) document.attachEvent("onDOMContentLoaded", add_domonload.execute);
	}
}
}
document.write('<div class="gameguru_container" id="gameguru0"></div>');
add_domonload(
	function()
	{
		var head = document.getElementsByTagName('head')[0];
		var script = document.createElement('script');
		script.type = 'text/javascript';
		script.src = 'http://partners.gameguru.ru/postload.php?pid=22&type=image&num=4&view=hor';
		script.charset ='windows-1251';
		head.appendChild(script);
	}
)

