function startScreensize() {
	interval = setInterval('setScreenClass()',0.1) //change value here to change refresh rate, time in seconds
}
	
	window.onload = setScreenClass; 
	window.onresize = setScreenClass;
	
	function setScreenClass(){
		var fmt = document.documentElement.clientHeight;
		var cls = 	(fmt<=479)?'h1':
					(fmt>480&&fmt<=489)?'h2':
					(fmt>489&&fmt<=499)?'h3':
					(fmt>499&&fmt<=509)?'h4':
					(fmt>509&&fmt<=519)?'h5':
					(fmt>519&&fmt<=529)?'h6':
					(fmt>529&&fmt<=539)?'h7':
					(fmt>539&&fmt<=549)?'h8':
					(fmt>549&&fmt<=559)?'h9':
					(fmt>559&&fmt<=569)?'h10':		
					(fmt>569&&fmt<=579)?'h20':
					(fmt>579&&fmt<=589)?'h30':
					(fmt>589&&fmt<=599)?'h40':
					(fmt>599&&fmt<=609)?'h50':
					(fmt>609&&fmt<=619)?'h60':
					(fmt>619&&fmt<=629)?'h70':
					(fmt>629&&fmt<=639)?'h80':
					(fmt>639&&fmt<=649)?'h90':
					(fmt>649&&fmt<=659)?'h100':
					(fmt>659&&fmt<=669)?'h110':
					(fmt>669&&fmt<=679)?'h120':
					(fmt>679&&fmt<=689)?'h130':
					(fmt>689&&fmt<=699)?'h140':
					(fmt>699&&fmt<=709)?'h150':
					(fmt>709&&fmt<=719)?'h160':
					(fmt>719&&fmt<=729)?'h170':
					(fmt>729&&fmt<=739)?'h180':
					(fmt>739&&fmt<=749)?'h190':
					(fmt>749&&fmt<=759)?'h200':
					(fmt>759&&fmt<=769)?'h210':
					(fmt>769&&fmt<=779)?'h220':
					(fmt>779&&fmt<=789)?'h230':
					(fmt>789&&fmt<=799)?'h240':	
					'h250';
					/*(fmt>800&&fmt<=809)?'h250':
					(fmt>810&&fmt<=819)?'h260':
					(fmt>820&&fmt<=829)?'h270':
					(fmt>830&&fmt<=839)?'h280':
					(fmt>840&&fmt<=849)?'h290':
					(fmt>850&&fmt<=859)?'h300':
					(fmt>860&&fmt<=869)?'h310':
					(fmt>870&&fmt<=879)?'h320':
					(fmt>880&&fmt<=889)?'h330':
					'h400';*/
					
		document.getElementById('count').innerHTML=fmt+'px -> '+cls;
		document.body.className=cls;
	};


