// JavaScript Document

//this is the SWITCH type of conditional script

//do I have to declare the variable??

function rolloverBGcolor(thumbnail) // thumbnail will hold 1-2-3-4 depending on which thumbnail was clicked
{ if (document.all) {
	IE_rollover (thumbnail);}
	else {N6_rollover (thumbnail);}
}


function IE_rollover(thumbnail) {
	
	//turn each on as its image is rolled over	
		switch (thumbnail) {
			case 1: document.all.bartini.style.background='#E1DFCB';
				break;
			case 2: document.all.mexican.style.background='#E1DFCB';
				break;
			case 3: document.all.squirrel.style.background='#E1DFCB';
				break;
			case 4: document.all.mexican2.style.background='#E1DFCB';
				break;
			case 5: document.all.designers.style.background='#E1DFCB';
				break;
	//turn all off when the mouse rolls out
			case 0: document.all.bartini.style.background='#fff';
					document.all.mexican.style.background='#fff';
					document.all.squirrel.style.background='#fff';
					document.all.mexican2.style.background='#fff';
					document.all.designers.style.background='#fff';
				break;	
		}
	
	}
			
function N6_rollover (thumbnail) {

//roll the one called to grey BG
		switch (thumbnail){
		
			case 1: document.getElementById('bartini').style.background='#E1DFCB';
				break;
			case 2: document.getElementById('mexican').style.background='#E1DFCB';
				break;
			case 3: document.getElementById('squirrel').style.background='#E1DFCB';
				break;
			case 4: document.getElementById('mexican2').style.background='#E1DFCB';
				break;
			case 5:document.getElementById('designers').style.background='#E1DFCB';	
				break;
	//on rollout, this function is called that rolls all to white
			case 0:document.getElementById('bartini').style.background='#fff';
					document.getElementById('mexican').style.background='#fff';
					document.getElementById('squirrel').style.background='#fff';
					document.getElementById('mexican2').style.background='#fff';
					document.getElementById('designers').style.background='#fff';
						
				break;
		
		}	
	
	}
