var x,y;
function setXY() {
if (self.innerHeight) // all except Explorer
{
	//alert("Not IE");
	x = self.innerWidth;
	y = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
{
	//alert("IE Strict");
	x = document.documentElement.clientWidth;
	y = document.documentElement.clientHeight;
}
else if (document.body) // other Explorers
{
	//alert("IE Other");
	x = document.body.clientWidth;
	y = document.body.clientHeight;
}
	var width=x;
	var height=y;
}
setXY();

