/** COPYRIGHT 2011 ADMX V.O.F., BAARLE-NASSAU, SCHIJF, THE NETHERLANDS  */
/**********************************************************************TERMS OF USE - EASING EQUATIONSOpen source under the BSD License.Copyright (c) 2001 Robert PennerJavaScript version copyright (C) 2006 by Philippe MaegermanAll rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions aremet: * Redistributions of source code must retain the above copyrightnotice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the abovecopyright notice, this list of conditions and the following disclaimerin the documentation and/or other materials provided with thedistribution. * Neither the name of the author nor the names of contributors maybe used to endorse or promote products derived from this softwarewithout specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************//** * 2011-11 imrpoved tween code */var OPACITYTWEEN = new CLASS(TWEEN, {initialize : function(obj, func, fromOpacity, toOpacity, duration) {this.init(obj, 'opacity', func, fromOpacity, toOpacity, duration);},onMotionChanged : function(evt) {var v = evt.target._pos;var t = this.obj;this.setOpacity(v / 100);},setOpacity : function(value) {this.value = value;this.opacity = (value == 1 || value === '') ? '': (value < 0.00001) ? 0 : value;if (isIE) {Element.setOpacity(this.obj, value);} else {this.obj.style.opacity = this.opacity;}}});var OpacityTween = OPACITYTWEEN;/** * * To be obsoleted tween code * */

