
init = function() {
	
	if (swfobject.hasFlashPlayerVersion("9.0.115")) {
	
		$('body').css('padding', '0');
		
		var loc = window.location.toString().replace(baseURL, '').split('#')[0].toString();
		
		var flashvars = {location:loc, xpath:baseURL+'poligamy.xml.php'};
		var params = {bgcolor:"#000000", allowFullScreen:'true', allowScriptAccess:'always'};
		var attributes = {id:'poliFlash'};
		swfobject.embedSWF("flash/poligamy.swf?"+(Math.round(Math.random()*99999999)), "flashcontent", "100%", "100%", "9.0.115", false, flashvars, params, attributes);
		
		swfmacmousewheel.registerObject(attributes.id);
		
	} else {
		
		$("#html").css("display", "block");
		$('html').css('overflow', 'auto');
		
	}
	
}

//$(window).ready(init);