// JavaScript Document
var gallery1 = new Array("images/about1.gif","images/about2.gif","images/about3.gif","images/about4.gif","images/about5.gif","images/about6.gif");

var gallery2 = new Array("images/capabilities1.gif","images/capabilities2.gif","images/capabilities3.gif","images/capabilities4.gif","images/capabilities5.gif","images/capabilities6.gif", "images/capabilities7.gif");

var gallery3 = new Array("images/oemdecals1.gif","images/oemdecals2.gif","images/oemdecals3.gif","images/oemdecals4.gif","images/oemdecals5.gif","images/oemdecals6.gif");

var gallery4 = new Array("images/signage1.gif","images/signage2.gif","images/signage3.gif");

var gallery5 = new Array("images/fleetgra1.gif","images/fleetgra2.gif","images/fleetgra3.gif");



var mouseout_gallery=new Array();
	mouseout_gallery[1]="images/about1.gif";
	mouseout_gallery[2]="images/capabilities1.gif";
	mouseout_gallery[3]="images/oemdecals1.gif";
	mouseout_gallery[4]="images/signage1.gif";
	mouseout_gallery[5]="images/fleetgra1.gif";
	
$(document).ready(function() {
	
		$(".dropmenudiv_d").bind('mouseover', function(){
			var id=$(this).attr("id");
			var ext_char=id.charAt(8);
		
			$("#" +id+ " a").bind('mouseout', function(){	
				$("#image" +ext_char).attr("src",eval("mouseout_gallery[" +ext_char+ "]"));									  
			});
					
		$("#" +id+" a:nth-child(2)").bind('mouseover', function(){																
			$("#image" +ext_char).attr("src",eval("gallery" +	ext_char+"[0]"));
		});
		$("#" +id+" a:nth-child(3)").bind('mouseover', function(){
			$("#image"+ext_char).attr("src",eval("gallery" +	ext_char+"[1]"));
		});
		$("#" +id+" a:nth-child(4)").bind('mouseover', function(){
			$("#image"+ext_char).attr("src",eval("gallery" +	ext_char+"[2]"));
		});
		$("#" +id+" a:nth-child(5)").bind('mouseover', function(){
			$("#image"+ext_char).attr("src",eval("gallery" +	ext_char+"[3]"));
		});
		$("#" +id+" a:nth-child(6)").bind('mouseover', function(){
			$("#image"+ext_char).attr("src",eval("gallery" +	ext_char+"[4]"));
		});
		$("#" +id+" a:nth-child(7)").bind('mouseover', function(){
			$("#image"+ext_char).attr("src",eval("gallery" +	ext_char+"[5]"));
		});
		
		$("#" +id+" a:nth-child(8)").bind('mouseover', function(){
			$("#image"+ext_char).attr("src",eval("gallery" +	ext_char+"[6]"));
		});
		
	});		
});