/* script to allow a lowres css file to be switched in for a screen res lower less 1024x768 */


//window.onload = function(e)
//{
	//changeStyle('csslowres');
	if( screen.width >= 1024 )
	{
		// turn off low res css
    	changeStyle('cssnormal');
	}
	else
	{
		// turn off low res css
    	changeStyle('csslowres');
	}
//}



function getAllSheets()
{
    return(document.getElementsByTagName('link'));
}


function changeStyle(title)
{	
	var i, a, main;

	for(i=0; (a = document.getElementsByTagName("link")[i]); i++)
	{

	if(a.getAttribute("rel").indexOf("style") != -1
        && a.getAttribute("title"))
	{
       a.disabled = true;
       if(a.getAttribute("title") == title) a.disabled = false;
     }
   }

}
	