$(document).ready(function(){
	setBGR();
});

function setBGR(){
	var x,y;
	if (self.innerHeight) // all except Explorer
	{
		x = self.innerWidth;
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}
	var bgr = "1024";
	if( x > 1024 || y > 768){
		var bgr = "1280";
		if( x >1280 || y >1024){
			var bgr = "1680";
		}
	}
	selected = document.getElementsByTagName("body")[0].id;
	classname = selected + bgr + " scripted";
	$("body").addClass(classname);
}
