/*
CSS Browser Selector v0.4.0 (Nov 02, 2010)
Rafael Lima (http://rafael.adm.br)
http://rafael.adm.br/css_browser_selector
License: http://creativecommons.org/licenses/by/2.5/
Contributors: http://rafael.adm.br/css_browser_selector#contributors
*/
function css_browser_selector(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',m='mobile',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3.6')?g+' ff3 ff3_6':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('blackberry')?m+' blackberry':is('android')?m+' android':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?m+' j2me':is('iphone')?m+' iphone':is('ipod')?m+' ipod':is('ipad')?m+' ipad':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win'+(is('windows nt 6.0')?' vista':''):is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);

function popUp(msg) {
	if (msg == 'docket') {
		var answer = confirm('The Online Docket is in Adobe Acrobat format. You must have the free Adobe Reader installed to view it.\n\nIf you have a question regarding the docket, please contact the phone number listed on the docket or call us at 503-988-3162.');
		if (answer) {
			window.open('http://mcda.us/mcda_online_docket.pdf');
		}
	}
	else {
		alert(msg);
	}
}

function jumpWin(selector) {
	var wherewegoin = selector.options[selector.selectedIndex].value;
	if(wherewegoin != "") window.location.href=wherewegoin;
	return;
}

function validateForm() {
	var msg = "DISCLAIMER\n\nThis search site is provided as a service to the general public. Some of the names stored in our system may not actually be the true name of a particular defendant. The person who was arrested or issued a citation could have given a false name. The name you see in the record search is the name that appears on the charging instrument. All data contained herein is subject to change without notice.\n\nUsers should remember that the name search is a guide to the information contained within the documents referenced. If you find information that you believe is incorrect, please let us know. You may send such information to DA@mcda.us\n\nThe ability to search for case status is intended to be used solely for purposes of determining what is happening to a criminal case. If you are a victim or witness, it may be helpful in determining the status of the case and the next court appearance. If you have received a subpoena please call the phone numbers provided on the subpoena to verify the information on this webpage.\n\nMultnomah County and the Multnomah County District Attorney make no representation, warranty or guarantee regarding the accuracy, completeness or reliability of the content of this site or other sites to which this site is linked. Multnomah County and the Multnomah County District Attorney will not be responsible or liable for any injury or loss occasioned by the content of this website, or the use of this website.\n\nTo use this website you must acknowledge that you have read, understood and agreed to the terms of the disclaimer above by clicking OK. If you choose not to accept the terms stated above, please click the Cancel button to exit this search application.";

	if (confirm(msg)) {
		document.getElementById("search").submit();
	}
	else {
		window.location = "http://www.mcda.us"
;
	}
}

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);
