dojo.addOnLoad(function() {
	var f1 = dojo.query('#navOne div:first-child')[0];
	var s1 = dojo.query('#navOne div:nth-child(2)')[0];			
	dojo.connect(dojo.byId("navOne"), "onmouseenter", function() {				
		dojo.style(f1, "visibility", "hidden");
		dojo.style("navOne", "backgroundColor", "#7E7E7E");			
		dojo.style(s1, "visibility", "visible");
	});			
	dojo.connect(dojo.byId("navOne"), "onmouseleave", function() {				
		dojo.style(s1, "visibility", "hidden");
		dojo.style("navOne", "backgroundColor", "#edac00");			
		dojo.style(f1, "visibility", "visible");				
	});						
	dojo.query('#navOne a').forEach(function(node, index, array){
		dojo.connect(node, "onmouseenter", function(evt) {					
			var img = evt.currentTarget.childNodes[0];
			var span = evt.currentTarget.childNodes[1];
			dojo.attr(img, "src", "/t2/static/en/image/arrow_yellow_gb.gif");
			dojo.style(span, "color", "#edac00");
		});
		dojo.connect(node, "onmouseleave", function(evt) {					
			var img = evt.currentTarget.childNodes[0];
			var span = evt.currentTarget.childNodes[1];
			dojo.attr(img, "src", "/t2/static/en/image/arrow_light_gray_gb.gif");
			dojo.style(span, "color", "white");
		});
	});
	
	
	dojo.connect(dojo.byId("navTwo"), "onmouseenter", function() {
		dojo.style("navTwo", "backgroundColor", "#7E7E7E");
		var img = dojo.query("#navTwo img")[1];
		dojo.attr(img, "src", "/t2/static/en/image/arrow_white_gb.gif");
		
	});	
	dojo.connect(dojo.byId("navTwo"), "onmouseleave", function() {								
		dojo.style("navTwo", "backgroundColor", "#edac00");
		var img = dojo.query("#navTwo img")[1];
		dojo.attr(img, "src", "/t2/static/en/image/arrow_gray_yb.gif");
	});
	
	var f3 = dojo.query('#navThree div:first-child')[0];
	var s3 = dojo.query('#navThree div:nth-child(2)')[0];			
	dojo.connect(dojo.byId("navThree"), "onmouseenter", function() {				
		dojo.style(f3, "visibility", "hidden");
		dojo.style("navThree", "backgroundColor", "#7E7E7E");			
		dojo.style(s3, "visibility", "visible");
	});			
	dojo.connect(dojo.byId("navThree"), "onmouseleave", function() {				
		dojo.style(s3, "visibility", "hidden");
		dojo.style("navThree", "backgroundColor", "#edac00");			
		dojo.style(f3, "visibility", "visible");				
	});						
	dojo.query('#navThree a').forEach(function(node, index, array){
		dojo.connect(node, "onmouseenter", function(evt) {					
			var img = evt.currentTarget.childNodes[0];
			var span = evt.currentTarget.childNodes[1];
			dojo.attr(img, "src", "/t2/static/en/image/arrow_yellow_gb.gif");
			dojo.style(span, "color", "#edac00");
		});
		dojo.connect(node, "onmouseleave", function(evt) {					
			var img = evt.currentTarget.childNodes[0];
			var span = evt.currentTarget.childNodes[1];
			dojo.attr(img, "src", "/t2/static/en/image/arrow_light_gray_gb.gif");
			dojo.style(span, "color", "white");
		});
	});
});

function layOverlay() {
	dojo.style("slideOverlay", {display: 'block'}); 
}

function remOverlay() {
	dojo.style("slideOverlay", {display: 'none'}); 
}
