<!--
function showBlocks(start_block , end_block, form_name){

/*this function runs a little "slideshow" of the divs (id'd as "block(n)"s) that are passed to it. While running
it disables the checkbox (IE only). It requires the <!--include virtual="/eoltools/dynamichtml.ssi" --> DHTML library */

//start_block = div to start at
//end _block = div to end at
//form_name = form name containing checkbox to disable

//disable checkbox where clicked
eval('document.' + form_name + '.start.disabled = true;');

//set start block to where this show last stopped
if (typeof(eval('window.next_block' + end_block)) != "undefined" && eval('window.next_block' + end_block) != ""){
	start_block = eval('window.next_block' + end_block);
	//reset next block position
	eval('window.next_block' + end_block + ' = "";');	
	}
	
//store the original start_block in a global variable as it's value gets changed later
if (typeof(eval('window.start_block_' + form_name)) == "undefined"){
	eval('window.start_block_' + form_name + ' = ' + start_block + ';');
	//this show hasn't run before so decrement start_block so first block is shown
	start_block -= 1;
	}else{
	//the show has run once so hide last block	
	eval('hideElement("block' + start_block + '")');
	}


	

//reset start block to it's original value to restart the cycle
if (start_block >= end_block){	
	start_block = eval('window.start_block_' + form_name)-1;	
	}

//increment start block to show next div block
start_block ++;

// apply IE only transition
if (document.all){
//eval("block" + start_block +".filters.revealtrans.apply()");
//eval("block" + start_block +".filters.revealtrans.play()");
}

//show next block
eval('showElement("block' + start_block + '")');

//set timeout to show next block
var run_show = setTimeout("showBlocks('" + start_block + "' , '" + end_block + "' , '" + form_name + "')",1500);

//if cycle is finished, stop the show, reset form and store the div to next be hidden for this example
if (start_block >= end_block){
	clearTimeout(run_show);
	eval('document.' + form_name + '.reset();');	
	eval('document.' + form_name + '.start.disabled = false;');	
	eval('window.next_block' + end_block + ' = ' + end_block + ';');	
	}
}

function simpleSwap(hideID , showID){
/*this function simply hides one div and shows another, it requires the <!--include virtual="/eoltools/dynamichtml.ssi" --> DHTML
library */

//hide hideID
eval('hideElement("block' + hideID + '")');

// apply IE only transition
if (document.all){
	//eval("block" + showID +".filters.revealtrans.apply()");
	//eval("block" + showID +".filters.revealtrans.play()");
	}

//show showID
eval('showElement("block' + showID + '")');
}
//-->
