function showIcons() {
	var icons = document.getElementsByTagName('A');
	for(i=0; i<icons.length; i++) {
		if(icons[i].className=='noscript'){
			icons[i].className = 'scriptAvailable';
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", showIcons);
if (window.addEventListener) window.addEventListener( "load", showIcons, false );


//determine the users screen resolution
function getResolution()
{

	var myWidth = 0, myHeight = 0;
	if (typeof(window.innerWidth) == 'number') {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	}
	else 
		if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		}
		else 
			if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
				//IE 4 compatible
				myWidth = document.body.clientWidth;
				myHeight = document.body.clientHeight;
			}
	
	if (myWidth <= 900) {
		var table = document.getElementById("tableMatrix");
		table.className = "demotablesmall";
		
		var classElements = new Array();
		
		var els = document.getElementsByTagName("img");
		var elsLen = els.length;
		var pattern = new RegExp('(^|\\\\s)' + 'matrixImgs' + '(\\\\s|$)');
		for (i = 0, j = 0; i < elsLen; i++) {
			if (pattern.test(els[i].className)) {
				classElements[j] = els[i];
				j++;
			}
		}
		
		for (j = 0; j < classElements.length; j++) {
			classElements[j].style.width = "125px";
		}
		
	}
	var myWidth = 0, myHeight = 0;
	if (typeof(window.innerWidth) == 'number') {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	}
	else 
		if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		}
		else 
			if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
				//IE 4 compatible
				myWidth = document.body.clientWidth;
				myHeight = document.body.clientHeight;
			}
	
	if (myWidth <= 900) {
		var table = document.getElementById("tableMatrix");
		table.className = "demotablesmall";
		
		var classElements = new Array();
		
		var els = document.getElementsByTagName("img");
		var elsLen = els.length;
		var pattern = new RegExp('(^|\\\\s)' + 'matrixImgs' + '(\\\\s|$)');
		for (i = 0, j = 0; i < elsLen; i++) {
			if (pattern.test(els[i].className)) {
				classElements[j] = els[i];
				j++;
			}
		}
		
		
		for (j = 0; j < classElements.length; j++) {
			classElements[j].style.width = "125px";
		}
		
	}
	
	var oResolution = new Object;
	oResolution.width = myWidth;
	oResolution.height = myHeight;
	
	return oResolution;
	
}