// JavaScript Document

function screenRes()
{
	var width, height;
	
	if(window.innerWidth) {
	width = window.innerWidth;
	height = window.innerHeight;
	}
	else if(document.documentElement.clientWidth) {
	width = document.documentElement.clientWidth;
	height = document.documentElement.clientHeight;
	}
	else if(document.body.clientWidth) {
	width = document.body.clientWidth;
	height = document.body.clientHeight;
	}	
	
	if(width >= 100 && width <= 800)
	{
		document.write("<link rel='stylesheet' href='css_background_none.css' type='text/css' />");
	}
	
	
	if(width >= 900 && width <= 1024)
	{
		document.write("<link rel='stylesheet' href='css_background1024.css' type='text/css' />");
	}
	
	else if(width >= 1090 && width <= 1190)
	{
		document.write("<link rel='stylesheet' href='css_background1190.css' type='text/css' />");	   
	}
	
	
	else if(width >= 1200 && width <= 1300)
	{
		document.write("<link rel='stylesheet' href='css_background1280.css' type='text/css' />");	   
	}
	
	else if(width >= 1500 && width <= 1650)
	{
		document.write("<link rel='stylesheet' href='css_background1600.css' type='text/css' />");	   
	}
	
}
