function eyefi_checkBrowser(){
	this.ver=navigator.appVersion; this.dom=document.getElementById?1:0;
	this.mac=(this.ver.indexOf("PPC")!= -1)?1:0; this.win=(this.ver.indexOf("Win")!= -1)?1:0;
	this.ie5=(this.ver.indexOf("MSIE")!= -1 && this.dom && parseInt(this.ver) >= 4)?1:0;
	this.ie4=(document.all && !this.dom)?1:0; this.ie=(this.ie5 || this.ie4);
	this.ns6=(this.dom && parseInt(this.ver) >= 5)?1:0;
	this.ns4=(document.layers && !this.dom)?1:0; this.ns=(this.ns4 || this.ns6);
	this.eyefi=(this.ie || this.ns);
	return this;
}
eyefi=new eyefi_checkBrowser();

function printit(){  
if (window.print) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
	document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
}
}
function popup(pagename,winid,wwidth,wheight) {
	window.open(pagename,winid,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrolling=1,scrollbars=1,resizable=no,width='+wwidth+',height='+wheight);			
}
function over(obj) {
	obj.style.backgroundColor='#d2d787';
}
function out(obj) {
	obj.style.backgroundColor='#b4bd34';
}

function jumpto(obj) {
    var id = obj.options[obj.selectedIndex].value;
    if (id[0]=='-')
	return;

    if (id.substring(0,1)==' ') {
	// board
	proc="proc=viewboard&";
    } else {
	// cat
	proc="";
    }
    id = id.replace(/\s+/g, "");
    url = "forum.php?"+proc+"id="+id;
    document.location.href = url;
}

