function liftOpenAnimation(
	oLeftDoor,
	oRightDoor
	) {	

	if(oLeftDoor && oRightDoor) {
	
		var iContainerWidth = document.getElementById('main_image').offsetWidth;
			
		this.oLeftDoor = {
			oElement : oLeftDoor,
			oStyle : oLeftDoor.style,
			iLeft : -4970
		}
		
		this.oRightDoor = {
			oElement : oRightDoor,
			oStyle : oRightDoor.style,
			iWidth : oRightDoor.offsetWidth
		}
		
		this.iIndex = animationHandler.addAnimation(this);													
		
	}	

}

liftOpenAnimation.prototype.process = function() {				
	
	var iLeftDiff = 4920 + this.oLeftDoor.oElement.offsetLeft;
	var iRightDiff = this.oRightDoor.iWidth - 52;
	
	if(iLeftDiff > 0) { 
	
		var iStep = iLeftDiff > 50? 10 : 1;		
	
		this.oLeftDoor.iLeft -= iStep;
		this.oLeftDoor.oStyle.left = this.oLeftDoor.iLeft + 'px';			
		
	}	
	
	if(iRightDiff > 0) { 
	
		var iStep = iRightDiff > 50? 10 : 1;
		
		this.oRightDoor.iWidth -= iStep;				
		this.oRightDoor.oStyle.width = this.oRightDoor.iWidth + 'px';			
		
	}

	if(iLeftDiff <= 0) {
		this.stop();
	}

}

liftOpenAnimation.prototype.stop = function() {

	this.oLeftDoor.oStyle.marginLeft = '0px';	
	this.oLeftDoor.oStyle.left = '-4920px';

	animationHandler.removeAnimation(this.iIndex);
	
}

function liftCloseAnimation(
	oLeftDoor,
	oRightDoor
	) {	

	if(oLeftDoor && oRightDoor) {
			
		this.oLeftDoor = {
			oElement : oLeftDoor,
			oStyle : oLeftDoor.style,
			iLeft : -4920
		}
		
		this.oRightDoor = {
			oElement : oRightDoor,
			oStyle : oRightDoor.style,
			iWidth : oRightDoor.offsetWidth
		}
		
		this.iIndex = animationHandler.addAnimation(this);						
	
	}

}

liftCloseAnimation.prototype.process = function() {

	var iDiff = this.oRightDoor.oElement.offsetLeft - (this.oLeftDoor.iLeft + 4999);
	
	if(iDiff > 0) { 
	
		var iStep = iDiff > 50? 10 : 1;
	
		this.oLeftDoor.iLeft += iStep;
		this.oLeftDoor.oStyle.left = this.oLeftDoor.iLeft + 'px';
	
		this.oRightDoor.iWidth += iStep;
		this.oRightDoor.oStyle.width = this.oRightDoor.iWidth + 'px';		
		
	}
	else {
		this.stop();
	}
	
}

liftCloseAnimation.prototype.stop = function() {

	animationHandler.removeAnimation(this.iIndex);
	
}

function init() {

	var oOpenAnimation = new liftOpenAnimation(
		document.getElementById('left_door'),
		document.getElementById('right_door')
		);	
		
	animationHandler.start(
		{	
			fFunction : function() {
				
				var oNavigation = document.getElementById('hotline');
				
				if(oNavigation) {			
		
					if(navigator.appName == 'Microsoft Internet Explorer' && navigator.userAgent.indexOf("Opera") == -1) {
						oNavigation = oNavigation.parentNode;
					}
		
					var oOpenAnimation = new moveNavigationAnimation(oNavigation);
					
					animationHandler.start();								
		
				}
	
				var oLinks = document.getElementById('lift').getElementsByTagName('a');
	
				if(oLinks) {		
		
					for(var i = 0; i < oLinks.length; i++) {		
			
						oLinks[i].onclick = function(eEvent) {								
								
							var eEvent = eEvent || window.event;
							var oTarget = eEvent.fromElement || this;	
							
							var oCloseAnimation = new liftCloseAnimation(
								document.getElementById('left_door'),
								document.getElementById('right_door')
							);	

							oTarget.onclick = function() {
				
								return false;
					
							};
				
							animationHandler.start(
								{	
									fFunction : function(oTarget) {														
									
										document.location = oTarget.href;							
						
									},
									aParams : oTarget
								}	
									
							);		
			
							return false;
			
						}						
			
					}
		
				}
						
			}
			
		}	
						
	);			

}

cmnAdd_event(window, 'load', init);
