// Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// Contributors:
// Justin Palmer (http://encytemedia.com/)
// Mark Pilgrim (http://diveintomark.org/)
// Martin Bialasinki
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
// converts rgb() and #xxx to #xxxxxx format,
// returns self (or first argument) if not convertable
String.prototype.parseColor = function() {
var color = '#';
} else {
}
}
}
/*--------------------------------------------------------------------------*/
}
}
return element;
}
var opacity;
return parseFloat(opacity);
return 1.0;
}
if (value == 1){
0.999999 : 1.0 });
} else {
}
return element;
}
}
try {
element.appendChild(n);
element.removeChild(n);
} catch(e) { }
};
/*--------------------------------------------------------------------------*/
}
/*--------------------------------------------------------------------------*/
var Effect = {
name: 'ElementDoesNotExistError',
message: 'The specified DOM element does not exist, but is required for this effect to operate'
},
tagifyText: function(element) {
if(typeof Builder == 'undefined')
throw("Effect.tagifyText requires including script.aculo.us' builder.js library");
child);
});
}
});
},
var elements;
if(((typeof element == 'object') ||
(typeof element == 'function')) &&
else
speed: 0.1,
delay: 0.0
}, arguments[2] || {});
});
},
PAIRS: {
'slide': ['SlideDown','SlideUp'],
'blind': ['BlindDown','BlindUp'],
'appear': ['Appear','Fade']
},
}, arguments[2] || {});
}
};
/* ------------- transitions ------------- */
Effect.Transitions = {
},
return 1-pos;
},
},
},
return (
);
},
return 0;
},
return 1;
}
};
/* ------------- core effects ------------- */
initialize: function() {
this.effects = [];
this.interval = null;
},
},
switch(position) {
case 'front':
// move unstarted effects after this effect
});
break;
case 'with-last':
break;
case 'end':
// start effect after last queued effect has finished
break;
}
if(!this.interval)
},
clearInterval(this.interval);
this.interval = null;
}
},
loop: function() {
}
});
}
}
Effect.DefaultOptions = {
sync: false, // true for combining
from: 0.0,
to: 1.0,
delay: 0.0,
queue: 'parallel'
}
position: null,
this.currentFrame = 0;
this.state = 'idle';
this.event('beforeStart');
},
this.render(1.0);
this.cancel();
this.event('beforeFinish');
this.event('afterFinish');
return;
}
if(frame > this.currentFrame) {
this.currentFrame = frame;
}
}
},
if(this.state == 'idle') {
this.state = 'running';
this.event('beforeSetup');
this.event('afterSetup');
}
if(this.state == 'running') {
this.event('beforeUpdate');
this.event('afterUpdate');
}
},
cancel: function() {
this.state = 'finished';
},
},
inspect: function() {
}
}
initialize: function(effects) {
},
},
});
}
});
initialize: function() {
duration: 0
}, arguments[0] || {});
},
});
initialize: function(element) {
// make this work on IE on elements without 'layout'
to: 1.0
}, arguments[1] || {});
},
}
});
initialize: function(element) {
x: 0,
y: 0,
mode: 'relative'
}, arguments[1] || {});
},
setup: function() {
// Bug in Opera: Opera returns the "real" position of a static element or
// ==> Always set top and left for position relative elements in your stylesheets
// (to 0 if you do not need them)
this.element.makePositioned();
// absolute movement, so we need to calc deltaX and deltaY
}
},
});
}
});
// for backwards compatibility
};
scaleX: true,
scaleY: true,
scaleContent: true,
scaleFromCenter: false,
scaleFrom: 100.0,
}, arguments[2] || {});
},
setup: function() {
this.originalStyle = {};
}.bind(this));
this.fontSizeType = fontSizeType;
}
}.bind(this));
this.dims = null;
if(!this.dims)
},
},
},
var d = {};
if(this.options.scaleFromCenter) {
if(this.elementPositioning == 'absolute') {
} else {
}
}
}
});
initialize: function(element) {
},
setup: function() {
// Prevent executing on elements not in the layout flow
// Disable background image during the effect
this.oldStyle = {
if(!this.options.restorecolor)
// init color calculations
this._base = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this));
this._delta = $R(0,2).map(function(i){ return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i] }.bind(this));
},
},
finish: function() {
}));
}
});
initialize: function(element) {
},
setup: function() {
},
}
});
/* ------------- combination effects ------------- */
to: 0.0,
afterFinishInternal: function(effect) {
}}, arguments[1] || {});
}
to: 1.0,
// force Safari to render floated elements properly
afterFinishInternal: function(effect) {
},
beforeSetup: function(effect) {
}}, arguments[1] || {});
}
var oldStyle = {
};
beforeSetupInternal: function(effect) {
},
afterFinishInternal: function(effect) {
}, arguments[1] || {})
);
}
Object.extend({ scaleContent: false,
scaleX: false,
restoreAfterFinish: true,
afterFinishInternal: function(effect) {
}
}, arguments[1] || {})
);
}
scaleContent: false,
scaleX: false,
scaleFrom: 0,
restoreAfterFinish: true,
afterSetup: function(effect) {
},
afterFinishInternal: function(effect) {
}
}, arguments[1] || {}));
}
duration: 0.4,
from: 0,
afterFinishInternal: function(effect) {
beforeSetup: function(effect) {
},
afterFinishInternal: function(effect) {
}
})
}
}, arguments[1] || {}));
}
var oldStyle = {
Object.extend(
{ duration: 0.5,
beforeSetup: function(effect) {
},
afterFinishInternal: function(effect) {
}
}, arguments[1] || {}));
}
var oldStyle = {
}}) }}) }}) }}) }}) }});
}
// SlideDown need to have the content of the element wrapped in a container element with fixed height!
scaleContent: false,
scaleX: false,
restoreAfterFinish: true,
afterSetup: function(effect) {
},
afterUpdateInternal: function(effect) {
},
afterFinishInternal: function(effect) {
}, arguments[1] || {})
);
}
Object.extend({ scaleContent: false,
scaleX: false,
scaleMode: 'box',
scaleFrom: 100,
restoreAfterFinish: true,
beforeStartInternal: function(effect) {
},
afterUpdateInternal: function(effect) {
},
afterFinishInternal: function(effect) {
}
}, arguments[1] || {})
);
}
// Bug in opera makes the TD containing this element expand for a instance after finish
restoreAfterFinish: true,
beforeSetup: function(effect) {
},
afterFinishInternal: function(effect) {
}
});
}
direction: 'center',
}, arguments[1] || {});
var oldStyle = {
var initialMoveX, initialMoveY;
case 'top-left':
break;
case 'top-right':
break;
case 'bottom-left':
break;
case 'bottom-right':
break;
case 'center':
break;
}
x: initialMoveX,
y: initialMoveY,
duration: 0.01,
beforeSetup: function(effect) {
},
afterFinishInternal: function(effect) {
[ new Effect.Opacity(effect.element, { sync: true, to: 1.0, from: 0.0, transition: options.opacityTransition }),
new Effect.Move(effect.element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition }),
sync: true, scaleFrom: window.opera ? 1 : 0, transition: options.scaleTransition, restoreAfterFinish: true})
], Object.extend({
beforeSetup: function(effect) {
},
afterFinishInternal: function(effect) {
}
}, options)
)
}
});
}
direction: 'center',
}, arguments[1] || {});
var oldStyle = {
case 'top-left':
break;
case 'top-right':
moveY = 0;
break;
case 'bottom-left':
moveX = 0;
break;
case 'bottom-right':
break;
case 'center':
break;
}
[ new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0, transition: options.opacityTransition }),
new Effect.Scale(element, window.opera ? 1 : 0, { sync: true, transition: options.scaleTransition, restoreAfterFinish: true}),
], Object.extend({
beforeStartInternal: function(effect) {
},
afterFinishInternal: function(effect) {
}, options)
);
}
}
var oldStyle = {
scaleContent: false,
scaleX: false,
afterFinishInternal: function(effect) {
scaleContent: false,
scaleY: false,
afterFinishInternal: function(effect) {
} });
}}, arguments[1] || {}));
};
initialize: function(element) {
style: ''
}, arguments[1] || {});
},
setup: function(){
function parseColor(color){
});
}
return $H({
});
return (
(
)
)
});
},
});
}
});
initialize: function(tracks){
this.tracks = [];
},
}));
}.bind(this));
return this;
},
play: function(){
return elements.map(function(e){ return new track.effect(e, Object.extend({ sync:true }, track.options)) });
}).flatten(),
this.options
);
}
});
'backgroundPosition', 'backgroundRepeat', 'borderBottomColor', 'borderBottomStyle',
'borderBottomWidth', 'borderCollapse', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth',
'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderSpacing', 'borderTopColor',
'borderTopStyle', 'borderTopWidth', 'bottom', 'captionSide', 'clear', 'clip', 'color', 'content',
'counterIncrement', 'counterReset', 'cssFloat', 'cueAfter', 'cueBefore', 'cursor', 'direction',
'display', 'elevation', 'emptyCells', 'fontFamily', 'fontSize', 'fontSizeAdjust', 'fontStretch',
'fontStyle', 'fontVariant', 'fontWeight', 'height', 'left', 'letterSpacing', 'lineHeight',
'listStyleImage', 'listStylePosition', 'listStyleType', 'marginBottom', 'marginLeft', 'marginRight',
'marginTop', 'markerOffset', 'marks', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'opacity',
'orphans', 'outlineColor', 'outlineOffset', 'outlineStyle', 'outlineWidth', 'overflowX', 'overflowY',
'paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop', 'page', 'pageBreakAfter', 'pageBreakBefore',
'pageBreakInside', 'pauseAfter', 'pauseBefore', 'pitch', 'pitchRange', 'position', 'quotes',
'richness', 'right', 'size', 'speakHeader', 'speakNumeral', 'speakPunctuation', 'speechRate', 'stress',
'tableLayout', 'textAlign', 'textDecoration', 'textIndent', 'textShadow', 'textTransform', 'top',
'unicodeBidi', 'verticalAlign', 'visibility', 'voiceFamily', 'volume', 'whiteSpace', 'widows',
'width', 'wordSpacing', 'zIndex'];
String.prototype.parseStyle = function(){
});
unit = 'color';
}.bind(this));
return result;
};
return element;
};
['setOpacity','getOpacity','getInlineOpacity','forceRerendering','setContentZoom',
);
return $(element);
};