/* * * Performas clip transformation * * @application Complete Menu Solution * @author Ilya Lebedev * @copyright (c) 2006, Ilya Lebedev * @license Free for non-commercial use * @package CompleteMenuSolution * @title Clip transformation * @version 0.3.0.03032006 * * Revision history * * 0.3.1.03032006 * * % bug with multiple instance running * + support of * * 0.3.0.03032006 * * % meet transition concept of Cms v0.4 * - junk code * % uses 'moving toward 100%' convept, instead of number of fixed intervals * + initVal and doClip methods, to share them through transition methods * * 0.2.0.01032006 * + support of much more pre-completed directions * * 0.1.0.31012006 First public release */ CompleteMenuSolution.prototype.transition.clip={directions:['s','se','e','ne','n','nw','w','sw','sn','ew','sen','enw','nws','wse','senw'],clipvalues:{'s':{'stTop':0,'enTop':0,'stBot':0,'enBot':100,'stLt':0,'enLt':0,'stRt':100,'enRt':100},'se':{'stTop':0,'enTop':0,'stBot':0,'enBot':100,'stLt':0,'enLt':0,'stRt':0,'enRt':100},'e':{'stTop':0,'enTop':0,'stBot':100,'enBot':100,'stLt':0,'enLt':0,'stRt':0,'enRt':100},'ne':{'stTop':100,'enTop':0,'stBot':100,'enBot':100,'stLt':0,'enLt':0,'stRt':0,'enRt':100},'n':{'stTop':100,'enTop':0,'stBot':100,'enBot':100,'stLt':0,'enLt':0,'stRt':100,'enRt':100},'nw':{'stTop':100,'enTop':0,'stBot':100,'enBot':100,'stLt':100,'enLt':0,'stRt':100,'enRt':100},'w':{'stTop':0,'enTop':0,'stBot':100,'enBot':100,'stLt':100,'enLt':0,'stRt':100,'enRt':100},'sw':{'stTop':0,'enTop':0,'stBot':0,'enBot':100,'stLt':100,'enLt':0,'stRt':100,'enRt':100},'sn':{'stTop':50,'enTop':0,'stBot':50,'enBot':100,'stLt':0,'enLt':0,'stRt':100,'enRt':100},'ew':{'stTop':0,'enTop':0,'stBot':100,'enBot':100,'stLt':50,'enLt':0,'stRt':50,'enRt':100},'sen':{'stTop':50,'enTop':0,'stBot':50,'enBot':100,'stLt':0,'enLt':0,'stRt':0,'enRt':100},'enw':{'stTop':0,'enTop':0,'stBot':0,'enBot':100,'stLt':50,'enLt':0,'stRt':50,'enRt':100},'nws':{'stTop':50,'enTop':0,'stBot':50,'enBot':100,'stLt':100,'enLt':0,'stRt':100,'enRt':100},'wse':{'stTop':100,'enTop':0,'stBot':100,'enBot':100,'stLt':50,'enLt':0,'stRt':50,'enRt':100},'senw':{'stTop':50,'enTop':0,'stBot':50,'enBot':100,'stLt':50,'enLt':0,'stRt':50,'enRt':100}},init:function(i,I,l){var o=i.transitions.clip.direction;if(typeof o=='string')o=[o];else if(!(o instanceof Array)||o.length==0)o=['se'];for(var O=0;O