ipnGesAction = new function(){
	var nID;

	this.verticalScroll = function( signed ){
		clearInterval( nID );
		var target_Y = ( signed === 1 ) ? ( document.body.scrollHeight - document.documentElement.clientHeight ) : 0;
		var pos_y = window.scrollY;
		var ly = Math.abs( target_Y - pos_y );
		var y1 = 0;
		nID = setInterval(
			function(){
				window.scroll( 0,  signed * y1 + pos_y );
				if( ly < y1 ){
					window.scroll( 0,  target_Y );
					clearInterval( nID );
				}
				y1 += 20;
			},
			10
		);
	};

	this.horizonScroll = function( signed ){
		var obj = document.body;
		obj.style.webkitTransition = "all 1.5s linear";
		obj.style.position = "absolute";
		obj.style.left = ( signed * document.width ) + "px";
		setTimeout( function(){ obj.style.webkitTransition = "none"; obj.style.left = "0px"; }, 2000 );
	};

	this.clear_nID = function(){
		clearInterval( nID );
	};
};
