<!-- Start hiding Javascript
//---DUALflip76 to animate LOCOMO, incorporating THROWmsg and PRELoader may 09 '02 --  
//---uploads images from server to browser and puts load-status to don(0)---
function stoptheLoad(){
		stoptl=1; return
}
function onLoaded(){
		lFlag=0; loaded=1; locoMote(); return
}
function preLoad(){
   switch(stoptl){
   case 0:	theImages[isourc] = new Image(10,09);
		theImages[isourc].onload= proceed;
		theImages[isourc].src= dir + animation[isourc];		
		break;			
   case 1:	return}  
}
function proceed(){
   document.images['elapsed' + isourc].src = color5;      
   if( isourc<nImages-1 ){
		isourc++;
		preLoad()}
   else{
		onLoaded();
		window.status=' ';				
		return}
}

//---eventhandlers for mouse actions on <a>tag---

function msgtoLoad(){	
	if(lFlag<1)	startLoad('cc_mec','target2','drummond','channel1on')
	else{		doff(); window.status=' ';
			outdualFlip('cc_mec','target1','drummond','channel1on')}
}
function dualFlip(target_id,target,source_id,source){
	if(loaded<1 || kFlag>0 ){
		don(1); window.status='onClick opens animation';
		document.images[target_id].src = eval(target + ".src");
		document.images[source_id].src = eval(source + ".src")}
	else{
		doff(); window.status=' ';
		document.images[source_id].src = eval(source + ".src")}
}
function outdualFlip(target_id,target,source_id,source){
	if(loaded<1 || kFlag>0 ){
		if(lFlag>0){	stoptheLoad(); lFlag=0};				
		document.images[target_id].src = eval(target + ".src");
		document.images[source_id].src = eval(source + ".src")}
	else{
		don(3); window.status='click on animation to close';
		document.images[source_id].src = eval(source + ".src")}
}
function startLoad(target_id,target,source_id,source){
	if(loaded<1){		
		lFlag=1;		
		stoptl=0;
		preLoad();
		don(0); window.status='loading image';					
		document.images[target_id].src = eval(target + ".src");
		document.images[source_id].src = eval(source + ".src")}
	else{
		if(kFlag>0){	doff(); window.status=' ';
				kFlag=0; iframe=0; locoMote()}
		else 		{don(3); window.status='click on animation to close'}		
		}	
}

//---writes the division HTML tag, I do it here so that it is less confusing. You don't have to add separate HTML tags---
document.write("<div id=\"iex\" style=\"position:absolute; visibility: hidden; width=40%\">")
document.write("</div>")
//---writes the layer code---
document.write("<Layer name=\"nex\" visibility=\"hide\" width=\"40%\">")
document.write("</layer>")

//---done hiding------->

