/*text array start*/
infotext =new Array();

infotext[1] = "The sun visor on the driver's side doubles as a handy pocket for toll tickets and delivery documents.";
infotext[2] = "For all the magazines, maps and paperwork that are essential on journeys, the front doors feature a clever combination of dual pockets.";
infotext[3] = "The console between the driver and front seat passenger is available with a retractable holder for a couple of bottles or cups.";
infotext[4] = "";
infotext[5] = "";
infotext[6] = "Typical of the attention to detail, the driver's door arm rest neatly incorporates the switches for the powered window lifts and rear view mirror adjusters.";
infotext[7] = "There are more neat design touches on the fascia panel for the controls for the fog lights and rheostat.";

/*smll title image start*/
smalltitle =new Array();
smalltitle[1] = "<img src=../../../images/h1/interior/in_sd_title_01.gif>";
smalltitle[2] = "<img src=../../../images/h1/interior/in_sd_title_03.gif>";
smalltitle[3] = "<img src=../../../images/h1/interior/in_sd_title_04.gif>";
smalltitle[4] = "<img src=../../../images/h1/interior/in_sd_title_05.gif>";
smalltitle[5] = "<img src=../../../images/h1/interior/in_sd_title_06.gif>";
smalltitle[6] = "<img src=../../../images/h1/interior/in_sd_title_07.gif>";
smalltitle[7] = "<img src=../../../images/h1/interior/in_sd_title_08.gif>";


/*car image start*/
carimage =new Array();
carimage[1] = "<img src=../../../images/h1/interior/car_dot_04.gif>";
carimage[2] = "<img src=../../../images/h1/interior/car_dot_04.gif>";
carimage[3] = "<img src=../../../images/h1/interior/car_dot_04.gif>";
carimage[4] = "<img src=../../../images/h1/interior/car_dot_04.gif>";
carimage[5] = "<img src=../../../images/h1/interior/car_dot_04.gif>";
carimage[6] = "<img src=../../../images/h1/interior/car_dot_04.gif>";
carimage[7] = "<img src=../../../images/h1/interior/car_dot_04.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/interior/in_d_0"+ i + ".gif";
		}else{
			document.getElementById("Smallimg"+i).src="../../../images/h1/interior/in_d_"+ i + ".gif";
		}
	}
	if(num<10){
		document.getElementById("Smallimg"+num).src="../../../images/h1/interior/in_d_0"+ num + "_on.gif";
	}else{
		document.getElementById("Smallimg"+num).src="../../../images/h1/interior/in_d_"+ num + "_on.gif";
	}
	document.getElementById("menu"+num).style.display="block";
	document.getElementById("front_text").innerHTML=infotext[num];
	document.getElementById("front_title").innerHTML=smalltitle[num];
	document.getElementById("car_image").innerHTML=carimage[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/interior/in_db_0"+i+".gif' id='menu"+i+"' style='display:block'>"
			}else{
				Largeimg = Largeimg + "<img src='../../../images/h1/interior/in_db_0"+i+".gif' id='menu"+i+"' style='display:none'>"
			}	
		}else {
			Largeimg = Largeimg + "<img src='../../../images/h1/interior/in_db_"+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/interior/in_d_0"+ i + "_on.gif hspace=4 border=0>"
			}else{
				Smallimg = Smallimg +"<td><img onmouseover=javascript:galleryover('" + i + "','" + inittotal + "'); id=Smallimg"+i+" src=../../../images/h1/interior/in_d_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/interior/in_d_"+ 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"){
				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/interior/img_bic_t_top.gif\">\</td>\
		</tr>\
		<tR>\
			<td background=\"/common/img/showroom/recreational/terracan/exterior/front/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/interior/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/interior/table_top.gif\">\</td>\
		</tr>\
		<tR>\
			<td background=\"../../../images/h1/interior/table_middle.gif\" align=center id=\"gallery_Smallimg\"></td>\
		</tr>\
		<tR>\
			<td style=\"padding:10 0 10 0\" background=\"../../../images/h1/interior/table_middle.gif\" align=center id=\"car_image\">"+carimage[1]+"\</td>\
		</tr>\
		<tR>\
			<td>\<img src=\"../../../images/h1/interior/table_bottom.gif\">\</td>\
		</tr>\
	</table>\
	");
	
	<!--largeimage output-->
	document.getElementById("gallery_Largeimg").innerHTML=Largeimg;
	<!--smallimage output -->
	document.getElementById("gallery_Smallimg").innerHTML=Smallimg;
}



