// JavaScript Document
function P7_MinMaxW(a,b){
	var nw="auto",w=document.documentElement.clientWidth;
	if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
function P7_MinMaxH(a,b){
	var nw="auto",w=document.documentElement.clientHeight;
	if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
window.size = function()
{
	var w = 0;
	var h = 0;

	//IE
	if(!window.innerWidth)
	{
		//strict mode
		if(!(document.documentElement.clientWidth == 0))
		{
			w = document.documentElement.clientWidth;
			h = document.documentElement.clientHeight;
		}
		//quirks mode
		else
		{
			w = document.body.clientWidth;
			h = document.body.clientHeight;
		}
	}
	//w3c
	else
	{
		w = window.innerWidth;
		h = window.innerHeight;
	}
	return {width:w,height:h};
}

function CheckWidth() {
	if(this.size().width<970+150)
	{
		document.getElementById('banners').style.visibility='hidden';
		document.getElementById('banners').style.display='none'
	}
}
