<!-- CSS Swap Begin -->
function switchCSS() {
	if (window.screen.availWidth < 1024) {
	var myLink = document.getElementsByTagName('link')[0];
	if (myLink) myLink.setAttribute('href', 'includes/styles800.css', 0);
	}
}
<!-- CSS Swap End -->


<!-- Pic Swap Begin -->
img1 = "/images/expand.gif";
img2 = "/images/collapse.gif";
function chng(c_img) {
	if (document[c_img].src.indexOf(img1)!= -1) document[c_img].src = img2;
	else document[c_img].src = img1;
} 
<!-- Pic Swap End -->


<!-- Show Hide Begin -->
function showhide(id) {
	var state = document.getElementById(id).style.display;
	if (state == 'block') {
		document.getElementById(id).style.display = 'none';
	}
	else {
		document.getElementById(id).style.display = 'block';
	}
}
<!-- Show Hide End -->
