function getcss(cssfile)
{
	loadcss = document.createElement('link')
	loadcss.setAttribute("rel", "stylesheet")
	loadcss.setAttribute("type", "text/css")
	loadcss.setAttribute("href", cssfile)
	document.getElementsByTagName("head")[0].appendChild(loadcss)
}

if(screen.width <= '800')
{
	getcss('css/800x600.css')
}
else if(screen.width <= '1024')
{
	getcss('css/1024x768.css')
}
else if(screen.width <= '1152')
{
	getcss('css/1152x864.css')
}
else if((screen.width <= '1280') && (screen.height <= '768'))
{
	getcss('css/1280x768.css')
}
else if((screen.width <= '1280') && (screen.height <= '960'))
{
	getcss('css/1280x960.css')
}
else if(screen.width <= '1280')
{
	getcss('css/1280x1024.css')
}
else if(screen.width <= '1400')
{
	getcss('css/1400x900.css')
}
else if(screen.width <= '1600')
{
	getcss('css/1600x900.css')
}
else if(screen.width <= '1680')
{
	getcss('css/1680x1050.css')
}
else //default resolution
{
	getcss('css/800x600.css')
}
