home *** CD-ROM | disk | FTP | other *** search
- function setTrackTimes(§#1§, n)
- {
- var _loc4_ = new Date(_global["#0"].ta[n] * Vars["#23"]);
- var _loc7_ = new Date(_global["#0"].bla[n] * Vars["#23"]);
- §#1§.pb.text = _loc4_.valueOf() <= 0 ? "-:--:--" : eval("#17").time(_loc4_.valueOf());
- §#1§.pbLap.text = _loc7_.valueOf() <= 0 ? "-:--:--" : eval("#17").time(_loc7_.valueOf());
- if(_global["#0"].isChallenger)
- {
- var _loc2_ = new Date(_global["#0"].cta[n] * Vars["#23"]);
- var _loc5_ = new Date(_global["#0"].cla[n] * Vars["#23"]);
- §#1§.challenger.text = _loc2_.valueOf() <= 0 ? "-:--:--" : eval("#17").time(_loc2_.valueOf());
- §#1§.challengerLap.text = _loc5_.valueOf() <= 0 ? "-:--:--" : eval("#17").time(_loc5_.valueOf());
- }
- }
- function setVals(arr)
- {
- var _loc4_ = "";
- var _loc1_ = 0;
- while(_loc1_ < arr.length)
- {
- _loc4_ += eval("#17").zerofill(arr[_loc1_],5);
- _loc1_ = _loc1_ + 1;
- }
- var _loc2_ = _loc4_.split("");
- _loc1_ = 0;
- while(_loc1_ < _loc2_.length)
- {
- _loc2_[_loc1_] = (Number(_loc2_[_loc1_]) + 4) % 10;
- _loc1_ = _loc1_ + 1;
- }
- return eval("#10")["#107"](_loc2_.join(""));
- }
- function onhttpstatus(httpStatus)
- {
- var _loc1_ = undefined;
- if(httpStatus < 100)
- {
- _loc1_ = "flashError";
- }
- else if(httpStatus < 200)
- {
- _loc1_ = "informational";
- }
- else if(httpStatus < 300)
- {
- _loc1_ = "successful";
- }
- else if(httpStatus < 400)
- {
- _loc1_ = "redirection";
- }
- else if(httpStatus < 500)
- {
- _loc1_ = "clientError";
- }
- else if(httpStatus < 600)
- {
- _loc1_ = "serverError";
- }
- trace("HTTP stauts code: " + httpStatus + ", type: " + _loc1_);
- }
- function openWindow(url, popup, options)
- {
- if(popup)
- {
- if(ExternalInterface.call("eval","true"))
- {
- ExternalInterface.call("open",url,"popup",options);
- return undefined;
- }
- if(_global["#0"].isMaster && _global["#0"].isJavascriptEnabled)
- {
- getURL("javascript:void window.open( \"" + url + "\", \"\" , \"" + options + "\");","");
- return undefined;
- }
- }
- getURL(url,"_blank");
- }
- function §#40§()
- {
- if(_global["#0"].raceResult == "won" && _global["#0"].sceneBg == "norway")
- {
- frame = "complete";
- }
- if(isChallenger)
- {
- if(_global["#0"].ta[_global["#0"].tn] < _global["#0"].cta[_global["#0"].tn] || _global["#0"].cta[_global["#0"].tn] == 0)
- {
- frame += "BeatChallenge";
- }
- else
- {
- frame += "#110";
- }
- }
- nextMenuPage = "postRace";
- gotoAndStop("menu");
- }
-