document.oncontextmenu = function() { return false;}
function init(){
	// link
	sfHover = function() {
		if(document.getElementById("nav")!=null){
			var sfEls = document.getElementById("nav").getElementsByTagName("li");
			for (var i=0; i<sfEls.length; i++) {
				/*sfEls[i].onmouseover=function() {
					this.className+=" sfhover";
				}
				sfEls[i].onmouseout=function() {
					this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
				}*/
				sfEls[i].onmouseover=function() {
					this.className+=(this.className.length>0? " ": "") + "sfhover";
				}
				sfEls[i].onMouseDown=function() {
					this.className+=(this.className.length>0? " ": "") + "sfhover";
				}
				sfEls[i].onMouseUp=function() {
					this.className+=(this.className.length>0? " ": "") + "sfhover";
				}
				sfEls[i].onmouseout=function() {
					this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
				}
			}
		}
	}	
	sfHover();

	// target 
	function externalLinks() { 
		if (!document.getElementsByTagName) return; 
		var anchors = document.getElementsByTagName("a"); 
		for (var i=0; i<anchors.length ; i++){ 
			var anchor = anchors[i];
			if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "_blank") 
			anchor.target = "_blank";
		} 
	} 
	externalLinks();
}
if (window.attachEvent) window.attachEvent("onload", init);

/**
 * NetScape and Firefox function
 */
// disable-output-escaping
function formatEscape(){
	var escaping = document.getElementsByTagName("span");
    for(var ei = 0; ei<escaping.length; ei++) {
		if("yes"==escaping[ei].getAttribute("escaping")){
			escaping[ei].innerHTML = escaping[ei].firstChild.data;
		}
	}	
/*	escaping = document.getElementsByTagName("label");
	alert(escaping.length);
    for(var ei = 0; ei<escaping.length; ei++) {
		if("yes"==escaping[0].getAttribute("escaping")){
			escaping[ei].innerHTML = escaping[ei].firstChild.data;
		}
	}		*/
}


/*	// Init
window.onload = function(){
	// target 
	function externalLinks() { 
		if (!document.getElementsByTagName) return; 
		var anchors = document.getElementsByTagName("a"); 
		for (var i=0; i<anchors.length ; i++){ 
			var anchor = anchors[i];
			if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "_blank") 
			anchor.target = "_blank";
		} 
	} 
	externalLinks();

	sfHover = function() {
		var sfEls = document.getElementById("nav").getElementsByTagName("li");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
	//if (window.attachEvent) window.attachEvent("onload", sfHover);
	sfHover();
}
isIE = (document.all) ? true:false;*/
