/*
	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 ("e3.jpg", "Characterizing mechanical and pipe systems at varying temperatures and pressure conditions, equipment, mechanical and procedural flow charts");
		g_ImageTable[g_imax++] = new Array ("e2.jpg", "Process engineering - part of a computer generated drawing of a process facility");
		g_ImageTable[g_imax++] = new Array ("e4.jpg", "Engineering, implementation and construction supervision of a procedural facility for the chemical industry");
		g_ImageTable[g_imax++] = new Array ("e5.gif", "Civil engineering - computer generated drawing of a directional security gate");
	g_ImageTable[g_imax++] = new Array ("e6.jpg", "Civil engineering - concrete and steel structure engineering for industry and infrastructure, e.g.: cable bridge");
		g_ImageTable[g_imax++] = new Array ("e7.jpg", "Mechanical engineering, pipes and equipment - pipe systems, pumps, filters and associated equipment");
	g_ImageTable[g_imax++] = new Array ("e8.jpg", "Engineering and implementing an array of raw fuel centrifugal pumps");
	g_ImageTable[g_imax++] = new Array ("e9.jpg", "Engineering, implementing and supervising a Liquid Petroleum Gas (LPG) filling facility");
	g_ImageTable[g_imax++] = new Array ("e10.jpg", "The company specializes in engineering and implementing advanced fire detection and fire extinguishing systems");
	g_ImageTable[g_imax++] = new Array ("e11.jpg", "Fire drill of a water and foam cannon in a chemical plant");
		g_ImageTable[g_imax++] = new Array ("e12.jpg", "Specially designed, fire extinguishing system which combines water and foam for a pharmacetical plant");
	g_ImageTable[g_imax++] = new Array ("e13.jpg", "Central command and control panel for fire extinguishing pumping station");	
	
	//extend the above list as desired
	g_dwTimeOutSec=5
	
	////End configuration/////////////////////////////
	
	<!-- if (document.getElementById||document.all)window.onload=Play -->