Frame 1
altContentURL = "alt.html";
contentVersion = 6;
contentMajorRevision = 0;
contentMinorRevision = 65;
allowFlashAutoInstall = false;
requireLatestVersion = false;
MACLatestVersion = 7;
MACLatestMajorRevision = 0;
MACLatestMinorRevision = 19;
WINLatestVersion = 7;
WINLatestMajorRevision = 0;
WINLatestMinorRevision = 19;
WINCELatestVersion = 6;
WINCELatestMajorRevision = 0;
WINCELatestMinorRevision = 80;
UNIXLatestVersion = 6;
UNIXLatestMajorRevision = 0;
UNIXLatestMinorRevision = 79;
if ($version eq "") {
getURL (altContentURL, "_self");
}
i = 1;
playerOS_str = "";
while ((substring($version, i, 1)) ne " ") {
playerOS_str = playerOS_str add (substring($version, i, 1));
i++;
}
playerVersion = "";
i++;
while ((substring($version, i, 1)) ne ",") {
playerVersion = playerVersion add Number(substring($version, i, 1));
i++;
}
playerMajorRevision = "";
i++;
while ((substring($version, i, 1)) ne ",") {
playerMajorRevision = playerMajorRevision add Number(substring($version, i, 1));
i++;
}
playerMinorRevision = "";
i++;
while ((substring($version, i, 1)) ne ",") {
playerMinorRevision = playerMinorRevision add Number(substring($version, i, 1));
i++;
}
if (requireLatestVersion eq "true") {
contentVersion = Number(eval (playerOS_str add "LatestVersion"));
contentMajorRevision = Number(eval (playerOS_str add "LatestMajorRevision"));
contentMinorRevision = Number(eval (playerOS_str add "LatestMinorRevision"));
}
if ((allowFlashAutoInstall eq "true") && (playerOS_str eq "WIN")) {
play();
} else if (playerVersion < contentVersion) {
getURL (altContentURL, "_self");
} else if (playerVersion > contentVersion) {
play();
} else if ((playerVersion eq contentVersion) && (playerMajorRevision < contentMajorRevision)) {
getURL (altContentURL, "_self");
} else if (((playerVersion eq contentVersion) && (playerMajorRevision eq contentMajorRevision)) && (playerMinorRevision < contentMinorRevision)) {
getURL (altContentURL, "_self");
} else if (((playerVersion eq contentVersion) && (playerMajorRevision eq contentMajorRevision)) && (playerMinorRevision >= contentMinorRevision)) {
play();
}
flash3test = 1;
if (flash3test != 1) {
getURL ("upgrade_flash/upgrade_flash.html", "_self");
}
Frame 3
function tweenManager() {
this.playing = false;
this.autoStop = false;
this.broadcastEvents = false;
this.autoOverwrite = true;
this.tweenList = new Array();
this.ints = new Array();
this.lockedTweens = new Object();
this.now = 0;
this._th_depth = 6789;
this.isPaused = false;
}
Math.linear = (Math.linearTween = function (t, b, c, d) {
return(((c * t) / d) + b);
});
Math.easeinquad = function (t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
};
Math.easeoutquad = function (t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
};
Math.easeinoutquad = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
};
Math.easeoutinquad = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((t * t) - 1)) + b);
}
t--;
return(((c / 2) * ((t * t) + 1)) + b);
};
Math.easeincubic = function (t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
};
Math.easeoutcubic = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
};
Math.easeinoutcubic = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
};
Math.easeoutincubic = function (t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
};
Math.easeinquart = function (t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
};
Math.easeoutquart = function (t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
};
Math.easeinoutquart = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
};
Math.easeoutinquart = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b);
}
t--;
return(((c / 2) * ((((t * t) * t) * t) + 1)) + b);
};
Math.easeinquint = function (t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
};
Math.easeoutquint = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
};
Math.easeinqutquint = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
};
Math.easeoutinquint = function (t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b);
};
Math.easeinsine = function (t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
};
Math.easeoutsine = function (t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
};
Math.easeinoutsine = function (t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
};
Math.easeoutinsine = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
t--;
return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b);
};
Math.easeinexpo = function (t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
};
Math.easeoutexpo = function (t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
};
Math.easeinoutexpo = function (t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
};
Math.easeoutinexpo = function (t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b);
}
return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b);
};
Math.easeincirc = function (t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
};
Math.easeoutcirc = function (t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
};
Math.easeinoutcirc = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
};
Math.easeoutincirc = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return(((c / 2) * Math.sqrt(1 - (t * t))) + b);
}
t--;
return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b);
};
Math.easeinelastic = function (t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
};
Math.easeoutelastic = function (t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
};
Math.easeinoutelastic = function (t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t--;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t--;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
};
Math.easeoutinelastic = function (t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)))) + b);
};
Math.easeinback = function (t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
};
Math.easeoutback = function (t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
};
Math.easeinoutback = function (t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
};
Math.easeoutinback = function (t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
};
Math.easeinbounce = function (t, b, c, d) {
return((c - Math.easeoutbounce(d - t, 0, c, d)) + b);
};
Math.easeoutbounce = function (t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
};
Math.easeinoutbounce = function (t, b, c, d) {
if (t < (d / 2)) {
return((Math.easeInBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((Math.easeoutbounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
};
Math.easeoutinbounce = function (t, b, c, d) {
if (t < (d / 2)) {
return((Math.easeOutBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((Math.easeinbounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
};
var Mp = MovieClip.prototype;
Mp.addListener = function () {
if (!this._listeners) {
AsBroadcaster.initialize(this);
}
this.addListener.apply(this, arguments);
};
ASSetPropFlags(Mp, "addListener", 1, 0);
var tp = tweenManager.prototype;
tp.setupdateInterval = function (time) {
if (this.playing) {
this.deinit();
this.updateTime = time;
this.init();
} else {
this.updateTime = time;
}
};
tp.getupdateInterval = function () {
return(this.updateTime);
};
tp.addProperty("updateInterval", tp.getupdateInterval, tp.setupdateInterval);
tp.setcontrollerDepth = function (v) {
if (_global.isNaN(v) == true) {
return(undefined);
}
if (this.tweenHolder._name != undefined) {
this.tweenHolder.swapDepths(v);
} else {
this._th_depth = v;
}
};
tp.getcontrollerDepth = function () {
return(this._th_depth);
};
tp.addProperty("controllerDepth", tp.getcontrollerDepth, tp.setcontrollerDepth);
tp.init = function () {
var tm = this;
if (tm.updateTime > 0) {
clearInterval(tm.updateIntId);
tm.updateIntId = setInterval(tm, "update", tm.updateTime);
} else {
if (tm.tweenHolder._name == undefined) {
tm.tweenHolder = _root.createEmptyMovieClip("_th_", tm._th_depth);
}
tm.tweenHolder.onEnterFrame = function () {
tm.update.call(tm);
};
}
tm.playing = true;
tm.now = getTimer();
};
tp.deinit = function () {
this.playing = false;
clearInterval(this.updateIntId);
delete this.tweenHolder.onEnterFrame;
};
tp.update = function () {
var _local10;
var _local2;
var _local3;
var _local4;
var _local13 = false;
_local10 = this.tweenList.length;
if (this.broadcastEvents) {
var _local5;
var _local8;
var _local6;
var _local9;
_local5 = {};
_local8 = {};
_local6 = {};
_local9 = {};
}
while (_local10--) {
_local2 = this.tweenList[_local10];
if (_local2.mc._x == undefined) {
_local13 = true;
continue;
}
if (_local2.pt != -1) {
continue;
}
if ((_local2.ts + _local2.d) > this.now) {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ef(this.now - _local2.ts, _local2.ps, _local2.ch, _local2.d, _local2.e1, _local2.e2);
} else {
_local4 = {};
for (_local3 in _local2.ctm) {
_local4[_local3] = _local2.ef(this.now - _local2.ts, _local2.stm[_local3], _local2.ctm[_local3], _local2.d, _local2.e1, _local2.e2);
}
_local2.c.setTransform(_local4);
}
if (this.broadcastEvents) {
if (_local5[targetPath(_local2.mc)] == undefined) {
_local5[targetPath(_local2.mc)] = _local2.mc;
}
if (_local6[targetPath(_local2.mc)] == undefined) {
_local6[targetPath(_local2.mc)] = [];
}
_local6[targetPath(_local2.mc)].push(((_local2.ctm != undefined) ? "_ct_" : (_local2.pp)));
}
if (_local2.cb.updfunc != undefined) {
var _local7 = _local2.cb.updfunc;
if ((typeof(_local7) == "string") && (_local2.cb.updscope != undefined)) {
_local7 = _local2.cb.updscope[_local7];
}
_local7.apply(_local2.cb.updscope, _local2.cb.updargs);
}
} else {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ps + _local2.ch;
} else {
_local4 = {};
for (_local3 in _local2.ctm) {
_local4[_local3] = _local2.stm[_local3] + _local2.ctm[_local3];
}
_local2.c.setTransform(_local4);
}
if (this.broadcastEvents) {
if (_local5[targetPath(_local2.mc)] == undefined) {
_local5[targetPath(_local2.mc)] = _local2.mc;
}
if (_local8[targetPath(_local2.mc)] == undefined) {
_local8[targetPath(_local2.mc)] = _local2.mc;
}
if (_local6[targetPath(_local2.mc)] == undefined) {
_local6[targetPath(_local2.mc)] = [];
}
_local6[targetPath(_local2.mc)].push(((_local2.ctm != undefined) ? "_ct_" : (_local2.pp)));
if (_local9[targetPath(_local2.mc)] == undefined) {
_local9[targetPath(_local2.mc)] = [];
}
_local9[targetPath(_local2.mc)].push(((_local2.ctm != undefined) ? "_ct_" : (_local2.pp)));
}
if (_local2.cb.updfunc != undefined) {
var _local7 = _local2.cb.updfunc;
if ((typeof(_local7) == "string") && (_local2.cb.updscope != undefined)) {
_local7 = _local2.cb.updscope[_local7];
}
_local7.apply(_local2.cb.updscope, _local2.cb.updargs);
}
if (endt == undefined) {
var endt = new Array();
}
endt.push(_local10);
}
}
if (_local13) {
this.cleanUp();
}
for (_local3 in _local5) {
_local5[_local3].broadcastMessage("onTweenUpdate", {target:_local5[_local3], props:_local6[_local3]});
}
if (endt != undefined) {
this.endTweens(endt);
}
for (_local3 in _local8) {
_local8[_local3].broadcastMessage("onTweenEnd", {target:_local8[_local3], props:_local9[_local3]});
}
this.now = getTimer();
if (this.updateTime > 0) {
updateAfterEvent();
}
};
tp.endTweens = function (tid_arr) {
var cb_arr;
var tl;
var i;
var cb;
var j;
cb_arr = [];
tl = tid_arr.length;
with (this) {
i = 0;
while (i < tl) {
cb = tweenList[tid_arr[i]].cb;
if (cb != undefined) {
var exec = true;
for (j in cb_arr) {
if (cb_arr[j] == cb) {
exec = false;
break;
}
}
if (exec) {
cb_arr.push(cb);
}
}
tweenList.splice(tid_arr[i], 1);
i++;
}
i = 0;
while (i < cb_arr.length) {
var i = 0;
while (i < cb_arr.length) {
var f = cb_arr[i].func;
if ((typeof(f) == "string") && (cb_arr[i].scope != undefined)) {
f = cb_arr[i].scope[f];
}
f.apply(cb_arr[i].scope, cb_arr[i].args);
i++;
}
i++;
}
if (tweenList.length == 0) {
deinit();
}
}
};
tp.removeDelayedTween = function (index) {
with (this) {
clearInterval(ints[index].intid);
ints[index] = undefined;
var isintsempty = true;
for (var i in ints) {
if (ints[i] != undefined) {
isintsempty = false;
break;
}
}
if (isintsempty) {
ints = [];
}
}
};
tp.addTween = function (mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var i;
var pp;
var addnew;
var j;
var t;
var ip;
with (this) {
if (!playing) {
init();
}
ip = [];
for (i in props) {
pp = props[i];
addnew = true;
if (pp.substr(0, 4) != "_ct_") {
var ch = ((typeof(pEnd[i]) == "string") ? (Number(pEnd[i])) : (pEnd[i] - mc[pp]));
if (autoOverwrite) {
for (j in tweenList) {
t = tweenList[j];
if ((t.mc == mc) && (t.pp == pp)) {
t.ps = mc[pp];
t.ch = ch;
t.ts = now;
t.d = sec * 1000;
t.ef = eqFunc;
t.cb = callback;
t.e1 = extra1;
t.e2 = extra2;
t.pt = -1;
addnew = false;
ip.push(t.pp);
break;
}
}
}
if (addnew) {
tweenList.unshift({mc:mc, pp:pp, ps:mc[pp], ch:ch, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2, pt:-1});
}
} else {
var c = new Color(mc);
var stm = c.getTransform();
var ctm = {};
for (j in pEnd[i]) {
if ((pEnd[i][j] != stm[j]) && (pEnd[i][j] != undefined)) {
ctm[j] = ((typeof(pEnd[i][j]) == "string") ? (stm[j] + Number(pEnd[i][j])) : (pEnd[i][j] - stm[j]));
}
}
if (autoOverwrite) {
for (j in tweenList) {
t = tweenList[j];
if ((t.mc == mc) && (t.ctm != undefined)) {
t.c = c;
t.stm = stm;
(t.ctm = ctm);
(t.ts = now);
t.d = sec * 1000;
t.ef = eqFunc;
t.cb = callback;
t.e1 = extra1;
t.e2 = extra2;
t.pt = -1;
addnew = false;
ip.push("_ct_");
break;
}
}
}
if (addnew) {
tweenList.unshift({mc:mc, c:c, stm:stm, ctm:ctm, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2, pt:-1});
}
}
}
if (broadcastEvents) {
if (ip.length > 0) {
mc.broadcastMessage("onTweenInterrupt", {target:mc, props:ip});
}
mc.broadcastMessage("onTweenStart", {target:mc, props:props});
}
if (callback.startfunc != undefined) {
var f = callback.startfunc;
if ((typeof(f) == "string") && (callback.startscope != undefined)) {
f = callback.startscope[f];
}
f.apply(callback.startscope, callback.startargs);
}
if (sec == 0) {
update();
}
}
};
tp.addTweenWithDelay = function (delay, mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
with (this) {
var il;
var intid;
il = ints.length;
intid = setInterval(function (obj) {
obj.removeDelayedTween(il);
if (mc._x != undefined) {
obj.addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2);
}
}, delay * 1000, this);
ints[il] = {mc:mc, props:props, pend:pEnd, intid:intid, st:getTimer(), delay:delay * 1000, args:arguments.slice(1), pt:-1};
if (!playing) {
init();
}
}
};
tp.removeTween = function (mc, props) {
with (this) {
var all;
var i;
var j;
var ip;
all = false;
if ((props == undefined) && (broadcastEvents != true)) {
all = true;
}
i = tweenList.length;
ip = {};
while (i--) {
if (tweenList[i].mc == mc) {
if (all) {
tweenList.splice(i, 1);
} else {
for (j in props) {
if (tweenList[i].pp == props[j]) {
tweenList.splice(i, 1);
if (ip[targetPath(mc)] == undefined) {
ip[targetPath(mc)] = {t:mc, p:[]};
}
ip[targetPath(mc)].p.push(props[j]);
} else if (((props[j] == "_ct_") && (tweenList[i].ctm != undefined)) && (tweenList[i].mc == mc)) {
tweenList.splice(i, 1);
if (ip[targetPath(mc)] == undefined) {
ip[targetPath(mc)] = {t:mc, p:[]};
}
ip[targetPath(mc)].p.push("_ct_");
}
}
}
}
}
i = ints.length;
while (i--) {
if (ints[i].mc == mc) {
if (all) {
removeDelayedTween(Number(i));
} else {
for (j in props) {
for (var k in ints[i].props) {
if (ints[i].props[k] == props[j]) {
ints[i].props.splice(k, 1);
ints[i].pend.splice(k, 1);
if (ip[targetPath(mc)] == undefined) {
ip[targetPath(mc)] = {t:mc, p:[]};
}
ip[targetPath(mc)].p.push(props[j]);
}
}
if (ints[i].props.length == 0) {
clearInterval(ints[i].intid);
}
}
}
}
}
if (broadcastEvents) {
for (var k in ip) {
if (ip[k].p.length > 0) {
ip[k].t.broadcastMessage("onTweenInterrupt", {target:ip[k].t, props:ip[k].p});
}
}
}
if (tweenList.length == 0) {
deinit();
}
}
};
tp.isTweening = function (mc, prop) {
with (this) {
var allprops = (prop == undefined);
for (var i in tweenList) {
var t = tweenList[i];
if (((tweenList[i].mc == mc) && (tweenList[i].pt == -1)) && ((allprops || (prop == t.pp)) || ((prop == "_ct_") && (t.ctm != undefined)))) {
return(true);
}
}
return(false);
}
};
tp.getTweens = function (mc) {
with (this) {
var count = 0;
for (var i in tweenList) {
if (tweenList[i].mc == mc) {
count++;
}
}
return(count);
}
};
tp.lockTween = function (mc, bool) {
this.lockedTweens[targetPath(mc)] = bool;
};
tp.isTweenLocked = function (mc) {
if (this.lockedTweens[targetPath(mc)] == undefined) {
return(false);
}
return(this.lockedTweens[targetPath(mc)]);
};
tp.ffTween = function (mc, propsObj) {
var all = (mc == undefined);
var allprops = (propsObj == undefined);
with (this) {
for (var i in tweenList) {
var t = tweenList[i];
if (((t.mc == mc) || (all)) && (allprops || (propsObj[t.pp] == true))) {
if (t.pt != -1) {
t.pt = -1;
}
t.ts = now - t.d;
}
}
for (var i in ints) {
if (ints[i] != undefined) {
if ((ints[i].mc == mc) || (all)) {
if (ints[i].mc._x != undefined) {
var args = ints[i].args;
args[3] = 0;
addTween.apply(this, args);
}
removeDelayedTween(Number(i));
}
}
}
update();
}
};
tp.rewTween = function (mc, propsObj) {
var all = (mc == undefined);
var allprops = (propsObj == undefined);
with (this) {
for (var i in tweenList) {
var t = tweenList[i];
if (((t.mc == mc) || (all)) && (allprops || (propsObj[t.pp] == true))) {
if (t.pt != -1) {
t.pt = -1;
}
t.ts = now;
}
}
for (var i in ints) {
if (ints[i] != undefined) {
if ((ints[i].mc == mc) || (all)) {
if (ints[i].mc._x != undefined) {
addTween.apply(this, ints[i].args);
}
removeDelayedTween(Number(i));
}
}
}
update();
}
};
tp.isTweenPaused = function (mc, prop) {
if (mc == undefined) {
return(null);
}
var allprops = (prop == undefined);
with (this) {
for (var i in tweenList) {
var t = tweenList[i];
if ((tweenList[i].mc == mc) && ((allprops || (prop == t.pp)) || ((prop == "_ct_") && (t.ctm != undefined)))) {
return(Boolean(tweenList[i].pt != -1));
}
}
for (var i in ints) {
if ((ints[i] != undefined) && (ints[i].mc == mc)) {
return(Boolean(ints[i].pt != -1));
}
}
}
return(false);
};
tp.pauseTween = function (mc, propsObj) {
var all = (mc == undefined);
with (this) {
if ((all == false) && (isTweenPaused(mc) == true)) {
return(undefined);
}
var allprops = (propsObj == undefined);
for (var i in tweenList) {
var t = tweenList[i];
if (((t.pt == -1) && ((t.mc == mc) || (all))) && ((allprops || (propsObj[t.pp] == true)) || ((propsObj._ct_ != undefined) && (t.ctm != undefined)))) {
t.pt = now;
}
}
for (var i in ints) {
if (ints[i] != undefined) {
if ((ints[i].pt == -1) && ((ints[i].mc == mc) || (all))) {
ints[i].pt = now;
}
}
}
}
};
tp.unpauseTween = function (mc, propsObj) {
var all = (mc == undefined);
with (this) {
if ((all == false) && (isTweenPaused(mc) === false)) {
return(undefined);
}
var allprops = (propsObj == undefined);
if (!playing) {
init();
}
for (var i in tweenList) {
var t = tweenList[i];
if ((((t.pt != -1) && ((t.mc == mc) || (all))) && (allprops || (propsObj[t.pp] == true))) || ((propsObj._ct_ != undefined) && (t.ctm != undefined))) {
t.ts = now - (t.pt - t.ts);
t.pt = -1;
}
}
for (i in ints) {
if (ints[i] != undefined) {
if ((ints[i].pt != -1) && ((ints[i].mc == mc) || (all))) {
ints[i].delay = ints[i].delay - (ints[i].pt - ints[i].st);
ints[i].st = now;
ints[i].intid = setInterval(function (obj, id) {
obj.addTween.apply(obj, obj.ints[id].args);
clearInterval(obj.ints[id].intid);
obj.ints[id] = undefined;
}, ints[i].delay, this, i);
}
}
}
}
};
tp.pauseAll = function () {
pauseTween();
};
tp.unpauseAll = function () {
unpauseTween();
};
tp.stopAll = function () {
with (this) {
for (var i in ints) {
removeDelayedTween(Number(i));
}
tweenList = new Array();
deinit();
}
};
tp.toString = function () {
return("[AS1 tweenManager 1.2.0]");
};
delete tp;
if (_global.$tweenManager == undefined) {
_global.$tweenManager = new tweenManager();
} else {
_global.$tweenManager.cleanUp();
_global.$tweenManager.init();
}
var Mp = MovieClip.prototype;
Mp.addListener = function () {
if (!this._listeners) {
AsBroadcaster.initialize(this);
}
this.addListener.apply(this, arguments);
};
ASSetPropFlags(Mp, "addListener", 1, 0);
Mp.tween = function (props, pEnd, seconds, animType, delay, callback, extra1, extra2) {
if (_global.$tweenManager.isTweenLocked(this)) {
return(undefined);
}
if (arguments.length < 2) {
return(undefined);
}
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
if (!(pEnd instanceof Array)) {
pEnd = [pEnd];
while (pEnd.length < props.length) {
pEnd.push(pEnd[0]);
}
}
if (seconds == undefined) {
seconds = 2;
} else if (seconds < 0.01) {
seconds = 0;
}
if ((delay < 0.01) || (delay == undefined)) {
delay = 0;
}
switch (typeof(animType)) {
case "string" :
var eqf = Math[animType.toLowerCase()];
break;
case "function" :
var eqf = animType;
break;
case "object" :
if (!((animType.pts != undefined) && (animType.ease != undefined))) {
break;
}
var eqf = animType.ease;
var extra1 = animType.pts;
}
if (eqf == undefined) {
var eqf = Math.easeoutexpo;
}
switch (typeof(callback)) {
case "function" :
callback = {func:callback, scope:this._parent};
break;
case "string" :
var ilp;
var funcp;
var scope;
var args;
var a;
ilp = callback.indexOf("(");
funcp = callback.slice(0, ilp);
scope = eval (funcp.slice(0, funcp.lastIndexOf(".")));
func = eval (funcp);
args = callback.slice(ilp + 1, callback.lastIndexOf(")")).split(",");
var i = 0;
while (i < args.length) {
a = eval (args[i]);
if (a != undefined) {
args[i] = a;
}
i++;
}
callback = {func:func, scope:scope, args:args};
}
if (_global.$tweenManager.autoStop) {
_global.$tweenManager.removeTween(this);
}
if (delay > 0) {
_global.$tweenManager.addTweenWithDelay(delay, this, props, pEnd, seconds, eqf, callback, extra1, extra2);
} else {
_global.$tweenManager.addTween(this, props, pEnd, seconds, eqf, callback, extra1, extra2);
}
};
Mp.stopTween = function (props) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_global.$tweenManager.removeTween(this, props);
};
Mp.isTweening = function (_param1) {
return(_global.$tweenManager.isTweening(this, prop));
};
Mp.getTweens = function () {
return(_global.$tweenManager.getTweens(this));
};
Mp.lockTween = function () {
_global.$tweenManager.lockTween(this, true);
};
Mp.unlockTween = function () {
_global.$tweenManager.lockTween(this, false);
};
Mp.isTweenLocked = function () {
return(_global.$tweenManager.isTweenLocked(this));
};
Mp.isTweenPaused = function (_param1) {
return(_global.$tweenManager.isTweenPaused(this, prop));
};
Mp.pauseTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.pauseTween(this, _local4);
};
Mp.unpauseTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.unpauseTween(this, _local4);
};
Mp.pauseAllTweens = function () {
_global.$tweenManager.pauseTween();
};
Mp.unpauseAllTweens = function () {
_global.$tweenManager.unpauseTween();
};
Mp.stopAllTweens = function () {
_global.$tweenManager.stopAll();
};
Mp.ffTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.ffTween(this, _local4);
};
Mp.rewTween = function (props) {
var _local4;
if (props != undefined) {
if (typeof(props) == "string") {
if (props.indexOf(",") > -1) {
props = props.split(" ").join("").split(",");
} else {
props = [props];
}
}
_local4 = {};
for (var _local5 in props) {
_local4[props[_local5]] = true;
}
}
_global.$tweenManager.rewTween(this, _local4);
};
Mp.alphaTo = function (destAlpha, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_alpha"], [destAlpha], seconds, animType, delay, callback, extra1, extra2);
};
Mp.scaleTo = function (destScale, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [destScale, destScale], seconds, animType, delay, callback, extra1, extra2);
};
Mp.sizeTo = function (destSize, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_width", "_height"], [destSize, destSize], seconds, animType, delay, callback, extra1, extra2);
};
Mp.slideTo = function (destX, destY, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [destX, destY], seconds, animType, delay, callback, extra1, extra2);
};
Mp.rotateTo = function (destRotation, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_rotation"], [destRotation], seconds, animType, delay, callback, extra1, extra2);
};
_global.getColorTransObj = function (type, amt, rgb) {
switch (type) {
case "brightness" :
var _local5 = 100 - Math.abs(amt);
var _local7 = 0;
if (amt > 0) {
_local7 = 256 * (amt / 100);
}
return({ra:_local5, rb:_local7, ga:_local5, gb:_local7, ba:_local5, bb:_local7});
case "brightOffset" :
_local7 = 256 * (amt / 100);
return({ra:100, rb:_local7, ga:100, gb:_local7, ba:100, bb:_local7});
case "contrast" :
var _local3 = {};
_local3.ra = (_local3.ga = (_local3.ba = amt));
_local3.rb = (_local3.gb = (_local3.bb = 128 - (1.28 * amt)));
return(_local3);
case "invertColor" :
_local3 = {};
_local3.ra = (_local3.ga = (_local3.ba = 100 - (2 * amt)));
_local3.rb = (_local3.gb = (_local3.bb = amt * 2.55));
return(_local3);
case "tint" :
if ((rgb == undefined) || (rgb == null)) {
} else {
var _local9 = rgb >> 16;
var _local10 = (rgb >> 8) & 255;
var _local8 = rgb & 255;
var _local6 = amt / 100;
_local3 = {rb:_local9 * _local6, gb:_local10 * _local6, bb:_local8 * _local6};
_local3.ra = (_local3.ga = (_local3.ba = 100 - amt));
return(_local3);
}
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
};
Mp.brightnessTo = function (bright, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [_global.getColorTransObj("brightness", bright)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.brightOffsetTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [_global.getColorTransObj("brightOffset", percent)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.contrastTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [_global.getColorTransObj("contrast", percent)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.colorTo = function (rgb, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [_global.getColorTransObj("tint", 100, rgb)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, animType, delay, callback, extra1, extra2) {
var _local2 = {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab};
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
Mp.invertColorTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [_global.getColorTransObj("invertColor", percent)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.tintTo = function (rgb, percent, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_ct_"], [_global.getColorTransObj("tint", percent, rgb)], seconds, animType, delay, callback, extra1, extra2);
};
Mp.getFrame = function () {
return(this._currentframe);
};
Mp.setFrame = function (fr) {
this.gotoAndStop(Math.round(fr));
};
Mp.addProperty("_frame", Mp.getFrame, Mp.setFrame);
Mp.frameTo = function (endframe, duration, animType, delay, callback, extra1, extra2) {
if (endframe == undefined) {
endframe = this._totalframes;
}
this.tween("_frame", endframe, duration, animType, delay, callback, extra1, extra2);
};
var TFP = TextField.prototype;
if (!TFP.origAddListener) {
TFP.origAddListener = TFP.addListener;
ASSetPropFlags(TFP, "origAddListener", 1, 0);
TFP.addListener = function () {
if (!this._listeners) {
AsBroadcaster.initialize(this);
}
this.origAddListener.apply(this, arguments);
};
}
var methods:Array = ["tween", "stopTween", "isTweening", "getTweens", "lockTween", "isTweenLocked", "unlockTween", "isTweenPaused", "pauseTween", "unpauseTween", "pauseAllTweens", "unpauseAllTweens", "stopAllTweens", "ffTween", "rewTween", "getFrame", "setFrame", "_frame", "frameTo", "alphaTo", "brightnessTo", "colorTo", "colorTransformTo", "invertColorTo", "tintTo", "scaleTo", "sizeTo", "slideTo", "rotateTo", "brightOffsetTo", "contrastTo"];
for (var i in methods) {
ASSetPropFlags(Mp, methods[i], 1, 0);
if (methods[i].toLowerCase().indexOf("frame") == -1) {
TFP[methods[i]] = Mp[methods[i]];
ASSetPropFlags(TFP, methods[i], 1, 0);
}
}
delete Mp;
delete TFP;
delete methods;
$tweenManager.broadcastEvents = true;
Sound.prototype.fade = function (fadeType, fadeDuration, maxVolume) {
this.fadeDuration = (fadeDuration * 1000) / 100;
this.fadeType = fadeType;
this.currentVolume = this.getVolume();
this.intID = setInterval(function (thisObj) {
thisObj.doFade(thisObj.fadeType);
}, this.fadeDuration, this);
this.doFade = function (fadeType) {
if (fadeType == "out") {
this.setVolume(this.currentVolume--);
if (this.getVolume() <= 0) {
this.onFadeComplete();
clearInterval(this.intID);
}
} else if (fadeType == "in") {
this.setVolume(this.currentVolume++);
if (this.getVolume() >= maxVolume) {
this.onFadeComplete();
clearInterval(this.intID);
}
}
};
};
Math.toIOO = function (n) {
if (n < -100) {
n = -100;
}
if (n > 100) {
n = 100;
}
return(Math.floor(n));
};
Math.gaussianRandom = function () {
var _local2;
var _local1;
var _local3;
do {
_local2 = (2 * Math.random()) - 1;
_local1 = (2 * Math.random()) - 1;
_local3 = (_local2 * _local2) + (_local1 * _local1);
} while (_local3 >= 1);
return(_local1 * Math.sqrt((-2 * Math.log(_local3)) / _local3));
};
Math.sign = function (n) {
if (!n) {
n = 0;
} else {
n = n / Math.abs(n);
}
return(n);
};
Math.toPoint = function (vec) {
var _local1 = (vec.a / 180) * Math.PI;
var _local4 = vec.r * Math.cos(_local1);
var _local3 = (vec.r * Math.sin(_local1)) * -1;
return({x:_local4, y:_local3});
};
Math.toPolar = function (vec) {
var _local2 = (Math.atan2(vec.y, vec.x) * 180) / Math.PI;
var _local3 = Math.sqrt((vec.x * vec.x) + (vec.y * vec.y));
return({a:_local2, r:_local3});
};
MovieClip.prototype.addProperty("_topdepth", function () {
var _local3;
var _local2;
var _local4;
for (_local2 in this) {
_local3 = this[_local2];
if (((_local3._name == _local2) & (_local3 instanceof MovieClip)) & (_local3._parent == this)) {
_local4 = this[_local2].getDepth() + 1;
return(((_local4 < 1) ? 1 : (_local4)));
}
}
return(1);
}, null);
ASSetPropFlags(MovieClip.prototype, "_topdepth", 7, 1);
MovieClip.prototype.scaleNowTo = function (scale) {
this._xscale = (this._yscale = scale);
};
MovieClip.prototype.getMaxScale = function () {
return(Math.max(this._xscale, this._yscale));
};
MovieClip.prototype.addProperty("_scale", null, MovieClip.prototype.scaleNowTo);
ASSetPropFlags(MovieClip.prototype, "_scale", 7, 1);
MovieClip.prototype.invert = function () {
ca = -100;
cb = 255;
var _local2 = new Color(this);
_local2.setTransform({ra:-88, ga:ca, ba:ca, rb:cb, gb:cb, bb:cb});
};
MovieClip.prototype.invertE = function (duration) {
ca = -100;
cb = 255;
var _local2 = new Color(this);
this.colorTransformTo(-66, cb, -96, cb, ca, cb, 100, 0, duration, "easeOutElastic", 0, "", 200, 5);
};
MovieClip.prototype.rot = function () {
ca = 100;
cb = 0;
var _local2 = new Color(this);
_local2.setTransform({ra:ca, ga:ca, ba:ca, rb:111, gb:55, bb:44});
};
MovieClip.prototype.rotE = function (duration) {
ca = 100;
cb = 0;
var _local2 = new Color(this);
this.colorTransformTo(ca, 111, ca, 55, ca, 44, 100, 0, duration, "easeOutElastic");
};
MovieClip.prototype.slightlyRotE = function (duration) {
ca = 100;
cb = 0;
var _local2 = new Color(this);
this.colorTransformTo(ca, 23, ca, -31, ca, -43, 100, 0, duration, "easeOutElastic");
};
MovieClip.prototype.restoreColor = function () {
ca = 100;
cb = 0;
var _local2 = new Color(this);
_local2.setTransform({ra:ca, ga:ca, ba:ca, rb:cb, gb:cb, bb:cb});
};
MovieClip.prototype.restoreColorE = function (duration) {
ca = 100;
cb = 0;
var _local2 = new Color(this);
this.colorTransformTo(ca, cb, ca, cb, ca, cb, ca, cb, duration, "easeOutElastic");
};
MovieClip.prototype.HLonMouseOver = (Button.prototype.HLonMouseOver = function () {
this._parent.stopTween("_ct_");
this._parent.restoreColor();
this._parent.rot();
});
MovieClip.prototype.HLonMouseOut = (Button.prototype.HLonMouseOut = function () {
this._parent.stopTween("_ct_");
this._parent.rot();
this._parent.restoreColorE(1.1);
});
MovieClip.prototype.HLonMouseRelease = (Button.prototype.HLonMouseRelease = function () {
this._parent.stopTween("_ct_");
this._parent.restoreColor();
});
(Stage.scaleMode = "noscale");
(Stage.align = "TL");
(Stage.showMenu = false);
Stage.addListener(Stage);
Stage.addListener(_root.prepreloader_mc);
_root.prepreloader_mc.swapDepths(999);
Stage.onResize = function () {
var _local3 = Math.max(Stage.width, 500);
var _local2 = Math.max(Stage.height, 300);
this.broadcastMessage("onStageResize", _local3, _local2);
};
_root.prepreloader_mc.onStageResize = function (w, h) {
this._x = w / 9;
this._y = h * 0.2;
};
Stage.onResize();
loadMovieNum ("preloader.swf", 1000);
this.onEnterFrame = function () {
var _local4 = _level1000.getBytesLoaded() / _level1000.getBytesTotal();
_local4 = _local4 || 0;
if (_local4 >= 1) {
i = setInterval(function () {
_root.prepreloader_mc.removeMovieClip();
clearInterval(i);
}, 300);
loadMovieNum ("main_menu.swf", 1);
var _local5 = showPreload("_level1", 0.111111111111111, 0.2);
delete this.onEnterFrame;
this.onEnterFrame = function () {
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
_local3 = _local3 || 0;
if (_local3 >= 1) {
delete this.onEnterFrame;
}
};
}
};
Frame 4
this.stop();
Frame 5
this.prevFrame();
Symbol 2 MovieClip [empty_mc] Frame 1
#initclip 1
MovieClip.prototype.addProperty("topDepth", function () {
var _local3;
var _local2;
var _local4;
for (_local2 in this) {
_local3 = this[_local2];
if (((_local3._name == _local2) & (_local3 instanceof MovieClip)) & (_local3._parent == this)) {
_local4 = this[_local2].getDepth() + 1;
return(((_local4 < 1) ? 1 : (_local4)));
}
}
return(1);
}, null);
ASSetPropFlags(MovieClip.prototype, "topDepth", 7, 1);
#endinitclip
Symbol 15 MovieClip [bg_mc] Frame 1
#initclip 2
this.setBgClass = function () {
delete this.setBgClass;
var _local4 = function () {
AsBroadcaster.initialize(this);
Stage.addListener(this);
this.init();
this.onStageResize(Stage.width, Stage.height);
};
Object.registerClass("bg_mc", _local4);
var _local3 = (_local4.prototype = new MovieClip());
_local3.init = function () {
this.bgshift = new Sound();
this.bgshift.attachSound("bg_shift");
this.bgWrap();
};
_local3.onStageResize = function (w, h) {
this.bgWrap();
};
_local3.bgWrap = function () {
if (this._x <= (this._width / 2)) {
this._x = this._x + (this._width / 2);
}
if (this._x >= (this._width / 2)) {
this._x = this._x - (this._width / 2);
}
};
_root.onShiftEnd = function () {
i = 0;
while (i < 3) {
this.bg_mc.bgWrap();
i++;
}
this.bg_mc.onEnterFrame = null;
};
_local3.elasticShift = function (shift, duration) {
this.bgshift.start();
this.onEnterFrame = function () {
this.bgWrap();
};
this.tween("_x", this._x + shift, duration || 0.93, "EaseInOutElastic", 0, onShiftEnd);
};
};
this.setBgClass();
#endinitclip