// Set JS Class
// adds class="js" to body tag for javascript styling

/*

author: Scott Lenger
last updated: May 2008

instructions:
1. add link to this file in <head>
2. add "setJs();" to onload script in document head

*/


function setJs() {
	if (document.getElementsByTagName("body")) {
		var addClass = document.getElementsByTagName("body");
		for (var i=0; i<addClass.length; i++) {
			addClass[i].className = "js";
		}
	};

	// makes full li clickable from: http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/
	// **OS 27.8.09 Disabled, seems buggy with IE7
	//$("ul#primary-nav li").click(function(){
	//	window.location.href=$(this).find("a").attr("href");
	//	return false;
	//});
}
