var email_icon = 'images/icon_email.gif'
var testing    = false

function Popup(title,filename,w,h,scroll,resizable){if (title == ''){ title = 'popup'; }if (scroll == 'scroll'){ scroll = 'yes'; }else{ scroll = 'no'; }if (resizable == 'lock'){ resizable = 'no'; }else{ resizable = 'yes'; }winOptions = eval("'width="+w+",height="+h+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scroll+",resizable="+resizable+",copyhistory=no'");newWin = window.open(filename,title,winOptions); newWin.focus(); return;}
function safemail(name,domain,display,this_class){
	showicon=(typeof(display)=="undefined")?'':'<img src="'+email_icon+'" class="email-icon" title="send email to '+display+'" alt="send email to '+display+'">&nbsp;';
	displayed=(typeof(display)=="undefined"||display=='')?name+"@"+domain:display;
	displayed_class=(typeof(this_class)=="undefined")?'':' class="'+this_class+'"';
	document.write(showicon+'<a href=mailto:'+name+'@'+domain+displayed_class+'>'+displayed+'</a>');
}
function SetBrowser() {
  agent = navigator.userAgent.toLowerCase();
  mac   = (agent.indexOf("mac")!=-1);
  ie4   = (document.all && !document.getElementById) ? true : false;
  ie5   = (document.all && document.getElementById)  ? true : false;
  ns4   = (document.layers)                          ? true : false;
  ns6   = (document.getElementById && !document.all) ? true : false;
  if (testing){ alert("agent: "+agent+"\nmac: "+mac+"\nie4: "+ie4+"\nie5: "+ie5+"\nns4: "+ns4+"\nns6: "+ns6+"\n"); }
  if (ie4 || ns4) {alert('Our site is optimized for 5.0+ browsers. To fully benefit from our site, please download the current version of Internet Explorer, Firefox, or Netscape')};
}

function AlterColors(id, oddcolor, evencolor) {
	var targetrow;
	var target=document.getElementById(id);
	if(target){
		for (i=0; i<target.rows.length; i++) {
			targetrow = target.rows[i];
			if (!targetrow.id) {
			  targetrow.style.backgroundColor = (i%2) ? oddcolor : evencolor;
			}
		}
	}
}
