// JavaScript Document
function goto(nurl){
	if(document){
	document.location.href = nurl;
	}else{
	window.location.href = nurl;
	}
}

function truck_pic_switch(pic,imagesrc,num1,num2){
	//num1 = truck num
	//num2 = pic num
	test = new Image();
	test.src = imagesrc;
	document[pic].src = test.src;
	
	for(var i = 1; i < 9; i++){
		var smallpic = "smallpic"+num1+"-"+i;
		if(document[smallpic]){
	    document[smallpic].style.border = '2px solid #000000';
		}
	}
	var this_pic = "smallpic"+num1+"-"+num2 
	document[this_pic].style.border = '2px solid red';
}

arrow = new Image();
arrow.src = "http://www.nelsontruck.com/white-arrow.gif";
arrow1 = new Image();
arrow.src = "http://www.nelsontruck.com/rainier.jpg";
arrow2 = new Image();
arrow.src = "http://www.nelsontruck.com/nelsontruck-logo.gif";
