function loader() {
	var h = 0;
	var w = 0;

	if(!window.innerWidth)
	{	//iexplore
		h = document.documentElement.clientHeight;
		w = document.documentElement.clientWidth;
	}
	else
	{	//standards based browsers
		w = window.innerWidth;
		h = window.innerHeight;
	}

	if(h > 1024 && w > 1024)
	{
		$('container').className = "clarge";
		$('centerbox').className = "cblarge";
		return true;
	}
				
	if(h > 800 && w > 800)
	{
		$('container').className = "cmedium";
		$('centerbox').className = "cbmedium";	
		return true;
	}

	$('container').className = "csmall";
	$('centerbox').className = "cbsmall";
	return true;
}

function doieheight () {
	if(!(document.documentElement.clientWidth == 0))
	{
		h = document.documentElement.clientHeight;
	}
	else
	{
		h = document.body.clientHeight;
	}
	if(document.getElementById("container").className.indexOf('csmall' != -1))
	{
		return (h < 500 ? "500px" : "98%");
	}
	if(document.getElementById("container").className.indexOf('cmedium' != -1))
	{
		return (h < 700 ? "700px" : "98%");
	}
	
	return (h < 900 ? "900px" : "98%");
}

function doiewidth () {
	if(!(document.documentElement.clientWidth == 0))
	{
		h = document.documentElement.clientWidth;
	}
	else
	{
		h = document.body.clientWidth;
	}
	if(document.getElementById("container").className.indexOf('csmall' != -1))
	{
		return (h < 500 ? "500px" : "100%");
	}
	if(document.getElementById("container").className.indexOf('cmedium' != -1))
	{
		return (h < 700 ? "700px" : "100%");
	}
	
	return (h < 900 ? "900px" : "100%");
}

