	function toggle(elementId){
		if(document.getElementById){
			var obj = document.getElementById(elementId);
			obj.style.display = obj.style.display;
			obj.style.display = (obj.style.display == "block") ? "none" : "block";
		}
	}


	startList = function() {
		if (document.all&&document.getElementById) {
			navRoot = document.getElementById("navul");
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() { this.className+=" over"; }
					node.onmouseout=function() { this.className=this.className.replace(" over", ""); }
					}
				}
			}
		}
	window.onload=startList;

	function changeCssClass(className,selector,value) {
		var docType;
		if (document.all) {
			docType = 'rules';
			}
		else if (document.getElementById) {
			docType = 'cssRules';
			}
		for (var x = 0; x < document.styleSheets.length; x++){
			for (var y = 0; y < document.styleSheets[x][docType].length; y++) {
				if (document.styleSheets[x][docType][y].selectorText == className) {
					document.styleSheets[x][docType][y].style[selector] = value;
					}
				}
			}
		}
		
	function rand(){
		return Math.round(Math.random()*5000);
	}
	
	function emThis()
	{
	
		var emailSubject;
		var emailBody;
		var linkUrl = location.href;
		var t = document.title;
		var b = new Array("Untitled Document","Southern California's Family Friends - 89.7 FM KSGN","undefined","");
		for(i=0;i<=b.length-1;i++){
			if(t==b[i]){
				emailSubject="Check out this page on KSGN.com!";
			}
		}
		if(emailSubject==undefined) {
			emailSubject="Check out this page on KSGN.com: " + t;
		}
		
		emailSubject = encodeURI(emailSubject).replace(/#/g,"%23").replace(/&/g,"%26");
		linkUrl = encodeURI(linkUrl).replace(/#/g,"%23").replace(/&/g,"%26");
		if(emailBody==undefined) emailBody = "";
		emailBody = emailBody + "%0D%0A" + "%0D%0A" + linkUrl;
		
		var e = "mailto:?subject=" + emailSubject + "&body=" + emailBody;
		location.href = e;
	}