

var ns4=(document.layers)?1:0;
var ie4=(document.all)?1:0;
var ie5=(navigator.appVersion.indexOf('MSIE 5')>0)?1:0;
var ns=(navigator.appName && navigator.appName.indexOf("Netscape")!=-1)?1:0;
var mac=(navigator.platform && navigator.platform.indexOf("Mac")!= -1)?1:0;

var rollovers = new Array();

function RolloverImage(w, h, off_src, over_src, on_src) {
 this.off = new Image(w, h);
 this.off.src = off_src;
 this.over = new Image(w, h);
 this.over.src = over_src;
 this.on = new Image(w, h);
 this.on.src = on_src;
}

rollovers['nav_crime'] = new RolloverImage(65, 29, "images/nav_crime_off.gif", "images/nav_crime_on.gif", "images/nav_thecrime_on.gif");
rollovers['nav_previous'] = new RolloverImage(51, 29, "images/nav_thelaw.gif", "images/nav_thelaw_on.gif", "images/nav_thelaw_on.gif");
rollovers['nav_quiz'] = new RolloverImage(72, 29, "images/nav_thepeople.gif", "images/nav_thepeople_on.gif", "images/nav_thepeople_on.gif");
rollovers['nav_findoutmore'] = new RolloverImage(87, 29, "images/nav_theevidence.gif", "images/nav_theevidence_on.gif", "images/nav_theevidence_on.gif");

function checkMe() {
 if (document.crimeteam.name.value == "") {
  alert("Your name would be quite handy");
	 return false;
	}
	if (document.crimeteam.email.value == "") {
  alert("We need your email in case you win");
	 return false;
	}
	for (var i=0;i<document.crimeteam.question.length;i++) {
  if (document.crimeteam.question[i].checked) {
   document.crimeteam.answer.value = i+1;
  }
 }
 if (document.crimeteam.answer.value==0) {
  alert("Please select the question you'd like to ask");
		return false;
	} else {
		return true;
	}
}
