
var strRes=getRes();
	
function getRes(){ //DETERMINE SCREEN RESOLUTION
	/* switch (true) {
		case (screen.width>1000): return 'high'; break
		case (screen.width<600): return 'pda'; 	break
		default: return 'pda';
	}
	*/
    return 'high';
	checkMain();
}
function writeInResTag(){
	document.write('<div id="'+strRes+'" name="'+strRes+'">');
}
function getBodyClassName(){
	document.body.className=strRes;
}
function changeImageRes(){
	if (strRes!='high'){ 
		for(i=0; i<document.images.length; i++){
			document.getElementById(document.images[i].getAttribute('id')).src =
			document.images[i].getAttribute('src').toString().replace('high',strRes);
		}
		if (document.body.style.background)
			document.body.style.background=document.body.style.background.toString().replace('high',strRes);
	}
}