/*text array start*/
infotext =new Array();
infotext[1] = "The driver and front seat passenger in the wagon can be reassured by the fitment of twin air bags. In a serious accident, the safety devices instantly inflate to help protect the seat occupants from injury.<br><br>*Standard equipment on M/T deluxe version";
infotext[2] = "The H-1 stays true around tricky bends and under braking thanks to its electronic stability programme (ESP) and antilock brakes (ABS). These sophisticated systems overcome tyre slip, wheel spin and locking brakes.";
infotext[3] = "The suspension is a remarkably flexible design. It is sufficiently robust to cope when the vehicle is fully laden, yet remains compliant enough to provide the occupants with a comfortable ride whatever the load ? or road.";
infotext[4] = "Tight spaces in city centres or on country backroads are no problem for the H-1 driver. Despite having a length of more than five metres, the vehicle¡¯s turning circle is no more than 5.6 metres.";
infotext[5] = "Large and powerful disc brakes are available on the rear wheels as well as those on the front. They provide the high level of stopping performance required when a wagon or van is fully laden.";

/*smll title image start*/
smalltitle =new Array();
smalltitle[1] = "<img src=../../../images/h1/safety/sa_ssa_title_01.gif>";
smalltitle[2] = "<img src=../../../images/h1/safety/sa_ssa_title_02.gif>";
smalltitle[3] = "<img src=../../../images/h1/safety/sa_ssa_title_03.gif>";
smalltitle[4] = "<img src=../../../images/h1/safety/sa_ssa_title_04.gif>";
smalltitle[5] = "<img src=../../../images/h1/safety/sa_ssa_title_05.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/safety/sa_sa_0"+ i + ".gif";
		}else{
			document.getElementById("Smallimg"+i).src="../../../images/h1/safety/sa_sa_"+ i + ".gif";
		}
	}
	if(num<10){
		document.getElementById("Smallimg"+num).src="../../../images/h1/safety/sa_sa_0"+ num + "_on.gif";
	}else{
		document.getElementById("Smallimg"+num).src="../../../images/h1/safety/sa_sa_"+ 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/safety/sa_sab_0"+i+".gif' id='menu"+i+"' style='display:block'>"
			}else{
				Largeimg = Largeimg + "<img src='../../../images/h1/safety/sa_sab_0"+i+".gif' id='menu"+i+"' style='display:none'>"
			}	
		}else {
			Largeimg = Largeimg + "<img src='../../../images/h1/safety/sa_sab_"+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/safety/sa_sa_0"+ i + "_on.gif hspace=4 border=0>"
			}else{
				Smallimg = Smallimg +"<td><img onmouseover=javascript:galleryover('" + i + "','" + inittotal + "'); id=Smallimg"+i+" src=../../../images/h1/safety/sa_sa_0"+ i + ".gif hspace=4 border=0>"
			}
			Smallimg = Smallimg +"</td>"
		}else{
			Smallimg = Smallimg +"<td>"
			Smallimg = Smallimg +"<img onmouseover=javascript:galleryover('" + i + "','" + inittotal + "'); src=../../../images/h1/safety/sa_sa_"+ 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(checknumber==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/safety/img_bic_t_top.gif\">\</td>\
		</tr>\
		<tR>\
			<td background=\"../../../images/h1/safety/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/safety/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/safety/table_top.gif\">\</td>\
		</tr>\
		<tR>\
			<td background=\"../../../images/h1/safety/table_middle.gif\" align=center id=\"gallery_Smallimg\"></td>\
		</tr>\
		<tR>\
			<td>\<img src=\"../../../images/h1/safety/table_bottom.gif\">\</td>\
		</tr>\
	</table>\
	");
	
	<!--largeimage output-->
	document.getElementById("gallery_Largeimg").innerHTML=Largeimg;
	<!--smallimage output -->
	document.getElementById("gallery_Smallimg").innerHTML=Smallimg;
}



