
	
	/*
	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 ("exp1.JPG", "Preservation and restoration of historical buildings - crane assembly at antiquities site ");
		g_ImageTable[g_imax++] = new Array ("exp2.jpg", "Engineering documentation: structural survey, stability study and supporting solutions for old structures");
		g_ImageTable[g_imax++] = new Array ("exp3.jpg", "Safety of buildings and facilities");
		g_ImageTable[g_imax++] = new Array ("exp4.jpg", "Preparation of safety opinion for a public transportation facility including: problem list, improvements, additions and fixtures");
	g_ImageTable[g_imax++] = new Array ("exp5.jpg", "Safety survey for trains service facility");
		g_ImageTable[g_imax++] = new Array ("exp6.jpg", "Fire safety at a pharmaceutical plant");
		g_ImageTable[g_imax++] = new Array ("exp7.jpg", "Environment - preparation of various environmental surveys and representation of clients in front of permitting authorities");
	g_ImageTable[g_imax++] = new Array ("exp8.jpg", "Surveys: risk survey, plant case, environmental impact study and environmental survey");
		g_ImageTable[g_imax++] = new Array ("exp9.jpg", "Risk survey at a chemical plant according to the american N.F.P.A fire protection standards");
	
	//extend the above list as desired
	g_dwTimeOutSec=5
	
	////End configuration/////////////////////////////
	
	<!-- if (document.getElementById||document.all)window.onload=Play -->