// JavaScript Document
function removeCatFish(){
	
	document.getElementById("catFish").style.display = "none";
	
}


var trackMove = 0;
var catFishTimer;


function startCatFish()
	{		
		
		moveCatFish();
   	 	
		
		
		
		
		
		 catFishTimer = setTimeout("moveCatFish()",4000); // call doMove in 20msec
    }


function moveCatFish()
	{		
		
   	 	
		clearTimeout(catFishTimer);
		if(trackMove == 0){
			
			
			if(xb){
				
			xb.stop();
			scf.stop();
			}
			
			var xa = new Tween(document.getElementById("catFish").style, "height", Tween.regularEaseOut, parseInt(document.getElementById("catFish").style.height), 300, 0.8, 'px'); 
		
		xa.start();
		
		xa.onMotionFinished = function(){
		document.getElementById("toggle").setAttribute('title', "Hide offer");
		
		document.getElementById('toggle').style.backgroundPosition="20px -65px";
		
		}
			
			trackMove = 1;
		}else{
			
			if(xa){
				
			xa.stop();
			scf.stop();
			}
			
			var xb = new Tween(document.getElementById("catFish").style, "height", Tween.regularEaseOut, parseInt(document.getElementById("catFish").style.height), 75, 0.8, 'px'); 
			
			xb.start();
			
			
			xb.onMotionFinished = function(){
  document.getElementById("toggle").setAttribute('title', "Find out more click here");
			
			
			
			document.getElementById('toggle').style.backgroundPosition="20px 20px";
};
			
			

			
			trackMove = 0;
		}
			
		
    }

