/*
Left-Right image slideshow Script-
By Dynamic Drive (www.dynamicdrive.com)
For full source code, terms of use, and 100's more scripts, visit http://dynamicdrive.com
*/

///////configure the below four variables to change the style of the slider///////
//set the scrollerWidth and scrollerHeight to the width/height of the LARGEST image in your slideshow!

var scrollerWidth='250px';
var scrollerHeight='150px';
var scrollerBGColor='white';
//3000 miliseconds=3 seconds
var pauseBetweenImages=1000;

var slideimages=new Array();
slideimages[0]= '<a href="softwarep-list.html"><img src="../../images/illustrations/abo.gif" border=0"></a>';
slideimages[1]= '<a href="softwarep-list.html"><img src="../../images/illustrations/advalvas.jpg" border=0"></a>';
slideimages[2]= '<a href="softwarep-list.html"><img src="../../images/illustrations/aspex.jpg" border=0"></a>';
slideimages[3]= '<a href="softwarep-list.html"><img src="../../images/illustrations/atil.jpg" border=0"></a>';
slideimages[4]= '<a href="softwarep-list.html"><img src="../../images/illustrations/axi.jpg" border=0"></a>';
slideimages[5]= '<a href="softwarep-list.html"><img src="../../images/illustrations/cce.gif" border=0"></a>';
slideimages[6]= '<a href="softwarep-list.html"><img src="../../images/illustrations/centric.jpg" border=0"></a>';
slideimages[7]= '<a href="softwarep-list.html"><img src="../../images/illustrations/ciel_logo.gif" border=0"></a>';
slideimages[8]= '<a href="softwarep-list.html"><img src="../../images/illustrations/c-logic.gif" border=0"></a>';
slideimages[9]= '<a href="softwarep-list.html"><img src="../../images/illustrations/coda.gif" border=0"></a>';
slideimages[10]= '<a href="softwarep-list.html"><img src="../../images/illustrations/vanmarcke.jpg" border=0"></a>';
slideimages[11]= '<a href="softwarep-list.html"><img src="../../images/illustrations/cubic.jpg" border=0"></a>';
slideimages[12]= '<a href="softwarep-list.html"><img src="../../images/illustrations/dbfact.gif" border=0"></a>';
slideimages[13]= '<a href="softwarep-list.html"><img src="../../images/illustrations/desksolution.jpg" border=0"></a>';
slideimages[14]= '<a href="softwarep-list.html"><img src="../../images/illustrations/exact.gif" border=0"></a>';
slideimages[15]= '<a href="softwarep-list.html"><img src="../../images/illustrations/kbusiness.jpg" border=0"></a>';
slideimages[16]= '<a href="softwarep-list.html"><img src="../../images/illustrations/kluwer.jpg" border=0"></a>';
slideimages[17]= '<a href="softwarep-list.html"><img src="../../images/illustrations/lawson.jpg" border=0"></a>';
slideimages[18]= '<a href="softwarep-list.html"><img src="../../images/illustrations/msb.jpg" border=0"></a>';
slideimages[19]= '<a href="softwarep-list.html"><img src="../../images/illustrations/oracle.jpg" border=0"></a>';
slideimages[20]= '<a href="softwarep-list.html"><img src="../../images/illustrations/ordiges.gif" border=0"></a>';
slideimages[21]= '<a href="softwarep-list.html"><img src="../../images/illustrations/organi.gif" border=0"></a>';
slideimages[22]= '<a href="softwarep-list.html"><img src="../../images/illustrations/popsy.jpg" border=0"></a>';
slideimages[23]= '<a href="softwarep-list.html"><img src="../../images/illustrations/realsoft.gif" border=0"></a>';
slideimages[24]= '<a href="softwarep-list.html"><img src="../../images/illustrations/appligen.gif" border=0"></a>';
slideimages[25]= '<a href="softwarep-list.html"><img src="../../images/illustrations/sagebobsoftware.jpg" border=0"></a>';
slideimages[26]= '<a href="softwarep-list.html"><img src="../../images/illustrations/sap.gif" border=0"></a>';
slideimages[27]= '<a href="softwarep-list.html"><img src="../../images/illustrations/sitasoft.gif" border=0"></a>';
slideimages[28]= '<a href="softwarep-list.html"><img src="../../images/illustrations/solid.jpg" border=0"></a>';
slideimages[29]= '<a href="softwarep-list.html"><img src="../../images/illustrations/porthus.jpg" border=0"></a>';
slideimages[30]= '<a href="softwarep-list.html"><img src="../../images/illustrations/toppower.gif" border=0"></a>';
slideimages[31]= '<a href="softwarep-list.html"><img src="../../images/illustrations/topware.gif" border=0"></a>';
slideimages[32]= '<a href="softwarep-list.html"><img src="../../images/illustrations/unit4.jpg" border=0"></a>';
slideimages[33]= '<a href="softwarep-list.html"><img src="../../images/illustrations/vero.jpg" border=0"></a>';
slideimages[34]= '<a href="softwarep-list.html"><img src="../../images/illustrations/winbookslogo.jpg" border=0"></a>';
slideimages[35]= '<a href="softwarep-list.html"><img src="../../images/illustrations/wingslogo.gif" border=0"></a>';

//extend this list

///////Do not edit pass this line///////////////////////
     
var isIExplorer = document.all;
var isNetscape = document.getElementById;


var iPix;
var slideShow = new Array();
var slideShowRemaining;

initializeSlideShow();
iPix=randomIPix();


function initializeSlideShow()
{
	for (var i=0; i<slideimages.length; i++)
	{
		slideShow[i] = false;
	}
	
	slideShowRemaining = slideimages.length;
}

function randomIPix()
{
	var bufferIPix;
	
	if (slideShowRemaining == 0)
		initializeSlideShow();
	
	do
	{
		bufferIPix = Math.floor( Math.random() * slideimages.length );
	} while ( slideShow[bufferIPix] == true );
	
	slideShow[bufferIPix] = true;
	slideShowRemaining--;
	
	return bufferIPix;
}

function move1(whichlayer)
{
	tlayer=eval(whichlayer);
	if (tlayer.left>0&&tlayer.left<=5)
	{
		tlayer.left=0;
		setTimeout("move1(tlayer)",pauseBetweenImages);
		setTimeout("move2(document.main.document.second)",pauseBetweenImages);
		return;
	}
	
	if (tlayer.left>=tlayer.document.width*-1)
	{
		tlayer.left-=5;
		setTimeout("move1(tlayer)",50);
	}
	else
	{
		tlayer.left=parseInt(scrollerWidth)+5;
		tlayer.document.write(slideimages[iPix]);
		tlayer.document.close();
		
		// 'iPix' is picked at random
		iPix = randomIPix();
	}
}

function move2(whichlayer)
{
	tlayer2=eval(whichlayer);
	if (tlayer2.left>0&&tlayer2.left<=5)
	{
		tlayer2.left=0;
		setTimeout("move2(tlayer2)",pauseBetweenImages);
		setTimeout("move1(document.main.document.first)",pauseBetweenImages);
		return;
	}
	if (tlayer2.left>=tlayer2.document.width*-1)
	{
		tlayer2.left-=5;
		setTimeout("move2(tlayer2)",50);
	}
	else
	{
		tlayer2.left=parseInt(scrollerWidth)+5;
		tlayer2.document.write(slideimages[iPix]);
		tlayer2.document.close();
		
		// 'iPix' is picked at random
		iPix=randomIPix();
	}
}

function move3(whichdiv)
{
	tdiv=eval(whichdiv);
	if (parseInt(tdiv.style.left)>0&&parseInt(tdiv.style.left)<=5)
	{
		tdiv.style.left=0+"px";
		setTimeout("move3(tdiv)",pauseBetweenImages);
		setTimeout("move4(scrollerdiv2)",pauseBetweenImages);
		return;
	}
	
	if (parseInt(tdiv.style.left)>=tdiv.offsetWidth*-1)
	{
		tdiv.style.left=parseInt(tdiv.style.left)-5+"px";
		setTimeout("move3(tdiv)",50);
	}
	else
	{
		tdiv.style.left=scrollerWidth;
		tdiv.innerHTML=slideimages[iPix];
		
		// 'iPix' is picked at random
		iPix=randomIPix();
	}
}

function move4(whichdiv)
{
	tdiv2=eval(whichdiv);
	if (parseInt(tdiv2.style.left)>0&&parseInt(tdiv2.style.left)<=5)
	{
		tdiv2.style.left=0+"px";
		setTimeout("move4(tdiv2)",pauseBetweenImages);
		setTimeout("move3(scrollerdiv1)",pauseBetweenImages);
		return;
	}
	
	if (parseInt(tdiv2.style.left)>=tdiv2.offsetWidth*-1)
	{
		tdiv2.style.left=parseInt(tdiv2.style.left)-5+"px";
		setTimeout("move4(scrollerdiv2)",50);
	}
	else
	{
		tdiv2.style.left=scrollerWidth;
		tdiv2.innerHTML=slideimages[iPix];
		
		// 'iPix' is picked at random
		iPix =randomIPix();
	}
}

function startscroll()
{
	if (isIExplorer||isNetscape)
	{
		scrollerdiv1=isIExplorer? first2 : document.getElementById("first2");
		scrollerdiv2=isIExplorer? second2 : document.getElementById("second2");
		move3(scrollerdiv1);
		scrollerdiv2.style.left=scrollerWidth;
	}
	else if (document.layers)
	{
		document.main.visibility='show';
		move1(document.main.document.first);
		document.main.document.second.left=parseInt(scrollerWidth)+5;
		document.main.document.second.visibility='show';
	}
}
