// JScript source code
var L1off = new Image()
L1off.src = "images/homeL1off.jpg"
var L1on = new Image()
L1on.src = "images/homeL1on.jpg"
	

var L3off = new Image()
L3off.src = "images/homeL3off.jpg"
var L3on = new Image()
L3on.src = "images/homeL3on.jpg"


var L5off = new Image()
L5off.src = "images/homeL5off.jpg"
var L5on = new Image()
L5on.src = "images/homeL5on.jpg"
	

var L7off = new Image()
L7off.src = "images/homeL7off.jpg"
var L7on = new Image()
L7on.src = "images/homeL7on.jpg"


var L9off = new Image()
L9off.src = "images/homeL9off.jpg"
var L9on = new Image()
L9on.src = "images/homeL9on.jpg"
	

var L11off = new Image()
L11off.src = "images/homeL11off.jpg"
var L11on = new Image()
L11on.src = "images/homeL11on.jpg"
	 

var L13off = new Image()
L13off.src = "images/homeL13off.jpg"
var L13on = new Image()
L13on.src = "images/homeL13on.jpg"
	

var L15off = new Image()
L15off.src = "images/homeL15off.jpg"
var L15on = new Image()
L15on.src = "images/homeL15on.jpg"


var L17off = new Image()
L17off.src = "images/homeL17off.jpg"
var L17on = new Image()
L17on.src = "images/homeL17on.jpg"
	

var L19off = new Image()
L19off.src = "images/homeL19off.jpg"
var L19on = new Image()
L19on.src = "images/homeL19on.jpg"



function changeMe(id,state,focus){
var id2
var id3
var id4



// Determine Menu Cell ID
id3 = "M" + id.charAt(1) + id.charAt(2)
id4 = "B" + id.charAt(1) + id.charAt(2)

	if (id.charAt(0) == "L"){
		id2 = "R" + id.charAt(1) + id.charAt(2)
	}
	if (id.charAt(0) == "R"){
		id2 = "L" + id.charAt(1) + id.charAt(2)
	}


// Swap Images Left and Right
document.getElementById(id).src = eval(id + state + ".src")
//document.getElementById(id2).src = eval(id2 + state + ".src")

// Change Menu Cell Background color	
	if(state =="on"){
		document.getElementById(id3).style.backgroundColor ="#cdd199" 
		document.getElementById(id4).src = "images/menuon.gif" 
	}else{
		document.getElementById(id3).style.backgroundColor ="#B1B57D"
		document.getElementById(id4).src = "images/menuoff.gif"  
	}
 }
