function Show(Item, Switch, Flag, Id) {
	var Index;
	switch(Id) {
		case "a":	Index = 0;
					break;
		case "b":	Index = 1;
					break;
		case "c":	Index = 2;
					break;
		case "d":	Index = 3;
					break;
		case "e":	Index = 4;
					break;
		case "f":	Index = 5;
					break;
		case "g":	Index = 6;
					break;
		case "h":	Index = 7;
					break;
		case "i":	Index = 8;
					break;
		case "j":	Index = 9;
					break;
		case "k":	Index = 10;
					break;
		case "l":	Index = 11;
					break;
		case "m":	Index = 12;
					break;
		case "n":	Index = 13;
					break;
		case "o":	Index = 14;
					break;
	}

	if(Switch) {
		eval(Item + "menu").style.left = MENULEFTS[Index] + document.body.clientWidth / 2;
		eval(Item + "menu").innerHTML = MENU[Index];
		eval(Item + "title").className = "menuover";

	} else
		if(!Flag) {
			eval(Item + "menu").innerHTML = "";
			eval(Item + "title").className = "menu1";
		}	
	return;
}
//--------------------
function Show2(Item, Switch) {
	if(Switch) 
		eval(Item + "title").className = "menuover2";
	 else
		eval(Item + "title").className = "menu3";		
	eval(Item + "title").style.cursor = "hand"		;
	return;
}

//------------------
function showprod(Item) {

	carlist.style.display = "none";
	trucklist.style.display = "none";
	buslist.style.display = "none";
	minibuslist.style.display = "none";			
	
	eval(Item + "list").style.display = "block";
	
}
//------------------
function buildMenu(Item, Index) {
	var strTemp;
	var ArrayIndex;
	switch(Index) {
		case "a":	ArrayIndex = 0;
					break;
		case "b":	ArrayIndex = 1;
					break;
		case "c":	ArrayIndex = 2;
					break;
		case "d":	ArrayIndex = 3;
					break;
		case "e":	ArrayIndex = 4;
					break;
		case "f":	ArrayIndex = 5;
					break;
		case "g":	ArrayIndex = 6;
					break;
		case "h":	ArrayIndex = 7;
					break;
		case "i":	ArrayIndex = 8;
					break;
		case "j":	ArrayIndex = 9;
					break;
		case "k":	ArrayIndex = 10;
					break;
		case "l":	ArrayIndex = 11;
					break;
		case "m":	ArrayIndex = 12;
					break;
		case "n":	ArrayIndex = 13;
					break;
		case "o":	ArrayIndex = 14;
					break;
	}

	MENULEFTS[ArrayIndex] = eval(Item + "menu").style.pixelLeft;

	strTemp = "<div onMouseOver='"
	strTemp += Index;
	strTemp += "=1' onmouseout=";
	strTemp += String.fromCharCode(34);
	strTemp += Index;
	strTemp += "=0; setTimeout(&quot;Show('";
	strTemp += Item;
	strTemp += "', 0, ";
	strTemp += Index;
	strTemp += ", '";
	strTemp += Index;
	strTemp += "')&quot;, TimeOutPeriod);";
	strTemp += String.fromCharCode(34);
	strTemp += "><table bordercolor=#d9d6d1 bgcolor='#ededed' style='border-collapse: collapse; padding-left: 5; padding-right: 5' width=100% height=100% border=1 cellspacing=0 cellpadding=0>";
	strTemp += buildLinks(Item);
	strTemp += "</table></div>";
	return(strTemp);
}
//-----------------
function buildLinks(Index) {
	var strTemp = "";
	var ArNa = Index.toUpperCase();
	var i;
	for(i=0; i < eval(ArNa).length;) {
		strTemp += "<tr><td class=" + String.fromCharCode(34) + "normalmenu" + String.fromCharCode(34) + " onMouseover=" + String.fromCharCode(34) + "this.style.background='#ededed'" + String.fromCharCode(34) + " onMouseout=" + String.fromCharCode(34) + "this.style.background='#ededed'" + String.fromCharCode(34) + " >";		
		strTemp += "<a href=" + String.fromCharCode(34) + eval(ArNa)[i+1] + String.fromCharCode(34) + " >";		
		//strTemp += "<img src='images/bicon.gif' border=0 align='center'>";
		strTemp += " ";
		strTemp += eval(ArNa)[i];
		strTemp += "&nbsp;&nbsp;</a></td></tr>";
		strTemp += "<tr><td height=1 bgcolor='#C2C7D1'></td></tr>";
		
		i=i+2;
	}
	return(strTemp);
}
//---------------
function swf(src,w,h)
{
		ht = "	<OBJECT codeBase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0'   ";
		ht += "	height='" + h + "' width='" + w + "' align='middle' VIEWASTEXT>";
		ht += "	<PARAM NAME='movie' VALUE='" + src + "'> ";
		ht += "	<PARAM NAME='quality' VALUE='best'>  ";
		ht += "	<PARAM NAME='wmode' VALUE='transparent'>  ";
		ht += "	<embed src='" + src + "' quality='best' wmode='transparent' height='" + h + "' width='" + w + "'   ";
		ht += "	align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /> ";
		ht += "  </OBJECT> ";
		document.write(ht);
}
//----------------
function swfMain(w,h)
{

		var x= 0 ;
		var y = 4 ;
		var range = y - x + 1;
		i = Math.floor(Math.random() * range) + x;
        src = MAINPIC[i] ;
		ht = "	<OBJECT codeBase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0'   ";
		ht += "	height='" + h + "' width='" + w + "' align='middle' VIEWASTEXT>";
		ht += "	<PARAM NAME='movie' VALUE='" + src + "'> ";
		ht += "	<PARAM NAME='quality' VALUE='best'>  ";
		ht += "	<PARAM NAME='wmode' VALUE='transparent'>  ";
		ht += "	<embed src='" + src + "' quality='best' wmode='transparent' height='" + h + "' width='" + w + "'   ";
		ht += "	align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /> ";
		ht += "  </OBJECT> ";
		document.write(ht);
}
//------------------------
function Open_Win(URL,x,y) {
	window.open(URL,"shockscreen","width= " + x + ",height= " + y + ",left=300,top=120,resizable=no,status=no,scrollbars=no,toolbar=no,menubar=no");
}	

