// JavaScript Document
var left = new Array();
left[0]= new Array();
	left[0][0]='images/home/dui_home_SIDE_1.jpg';
	left[0][1]='Could You Afford The Loss? Burning crashed car image';
left[1]= new Array();
	left[1][0]='images/home/dui_home_SIDE_2.jpg';
	left[1][1]='Could You Afford The Loss? Burning burning money image';
left[2]= new Array();
	left[2][0]='images/home/dui_home_SIDE_3.jpg';
	left[2][1]='Could You Afford The Loss? Burning driver\'s license image';
function displayleft() {
	randomnumber=ran_num(3);
	document.getElementById('left').src=left[randomnumber][0];
	document.getElementById('left').alt=left[randomnumber][1];
}

var arr_right1 = new Array();
arr_right1[0]= new Array();
	arr_right1[0][0]='images/home/dui_home_FACE_1.jpg';
	arr_right1[0][1]='LOSER - I lost my job and my car';
arr_right1[1]= new Array();
	arr_right1[1][0]='images/home/dui_home_FACE_2.jpg';
	arr_right1[1][1]='LOSER - My DUI cost me $14,996';
arr_right1[2]= new Array();
	arr_right1[2][0]='images/home/dui_home_FACE_3.jpg';
	arr_right1[2][1]='LOSER - I killed my boyfriend';
function displayright1() {
	randomnumber=ran_num(3);
	document.getElementById('right1').src=arr_right1[randomnumber][0];
	document.getElementById('right1').alt=arr_right1[randomnumber][1];
}

var arr_right2 = new Array();
arr_right2[0]= new Array();
	arr_right2[0][0]='images/home/dui_home_FACTS_1.jpg';
	arr_right2[0][1]='DUI FACTS - Alcohol is a factor in 6% of all traffic crashes, and over 40% of all fatal crashes';
arr_right2[1]= new Array();
	arr_right2[1][0]='images/home/dui_home_FACTS_2.jpg';
	arr_right2[1][1]='DUI FACTS - Each year there are apporx. 1.5 million arrested for impared driving in the US';
arr_right2[2]= new Array();
	arr_right2[2][0]='images/home/dui_home_FACTS_3.jpg';
	arr_right2[2][1]='DUI FACTS - Motor vehicle crashes are the leading cause of unintentional death in the US';
arr_right2[3]= new Array();
	arr_right2[3][0]='images/home/dui_home_FACTS_4.jpg';
	arr_right2[3][1]='DUI FACTS -153 people died in Maryland in 2008 due to alcohol-related crashes';
function displayright2() {
	randomnumber=ran_num(4);
	document.getElementById('right2').src=arr_right2[randomnumber][0];
	document.getElementById('right2').alt=arr_right2[randomnumber][1];
}

function ran_num(i) {
	var randomnumber=Math.floor(Math.random()*(i));
	return randomnumber;
}

