
/*** TOP PAGE IMAGE CHANGE ******************************************************************/

	function topImageChange(image_id, link_id)
	{

		var top_image = new Array();
			top_image[0] = "common/img/top_main_aeam50.jpg";
			top_image[1] = "common/img/top_main_axbx50.jpg";
			top_image[2] = "common/img/top_main_aron-r.jpg";
			top_image[3] = "common/img/top_main_ex50.jpg";
			top_image[4] = "common/img/top_main_cx50.jpg";
			top_image[5] = "common/img/top_main_dx50.jpg";


		var top_link = new Array();
			top_link[0] = "distrib/battery/aeam50/";
			top_link[1] = "distrib/engine/leo_nxtv/";
			top_link[2] = "distrib/battery/ar50/";
			top_link[3] = "distrib/engine/ex50/";
			top_link[4] = "distrib/engine/cx50/";
			top_link[5] = "distrib/engine/dx50/";

		var top_alt = new Array();
			top_alt[0] = "The Answer!! Best Solution for All Scenes. / 1.0-2.0ton ELECTRIC TRUCKS 4Wheel and 3Wheel \"AE50 Series & AM50 Series\"";
			top_alt[1] = "Destined Evolution!! 1.0-3.5ton INTERNAL COMBUSTION TRUCKS \"AX50 series & BX50 Series\"";
			top_alt[2] = "1.0-1.8ton ELECTRIC RRACH TRUCKS \"AR50 Series\"";
			top_alt[3] = "Environment & Economy is the word for the next generation.EX50 Series is our answer for it. \"EX50 series\"";
			top_alt[4] = "3.5-5.0 ton DIESEL & GASOLINE FORKLIFT TRUCKS \"CX50 series\"";
			top_alt[5] = "5.0-7.0 ton Forklift Trucks of DX20 Series for Non-emissions regulated area \"DX50 series\"";


		var range = top_image.length;
		var number = Math.floor(Math.random()*range);

		if(document.all)
		{
			var image_object = document.all[image_id];
			var link_object = document.all[link_id];
		}
		else if(document.getElementById)
		{
			var image_object = document.getElementById(image_id);
			var link_object = document.getElementById(link_id);
		}

		image_object.src = top_image[number];
		image_object.alt = top_alt[number];
		link_object.href = top_link[number];
	}

/*** WindowsXP sp2 Flash Measures ******************************************************************/
	function FlashPrint(fileName, widthSize, heghtSize){
		document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + widthSize + '" height="' + heghtSize +'">');
		document.write ('<param name="movie" value="'+ fileName +'">');
		document.write ('<param name="quality" value="high">');
		document.write ('<embed src="'+ fileName +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + widthSize + '" height="' + heghtSize +'"></embed></object>');
	}


/*** Left Menu Open Close ******************************************************************/
var menuId = new Array() ;
menuId[0] = "engineLeftMenu" ;
menuId[1] = "butteryLeftMenu" ;

function toggleMenu(id){
	for (i=0; i<menuId.length; i++)
		{
						document.getElementById(menuId[i]).style.display = "none";
		}
						document.getElementById(menuId[id]).style.display = "block";
}