The Identification Number and Password fields need to be filled in. Moreover, you cannot send messages devoid of contents Adding further data is not allowed because this topic has been closed Print You provided no password: you have to write it in the textfield beside the command delete for the topic you want to delete Are you sure you want to delete this comment? You did not cast a vote. You need to cast a vote by selecting a radio button. Impossible to proceed Provide the project number Insufficient form parameters: you forgot to fill in some field/s
 
member picmember pic
 
Snippets of A
 
info Below you can find the text of the snippet you want to read, and the list of the other snippets by this author if available.
What are snippets?
Share on MySpace

Part 1: Javascript Dhtml: 36 Clip And/Or Slide Layer Animations

Snippet: Identification Number »   Snippet: Inclusion syntax »
Visitors: 3,499 Tagged by its author as: Programming Javascript Characters (in origin): 46,663 (pages: ~ 17)
Author: Em@il Permalink Cast your vote for this topic Printable version
Premise (Not printed if this snippet is included)This file is a component of the following page: Javascript Dhtml: 36 Clip And/Or Slide Layer Animations and as such, in order to be understood, it should be viewed within that context, and not here.
function offRL(id, speed, amount, size, onExitOptionalFunction, stop1, stop2){
if(id){
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="offRL";
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetWidth/2;
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || 0;
object['stop2']=parseFloat(stop2) || object['layer'].offsetHeight;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.right -= (this.right - this.amount>=this.stop1)?
this.amount:(this.stop1==0)?this.right:
(this.right - this.stop1>0)?(this.right - this.stop1):
Math.abs(this.right - this.stop1);
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.right <= this.stop1){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}


function offRL2(id, speed, amount, size, onExitOptionalFunction, stop1, stop2){
if(id){
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="offRL2";
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetWidth/2;
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || object['layer'].offsetWidth/2;
object['stop2']=parseFloat(stop2) || object['layer'].offsetWidth/2;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.right -= (this.right - this.amount>=this.stop1)?
this.amount:(this.stop1==0)?this.right:
(this.right - this.stop1>0)?(this.right - this.stop1):
Math.abs(this.right - this.stop1);
//
this.left += (this.left + this.amount<=this.stop2)?
this.amount:(this.stop2==this.layer.offsetWidth)?(this.stop2 - this.left):
(this.stop2 - this.left>0)?(this.stop2 - this.left):0;
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//this.layer.style.left = this.originalLeft + (this.layer.offsetWidth - this.getClip()[1]);
//EXIT CONDITION:
if(this.right <= this.stop1 || this.left>=this.stop2){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}


function offLR(id, speed, amount, size, onExitOptionalFunction, stop1, stop2){
if(id){
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="offLR";//
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetWidth/2;//
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || object['layer'].offsetWidth;
object['stop2']=parseFloat(stop2) || object['layer'].offsetHeight;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.left += (this.left + this.amount<=this.stop1)?
this.amount:(this.stop1==this.layer.offsetWidth)?(this.stop1 - this.left):
(this.stop1 - this.left>0)?(this.stop1 - this.left):0;
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.left >= this.stop1){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}


function offTB(id, speed, amount, size, onExitOptionalFunction, stop1, stop2){
if(id){
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="offTB";//
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetHeight/2;//
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || object['layer'].offsetWidth;
object['stop2']=parseFloat(stop2) || object['layer'].offsetHeight;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.top += (this.top + this.amount<=this.stop2)?
this.amount:(this.stop2==this.layer.offsetHeight)?(this.stop2 - this.top):
(this.stop2 - this.top>0)?(this.stop2 - this.top):0;
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.top >= this.stop2){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}


function offTB2(id, speed, amount, size, onExitOptionalFunction, stop1, stop2){
if(id){
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="offTB2";//
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetHeight/2;//
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || object['layer'].offsetHeight/2;
object['stop2']=parseFloat(stop2) || object['layer'].offsetHeight/2;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.top += (this.top + this.amount<=this.stop2)?
this.amount:(this.stop2==this.layer.offsetHeight)?(this.stop2 - this.top):
(this.stop2 - this.top>0)?(this.stop2 - this.top):0;
//
this.bottom -= (this.bottom - this.amount>=this.stop1)?
this.amount:(this.stop1==0)?this.bottom:
(this.bottom - this.stop1>0)?(this.bottom - this.stop1):
Math.abs(this.bottom - this.stop1);
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.top >= this.stop2 || this.bottom<=this.stop1){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}



function offBT(id, speed, amount, size, onExitOptionalFunction, stop1, stop2){
if(id){
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="offBT";//
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetHeight/2;
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || object['layer'].offsetWidth;
object['stop2']=parseFloat(stop2) || 0;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.bottom -= (this.bottom - this.amount>=this.stop2)?
this.amount:(this.stop2==0)?this.bottom:
(this.bottom - this.stop2>0)?(this.bottom - this.stop2):
Math.abs(this.bottom - this.stop2);
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.bottom <= this.stop2){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}




function offBTRL(id, speed, amount, size, onExitOptionalFunction, stop1, stop2){
if(id){
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="offBTRL";//
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetHeight/2;
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || 0;
object['stop2']=parseFloat(stop2) || 0;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['amount2']=object['amount']*object['layer'].offsetWidth/object['layer'].offsetHeight;
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.bottom-=(this.bottom-this.amount>=this.stop2)?
this.amount:(this.stop2==0)?this.bottom:
(this.bottom-this.stop2>0)?(this.bottom-this.stop2):
Math.abs(this.bottom-this.stop2);
//
this.right-=(this.right-this.amount2>=this.stop1)?
this.amount2:(this.stop1==0)?this.right:
(this.right-this.stop1>0)?(this.right-this.stop1):
Math.abs(this.right-this.stop1);
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.bottom <= this.stop2 || this.right <= this.stop1){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}



function offTBRL(id, speed, amount, size, onExitOptionalFunction, stop1, stop2){
if(id){
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="offTBRL";//
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetHeight/2;
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || 0;
object['stop2']=parseFloat(stop2) || object['layer'].offsetHeight;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['amount2']=object['amount']*object['layer'].offsetWidth/object['layer'].offsetHeight;
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.top += (this.top + this.amount<=this.stop2)?
this.amount:(this.stop2==this.layer.offsetHeight)?(this.stop2 - this.top):
(this.stop2 - this.top>0)?(this.stop2 - this.top):0;
//
this.right-=(this.right-this.amount2>=this.stop1)?
this.amount2:(this.stop1==0)?this.right:
(this.right-this.stop1>0)?(this.right-this.stop1):
Math.abs(this.right-this.stop1);
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.top >= this.stop2 || this.right <= this.stop1){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}




function offTBLR(id, speed, amount, size, onExitOptionalFunction, stop1, stop2){
if(id){
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="offTBLR";//
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetHeight/2;
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || object['layer'].offsetWidth;
object['stop2']=parseFloat(stop2) || object['layer'].offsetHeight;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['amount2']=object['amount']*object['layer'].offsetWidth/object['layer'].offsetHeight;
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.top += (this.top + this.amount<=this.stop2)?
this.amount:(this.stop2==this.layer.offsetHeight)?(this.stop2 - this.top):
(this.stop2 - this.top>0)?(this.stop2 - this.top):0;
//
this.left += (this.left + this.amount2<=this.stop1)?
this.amount2:(this.stop1==this.layer.offsetWidth)?(this.stop1 - this.left):
(this.stop1 - this.left>0)?(this.stop1 - this.left):0;
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.top >= this.stop2 || this.left >= this.stop1){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}



function offBTLR(id, speed, amount, size, onExitOptionalFunction, stop1, stop2){
if(id){
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="offBTLR";//
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetHeight/2;
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || object['layer'].offsetWidth;
object['stop2']=parseFloat(stop2) || 0;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['amount2']=object['amount']*object['layer'].offsetWidth/object['layer'].offsetHeight;
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.bottom -= (this.bottom - this.amount>=this.stop2)?
this.amount:(this.stop2==0)?this.bottom:
(this.bottom - this.stop2>0)?(this.bottom - this.stop2):
Math.abs(this.bottom - this.stop2);
//
this.left += (this.left + this.amount2<=this.stop1)?
this.amount2:(this.stop1==this.layer.offsetWidth)?(this.stop1 - this.left):
(this.stop1 - this.left>0)?(this.stop1 - this.left):0;
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.bottom <= this.stop2 || this.left >= this.stop1){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}



function offAll(id, speed, amount, size, onExitOptionalFunction, stop1, stop2, stop3, stop4){
if(id){
/*Warning: since it clips ALL, the stop parameters (IF passed) should be passed as an HALF of the meant values: in fact the layer is clipped BOTH from TOP and BOTTOM in its height, and BOTH from LEFT and RIGHT in its width, so values are halved.*/
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="offAll";//
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetHeight/2;
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || object['layer'].offsetWidth / 2;
object['stop2']=parseFloat(stop2) || object['layer'].offsetHeight / 2;
object['stop3']=parseFloat(stop3) || 0;
object['stop4']=parseFloat(stop4) || 0;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['amount2']=object['amount']*object['layer'].offsetWidth/object['layer'].offsetHeight;
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.left += (this.left + this.amount2<=this.stop1)?
this.amount2:(this.stop1==this.layer.offsetWidth)?(this.stop1 - this.left):
(this.stop1 - this.left>0)?(this.stop1 - this.left):0;
//
this.top += (this.top + this.amount<=this.stop2)?
this.amount:(this.stop2==this.layer.offsetHeight)?(this.stop2 - this.top):
(this.stop2 - this.top>0)?(this.stop2 - this.top):0;
//
this.bottom -= (this.bottom - this.amount>=this.stop3)?
this.amount:(this.stop3==0)?this.bottom:
(this.bottom - this.stop3>0)?(this.bottom - this.stop3):
Math.abs(this.bottom - this.stop3);
//
this.right-=(this.right-this.amount2>=this.stop4)?
this.amount2:(this.stop4==0)?this.right:
(this.right-this.stop4>0)?(this.right-this.stop4):
Math.abs(this.right-this.stop4);
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.top >= this.stop2 || this.left>=this.stop1 || this.bottom <= this.stop3 || this.right <= this.stop4){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}



function offAll2(id, speed, amount, size, onExitOptionalFunction, stop1, stop2, stop3, stop4){
if(id){
/*Warning: since it clips ALL, the stop parameters (IF passed) should be passed as an HALF of the meant values: in fact the layer is clipped BOTH from TOP and BOTTOM in its height, and BOTH from LEFT and RIGHT in its width, so values are halved.*/
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="offAll2";//
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetHeight/2;
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || object['layer'].offsetWidth / 2;
object['stop2']=parseFloat(stop2) || object['layer'].offsetHeight / 2;
object['stop3']=parseFloat(stop3) || 0;
object['stop4']=parseFloat(stop4) || 0;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['amount2']=object['amount']//*object['layer'].offsetHeight/object['layer'].offsetWidth;
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.left += (this.left + this.amount2<=this.stop1)?
this.amount2:(this.stop1==this.layer.offsetWidth)?(this.stop1 - this.left):
(this.stop1 - this.left>0)?(this.stop1 - this.left):0;
//
this.top += (this.top + this.amount<=this.stop2)?
this.amount:(this.stop2==this.layer.offsetHeight)?(this.stop2 - this.top):
(this.stop2 - this.top>0)?(this.stop2 - this.top):0;
//
this.bottom -= (this.bottom - this.amount>=this.stop3)?
this.amount:(this.stop3==0)?this.bottom:
(this.bottom - this.stop3>0)?(this.bottom - this.stop3):
Math.abs(this.bottom - this.stop3);
//
this.right-=(this.right-this.amount2>=this.stop4)?
this.amount2:(this.stop4==0)?this.right:
(this.right-this.stop4>0)?(this.right-this.stop4):
Math.abs(this.right-this.stop4);
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.top >= this.stop2 || this.left>=this.stop1 || this.bottom <= this.stop3 || this.right <= this.stop4){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}



function onTB(id, speed, amount, size, onExitOptionalFunction, stop1, stop2){
if(id){
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="onTB";//
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetHeight/2;//
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || object['layer'].offsetWidth;
object['stop2']=parseFloat(stop2) || object['layer'].offsetHeight;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=0;//object['originalClip'][2*];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.bottom+=(this.bottom+this.amount<=this.stop2)?
this.amount:(this.stop2==this.layer.offsetHeight)?(this.stop2-this.bottom):
(this.stop2-this.bottom>0)?(this.stop2-this.bottom):0;
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.bottom >= this.stop2){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}




function onTB2(id, speed, amount, size, onExitOptionalFunction, stop1, stop2){
if(id){
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="onTB2";//
object[name]=window[name];
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetHeight/2;//
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
window[onExitOptionalFunction]:onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || 0//object['layer'].offsetHeight/2;
object['stop2']=parseFloat(stop2) || object['layer'].offsetHeight;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
}
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";}
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(" ");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['layer'].offsetHeight/2;//object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['layer'].offsetHeight/2;//object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.top-=(this.top-this.amount>=this.stop1)?
this.amount:(this.stop1==0)?this.top:
(this.stop1-this.top>0)?(this.stop1-this.top):
Math.abs(this.stop1-this.top);
//
this.bottom+=(this.bottom+this.amount<=this.stop2)?
this.amount:(this.stop2==this.layer.offsetHeight)?(this.stop2-this.bottom):
(this.stop2-this.bottom>0)?(this.stop2-this.bottom):0;
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.top <= this.stop1 || this.bottom >= this.stop2){ this.stop(); };
/*keep this comment to reuse freely
http://www.fullposter.com/?1 */}
Remove colors
Printable version To exclude hyperlinks from the print, check the checkbox »
Rss

Cast your vote for this topic

To perform this operation it is not necessary to be Full Poster members.
«Negative Positive»
Click here to save your vote (Current average: 0.00, Voters: 0)
Are you the author of this topic and do you want to append quickly more text? click here
Other topics
This subscriber has a blog too: Read the blog: 57 Shoutbox: 103 reviews: 153
Visitors: 3,499
Overall visits to all the topics: 4,960,802
Daily average (Calculated from the website subscription day): 2,060.13
Optional sorting commands:
Normal order: click here
Order by amount of visits: click here
Order by category: Programming Javascript
Current order: normal
Other categories available for this author (Limited data report: 100):
Advice: Martial Arts and Self Defense(4), Books(236), Critical Reviews and Essays(4), Dictionaries(1), Emergency Care(4), Epistles Letters and Advice(5), Fantasy Epics and Fables(1), History and Documents(5), Humor and Jokes(2), Methematics(2), Music and Lyrics(6), News Digests and Press Reviews(1), Novels Poetry and Stories(3), Philosophy Reviews(7), Poetry(1), Programming(4), Programming Ajax(2), Programming Javascript(82), Programming Php(52), Psychology(1), Quotes(1), Religion Esoterica and Spirituality(12), Scientifical Reviews(4), Self Improvement(1), Sport Activities and Apparels(2), Tarots(1)
Showing topics: 1, 10
Available total: 448
View only a list of the snippets by this author: click here.
Other topics available for this author: click on any title below to view the complete item:
Fighting Competently: Anticipation, And Remember It's In His Eyes Identification Number: 465 Visitors: 347 La Musa Segreta: Superiorità Onnipervasiva Della Boxe Identification Number: 464 Visitors: 1,188 Ha Senso Il Doping Sportivo? Effetto Matteo Nello Sport E Business Sportivo Identification Number: 463 Visitors: 1,427 The Musicians Within The Music Box And Other Hereafter Stories Identification Number: 462 Visitors: 2,682 Freud And Jung In A Nutshell: Three Or So Shots At Psychoanalysis For Dummies Identification Number: 461 Visitors: 4,137 Division The Math Of Gods: Ambiguities Of Antanairesis And New Math Operations Identification Number: 460 Visitors: 4,407 The Meaning Of Cruelty Identification Number: 459 Visitors: 4,806 Dÿanèra Ad Eleusi: La Folgorazione Ontologica: Il Pensare Sistematico E Non Identification Number: 458 Visitors: 5,598 Creative Writing: How To Write A Novel. Best Tips From The Bester Professionals Identification Number: 457 Visitors: 7,397 Newsreel Pseudo Intel: The Middle East Approaching The New 20s Identification Number: 456 Visitors: 7,386
External services
This page of this subscriber uses external services: Hide