sfHover = function() {
	var sfEls = document.getElementById("navul").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);


function popwin(pageName, windowWidth, windowHeight){
	window.open(pageName, 'window', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+windowWidth+',height='+windowHeight+',top=150,left=150');return false;
	return false;
}

function u(id, img){	
	document.getElementById(id).src = 'images/'+img;
}

function tabbed(id,num){
	document.getElementById('tab'+id).style.display='block';

	for(i=1;i<=num;i++){
		if(i!=id) document.getElementById('tab'+i).style.display='none';
	}

	for(i=1;i<=num;i++){
		if(i!=id){
			document.getElementById('li'+i).className='unsel';
		}else{
			document.getElementById('li'+i).className='sel';
		}
	}
}

function showhide(id){
	alert(document.getElementById(id).style.display);
}

function showhide_sec(id) {
	var block = document.getElementById(id);
	if (block.style.display != 'none'){
		block.style.display = 'none';
		document.getElementById(id+'link').innerHTML='[open]';
	} else {
		block.style.display = '';
		document.getElementById(id+'link').innerHTML='[hide x]';
	}
}

function showhide_ab(a_id, b_id) {
	var a = document.getElementById(a_id);
	var b = document.getElementById(b_id);
	
	a.style.display = 'none';
	b.style.display = '';
}
