// JavaScript Document
var screen_w = screen.width;
var screen_h = screen.height;
var screen_r = screen_w/screen_h;
screen_r = Math.round(screen_r*100)/100;
document.write('Your screen resolution is <strong>'+screen_w+'x'+screen_h+'</strong><br>');
switch (screen_r)
{
case 1.24:
	document.write('Your screen ratio is <strong>5x4</strong>');
	break
case 1.25:
	document.write('Your screen ratio is <strong>5x4</strong>');
	break
case 1.26:
	document.write('Your screen ratio is <strong>5x4</strong>');
	break
case 1.32:
	document.write('Your screen ratio is <strong>4x3</strong>');
	break
case 1.33:
	document.write('Your screen ratio is <strong>4x3</strong>');
	break
case 1.34:
	document.write('Your screen ratio is <strong>4x3</strong>');
	break
case 1.59:
	document.write('Your screen ratio is <strong>8x5</strong>');
	break
case 1.60:
	document.write('Your screen ratio is <strong>8x5</strong>');
	break
case 1.61:
	document.write('Your screen ratio is <strong>8x5</strong>');
	break
case 1.76:
	document.write('Your screen ratio is <strong>16x9</strong>');
	break
case 1.77:
	document.write('Your screen ratio is <strong>16x9</strong>');
	break
case 1.78:
	document.write('Your screen ratio is <strong>16x9</strong>');
	break
default:
	document.write('Your screen ratio is <strong>'+screen_r+'x1</strong>');
}
