<!-- Start hiding Javascript
//---ONs and OFFs layer texts and Starts/Stops/Closes animation for GREENSIDE and CALTON/////////////////////////////////////////////// 
//---TURNS_ON layer text---
function don(x){
   if ((brws_nm=="Netscape" && brws_ver>=8) || (brws_nm=="Microsoft Internet Explorer" && brws_ver>=4))
   {   
   //	if(x<1) preLoad();	//preload only when x=0 and loaded<1  ***DISABLED***
   //Netscape layer code ---
	if (brows){
		with(link[x]){
			document.layers['nex'].document.write(msg);
			document.layers['nex'].document.close();
			document.layers['nex'].top=ytop;
			document.layers['nex'].left=xleft};
		document.layers['nex'].visibility="show"}
   //Internet Explorer division code ---
	else{
		with(link[x]){
			iex.innerHTML=msg;
			iex.style.top=ytop;
			iex.style.left=xleft};
		iex.style.visibility="visible"}
   }
}
//---TURNS_OFF layer text---
function doff(){
   if ((brws_nm=="Netscape" && brws_ver>=8) || (brws_nm=="Microsoft Internet Explorer" && brws_ver>=4))
   {
	if (brows)
		document.layers['nex'].visibility="hide"
	else	
		iex.style.visibility="hidden"
   }   
}

///////////////////---this animates <<theImages>> array---/////////////////////////////////////////////////////////////////////    
function locoMote(){
   switch(onGreen){
   case 2:	if (iframeC>nImagesC-1) iframeC=0;
		document.cc_whe.src=theImagesC[iframeC].src;	
		iframeC++;			
		timeincC=setTimeout('locoMote()',theDelayC);		
		break;			
   case 1:	if (iframeG>nImagesG-1) iframeG=0;
		document.cc_whe.src=theImagesG[iframeG].src;	
		iframeG++;		
		timeincG=setTimeout('locoMote()',theDelayG);
		break;
   case 0:	return}	
}
function freeze_motion(){
   switch(onGreen){
   case 2:	if((kFlagC<1) && (loadedC>0)){
		iframeC--;
		if (iframeC<0) iframeC=nImagesC-1;
		clearTimeout(timeincC);
		document.cc_whe.src=theImagesC[iframeC].src};		
		break;			
   case 1:	if((kFlagG<1) && (loadedG>0)){
		iframeG--;
		if (iframeG<0) iframeG=nImagesG-1;
		clearTimeout(timeincG);
		document.cc_whe.src=theImagesG[iframeG].src};
		break;
   case 0:	return}
}
function resume_motion(){
 switch(onGreen){
   case 2:	if((kFlagC<1) && (loadedC>0)){
		iframeC++; locoMote()};		
		break;			
   case 1:	if((kFlagG<1) && (loadedG>0)){
		iframeG++; locoMote()};		
		break;
   case 0:	return}	
}
function close_motion(target_id,target){
   switch(onGreen){
   case 2:	if(loadedC>0){
		kFlagC=1;
		clearTimeout(timeincC);
		doff(); window.status=' ';		
		document.images[target_id].src = eval(target + ".src")};		
		break;			
   case 1:	if(loadedG>0){
		kFlagG=1;
		clearTimeout(timeincG);
		doff(); window.status=' ';		
		document.images[target_id].src = eval(target + ".src")};		
		break;
   case 0:	return}
}
//---done hiding------->