// Set slideShowSpeed (milliseconds)
var slideShowSpeedL = 5000;
// Duration of crossfade (seconds)
var crossFadeDurationL = 3;
// Specify the image files
var picL = new Array();
// to add more images, just continue
// the pattern, adding to the array below

// do not edit anything below this line
var tL;
var jL = 0;
//var p = pic.length;
var pL;
var preLoadL = new Array();
//for (i = 0; i < p; i++) 
//{
//	preLoad[i] = new Image();
//	preLoad[i].src = pic[i];
function setImageL()
{
	//alert(document.frmIndexL.iStart.value+"-"+document.frmIndexL.iEnd.value);
	if(document.frmIndexL.iEndL.value <= 1)
	{return false;}

	for (iL=document.frmIndexL.iStartL.value;iL<document.frmIndexL.iEndL.value;iL++)
	{	
		//alert(i+"->"+document.frmIndexL.iHidden[i].value);
		picL[iL]=document.frmIndexL.iHiddenL[iL].value;
	}
	pL = picL.length;
	for (iL = 0; iL < pL; iL++) 
	{
		preLoadL[iL] = new Image();
		preLoadL[iL].src = picL[iL];
	}
	runSlideShowL();
}
function runSlideShowL() 
{
//	setImage();
	if (document.all) 
	{
		document.images.imgleft.style.filter="blendTrans(duration=2)";
		document.images.imgleft.style.filter="blendTrans(duration=crossFadeDurationL)";
		document.images.imgleft.filters.blendTrans.Apply();
	}
	document.images.imgleft.src = preLoadL[jL].src;
	if (document.all) 
	{
		document.images.imgleft.filters.blendTrans.Play();
	}
	jL = jL + 1;
	if (jL > (pL - 1)) jL = 0;
	tL = setTimeout('runSlideShowL()', slideShowSpeedL);
}

function timeoutL()
{
window.clearTimeout(tL);
}

function wopen(url, name, w, h)
{
// Fudge factors for window decoration space.
 // In my tests these work well on all platforms & browsers.
w += 32;
h += 96;
 var win = window.open(url,
  name,
  'width=' + w + ', height=' + h + ', ' +
  'location=no, menubar=no, ' +
  'status=no, toolbar=no, scrollbars=no, resizable=no');
 win.resizeTo(w, h);
 win.focus();
}

