// JavaScript Document
// Elad - 25.1.12 - Disable Meebo
//Meebo
if (0) /*!smartad || checkflag)*/
{
	window.Meebo||function(c){function p(){return["<",i,' onload="var d=',g,";d.getElementsByTagName('head')[0].",
	j,"(d.",h,"('script')).",k,"='//cim.meebo.com/cim?iv=",a.v,"&",q,"=",c[q],c[l]?
	"&"+l+"="+c[l]:"",c[e]?"&"+e+"="+c[e]:"","'\"></",i,">"].join("")}var f=window,
	a=f.Meebo=f.Meebo||function(){(a._=a._||[]).push(arguments)},d=document,i="body",
	m=d[i],r;if(!m){r=arguments.callee;return setTimeout(function(){r(c)},100)}a.$=
	{0:+new Date};a.T=function(u){a.$[u]=new Date-a.$[0]};a.v=4;var j="appendChild",
	h="createElement",k="src",l="lang",q="network",e="domain",n=d[h]("div"),v=n[j](d[h]("m")),
	b=d[h]("iframe"),g="document",o,s=function(){a.T("load");a("load")};f.addEventListener?
	f.addEventListener("load",s,false):f.attachEvent("onload",s);n.style.display="none";
	m.insertBefore(n,m.firstChild).id="meebo";b.frameBorder="0";b.id="meebo-iframe";
	b.allowTransparency="true";v[j](b);try{b.contentWindow[g].open()}catch(w){c[e]=
	d[e];o="javascript:var d="+g+".open();d.domain='"+d.domain+"';";b[k]=o+"void(0);"}try{var t=
	b.contentWindow[g];t.write(p());t.close()}catch(x){b[k]=o+'d.write("'+p().replace(/"/g,
	'\\"')+'");d.close();'}a.T(1)}({network:"bgames"});
}

//check screen resulotion
var myWidth,myHeight;
function getSize(){if(typeof(window.innerWidth)=='number'){/*Non-IE */ myWidth = window.innerWidth-getScrollBarWidth();myHeight = window.innerHeight;} else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)){/*IE 6+ in 'standards compliant mode'*/ myWidth=document.documentElement.clientWidth-getScrollBarWidth();myHeight=document.documentElement.clientHeight;} else if(document.body && (document.body.clientWidth || document.body.clientHeight)){/*IE 4 compatible*/ myWidth=document.body.clientWidth-getScrollBarWidth();myHeight=document.body.clientHeight;}}
function getScrollBarWidth(){var inner = document.createElement('p');inner.style.width="100%";inner.style.height="200px";var outer=document.createElement('div');outer.style.position="absolute";outer.style.top="0px";outer.style.left="0px";outer.style.visibility="hidden";outer.style.width="200px";outer.style.height="150px";outer.style.overflow="hidden";outer.appendChild(inner);document.body.appendChild(outer);var w1=inner.offsetWidth;outer.style.overflow='scroll';var w2=inner.offsetWidth;if (w1 == w2) w2=outer.clientWidth;document.body.removeChild(outer);return (w1 - w2);}
getSize();


var siteContainer= document.getElementById("siteContainer");
var mainContainer= document.getElementById("mainContainer");
var wideContainer= document.getElementById("wideContainer");
var padFromLeft;
var rightadContainer; 

if (myWidth>1160 && !smartad)
	calcResize();
else
	wideContainer.style.width=970+'px';

function calcResize()
{
	getSize();
	if (myWidth>1160)
	{
		rightadContainer= document.getElementById("rightadContainer");
		padFromLeft=((myWidth-970-180)/2);
		if (rightadContainer)
			rightadContainer.style.left = (padFromLeft + 970 + 10) + 'px';
	}	
}
window.onresize = calcResize;

