/*text array start*/

infotext =new Array();
infotext[1] = "-Max Power : 170 ps @ 3,800 rpm<br>-Max Torque : 40 kgm @ 2,000-2,500 rpm<br>-Displacement : 2,497 cc";
infotext[2] = "-Max Power : 85 ps @ 4,000 rpm<br>-Max Torque : 20kg&middot;m @ 2,000 rpm<br>-Displacement : 2,476 cc";
infotext[3] = "Turbo diesel option with 100ps @ 3800rpm provides smooth, effortless, calm economic power. Should you prefer there is also the Sirius petrol engine giving 137ps @ 5500rpm, or the economical 2.6 naturally aspirated diesel option with 79ps @ 4000 rpm.";
infotext[4] = "-Max Power : 103kw @ 3800rpm<br>-Max Torque : 314Nm @ 2000~3000rpm<br>-Displacement : 2,497cc<br>Newly introduced 2.5 Common Rail Direct Injection engine delivers advanced power, performance, and fuel economy (Europe Only).";
infotext[5] = "-Max Power : 85ps @ 4,000rpm<br>-Max Torque : 17kg&middot;m @ 2,200rpm<br>-Displacement : 2,607cc";
infotext[6] = "- Manual Transmission<br>The five-speed manual gearbox offers quiet, smooth shifting and peak economy.<br>- Automatic Transmission<br>The four-speed auto features advanced electronic controls for effortless driving.";

/*smll title image start*/
smalltitle =new Array();
smalltitle[1] = "<img src=../../../images/h1/performance/sa_sp_title_01.gif>";
smalltitle[2] = "<img src=../../../images/h1/performance/sa_sp_title_02.gif>";
smalltitle[3] = "<img src=../../../images/h1/performance/sa_sp_title_03.gif>";
smalltitle[4] = "<img src=../../../images/h1/performance/sa_sp_title_04.gif>";
smalltitle[5] = "<img src=../../../images/h1/performance/sa_sp_title_05.gif>";
smalltitle[6] = "<img src=../../../images/h1/performance/sa_sp_title_06.gif>";

function galleryover(num,totalgallery){	
	for(i=1;i<=totalgallery;i++){
		document.getElementById("menu"+i).style.display="none";
		if(i<10){
			document.getElementById("Smallimg"+i).src="../../../images/h1/performance/sa_pe_0"+ i + ".gif";
		}else{
			document.getElementById("Smallimg"+i).src="../../../images/h1/performance/sa_pe_"+ i + ".gif";
		}
	}
	if(num<10){
		document.getElementById("Smallimg"+num).src="../../../images/h1/performance/sa_pe_0"+ num + "_on.gif";
	}else{
		document.getElementById("Smallimg"+num).src="../../../images/h1/performance/sa_pe_"+ num + "_on.gif";
	}
	document.getElementById("menu"+num).style.display="block";
	document.getElementById("front_text").innerHTML=infotext[num];
	document.getElementById("front_title").innerHTML=smalltitle[num];
}

function galleryinit(initnumber,inittotal){
	<!--large Image-->
	Largeimg=""
	for(i=1;i<=inittotal;i++){
		if(i<10){
			if(initnumber==i){
				Largeimg = Largeimg + "<img src='../../../images/h1/performance/sa_peb_0"+i+".gif' id='menu"+i+"' style='display:block'>"
			}else{
				Largeimg = Largeimg + "<img src='../../../images/h1/performance/sa_peb_0"+i+".gif' id='menu"+i+"' style='display:none'>"
			}	
		}else {
			Largeimg = Largeimg + "<img src='../../../images/h1/performance/sa_peb_"+i+".gif' id='menu"+i+"' style='display:none'>"
		}
	}
	<!--small Image-->
	Smallimg=""
	Smallimg = Smallimg +"<Table border='0' cellpadding='0' cellspacing='0'><tr>"
	checknumber=1;
	for(i=1;i<=inittotal;i++){
		if(i<10){
			if(i==1){
				Smallimg = Smallimg +"<td><img onmouseover=javascript:galleryover('" + i + "','" + inittotal + "'); id=Smallimg"+i+" src=../../../images/h1/performance/sa_pe_0"+ i + "_on.gif hspace=4 border=0>"
			}else{
				Smallimg = Smallimg +"<td><img onmouseover=javascript:galleryover('" + i + "','" + inittotal + "'); id=Smallimg"+i+" src=../../../images/h1/performance/sa_pe_0"+ i + ".gif hspace=4 border=0>"
			}
			Smallimg = Smallimg +"</td>"
		}else{
			Smallimg = Smallimg +"<td>"
			Smallimg = Smallimg +"<img onmouseover=javascript:galleryover('" + i + "','" + inittotal + "'); id=Smallimg"+i+" src=../../../images/h1/performance/sa_pe_"+ i + ".gif hspace=4  border=0>"
			Smallimg = Smallimg +"</td>"
		}
		if((Number(i)%4)==0){
			Smallimg = Smallimg +"</tr><tr><td colspan=3 height=10></td></tr>"
		}
		if(Number(checknumber)==Number(inittotal)){	
			for(k=Number(inittotal)+1;k<17;k++){
				Smallimg = Smallimg +"<td>"
				Smallimg = Smallimg +"<img src=../../../images/h1/default.gif hspace=4  border=0>"
				Smallimg = Smallimg +"</td>"
				if((k%4)=="0"){
					if(k==16){
						Smallimg = Smallimg +"</tr>"
					}else{
						Smallimg = Smallimg +"</tr><tr><td colspan=3 height=10></td></tr>"
					}
				}
			}
		}
		checknumber=checknumber+1;
	}
	Smallimg = Smallimg +"</table>"
			

	<!--all-->
	document.write("\
	<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=351>\
		<tR>\
			<td>\<img src=\"../../../images/h1/performance/img_bic_t_top.gif\">\</td>\
		</tr>\
		<tR>\
			<td background=\"../../../images/h1/performance/img_bic_t_mibble.gif\" align=center>\
			<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\
				<tR>\
					<td id=\"gallery_Largeimg\"></td>\
				</tr>\
			</table>\
			</td>\
		</tr>\
		<tR>\
			<td>\<img src=\"../../../images/h1/performance/img_bic_t_bottom.gif\">\</td>\
		</tr>\
		<tR>\
			<td style=\"padding:9 0 0 10\" id=\"front_title\">"+smalltitle[1]+"\</td>\
		</tr>\
		<tR>\
			<td style=\"padding:5 10 0 10;text-align:justify\" id=\"front_text\" valign=top>"+infotext[1]+"\</td>\
		</tr>\
	</table>\
	</td>\
	<!--small image-->\
	<td valign=top>\
	<table  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\
		<tR>\
			<td>\<img src=\"../../../images/h1/performance/table_top.gif\">\</td>\
		</tr>\
		<tR>\
			<td background=\"../../../images/h1/performance/table_middle.gif\" align=center id=\"gallery_Smallimg\"></td>\
		</tr>\
		<tR>\
			<td>\<img src=\"../../../images/h1/performance/table_bottom.gif\">\</td>\
		</tr>\
	</table>\
	");
	
	<!--largeimage output-->
	document.getElementById("gallery_Largeimg").innerHTML=Largeimg;
	<!--smallimage output -->
	document.getElementById("gallery_Smallimg").innerHTML=Smallimg;
}



