// JavaScript Document
function resolution()
{
//		alert("In resolution");
		var screenW = 640, screenH = 480;
		if (parseInt(navigator.appVersion)>3) {
		 if (navigator.appName=="Netscape") {
		  screenW = window.innerWidth;
		  screenH = window.innerHeight;
		 }
		 if (navigator.appName.indexOf("Microsoft")!=-1) {
		 if( typeof( window.innerWidth ) == 'number' ) {
			//Non-IE
			screenW = window.innerWidth;
			screenH = window.innerHeight;
		  } 
		  else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			screenW = document.documentElement.clientWidth;
			screenH = document.documentElement.clientHeight;
		  } 
		  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//IE 4 compatible
			screenW = document.body.clientWidth;
			screenH = document.body.clientHeight;
		  }

//		  screenW = document.body.offsetWidth;
//		  screenH = document.documentElement.clientHeight;
//		  alert ("picked up height : " + screenH);
		 }
		}
//		alert("Current Screen Size:" + 	screenH);
//		alert("Current Screen Size:" + 	screenW);
		if(screenW > 987 && screenH > 601) {
					document.getElementById('main').className = "container";
				}
		else if(screenW < 987 && screenH < 601) { 	
			document.getElementById('main').className = "containerSmall";
		}
		if(screenW < 987 && screenH > 601) {
			document.getElementById('main').className = "containerSmallWidth";
		}
		if(screenH < 601 && screenW > 987) {
			document.getElementById('main').className = "containerSmallHeight";
		}
		
}