PlayMode = 0;
iimg = -1;
imax = 0;

ImageTable = new Array();

////configure below variables/////////////////////////////
ImageTable[imax++] = new Array ("images/portfoliomainpage/nomorehotels.jpg", "Nomore Hotels", "http://www.nomorehotels.co.uk", "1-matter1 This is sample text, After long presence in the fields of Web Site Development... ");
ImageTable[imax++] = new Array ("images/portfoliomainpage/soundvision.jpg", "Sound Vision UK", "http://www.soundvisionuk.com/demo/shop", "2-matter2 This is sample text, After long presence in the fields of Web Site Development");
ImageTable[imax++] = new Array ("images/portfoliomainpage/sportsclub.jpg", "Sports Club UK Limited", "http://www.sportsclubn8.com", "3-matter3 This is sample text, After long presence in the fields of Web Site Development");
ImageTable[imax++] = new Array ("images/portfoliomainpage/vastu.jpg", "Vastu", "http://www.vastu.co.uk", "4-matter4 This is sample text, After long presence in the fields of Web Site Development");
ImageTable[imax++] = new Array ("images/portfoliomainpage/globetrotters.jpg", "Globetrotters Travel Clinics", "http://www.globetrotterstravelclinics.com/", "5-matter5 This is sample text, After long presence in the fields of Web Site Development");
ImageTable[imax++] = new Array ("images/portfoliomainpage/lightningds.jpg", "Lightning - The Driving School", "http://www.lightningds.co.uk", "6-matter6 This is sample text, After long presence in the fields of Web Site Development");
//extend the above list as desired
TimeOutSec=2
////End configuration/////////////////////////////

//functions for next previous and goto particular urls start
function Prev()
	{
		ChangeImage(false);
	}
function Next()
	{
		ChangeImage(true);
	}
function gotourl()
	{
		window.open(ImageTable[iimg][2])
	}
//functions for next previous and goto particular urls end

//functions for updating next image start
function ChangeImage(fFwd)
	{
		if (fFwd)
		{
			if (++iimg==imax)
					iimg=0;
		}
			else
		{
			if (iimg==0)
					iimg=imax;
					iimg--;
		}
		Update();
	}
function Update()
	{
		clearTimeout(PlayMode)
		document.getElementById('Ath_Slide').src = ImageTable[iimg][0];
		document.getElementById('Ath_FileName').innerHTML = ImageTable[iimg][1];
		document.getElementById('description').innerHTML = ImageTable[iimg][3];
	}
//functions for updating next image start

//functions for regular playing slide show start
function OnImgLoad()
	{
		PlayMode = setTimeout("ChangeImage(true)", TimeOutSec*2000);
	}
//functions for regular playing slide show start

//when page loads this will execute single time
if (document.getElementById||document.all){
	window.onload=Next
}
//when page loads this will execute single time



