/*
	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 ("s1.JPG", "Construction and steel structure assembly supervision");
		g_ImageTable[g_imax++] = new Array ("s2.jpg", "Close, professional site supervision at a process facility, site management in front of constructors, authorities, neighbours and client representatives");
		g_ImageTable[g_imax++] = new Array ("s3.jpg", "Close engineering supervision at centrifugal pumps for raw fuel");
		g_ImageTable[g_imax++] = new Array ("s4.jpg", "Preparation of periodical reports for the client covering all aspects of the project");
	g_ImageTable[g_imax++] = new Array ("s5.jpg", "Hands-on construction management, overall supervision, equipment purchase handling, startup and running-in of production systems at an aquaculture project in Latin America");
		g_ImageTable[g_imax++] = new Array ("s6.jpg", "Inspection of fuel pumps");
	g_ImageTable[g_imax++] = new Array ("s8.jpg", "Follow up during construction and operation stages of a procedural, chemical facility");
	
	//extend the above list as desired
	g_dwTimeOutSec=5
	
	////End configuration/////////////////////////////
	
	<!-- if (document.getElementById||document.all)window.onload=Play -->
