/*
	Interactive Image slideshow with text description
	By Christian Carlessi Salvadó (cocolinks@c.net.gt). Keep this notice intact.
	Visit http://www.dynamicdrive.com for script
	*/
	
	
	g_fPlayMode = 0;
	g_iimg = -1;
	g_imax = 0;
	g_ImageTable = new Array();
	
	function ChangeImage(fFwd) {
		if (fFwd){
			if (++g_iimg==g_imax)
			g_iimg=0;
		}
		else {
			if (g_iimg==0)
			g_iimg=g_imax;
			g_iimg--;
		}
		Update();
	}
	
	function DisplayImage(slide) {
		if (slide>=g_imax) {
		  g_iimg=0;
		}
		else {
			g_iimg=slide;
		}
		Update();
	}
	
	function getobject(obj){
		if (document.getElementById)
		return document.getElementById(obj)
		else if (document.all)
		return document.all[obj]
	}
	
	function Update(){
		getobject("_Ath_Slide").src = g_ImageTable[g_iimg][0];
		getobject("_Ath_FileName").innerHTML = g_ImageTable[g_iimg][1];
		getobject("_Ath_Img_X").innerHTML = g_iimg + 1;
		getobject("_Ath_Img_N").innerHTML = g_imax;
	}
	
	
	function Play() {
		g_fPlayMode = !g_fPlayMode;
		if (g_fPlayMode) {
			getobject("btnPrev").disabled = getobject("btnNext").disabled = true;
			Next();
		}
		else {
			getobject("btnPrev").disabled = getobject("btnNext").disabled = false;
		}
	}
	
	function OnImgLoad() {
		if (g_fPlayMode)
			window.setTimeout("Tick()", g_dwTimeOutSec*1000);
	}
	function Tick() {
		if (g_fPlayMode)
			Next();
	}
	function Prev() {
		ChangeImage(false);
	}
	function Next() {
		ChangeImage(true);
	}
	
	////configure below variables/////////////////////////////
	
	//configure the below images and description to your own. 
		g_ImageTable[g_imax++] = new Array ("d1.jpg", "Infrastructure - earthworks, earth removal and fillings, soil exchange, reservoirs, fluid canals, etc.");
		g_ImageTable[g_imax++] = new Array ("d2.jpg", "Water engineering integrated with infrastructure engineering and implementation for large aquaculture project in Latin America");
	g_ImageTable[g_imax++] = new Array ("d3.jpg", "Infrastructure - connecting sewage system to local and regional infrastructure");
		g_ImageTable[g_imax++] = new Array ("d4.jpg", "Drainage - percipitation, fire extinguishing water, leaks, fluid mixtures for recycling, drainage areas for rain redirection and handling");
		g_ImageTable[g_imax++] = new Array ("d5.jpg", "Roads, access roads, patrol roads and service plazas - asphalt works, parking and storage areas");
	g_ImageTable[g_imax++] = new Array ("d6.jpg", "Fuel and energy - fuel terminal for unloading ships");
		g_ImageTable[g_imax++] = new Array ("d7.jpg", "Fuel and energy - fuel storage facility, connecting pipes and fire extinguishing systems");
	g_ImageTable[g_imax++] = new Array ("d8.jpg", "Chemical and petrochemical industries - process facility");
	g_ImageTable[g_imax++] = new Array ("d9.jpg", "Pharmaceutical industry");
	g_ImageTable[g_imax++] = new Array ("d10.jpg", "Chemicals storage facility for the pharmaceutical industry");
	g_ImageTable[g_imax++] = new Array ("d11.jpg", "Paints storage facility for the paints industry");
		g_ImageTable[g_imax++] = new Array ("d12.jpg", "Agricultural industry -aquaculture, engineering, implementing and supervision of large-scale, advanced fish farming project");
	
	
	
	//extend the above list as desired
	g_dwTimeOutSec=5
	
	////End configuration/////////////////////////////
	
	<!-- if (document.getElementById||document.all)window.onload=Play -->