<!--//--><![CDATA[//><!--
sfHover = function() {
	var sfEls = document.getElementById("navbox").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);
//--><!]]>

var dom			= document.getElementById ? 1 : 0;
var ie			= document.all ? 1 : 0;
var mac			= (navigator.userAgent.indexOf("Mac") > -1) ? 1 : 0;
var ieReal		= (ie && (!mac) && ( typeof(window.offscreenBuffering) != 'undefined') ) ? 1 : 0;
var isActiveX	= ieReal;
var isSp2		= ieReal && (window.navigator.userAgent.indexOf("SV1") != -1);

function changeOpacity(obj, opacity) {
	if(ieReal) {
		obj.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity=' + (opacity * 100) + ')';
	}
	else if(dom) {
		obj.style.MozOpacity = opacity;
		//obj.style.opacity = opacity;
	}
}


function expandcollapse (postid) {
	whichpost = document.getElementById(postid);
    if (whichpost.className=="postshown") {
		whichpost.className="posthidden";
	}
	else {
		whichpost.className="postshown";
	}

}

function blank(url) {

	new_window = window.open(url, "new_window", "");
	new_window.focus();

}