	window.onload = setScreenClass;
	window.onresize = setScreenClass;

	//  Following transition classes will be declared:
	//
	//	classname / screenwidth
	//	------------------------------------------
	//	handheld_v / 320px			
	//	handheld_h / 480px			
	//	screen / > 640px			


	function setScreenClass(){
		var fmt = document.documentElement.clientWidth;
		var cls = (fmt<=320)?'handheld_v':(fmt>320&&fmt<=550)?'handheld_h':'screen';
		document.getElementById('count').innerHTML=fmt+'px -> '+cls;
		document.body.className=cls;
	};
	
