function init(){
	if (!document.getElementsByTagName) return false;
	var eleTables = document.getElementsByTagName('table');
	var tableCount = eleTables.length;

	for(var i = 0 ; i < tableCount; i++){
		if(eleTables[i].className == 'datatable'){
			var tbl = eleTables[i];
			var lastRow = tbl.rows.length;
			for(var j = 0; j < lastRow; j++){
				if (j % 2 == 0){
					tbl.rows[j].className = 'r2';
					tbl.rows[j].onmouseout = function(){this.className = 'r2';}
				}else{
					tbl.rows[j].onmouseout = function(){this.className = 'r1';}
				}
				tbl.rows[j].onmouseover = function(){this.className = 'on';}
			}
		}
	}
}

window.onload = init;

function jump_to(){
	id =  document.getElementById('sl').selectedIndex;
	if(id != '' && id != null && id != 0){

		if(id == '1'){
			parent.location.href='/pages/graduation/schools/bandon.php';

		}else if(id == '2'){
			parent.location.href='/pages/graduation/schools/brookings.php';

		}else if(id == '3'){
			parent.location.href='/pages/graduation/schools/coquille.php';

		}else if(id == '4'){
			parent.location.href='/pages/graduation/schools/elkton.php';

		}else if(id == '5'){
			parent.location.href='/pages/graduation/schools/gold-beach.php';

		}else if(id == '6'){
			parent.location.href='/pages/graduation/schools/marshfield.php';

		}else if(id == '7'){
			parent.location.href='/pages/graduation/schools/myrtle-point.php';

		}else if(id == '8'){
			parent.location.href='/pages/graduation/schools/north-bend.php';

		}else if(id == '9'){
			parent.location.href='/pages/graduation/schools/pacific.php';

		}else if(id == '10'){
			parent.location.href='/pages/graduation/schools/powers.php';

		}else if(id == '11'){
			parent.location.href='/pages/graduation/schools/reedsport.php';

		}else if(id == '12'){
			parent.location.href='/pages/graduation/schools/siuslaw.php';

		}else if(id == '13'){
			//jump back to index
			parent.location.href='/graduation/index.php';
		}

		return false;
	}else{
		return false;
	}
}


