
(function($,Edge,compId){var Composition=Edge.Composition,Symbol=Edge.Symbol;
//Edge symbol: 'stage'
(function(symbolName){Symbol.bindElementAction(compId,symbolName,"document","compositionReady",function(sym,e){var RTL="false";var numberofRaces=19;var numberofTeams=11;var gnYear=2014;var gn=31261;var screenArr=['mapIntro','driverchampMc','teamChampMc','driversMc','liveMc','circuitMc','timingMc','resultMc'];var teamArr=['RBR','MER','FER','LOT','MLA','FOR','SAU','TOR','WIL','MAR','CAT'];var countryArr=['aus','mas','brn','chn','esp','mon','can','aut','eng','ger','hun','bel','ita','sin','jpn','rus','usa','bra','uae'];for(var m=0;m<countryArr.length;m++){sym.getSymbol("mapIntro").getSymbol("mapBtn"+m).$("btnTxt").text(m+1);sym.getSymbol("mapIntro").$("mapBtn"+m).on('mouseover',{'count':m},showButton);sym.getSymbol("mapIntro").$("mapBtn"+m).on('mouseout',{'count':m},hideButton);}
function showButton(e){var btn_id=(e.data.count);sym.getSymbol("mapIntro").getSymbol("mapBtn"+btn_id).$("btnBg").css({'background-color':'rgb(255,0,0)'});}
function hideButton(e){var btn_id=(e.data.count);sym.getSymbol("mapIntro").getSymbol("mapBtn"+btn_id).$("btnBg").css({'background-color':'rgb(0,0,0)'});}
var menuText=[];for(var i=0;i<9;i++){menuText[i]=sym.getSymbol("menuButtons").getSymbol("menuBtn"+i).$("menuTxt").css("pointer-events","none");sym.getSymbol("menuButtons").getSymbol("menuBtn"+i).$("icon").attr('src','images/menuIcon'+i+'.png');}
var menuTxtArr=[];var phaseBtnTxt=[];for(var p=0;p<8;p++){phaseBtnTxt[p]=sym.getSymbol("menuButtons").getSymbol("phaseBtn"+p).$("phaseTxt").css("pointer-events","none");}
var phaseTxtArr=[];var capsText=[];capsText[0]=sym.getSymbol("circuitMc").$("weatherTxt").css("pointer-events","none");capsText[1]=sym.getSymbol("circuitMc").$("gearTxt").css("pointer-events","none");capsText[2]=sym.getSymbol("circuitMc").$("speedTxt").css("pointer-events","none");capsText[3]=sym.getSymbol("circuitMc").$("key1").css("pointer-events","none");capsText[4]=sym.getSymbol("circuitMc").$("key2").css("pointer-events","none");capsText[5]=sym.getSymbol("circuitMc").$("key3").css("pointer-events","none");capsText[6]=sym.getSymbol("driversMc").$("detailstxt").css("pointer-events","none");capsText[7]=sym.getSymbol("liveMc").$("lapTxt").css("pointer-events","none");capsText[8]=sym.getSymbol("liveMc").$("timeTxt").css("pointer-events","none");capsText[9]=sym.getSymbol("resultMc").$("resultTxt").css("pointer-events","none");var caps=[];var raceText=[];raceText[0]=sym.getSymbol("circuitMc").$("gpTxt").css("pointer-events","none");raceText[1]=sym.getSymbol("circuitMc").$("venueTxt").css("pointer-events","none");raceText[2]=sym.getSymbol("circuitMc").$("distanceTxt").css("pointer-events","none");raceText[3]=sym.getSymbol("circuitMc").$("lapTxt").css("pointer-events","none");sym.getSymbol("timingMc").$("gpTxt").css("pointer-events","none");sym.getSymbol("liveMc").$("gpTxt").css("pointer-events","none");sym.getSymbol("resultMc").$("gpTxt").css("pointer-events","none");sym.getSymbol("driverchampMc").$("driversTxt0").css("pointer-events","none");var teamText=[];for(var tt=0;tt<10;tt++){teamText[tt]=sym.getSymbol("driversMc").$("teamTxt"+tt).css("pointer-events","none");}
var months;var champHead=[];var raceArr=[];var raceCorners=[];for(var r=0;r<numberofRaces;r++){raceArr[r]=[];raceCorners[r]=[];}
var gpDate=[];var teamTxtArr=[];var driverID=[];for(var t=0;t<teamArr.length;t++){teamTxtArr[t]=[];driverID[t]=[];}
var keyWidth;$.ajax({type:"GET",url:"GN31524.xml",dataType:"xml",success:function(xml){var headline=$(xml).find('headline').text();var source=$(xml).find('source').text();sym.getSymbol('styleMc').$('headlinetxt').html(headline);sym.getSymbol('styleMc').getSymbol('styleBase').$('sourceTxt').html(source);for(var i=0;i<menuText.length;i++){menuTxtArr[i]=$(xml).find('menu'+i).text();menuText[i].html(menuTxtArr[i]);}
var phaseString=$(xml).find('phasebuttons').text();phaseTxtArr=phaseString.split(";");for(var p=0;p<8;p++){phaseBtnTxt[p].html(phaseTxtArr[p]);}
for(var h=0;h<3;h++){champHead[h]=$(xml).find('head'+h).text();}
sym.getSymbol("mapIntro").$("headTxt").html(champHead[0]);sym.getSymbol("driverchampMc").$("driversTxt0").html(champHead[1]);var monthstring=$(xml).find('months').text();months=monthstring.split(";");var statCapString=$(xml).find('statusCap').text();statCap=statCapString.split(";");for(var c=0;c<capsText.length;c++){caps[c]=$(xml).find('cap'+c).text();capsText[c].html(caps[c]);}
caps[10]=$(xml).find('cap10').text();caps[11]=$(xml).find('cap11').text();caps[12]=$(xml).find('cap12').text();sym.getSymbol("timingMc").$("timeTxt").html(caps[8]);for(var r=0;r<raceArr.length;r++){$(xml).find("race"+r).each(function(){var $races=$(this);for(var n=0;n<5;n++){raceArr[r][n]=$races.find('raceCap'+n).text();}
gpDate[r]=$races.find('raceDate').text();var cornerString=$races.find('corners').text();raceCorners[r]=cornerString.split(";");});}
for(var i=0;i<raceText.length;i++){raceText[i].html(raceArr[0][i]);}
for(var t=0;t<teamArr.length;t++){$(xml).find("team"+t).each(function(){var $teams=$(this);for(var m=0;m<10;m++){teamTxtArr[t][m]=$teams.find('teamCap'+m).text();}
for(var d=0;d<2;d++){driverID[t][d]=$teams.find('driverid'+(d+1)).text();}});}
getStats('RBR',3);sym.getSymbol(screenArr[3]).getSymbol("driveCar0").$("mainCar").attr("src","cars/"+teamArr[0]+"big.png");sym.getSymbol(screenArr[3]).getSymbol("driveCar0").$("reflection").attr("src","cars/"+teamArr[0]+"big.png");sym.getSymbol(screenArr[3]).getSymbol("driveCar0").$("driverHead").attr("src","drivers/"+teamArr[0]+".png");sym.getSymbol(screenArr[3]).getSymbol("driveCar0").$("bkwheel").attr("src","cars/"+teamArr[0]+"bk.png");sym.getSymbol(screenArr[3]).getSymbol("driveCar0").$("frwheel").attr("src","cars/"+teamArr[0]+"fr.png");}});var seasonInterval;var conInterval;var driverInterval;var gpInterval;var phaseInterval;var latestGP;var latestGPno;menuArray=[];for(var m=0;m<9;m++){var menuBtnSymbols=sym.getSymbol("menuButtons").getSymbol("menuBtn"+m);menuBtnSymbols.setVariable("menuId",m);menuArray.push(menuBtnSymbols);sym.getSymbol("menuButtons").$("menuBtn"+m).css({"cursor":"pointer"});}
function resetmenu(){sym.getSymbol("menuButtons").$("menuBtn5xtra").stop().animate({'top':'-245px'},400);sym.getSymbol("menuButtons").$("menuBtn2xtra").stop().animate({'top':'-55px'},400);sym.getSymbol("menuButtons").$("teamBtns").stop().animate({'top':'-500px'},400);for(var i=0;i<menuArray.length;i++){menuArray[i].$("menuBg").fadeIn(0);sym.getSymbol(screenArr[2]).$("carPic").animate({'left':'-800px'},0);sym.$(screenArr[i]).fadeOut(200);}
clicked=0;}
var raceIDno;var raceNo=0;var clicked=0;function menuBtnClick(e){e.preventDefault();e.stopPropagation();var menuMenu_id=(e.data.menuId);if(menuMenu_id<=4){sym.$("menuButtons").stop().animate({'left':'560px'},400);for(var n=0;n<19;n++){$("#gp"+n).css({'background-color':'rgba(230,225,215,0)'});sym.getSymbol("mapIntro").getSymbol("mapBtn"+n).$("btnBg").css({'background-color':'rgb(0,0,0)'});sym.getSymbol("mapIntro").$("mapBtn"+n).unbind('click');}}else{sym.$("menuButtons").stop().animate({'left':'380px'},400);}
if(menuMenu_id==1){if(clicked==1){sym.getSymbol("menuButtons").$("menuBtn2xtra").stop().animate({'top':'-55px'},400);clicked=0;}else{sym.getSymbol("menuButtons").$("menuBtn2xtra").stop().animate({'top':'40px'},400);sym.getSymbol("menuButtons").$("menuBtn5xtra").stop().animate({'top':'-245px'},400);sym.getSymbol("menuButtons").$("teamBtns").stop().animate({'top':'-500px'},400);clicked=1;}}else if(menuMenu_id==4){if(clicked==4){sym.getSymbol("menuButtons").$("teamBtns").stop().animate({'top':'-500px'},400);clicked=0;}else{sym.getSymbol("menuButtons").$("teamBtns").stop().animate({'top':'40px'},400);sym.getSymbol("menuButtons").$("menuBtn5xtra").stop().animate({'top':'-245px'},400);sym.getSymbol("menuButtons").$("menuBtn2xtra").stop().animate({'top':'-55px'},400);clicked=4;}}else if(menuMenu_id==7){if(clicked==7){sym.getSymbol("menuButtons").$("menuBtn5xtra").stop().animate({'top':'-245px'},400);clicked=0;}else{sym.getSymbol("menuButtons").$("menuBtn5xtra").stop().animate({'top':'40px'},400);sym.getSymbol("menuButtons").$("menuBtn2xtra").stop().animate({'top':'-55px'},400);sym.getSymbol("menuButtons").$("teamBtns").stop().animate({'top':'-500px'},400);clicked=7;}}else{resetmenu();for(i=0;i<9;i++){if(i==menuMenu_id){if(menuMenu_id==0){getSeason();clearInterval(seasonInterval);seasonInterval=setInterval(getSeason,900000);getRace(latestGP);}
if(menuMenu_id<=1){sym.$(screenArr[menuMenu_id]).fadeIn(200);menuArray[i].$("menuBg").delay(400).fadeOut(0);}else if(menuMenu_id>1){sym.$(screenArr[menuMenu_id-1]).fadeIn(200);menuArray[i].$("menuBg").fadeOut(0);}
if(menuMenu_id==2){getDriverStandings();}
if(menuMenu_id==3){getConsStandings();sym.getSymbol(screenArr[2]).$("carPic").delay(200).stop().animate({left:0},800,'easeOutCirc');sym.getSymbol(screenArr[2]).getSymbol("carPic").play();}
if(menuMenu_id==5){sym.$("menuButtons").stop().animate({'left':'380px'},400);}
if(menuMenu_id==6){playIt(latestGPno);captionShift();}}else{if(menuMenu_id!=1){sym.$(screenArr[i]).fadeOut(400);}}}}}
menuArray[0].$("menuBg").fadeOut(0);var carPos=0;var hidden=1;var showTeam=function(teamdetails,longteam){return function(e){resetmenu();sym.$(screenArr[3]).fadeIn(200);menuArray[4].$("menuBg").fadeOut(0);getStats(teamdetails,3);if(carPos==0){carPos=1;hidden=0;}else{carPos=0;hidden=1;}
sym.getSymbol("driversMc").$("driveCar"+carPos).css({'left':-800});sym.getSymbol("driversMc").getSymbol("driveCar"+carPos).$("mainCar").attr("src","cars/"+teamdetails+"big.png");sym.getSymbol("driversMc").getSymbol("driveCar"+carPos).$("reflection").attr("src","cars/"+teamdetails+"big.png");sym.getSymbol("driversMc").getSymbol("driveCar"+carPos).$("driverHead").attr("src","drivers/"+teamdetails+".png");sym.getSymbol("driversMc").getSymbol("driveCar"+carPos).$("bkwheel").attr("src","cars/"+teamdetails+"bk.png");sym.getSymbol("driversMc").getSymbol("driveCar"+carPos).$("frwheel").attr("src","cars/"+teamdetails+"fr.png");sym.getSymbol("driversMc").$("driveCar"+carPos).delay(1600).stop().animate({left:0},1100);sym.getSymbol("driversMc").getSymbol("driveCar"+carPos).play();sym.getSymbol("driversMc").$("driveCar"+hidden).stop().animate({left:815},800);sym.getSymbol("driversMc").getSymbol("driveCar"+hidden).play();var team=teamdetails;e.preventDefault();e.stopPropagation();};};for(var j=0;j<teamArr.length;j++){sym.getSymbol("menuButtons").getSymbol("teamBtns").$("teamBtn"+j).css({"cursor":'pointer'});sym.getSymbol("menuButtons").getSymbol("teamBtns").$("teamBtn"+j).click(showTeam(teamArr[j],teamTxtArr[j][0]));}
var d=new Date();function getDDMMYY(thisDateStr){var dateTxt=thisDateStr.substring(thisDateStr.indexOf('(')+1,thisDateStr.indexOf(')'));var thisDate=new Date(parseInt(dateTxt,10));var mm=thisDate.getMonth()+1;var dd=thisDate.getDate()+1;mm=((mm<10)?'0':"")+mm;dd=((dd<10)?'0':"")+dd;return dd+"/"+mm+"/"+(thisDate.getFullYear()).toString();}
function getDDmonthYY(thisDateStr){var dateTxt=thisDateStr.substring(thisDateStr.indexOf('(')+1,thisDateStr.indexOf(')'));var thisDate=new Date(parseInt(dateTxt,10));var mm=thisDate.getMonth();var dd=thisDate.getDate()+1;return months[mm]+" "+dd+", "+(thisDate.getFullYear()).toString();}
var dataURL=('http:'==document.location.protocol?"http://www2.graphicnews.com/":"https://www.graphicnews.org/")+"infostradasports/api.php";var raceFinished=0;function captionShift(){var statWidth=sym.getSymbol("circuitMc").$("statusTxt").width();sym.getSymbol("circuitMc").$("statusTxt").css({'left':465-statWidth});capsText[4].animate({left:5+capsText[3].width()+20},0);capsText[5].animate({left:5+capsText[3].width()+capsText[4].width()+40},0);raceText[2].animate({left:5+raceText[3].width()+20},0);}
function raceDetails(gp,gpNo){getRace(gp);latestGP=gp;for(var i=0;i<raceText.length;i++){raceText[i].html(raceArr[gpNo][i]);}
for(var r=0;r<raceCorners[gpNo].length;r++){sym.getSymbol("circuitMc").getSymbol(countryArr[gpNo]+"Mc").$("corner"+r).html(raceCorners[gpNo][r]);}
sym.getSymbol("resultMc").$("gpTxt").html(raceArr[gpNo][0]+" "+statCap[7]);sym.getSymbol("liveMc").$("gpTxt").html(raceArr[gpNo][0]);sym.getSymbol("timingMc").$("gpTxt").html(raceArr[gpNo][0]);for(var n=0;n<countryArr.length;n++){if(n==gpNo){sym.getSymbol("circuitMc").$(countryArr[gpNo]+"Mc").show();}else{sym.getSymbol("circuitMc").$(countryArr[n]+"Mc").hide();}}
sym.getSymbol("circuitMc").$("circuitImg").attr('src','images/'+countryArr[gpNo]+'circuit.jpg');}
var showGP=function(gp,status,gpNo){return function(e){resetmenu();for(var r=0;r<19;r++){sym.getSymbol("circuitMc").getSymbol(countryArr[r]+"Mc").getSymbol("carMc").stop();sym.getSymbol("circuitMc").getSymbol(countryArr[r]+"Mc").stop();}
sym.getSymbol("menuButtons").$("menuBtn8").unbind('click');sym.getSymbol("circuitMc").$("weather").attr('src','images/weather0.png');sym.getSymbol("circuitMc").$("weatherTxt").hide();sym.getSymbol("circuitMc").$("statusTxt").html(statCap[4]);sym.getSymbol("circuitMc").$("statusTxt").css({"background-color":"rgb(100,100,100)","box-shadow":"2px 2px 3px 1px rgba(0,0,0,0.2)"});sym.getSymbol("liveMc").$("statusTxt").html(statCap[4]);for(var n=0;n<8;n++){sym.getSymbol("menuButtons").getSymbol("phaseBtn"+n).$("btnBg").css({'background-color':'rgb(93,93,93)','border':'solid 1px rgb(255,255,255)'});sym.getSymbol("menuButtons").$("phaseBtn"+n).unbind('click');}
raceDetails(gp,gpNo);sym.getSymbol("timingMc").$("loading").fadeIn(0);sym.getSymbol("liveMc").$("loading").fadeIn(0);sym.getSymbol("resultMc").$("loading").fadeIn(0);sym.getSymbol("timingMc").$("graph").empty();sym.getSymbol("timingMc").getSymbol("gridSlider").getSymbol("grid").$("gridtxt").empty();for(var i=0;i<22;i++){sym.getSymbol("timingMc").getSymbol("gridSlider").getSymbol("grid").$("grid"+i).stop().animate({'top':781},0);sym.getSymbol("timingMc").getSymbol("gridSlider").getSymbol("grid").$("grid"+i).empty();}
sym.getSymbol("timingMc").$("gridSlider").fadeOut(0);sym.getSymbol("timingMc").$("graph").fadeOut(0);sym.getSymbol("timingMc").$("timeTxt").fadeOut(0);clearInterval(seasonInterval);if(status==0){menuArray[6].$("menuBg").fadeOut(0);sym.$(screenArr[5]).fadeIn(200);captionShift();playIt(gpNo);}else if(status==2){menuArray[7].$("menuBg").fadeOut(0);sym.$(screenArr[4]).fadeIn(200);}else if(status==4){menuArray[8].$("menuBg").fadeOut(0);sym.$(screenArr[7]).fadeIn(200);}
sym.$("menuButtons").animate({'left':'380px'},400);if(gpNo<6){sym.getSymbol('calendarMc').$('graph').stop().animate({scrollTop:gpNo*45+'px'},400);}else{sym.getSymbol('calendarMc').$('graph').stop().animate({scrollTop:'549px'},400)}
for(var n=0;n<19;n++){if(gpNo==n){$("#gp"+gpNo).css({'background-color':'rgba(255,225,215,0.6)'});sym.getSymbol("mapIntro").getSymbol("mapBtn"+gpNo).$("btnBg").css({'background-color':'rgb(255,0,0)'});}else{$("#gp"+n).css({'background-color':'rgba(230,225,215,0)'});sym.getSymbol("mapIntro").getSymbol("mapBtn"+n).$("btnBg").css({'background-color':'rgb(0,0,0)'});}}
latestGPno=gpNo;e.preventDefault();e.stopPropagation();};};function playIt(number){sym.getSymbol("circuitMc").getSymbol(countryArr[number]+"Mc").getSymbol("carMc").play();setTimeout(function(){sym.getSymbol("circuitMc").getSymbol(countryArr[number]+"Mc").play(1);},200);}
var gridClicker=function(phaseNo){return function(e){getGrid(phaseNo);resetmenu();menuArray[7].$("menuBg").fadeOut(0);sym.getSymbol("menuButtons").$("menuBtn5xtra").stop().animate({'top':'-245px'},400);for(var i=0;i<6;i++){sym.getSymbol('menuButtons').getSymbol('phaseBtn'+i).$('btnBg').css({'background-color':'rgb(93,93,93)'});}
sym.getSymbol('menuButtons').getSymbol('phaseBtn6').$('btnBg').css({'background-color':'rgb(0,0,0)'});sym.$("timingMc").fadeIn(200);sym.getSymbol("timingMc").$("gridSlider").fadeIn(0);sym.getSymbol("timingMc").$("graph").fadeOut(0);sym.getSymbol("timingMc").$("timeTxt").fadeOut(0);e.preventDefault();e.stopPropagation();};};var showPhase=function(phaseNo,stage,session){return function(e){resetmenu();if(stage<6){getPhases(phaseNo);if(stage>2){sym.getSymbol("timingMc").$("statusTxt").html(statCap[1]+" "+session);}else{sym.getSymbol("timingMc").$("statusTxt").html(statCap[0]+" "+session);}
sym.getSymbol("timingMc").$("statusTxt").css({'background-color':'rgb(255,45,0)'});sym.$("timingMc").fadeIn(200);sym.getSymbol("timingMc").$("gridSlider").fadeOut(0);sym.getSymbol("timingMc").$("graph").fadeIn(0);sym.getSymbol("timingMc").$("timeTxt").fadeIn(0);}else if(stage==6){getGrid(phaseNo);sym.getSymbol("timingMc").$("statusTxt").html(statCap[2]);sym.getSymbol("timingMc").$("statusTxt").css({'background-color':'rgb(255,45,0)'});sym.$("timingMc").fadeIn(200);sym.getSymbol("timingMc").$("gridSlider").fadeIn(0);sym.getSymbol("timingMc").$("graph").fadeOut(0);sym.getSymbol("timingMc").$("timeTxt").fadeOut(0);}else{getLive(phaseNo);sym.$(screenArr[6]).fadeOut(0);sym.$(screenArr[4]).fadeIn(0);}
menuArray[7].$("menuBg").fadeOut(0);sym.getSymbol("menuButtons").$("menuBtn5xtra").stop().animate({'top':'-245px'},400);for(var i=0;i<8;i++){if(i==stage){sym.getSymbol('menuButtons').getSymbol('phaseBtn'+i).$('btnBg').css({'background-color':'rgb(0,0,0)'});}else{sym.getSymbol('menuButtons').getSymbol('phaseBtn'+i).$('btnBg').css({'background-color':'rgb(93,93,93)'});}}
e.preventDefault();e.stopPropagation();}};function showFinished(){raceFinished=1;sym.getSymbol("menuButtons").$("menuBtn8").bind("click",{menuId:8},menuBtnClick);}
function sessLiveOrFin(latest,sess){sym.getSymbol("circuitMc").$("statusTxt").html(latest+" "+sess);sym.getSymbol("liveMc").$("statusTxt").html(latest+" "+sess);var liveWidth=sym.getSymbol("liveMc").$("statusTxt").width();sym.getSymbol("liveMc").$("statusTxt").css({'left':265-(liveWidth/2)+"px"});}
function getSeason(){$.ajax({type:"GET",url:dataURL,data:"gn="+gn+"&q=season&yr="+gnYear+"&race=",contentType:"text/plain",dataType:"jsonp",jsonp:"callback",async:true,crossDomain:true,success:function(data){sym.getSymbol("calendarMc").$('loading').fadeOut(0);sym.getSymbol("calendarMc").$("graph").empty();var seasondata=data;var raceFinished;var raceLive;var gpflag;var flagHTML;var gpstatusHTML;for(var i=0;i<seasondata.length;i++){var gpID=seasondata[i].n_EventPhaseID;var gpStatus=seasondata[i].n_StatusCode;var countryShort=seasondata[i].c_CountryShort;if(seasondata[i].b_Current==true){if(gpStatus>=128){racestatus=4;}else if(gpStatus>=8&&gpStatus<128){racestatus=2;}else{racestatus=0;}
latestGP=gpID;latestGPno=i;sym.getSymbol("menuButtons").$('menuBtn5').unbind('click',raceDetails);sym.getSymbol("menuButtons").$('menuBtn5').on('click',raceDetails(gpID,i));sym.getSymbol("menuButtons").$('menuBtn6').unbind('click',playIt);sym.getSymbol("menuButtons").$('menuBtn6').on('click',playIt(i));if(i<6){sym.getSymbol('calendarMc').$('graph').stop().animate({scrollTop:i*45+'px'},400);}else{sym.getSymbol('calendarMc').$('graph').stop().animate({scrollTop:'549px'},400)}}else if(seasondata[i].b_Finished==true){racestatus=4;}else{racestatus=0;}
var seasonText="<div class='gpseason'>";seasonText+="<table class='gpweekend' id='gp"+i+"'><tr>";seasonText+="<td class='gpno' id='gpno"+i+"'></td>";seasonText+="<td class='gpflag' id='gpflag"+i+"'></td>";seasonText+="<td class='gpname' id='gpname"+i+"'></td>";seasonText+="<td class='gpdate' id='gpdate"+i+"'></td>";seasonText+="<td class='gpstat' id='gpstatus"+i+"'></td>";seasonText+="</tr></table>";seasonText+="</div>";sym.getSymbol("calendarMc").$("graph").append(seasonText);gpflag=seasondata[i].c_CountryShort.toLowerCase();flagHTML="<img src='images/"+gpflag+"Flag.png' height='35px' width='30px'>"
gpstatusHTML="<img src='images/flag"+racestatus+".png' height='26px' width='26px'>";var gpdate=getDDmonthYY(seasondata[i].d_DateEnd);$('#gpno'+i).text(i+1);$('#gpflag'+i).html(flagHTML);$('#gpflag'+i).css({'cursor':'pointer'});$('#gpflag'+i).on('click',showGP(gpID,racestatus,i));$('#gpname'+i).text(raceArr[i][0]);$('#gpname'+i).css({'cursor':'pointer'});$('#gpname'+i).on('click',showGP(gpID,racestatus,i));$('#gpdate'+i).html(gpDate[i]);$('#gpstatus'+i).html(gpstatusHTML);$('#gpstatus'+i).on('click',showGP(gpID,racestatus,i));$('.gpseason').css({'width':'100%','height':'42px','border-top':'solid 1px rgb(255,255,255)','border-bottom':'solid 1px rgb(150,150,150)','font-family':'pragmatica-web, sans-serif','font-size':'13px'});$('.gpweekend').css({'width':'100%'});$('.gpno').css({'width':'8%','font-weight':700});$('.gpflag').css({'width':'12%','text-align':'center'});$('.gpname').css({'width':'40%','font-weight':700,'font-size':'14px'});$('.gpdate').css({'width':'30%','font-style':'oblique','text-align':'left'});$('.gpstat').css({'width':'10%','padding':'3px'});sym.getSymbol("mapIntro").$("mapBtn"+i).on('click',showGP(gpID,racestatus,i));sym.getSymbol("mapIntro").$("mapBtn"+i).css({'cursor':'pointer'});}
$("#gp"+latestGPno).css({'background-color':'rgba(255,225,215,0.6)'});sym.getSymbol("mapIntro").getSymbol("mapBtn"+latestGPno).$("btnBg").css({'background-color':'rgb(255,0,0)'});$.each(menuArray,function(count,menuInTheArray){var menuBtnElement=menuInTheArray.getSymbolElement();menuBtnElement.unbind("click",menuBtnClick);menuBtnElement.on("click",{menuId:count},menuBtnClick);});}});}
getSeason();seasonInterval=setInterval(getSeason,900000);function getStartList(){$.ajax({type:"GET",url:dataURL,data:"gn="+gn+"&yr="+gnYear+"&q=startlist&race=",contentType:"text/plain",dataType:"jsonp",jsonp:"callback",async:true,crossDomain:true,success:function(data){var startData=data;if(startData.length>20){barHeight=((500/startData.length)-2);}else{barHeight=23;}
for(var i=0;i<startData.length;i++){if(i==0){var drivershort=startData[i].c_PersonShort;var driverID=startData[i].n_PersonID;var imgCar=startData[i].c_TeamShort;var leadDriver='<b>'+startData[i].c_Person+'</b> '+startData[i].c_NOCShort+'</span>';sym.getSymbol("driverchampMc").$("driversTxt").html(leadDriver);sym.getSymbol("driverchampMc").$("driverPic").attr("src","drivers/"+driverID+".jpg");}
var tableText="<div class='driverschamp'>";tableText+="<div id='driverdata"+i+"'>";tableText+="<table style='width:100%; border:none; border-collapse:collapse; padding:0; margin:0'><tr>";tableText+="<td id='driverrnk"+i+"' width='20px' style='font-weight:bold'></td>";tableText+="<td id='driverNm"+i+"'width='75px'></td>";tableText+="<td id='driverteam"+i+"' style='font-style:italic'></td>";tableText+="<td id='driverpts"+i+"' style='font-weight:bold'></td>";tableText+="</tr></table>";tableText+="</div></div>";sym.getSymbol("driverchampMc").$("graph").append(tableText);$('#driverrnk'+i).text(i+1);$('#driverNm'+i).text(startData[i].c_PersonShort);$('#driverteam'+i).text(startData[i].c_TeamShort);if(i==0){$('#driverpts'+i).text("0"+caps[12]);}else{$('#driverpts'+i).text("0");}
$(".driverschamp").css({'font-size':'11px','font-family':'pragmatica-web, sans-serif','width':'100%','margin-bottom':'2px'});$("#driverdata"+i).css({'height':barHeight+'px','width':'54%','background-color':'rgba(230,225,215,0.8)','padding-left':'3px','box-shadow':'3px 2px 5px rgba(100,100,100,0.75)'});$("#driverpts"+i).css({'text-align':'right','padding-right':'3px'});$("#driverdata"+i).animate({width:scale+'%'},1500);}}});}
var barHeight;var nRaceDrivers;var maxPoints;var scale;function getDriverStandings(){$.ajax({type:"GET",url:dataURL,data:"gn="+gn+"&q=champdrivers&yr="+gnYear+"&race=",contentType:"text/plain",dataType:"jsonp",jsonp:"callback",async:true,crossDomain:true,success:function(data){var rankData=data;sym.getSymbol("driverchampMc").$("loading").hide();sym.getSymbol("driverchampMc").$("graph").empty();if(rankData.length<1){getStartList();}else{nRaceDrivers=rankData.length;if(rankData.length>20){barHeight=((500/rankData.length)-2);}else{barHeight=23;}
maxPoints=rankData[0].n_PointsSort;var min=(maxPoints!=null)?maxPoints:0;for(var n=0;n<rankData.length;n++){if(rankData[n].n_PointsSort!=null&&rankData[n].n_PointsSort<min){min=rankData[n].n_PointsSort;}}
for(var i=0;i<rankData.length;i++){if(i==0){var drivershort=rankData[i].c_PersonShort;var driverID=rankData[i].n_PersonID;var imgCar=rankData[i].c_TeamShort;var leadDriver='<b>'+rankData[i].c_Person+'</b> '+rankData[i].c_NOCShort+'</span>';sym.getSymbol("driverchampMc").$("driversTxt").html(leadDriver);sym.getSymbol("driverchampMc").$("driverPic").attr("src","drivers/"+driverID+".jpg");}
var tableText="<div class='driverschamp'>";tableText+="<div id='driverdata"+i+"'>";tableText+="<table style='width:100%; border:none; border-collapse:collapse; padding:0; margin:0'><tr>";tableText+="<td id='driverrnk"+i+"' width='20px' style='font-weight:bold'></td>";tableText+="<td id='driverNm"+i+"'width='125px'></td>";tableText+="<td id='driverteam"+i+"' style='font-style:italic'></td>";tableText+="<td id='driverpts"+i+"' style='font-weight:bold'></td>";tableText+="</tr></table>";tableText+="</div></div>";sym.getSymbol("driverchampMc").$("graph").append(tableText);if(rankData[i].n_Rank!=null){$('#driverrnk'+i).text(rankData[i].n_Rank);}else{$('#driverrnk'+i).text(i+1);}
$('#driverNm'+i).text(rankData[i].c_PersonShort);$('#driverteam'+i).text(rankData[i].c_TeamShort);if(rankData[i].c_Points!=null){if(i==0&&caps[12]!=undefined){$('#driverpts'+i).text(rankData[i].c_Points+caps[12]);}else{$('#driverpts'+i).text(rankData[i].c_Points);}}else{$('#driverpts'+i).text("0");}
if(maxPoints==min&&rankData[i].n_PointsSort==maxPoints){scale=100;}else if(rankData[i].n_PointsSort==null){scale=50;}else{scale=100-((maxPoints-rankData[i].n_PointsSort)*45/(maxPoints-min));}
$(".driverschamp").css({'font-size':'13px','font-family':'pragmatica-web, sans-serif','width':'100%','margin-bottom':'2px'});$("#driverdata"+i).css({'height':barHeight+'px','width':'50%','background-color':'rgba(230,225,215,0.8)','padding-left':'3px','box-shadow':'3px 2px 5px rgba(100,100,100,0.75)'});$("#driverpts"+i).css({'text-align':'right','padding-right':'3px'});$("#driverdata"+i).animate({width:scale+'%'},400);}}}});}
getDriverStandings();var nTeams;var teamBar;function getConsStandings(){$.ajax({type:"GET",url:dataURL,data:"gn="+gn+"&q=champteams&yr="+gnYear+"&race=",contentType:"text/plain",dataType:"jsonp",jsonp:"callback",async:true,crossDomain:true,success:function(data){var teamData=data;sym.getSymbol("menuButtons").$("menuBtn3").unbind('click',menuBtnClick);if(teamData.length<1){sym.getSymbol("menuButtons").$("menuBtn3").bind("click",{menuId:4},menuBtnClick);}else{sym.getSymbol("menuButtons").$("menuBtn3").bind("click",{menuId:3},menuBtnClick);sym.getSymbol("teamChampMc").$("loading").css({'display':'none'});sym.getSymbol("teamChampMc").$("graph").empty();nTeams=teamData.length;if(teamData.length>=11){teamBar=((260/teamData.length)-2);}else{teamBar=21;}
teamPoints=teamData[0].n_PointsSort;var minpts=(teamPoints!=null)?teamPoints:0;for(var n=0;n<teamData.length;n++){if(teamData[n].n_PointsSort!=null&&teamData[n].n_PointsSort<minpts){minpts=teamData[n].n_PointsSort;}}
for(var i=0;i<teamData.length;i++){teamname=teamData[i].c_TeamShort;longname=teamData[i].c_Team;if(i==0){var imgCar=teamData[i].c_TeamShort;sym.getSymbol("teamChampMc").getSymbol("carPic").$("mainCar").attr("src","cars/"+imgCar+"big.png");sym.getSymbol("teamChampMc").getSymbol("carPic").$("reflection").attr("src","cars/"+imgCar+"big.png");sym.getSymbol("teamChampMc").getSymbol("carPic").$("driverHead").attr("src","drivers/"+imgCar+".png");sym.getSymbol("teamChampMc").getSymbol("carPic").$("bkwheel").attr("src","cars/"+imgCar+"bk.png");sym.getSymbol("teamChampMc").getSymbol("carPic").$("frwheel").attr("src","cars/"+imgCar+"fr.png");getStats(teamname,2);}
var constructorsText="<div class='teamchamp'>";constructorsText+="<div id='teamdata"+i+"'>";constructorsText+="<table style='width:100%; border:none; border-collapse:collapse; padding:0; margin:0'><tr>";constructorsText+="<td id='teamrnk"+i+"' width='20px' style='font-weight:bold'></td>";constructorsText+="<td id='teamNm"+i+"'></td>";constructorsText+="<td id='teampts"+i+"' style='font-weight:bold'></td>";constructorsText+="</tr></table>";constructorsText+="</div></div>";sym.getSymbol("teamChampMc").$("graph").append(constructorsText);if(teamData[i].n_Rank!=null){$('#teamrnk'+i).text(teamData[i].n_Rank);}else{$('#teamrnk'+i).text(i+1);}
$('#teamNm'+i).text(teamData[i].c_Team);if(teamData[i].c_Points!=null){if(i==0){$('#teampts'+i).text(teamData[i].c_Points+caps[12]);}else{$('#teampts'+i).text(teamData[i].c_Points);}}else{$('#teampts'+i).text("0");}
if(teamPoints==minpts&&teamData[i].n_PointsSort==teamPoints){scale=100;}else if(teamData[i].n_PointsSort==null){scale=56;}else{scale=100-((teamPoints-teamData[i].n_PointsSort)*44/(teamPoints-minpts));}
$(".teamchamp").css({'font-size':'13px','font-family':'pragmatica-web, sans-serif','width':'99%','margin-bottom':'2px'});$("#teamdata"+i).css({'height':teamBar+'px','width':scale+'%','background-color':'rgba(230,225,215,0.8)','padding-left':'3px','box-shadow':'3px 2px 5px rgba(100,100,100,0.75)'});$("#teamdata"+i+" table").css({'height':teamBar+'px'});$("#teampts"+i).css({'text-align':'right','padding-right':'3px'});}}}});}
getConsStandings();var flag1txt;var flag2txt;function getStats(teamdetails,view){sym.getSymbol(screenArr[view]).$("teamTxt0").css({'font-weight':700});for(var i=0;i<teamArr.length;i++){if(teamdetails==teamArr[i]){for(var t=0;t<10;t++){sym.getSymbol(screenArr[view]).$("teamTxt"+t).html(teamTxtArr[i][t]);}
if(view==2){sym.getSymbol(screenArr[view]).$("teamTxt0").html(champHead[2]+" "+teamTxtArr[i][0]);}else{sym.getSymbol(screenArr[view]).$("teamTxt0").html(teamTxtArr[i][0]);}
sym.getSymbol(screenArr[view]).$("driverflag1").attr("src","images/"+teamTxtArr[i][4]+".gif");sym.getSymbol(screenArr[view]).$("driverflag2").attr("src","images/"+teamTxtArr[i][8]+".gif");sym.getSymbol(screenArr[view]).$("driverpic1").attr("src","drivers/"+driverID[i][0]+".jpg");sym.getSymbol(screenArr[view]).$("driverpic2").attr("src","drivers/"+driverID[i][1]+".jpg");sym.getSymbol(screenArr[view]).$("driverHelmet1").attr("src","drivers/"+driverID[i][0]+".png");sym.getSymbol(screenArr[view]).$("driverHelmet2").attr("src","drivers/"+driverID[i][1]+".png");}}}
var raceStage;function getRace(raceID){$.ajax({type:"GET",url:dataURL,data:"gn="+gn+"&yr="+gnYear+"&q=race&race="+raceID,contentType:"text/plain",dataType:"jsonp",jsonp:"callback",async:true,crossDomain:true,success:function(data){var racePhases=data;var n;var latestPhase;var getFunction;var phaseBtnNo;var sessionTxt;for(var i=0;i<racePhases.length;i++){phase=racePhases[i].n_PhaseID;var sessionNo=(racePhases[i].n_SessionNr>0)?racePhases[i].n_SessionNr:"";var sessLive=(racePhases[i].b_Current==true)?1:0;var sessStarted=(racePhases[i].b_Started==true)?1:0;var sessFin=(racePhases[i].b_Finished==true)?1:0;if(racePhases[i].b_FreePractice==true){n=racePhases[i].n_Phase1Nr;phaseBtnNo=sessionNo-1;raceStage="FP";if(racePhases[i].b_Started==true){latestPhase=statCap[0];}else{latestPhase=statCap[4];}}else if(racePhases[i].b_Qualifying==true&&racePhases[i].n_Phase2Nr==null){sessLive=0;sessFin=0;sessStarted=0;}else if(racePhases[i].b_Qualifying==true&&racePhases[i].n_Phase2Nr>0){n=racePhases[i].n_Phase2Nr;phaseBtnNo=sessionNo+2;raceStage="Q";latestPhase=statCap[1];}else if(racePhases[i].b_StartingGrid==true){n="0";phaseBtnNo="6";raceStage="Q";latestPhase=statCap[2];}else if(racePhases[i].b_Race==true){n="1";phaseBtnNo="7";raceStage="R";latestPhase=statCap[3];}
sym.getSymbol("menuButtons").$("phaseBtn"+phaseBtnNo).unbind("click");clearInterval(gpInterval);sessionTxt=sessionNo;if(sessLive==1){if(sessStarted==1){getInfo(phase);getLive(phase);if(racePhases[i].b_Race==true){sessionTxt=" "+statCap[5];getFunction=showPhase(phase,phaseBtnNo,sessionNo);}else if(racePhases[i].b_StartingGrid==true){getFunction=showPhase(phase,phaseBtnNo,sessionNo);}else{getFunction=showPhase(phase,phaseBtnNo,sessionNo);}
if(sessFin==1){sym.getSymbol("menuButtons").getSymbol("phaseBtn"+phaseBtnNo).$("btnBg").css({"border":"solid 2px rgb(255,45,0)"});if(racePhases[i].b_Race==true){sessionTxt=" "+statCap[6];showFinished();}else if(racePhases[i].b_StartingGrid==true){getFunction=showPhase(phase,phaseBtnNo,sessionNo);}else{sym.getSymbol("circuitMc").$("statusTxt").css({"background-color":"rgb(255,45,0)","box-shadow":"2px 2px 3px 1px rgba(0,0,0,0.2)"});}}else{sym.getSymbol("menuButtons").getSymbol("phaseBtn"+phaseBtnNo).$("btnBg").css({"border":"solid 2px rgb(85,192,40)"});sym.getSymbol("circuitMc").$("statusTxt").css({"background-color":"rgb(85,192,40)","box-shadow":"2px 2px 3px 1px rgba(0,0,0,0.2)"});}}else{sym.getSymbol("circuitMc").$("statusTxt").css({"background-color":"rgb(100,100,100)","box-shadow":"2px 2px 3px 1px rgba(0,0,0,0.2)"});sym.getSymbol("menuButtons").getSymbol("phaseBtn"+phaseBtnNo).$("btnBg").css({"border":"solid 1px rgb(100,100,100)"});sym.getSymbol("menuButtons").$("menuBtn5").unbind('click');sym.getSymbol("menuButtons").$("menuBtn8").unbind('click');sessionTxt="";}
sessLiveOrFin(latestPhase,sessionTxt);}else if(sessFin==1){sym.getSymbol("menuButtons").getSymbol("phaseBtn"+phaseBtnNo).$("btnBg").css({"border":"solid 2px rgb(255,45,0)"});sym.getSymbol("circuitMc").$("statusTxt").css({"background-color":"rgb(255,45,0)","box-shadow":"2px 2px 3px 1px rgba(0,0,0,0.2)"});if(racePhases[i].b_Race==true){showFinished();getInfo(phase);getLive(phase);getFunction=showPhase(phase,phaseBtnNo,sessionNo);}else if(racePhases[i].b_StartingGrid==true){getFunction=showPhase(phase,phaseBtnNo,sessionNo);}else{getFunction=showPhase(phase,phaseBtnNo,sessionNo);}
sessLiveOrFin(latestPhase,sessionTxt);}
sym.getSymbol("menuButtons").$("phaseBtn"+phaseBtnNo).css({"cursor":"pointer"});sym.getSymbol("menuButtons").$("phaseBtn"+phaseBtnNo).click(getFunction);}
phaseNo=phaseBtnNo;}});}
function getInfo(phaseID){$.ajax({type:"GET",url:dataURL,data:"gn="+gn+"&yr="+gnYear+"&q=info&race="+phaseID,contentType:"text/plain",dataType:"jsonp",jsonp:"callback",async:true,crossDomain:true,success:function(data){var latestPhase;var capHeight=364;sym.getSymbol("liveMc").$("lapCounter").fadeOut(0);capsText[7].fadeOut(0);if(data[0].n_WeatherConditionType!=null){sym.getSymbol("circuitMc").$("weatherTxt").show();sym.getSymbol("circuitMc").$("weather").attr('src','images/weather'+data[0].n_WeatherConditionType+'.png');}
var sessionNo=(data[0].n_SessionNr>0)?data[0].n_SessionNr:"";if(data[0].b_FreePractice==true){pitstoptxt="";}else if(data[0].b_Qualifying==true){pitstoptxt="";}else if(data[0].b_StartingGrid==true){sym.getSymbol("timingMc").$("statusTxt").css({'background-color':'rgb(85,192,40)'});pitstoptxt="";}else if(data[0].b_Race==true){capHeight=312;capsText[8].html(caps[11]);var laps=data[0].n_LapsScheduled;var lapsDriven=data[0].n_LapsDriven;var lapsAngle=360*lapsDriven/laps;capsText[7].html(caps[7]+":<br><b>"+lapsDriven+"/"+laps);capsText[7].fadeIn(400);sym.getSymbol("liveMc").$("pitstop").fadeIn(0);sym.getSymbol("liveMc").$("lapCounter").fadeIn(400);if(lapsDriven/laps<0.5){sym.getSymbol("liveMc").getSymbol("lapCounter").$("laps2").hide();sym.getSymbol("liveMc").getSymbol("lapCounter").$("laps1").animate({rotate:lapsAngle},{step:function(now,fx){$(this).css('-webkit-transform','rotate('+now+'deg)');$(this).css('-moz-transform','rotate('+now+'deg)');$(this).css('-ms-transform','rotate('+now+'deg)');$(this).css('-op-transform','rotate('+now+'deg)');$(this).css('transform','rotate('+now+'deg)');},duration:'fast'},'linear');}else{sym.getSymbol("liveMc").getSymbol("lapCounter").$("laps1").animate({rotate:180},{step:function(now,fx){$(this).css('-webkit-transform','rotate(180deg)');$(this).css('-moz-transform','rotate(180deg)');$(this).css('-moz-transform','rotate(180deg)');$(this).css('-ms-transform','rotate(180deg)');$(this).css('-op-transform','rotate(180deg)');$(this).css('transform','rotate(180deg)');},duration:'fast'},'linear');sym.getSymbol("liveMc").getSymbol("lapCounter").$("laps2").show();sym.getSymbol("liveMc").getSymbol("lapCounter").$("laps2").animate({rotate:lapsAngle},{step:function(now,fx){$(this).css('-webkit-transform','rotate('+now+'deg)');$(this).css('-moz-transform','rotate('+now+'deg)');$(this).css('-ms-transform','rotate('+now+'deg)');$(this).css('-op-transform','rotate('+now+'deg)');$(this).css('transform','rotate('+now+'deg)');},duration:'fast'},'linear');}}
if(data[0].b_Finished==true){sym.getSymbol("liveMc").$("statusTxt").css({"background-color":"rgb(255,45,0)"});gpInterval=setInterval(liveGP,300000);}else if(data[0].b_Started==true){sym.getSymbol("liveMc").$("statusTxt").css({"background-color":"rgb(85,192,40)"});gpInterval=setInterval(liveGP,45000);}else{sym.getSymbol("liveMc").$("statusTxt").css({"background-color":"rgb(100,100,100)"});gpInterval=setInterval(liveGP,300000);}}});}
function getLive(phaseID){$.ajax({type:"GET",url:dataURL,data:"gn="+gn+"&yr="+gnYear+"&race="+phaseID,contentType:"text/plain",dataType:"jsonp",jsonp:"callback",async:true,crossDomain:true,success:function(data){raceData=data;var nDrivers=raceData.length;var barHeightr;var minTime;var resultScale;if(raceData.length>20){barHeightr=((500/raceData.length)-2);}else{barHeightr=23;}
if(raceStage=="R"){minTime=raceData[0].n_TimeRel;var mxm=(minTime!=null)?minTime:0;var timeRel=0;for(var n=0;n<raceData.length;n++){if(raceData[n].n_TimeRel!=null&&raceData[n].n_TimeRel>mxm){mxm=raceData[n].n_TimeRel;}}}else if(raceData[0].n_TimeAbs!=undefined){minTime=raceData[0].n_TimeAbs;var mxm=(minTime!=null)?minTime:0;var timeRel=1;for(var n=0;n<raceData.length;n++){if(raceData[n].n_TimeAbs!=null&&raceData[n].n_TimeAbs>mxm){mxm=raceData[n].n_TimeAbs;}}}
sym.getSymbol("resultMc").$("graph").empty();sym.getSymbol("resultMc").$("loading").fadeOut(0);sym.getSymbol("liveMc").$("graph").empty();sym.getSymbol("liveMc").$("loading").fadeOut(0);for(var i=0;i<raceData.length;i++){if(i==0){var imgDriver1=raceData[i].n_PersonID;var leadDriver1='<b>'+raceData[i].c_Person+'</b> '+raceData[i].c_NOCShort;sym.getSymbol("resultMc").$("driverPic1").attr("src","drivers/"+imgDriver1+".jpg");sym.getSymbol("resultMc").$("drivertxt1").html(leadDriver1);}
if(i==1){var imgDriver2=raceData[i].n_PersonID;var leadDriver2='<b>'+raceData[i].c_Person+'</b> '+raceData[i].c_NOCShort;sym.getSymbol("resultMc").$("driverPic2").attr("src","drivers/"+imgDriver2+".jpg");sym.getSymbol("resultMc").$("drivertxt2").html(leadDriver2);}
if(i==2){var imgDriver3=raceData[i].n_PersonID;var leadDriver3='<b>'+raceData[i].c_Person+'</b> '+raceData[i].c_NOCShort;sym.getSymbol("resultMc").$("driverPic3").attr("src","drivers/"+imgDriver3+".jpg");sym.getSymbol("resultMc").$("drivertxt3").html(leadDriver3);}
var tableText="<div class='liverace'>";tableText+="<div id='livedriverdata"+i+"'>";tableText+="<table style='width:100%; border:none; border-collapse:collapse; padding:0; margin:0'><tr>";tableText+="<td id='driver"+i+"'width='125px'></td>";tableText+="<td id='team"+i+"' style='font-style:italic' width='30px'></td>";tableText+="<td id='pitstops"+i+"' style='font-weight:bold' width='15px'></td>";tableText+="<td id='pitCap"+i+"'></td>";tableText+="<td id='time"+i+"'></td>";tableText+="</tr></table>";tableText+="</div>";tableText+="</div>";var resultsText="<div class='resultrace'>";resultsText+="<div id='resultdata"+i+"'>";resultsText+="<table style='width:100%; border:none; border-collapse:collapse; padding:0; margin:0'><tr>";resultsText+="<td id='resultorder"+i+"' width='20px'></td>";resultsText+="<td id='resultdriver"+i+"' width='125px'></td>";resultsText+="<td id='resultteam"+i+"' style='font-style:italic' width='30px'></td>";resultsText+="<td id='points"+i+"'></td>";resultsText+="</tr></table>";resultsText+="</div>";resultsText+="</div>";sym.getSymbol("liveMc").$("graph").append(tableText);$('#driver'+i).text(raceData[i].c_PersonShort);$('#team'+i).text(raceData[i].c_TeamShort);if(raceData[i].n_PitStops){$('#pitstops'+i).text(raceData[i].n_PitStops);$('#pitstops'+i).css({'font-weight':'bold','text-align':'center','color':'rgb(255,255,255)','background-color':'rgba(0,0,0,0.15)'});if(i==0){$('#pitCap'+i).text(caps[10]);$('#pitCap'+i).css({'font-weight':'bold','color':'rgba(0,0,0,0.30)'});}}
if(timeRel==1){var hrs=(raceData[i].n_TimeAbs>3600000)?Math.floor(raceData[i].n_TimeAbs/3600000)+":":"";var mins=(raceData[i].n_TimeAbs>3600000)?Math.floor((raceData[i].n_TimeAbs%3600000)/60000):Math.floor(raceData[i].n_TimeAbs/60000);if(mins<10){mins="0"+mins+":";}else if(mins<1){mins="00:";}else{mins=mins+":";}
var secs=(raceData[i].n_TimeAbs>3600000)?(raceData[i].n_TimeAbs%3600000%60000)/1000:(raceData[i].n_TimeAbs%60000%60000)/1000;if(secs<10){secs="0"+secs;}
var timing=hrs+mins+secs;$('#time'+i).text(timing);if(minTime==mxm&&raceData[i].n_TimeAbs==mxm){scale=100;}else if(raceData[i].n_TimeAbs==null){scale=59;}else{scale=100-((raceData[i].n_TimeAbs-minTime)*39/(mxm-minTime));}}else if(timeRel==0){if(raceData[i].n_RankSort==1&&raceData[i].n_TimeAbs==null){scale=100;$('#time'+i).text();}else if(raceData[i].n_TimeRel==null){scale=59;if(raceData[i].c_ResultSuffix==null){}else{$('#time'+i).text(raceData[i].c_ResultSuffix);}}else{scale=100-(raceData[i].n_TimeRel*39/mxm);$('#time'+i).text(raceData[i].c_Result);}}
$(".liverace").css({'font-size':'13px','font-family':'pragmatica-web, sans-serif','width':'100%','margin-bottom':'2px'});$("#livedriverdata"+i).css({'height':barHeightr+'px','width':scale+'%','background-color':'rgb(230,225,215)','padding-left':'3px','box-shadow':'3px 2px 5px rgba(100,100,100,0.75)'});$("#time"+i).css({'text-align':'right','padding-right':'5px'});if(raceFinished==1){sym.getSymbol("resultMc").$("graph").append(resultsText);order=raceData[i].n_RankSort;if(raceData[i].c_ChampionshipPoints!=undefined){points=raceData[i].c_ChampionshipPoints;}else{points="";}
maxPoints=raceData[0].c_ChampionshipPoints;var min=(maxPoints!=null)?maxPoints:0;for(var n=0;n<raceData.length;n++){if(raceData[n].c_ChampionshipPoints!=null&&raceData[n].c_ChampionshipPoints<min){min=raceData[n].c_ChampionshipPoints;}}
if(maxPoints==min&&raceData[i].c_ChampionshipPoints==maxPoints){resultScale=100;}else if(raceData[i].c_ChampionshipPoints==null||raceData[i].c_ChampionshipPoints==undefined){resultScale=50;}else{resultScale=100-((maxPoints-raceData[i].c_ChampionshipPoints)*45/(maxPoints-min));}
$('#resultorder'+i).html("<b>"+order+"</b>");$('#resultdriver'+i).text(raceData[i].c_PersonShort);$('#resultteam'+i).text(raceData[i].c_TeamShort);if(i==0){$('#points'+i).html("<b>"+points+caps[12]+"</b>");}else{$('#points'+i).html("<b>"+points+"</b>");}
$(".resultrace").css({'font-size':'13px','font-family':'pragmatica-web, sans-serif','width':'100%','margin-bottom':'2px'});$("#resultdata"+i).css({'height':barHeightr+'px','width':'50%','padding-left':'3px','background-color':'rgb(230,225,215)','box-shadow':'3px 2px 5px rgba(100,100,100,0.75)'});$("#points"+i).css({'text-align':'right','padding-right':'5px'});$("#resultdata"+i).animate({'width':resultScale+'%'},400);}}}});}
var scalePhase;function getPhases(phaseID){$.ajax({type:"GET",url:dataURL,data:"gn="+gn+"&yr="+gnYear+"&race="+phaseID,contentType:"text/plain",dataType:"jsonp",jsonp:"callback",async:true,crossDomain:true,success:function(data){var phaseData=data;var barHeight;var minTime;sym.getSymbol("timingMc").$("loading").fadeOut(0);sym.getSymbol("timingMc").$("graph").empty();if(phaseData.length>20){barHeight=(500/phaseData.length)-2;}else{barHeight=23;}
minTime=phaseData[0].n_TimeAbs;var max=(minTime!=null)?minTime:0;for(var n=0;n<phaseData.length;n++){if(phaseData[n].n_TimeAbs!=null&&phaseData[n].n_TimeAbs>max){max=phaseData[n].n_TimeAbs;}
if(phaseData[n].n_TimeAbs!=null&&phaseData[n].n_TimeAbs<minTime){minTime=phaseData[n].n_TimeAbs;}}
for(var i=0;i<phaseData.length;i++){var phaseText="<div class='phaserace'>";phaseText+="<div id='phasedriverdata"+i+"'>";phaseText+="<table style='width:100%; border:none; border-collapse:collapse; padding:0; margin:0'><tr>";phaseText+="<td id='phasedriver"+i+"'width='125px'></td>";phaseText+="<td id='phaseteam"+i+"' style='font-style:italic' width='30px'></td>";phaseText+="<td id='phasetime"+i+"'></td>";phaseText+="</tr></table>";phaseText+="</div>";phaseText+="</div>";sym.getSymbol("timingMc").$("graph").append(phaseText);$('#phasedriver'+i).text(phaseData[i].c_PersonShort);$('#phaseteam'+i).text(phaseData[i].c_TeamShort);var mins=Math.floor(phaseData[i].n_TimeAbs/60000)+":";var secs=(phaseData[i].n_TimeAbs%60000%60000)/1000;if(secs<10){secs="0"+secs;}
$('#phasetime'+i).text(mins+secs);if(minTime==max&&phaseData[i].n_TimeAbs==max){scalePhase=100;}else if(phaseData[i].n_TimeAbs==null){scalePhase=59;}else{scalePhase=100-((phaseData[i].n_TimeAbs-minTime)*41/(max-minTime));}
$(".phaserace").css({'font-size':'13px','font-family':'pragmatica-web, sans-serif','width':'100%','margin-bottom':'2px'});$("#phasedriverdata"+i).css({'height':barHeight+'px','width':'59%','padding-left':'3px','background-color':'rgb(230,225,215)','box-shadow':'3px 2px 5px rgba(100,100,100,0.75)'});$("#phasetime"+i).css({'text-align':'right','padding-right':'5px'});$("#phasedriverdata"+i).animate({'width':scalePhase+'%'},400);}}});}
function getGrid(phaseID){$.ajax({type:"GET",url:dataURL,data:"gn="+gn+"&yr="+gnYear+"&race="+phaseID,contentType:"text/plain",dataType:"jsonp",jsonp:"callback",async:true,crossDomain:true,success:function(data){var gridData=data;sym.getSymbol("timingMc").$("gridSlider").fadeIn(500);sym.getSymbol("timingMc").$("graph").fadeOut(500);sym.getSymbol("timingMc").$("timeTxt").fadeOut(500);var gridMove;var go;for(var i=0;i<gridData.length;i++){sym.getSymbol("timingMc").getSymbol("gridSlider").getSymbol("grid").$("grid"+i).empty();var gridText="<div class='gridlist'>";gridText+="<table style='width:100%; border:none; border-collapse:collapse; padding:0; margin:0'><tr>";gridText+="<td class='gridorder' id='gridorder"+i+"'></td>";gridText+="<td class='griddriver' id='griddriver"+i+"'></td>";gridText+="<td class='gridteam' id='gridteam"+i+"'></td>";gridText+="</tr></table>";gridText+="</div>";sym.getSymbol("timingMc").getSymbol("gridSlider").getSymbol("grid").$("gridtxt").append(gridText);var gridCar='<img src="cars/'+gridData[i].c_TeamShort+'o.png" width="24px">';var order=gridData[i].n_RankSort;$('#gridorder'+i).html("<b>"+order+"</b>");$('#griddriver'+i).text(gridData[i].c_Person);$('#gridteam'+i).text(gridData[i].c_Team);$(".gridlist").css({'font-size':'13px','font-family':'pragmatica-web, sans-serif','width':'100%','height':'35px'});$(".gridorder").css({'width':'8%'});$(".griddriver").css({'width':'52%'});$(".gridteam").css({'width':'40%','font-style':'italic'});sym.getSymbol("timingMc").getSymbol("gridSlider").getSymbol("grid").$("grid"+i).append(gridCar);if(i%2==0){gridMove=5+i*35;}else{gridMove=-16+i*35;}
sym.getSymbol("timingMc").getSymbol("gridSlider").getSymbol("grid").$("grid"+i).delay(i*400).animate({'top':gridMove},1000);sym.getSymbol("timingMc").$("gridSlider").css({'overflow-y':'auto'});}}});}
function liveGP(){getRace(latestGP);}
gpInterval=setInterval(liveGP,60000);sym.gearChange=function(gearIn,gearOut,duration){sym.$({countNum:gearIn}).animate({countNum:gearOut},{duration:duration,easeOut:'cubic',step:function(){sym.getSymbol("circuitMc").$("gear").text(Math.round(this.countNum));},});}
sym.speedChange=function(speedIn,speedOut,duration){sym.$({countNum:speedIn}).animate({countNum:speedOut},{duration:duration,easeOut:'cubic',step:function(){sym.getSymbol("circuitMc").$("speed").html(Math.round(this.countNum));},});}
$('img').on('dragstart',function(e){e.preventDefault();});});
//Edge binding end
})("stage");
//Edge symbol end:'stage'

//=========================================================

//Edge symbol: 'Bg'
(function(symbolName){})("Bg");
//Edge symbol end:'Bg'

//=========================================================

//Edge symbol: 'StyleMc'
(function(symbolName){})("StyleMc");
//Edge symbol end:'StyleMc'

//=========================================================

//Edge symbol: 'Calendar'
(function(symbolName){})("CalendarMc");
//Edge symbol end:'CalendarMc'

//=========================================================

//Edge symbol: 'ChampionshipMc'
(function(symbolName){})("DriverChampMc");
//Edge symbol end:'DriverChampMc'

//=========================================================

//Edge symbol: 'MenuButtonsMc'
(function(symbolName){})("MenuButtonsMc");
//Edge symbol end:'MenuButtonsMc'

//=========================================================

//Edge symbol: 'MenuBtn'
(function(symbolName){})("MenuBtn");
//Edge symbol end:'MenuBtn'

//=========================================================

//Edge symbol: 'MenuBtn_1'
(function(symbolName){})("RaceBtn");
//Edge symbol end:'RaceBtn'

//=========================================================

//Edge symbol: 'DriveCar'
(function(symbolName){})("DriveCar");
//Edge symbol end:'DriveCar'

//=========================================================

//Edge symbol: 'TeamChampMc'
(function(symbolName){})("TeamChampMc");
//Edge symbol end:'TeamChampMc'

//=========================================================

//Edge symbol: 'Preloader'
(function(symbolName){})("Preloader");
//Edge symbol end:'Preloader'

//=========================================================

//Edge symbol: 'TeamButtonStrip'
(function(symbolName){})("TeamButtonStrip");
//Edge symbol end:'TeamButtonStrip'

//=========================================================

//Edge symbol: 'TeamBtns'
(function(symbolName){})("TeamBtns");
//Edge symbol end:'TeamBtns'

//=========================================================

//Edge symbol: 'DriversMc'
(function(symbolName){})("DriversMc");
//Edge symbol end:'DriversMc'

//=========================================================

//Edge symbol: 'CircuitMc'
(function(symbolName){})("CircuitMc");
//Edge symbol end:'CircuitMc'

//=========================================================

//Edge symbol: 'Phase'
(function(symbolName){})("Phase");
//Edge symbol end:'Phase'

//=========================================================

//Edge symbol: 'playPause'
(function(symbolName){})("playPause");
//Edge symbol end:'playPause'

//=========================================================

//Edge symbol: 'status'
(function(symbolName){})("Status");
//Edge symbol end:'Status'

//=========================================================

//Edge symbol: 'LiveMc'
(function(symbolName){})("LiveMc");
//Edge symbol end:'LiveMc'

//=========================================================

//Edge symbol: 'lapCounter'
(function(symbolName){})("lapCounter");
//Edge symbol end:'lapCounter'

//=========================================================

//Edge symbol: 'GridSlider'
(function(symbolName){})("GridSlider");
//Edge symbol end:'GridSlider'

//=========================================================

//Edge symbol: 'Grid'
(function(symbolName){})("Grid");
//Edge symbol end:'Grid'

//=========================================================

//Edge symbol: 'TimingMc'
(function(symbolName){})("TimingMc");
//Edge symbol end:'TimingMc'

//=========================================================

//Edge symbol: 'ResultMc'
(function(symbolName){})("ResultMc");
//Edge symbol end:'ResultMc'

//=========================================================

//Edge symbol: 'PhaseBtn'
(function(symbolName){})("PhaseBtn");
//Edge symbol end:'PhaseBtn'

//=========================================================

//Edge symbol: 'Home'
(function(symbolName){})("Home");
//Edge symbol end:'Home'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.getParentSymbol().$("speed").html("260");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",0,function(sym,e){sym.getComposition().getStage().speedChange(100,300,1150);sym.getComposition().getStage().gearChange(1,7,1150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1500,function(sym,e){sym.getComposition().getStage().speedChange(180,280,1700);sym.getComposition().getStage().gearChange(4,6,1700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3500,function(sym,e){sym.getComposition().getStage().speedChange(280,220,2200);sym.getComposition().getStage().gearChange(7,5,2200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1139,function(sym,e){sym.getComposition().getStage().speedChange(300,180,800);sym.getComposition().getStage().gearChange(7,4,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3310,function(sym,e){sym.getComposition().getStage().speedChange(280,100,180);sym.getComposition().getStage().gearChange(6,3,180);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5750,function(sym,e){sym.getComposition().getStage().speedChange(220,280,1400);sym.getComposition().getStage().gearChange(5,7,1400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7300,function(sym,e){sym.getComposition().getStage().speedChange(280,250,400);sym.getComposition().getStage().gearChange(7,5,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7750,function(sym,e){sym.getComposition().getStage().speedChange(250,280,2000);sym.getComposition().getStage().gearChange(5,7,2000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9900,function(sym,e){sym.getComposition().getStage().speedChange(280,240,300);sym.getComposition().getStage().gearChange(7,5,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10300,function(sym,e){sym.getComposition().getStage().speedChange(240,290,1400);sym.getComposition().getStage().gearChange(5,7,1400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11800,function(sym,e){sym.getComposition().getStage().speedChange(290,100,1400);sym.getComposition().getStage().gearChange(7,2,1400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12200,function(sym,e){sym.getComposition().getStage().speedChange(100,200,200);sym.getComposition().getStage().gearChange(2,4,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13000,function(sym,e){sym.getComposition().getStage().speedChange(100,200,200);sym.getComposition().getStage().gearChange(2,3,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12500,function(sym,e){sym.getComposition().getStage().speedChange(200,100,400);sym.getComposition().getStage().gearChange(4,2,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13300,function(sym,e){sym.getComposition().getStage().speedChange(200,100,300);sym.getComposition().getStage().gearChange(3,2,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13704,function(sym,e){sym.getComposition().getStage().speedChange(100,260,1200);sym.getComposition().getStage().gearChange(2,7,1200);});
//Edge binding end
})("AUS");
//Edge symbol end:'AUS'

//=========================================================

//Edge symbol: 'carMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1000,function(sym,e){sym.play();});
//Edge binding end
})("CarMc");
//Edge symbol end:'CarMc'

//=========================================================

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.getParentSymbol().$("speed").html("285");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,300,1500);sym.getComposition().getStage().gearChange(1,7,1500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1546,function(sym,e){sym.getComposition().getStage().speedChange(300,80,600);sym.getComposition().getStage().gearChange(7,2,600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2200,function(sym,e){sym.getComposition().getStage().speedChange(80,280,1900);sym.getComposition().getStage().gearChange(2,7,1900);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4100,function(sym,e){sym.getComposition().getStage().speedChange(280,110,350);sym.getComposition().getStage().gearChange(7,3,350);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4500,function(sym,e){sym.getComposition().getStage().speedChange(110,270,2000);sym.getComposition().getStage().gearChange(3,6,2000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6800,function(sym,e){sym.getComposition().getStage().speedChange(270,250,300);sym.getComposition().getStage().gearChange(6,5,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7200,function(sym,e){sym.getComposition().getStage().speedChange(250,200,50);sym.getComposition().getStage().gearChange(5,4,50);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8300,function(sym,e){sym.getComposition().getStage().speedChange(200,80,400);sym.getComposition().getStage().gearChange(6,2,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8700,function(sym,e){sym.getComposition().getStage().speedChange(80,170,500);sym.getComposition().getStage().gearChange(2,4,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9300,function(sym,e){sym.getComposition().getStage().speedChange(170,125,250);sym.getComposition().getStage().gearChange(4,3,250);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9600,function(sym,e){sym.getComposition().getStage().speedChange(125,260,900);sym.getComposition().getStage().gearChange(3,5,900);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10300,function(sym,e){sym.getComposition().getStage().speedChange(260,160,150);sym.getComposition().getStage().gearChange(5,3,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10500,function(sym,e){sym.getComposition().getStage().speedChange(160,200,700);sym.getComposition().getStage().gearChange(3,4,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11250,function(sym,e){sym.getComposition().getStage().speedChange(200,95,150);sym.getComposition().getStage().gearChange(4,2,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11500,function(sym,e){sym.getComposition().getStage().speedChange(95,300,2000);sym.getComposition().getStage().gearChange(2,7,2000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13600,function(sym,e){sym.getComposition().getStage().speedChange(300,96,400);sym.getComposition().getStage().gearChange(7,2,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14100,function(sym,e){sym.getComposition().getStage().speedChange(96,200,800);sym.getComposition().getStage().gearChange(2,4,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7300,function(sym,e){sym.getComposition().getStage().speedChange(200,285,900);sym.getComposition().getStage().gearChange(4,6,900);});
//Edge binding end
})("MAS");
//Edge symbol end:'MAS'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.getParentSymbol().$("speed").html("235");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,300,1800);sym.getComposition().getStage().gearChange(1,7,1800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2000,function(sym,e){sym.getComposition().getStage().speedChange(300,102,300);sym.getComposition().getStage().gearChange(7,2,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2400,function(sym,e){sym.getComposition().getStage().speedChange(102,290,1700);sym.getComposition().getStage().gearChange(2,6,1700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4600,function(sym,e){sym.getComposition().getStage().speedChange(95,260,1600);sym.getComposition().getStage().gearChange(2,5,1600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4200,function(sym,e){sym.getComposition().getStage().speedChange(290,95,300);sym.getComposition().getStage().gearChange(6,2,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6300,function(sym,e){sym.getComposition().getStage().speedChange(260,85,400);sym.getComposition().getStage().gearChange(5,2,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6750,function(sym,e){sym.getComposition().getStage().speedChange(85,230,1200);sym.getComposition().getStage().gearChange(2,5,1200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7600,function(sym,e){sym.getComposition().getStage().speedChange(230,110,200);sym.getComposition().getStage().gearChange(5,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7900,function(sym,e){sym.getComposition().getStage().speedChange(110,275,1800);sym.getComposition().getStage().gearChange(2,6,1800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9500,function(sym,e){sym.getComposition().getStage().speedChange(275,165,400);sym.getComposition().getStage().gearChange(6,4,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10000,function(sym,e){sym.getComposition().getStage().speedChange(165,220,1400);sym.getComposition().getStage().gearChange(4,5,1400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11500,function(sym,e){sym.getComposition().getStage().speedChange(220,140,400);sym.getComposition().getStage().gearChange(5,3,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12000,function(sym,e){sym.getComposition().getStage().speedChange(140,295,1700);sym.getComposition().getStage().gearChange(3,6,1500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13750,function(sym,e){sym.getComposition().getStage().speedChange(295,170,400);sym.getComposition().getStage().gearChange(6,3,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14300,function(sym,e){sym.getComposition().getStage().speedChange(170,235,600);sym.getComposition().getStage().gearChange(3,5,600);});
//Edge binding end
})("BRN");
//Edge symbol end:'BRN'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.getParentSymbol().$("speed").html("275");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,310,450);sym.getComposition().getStage().gearChange(1,7,450);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",500,function(sym,e){sym.getComposition().getStage().speedChange(310,175,450);sym.getComposition().getStage().gearChange(7,4,450);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1000,function(sym,e){sym.getComposition().getStage().speedChange(175,85,600);sym.getComposition().getStage().gearChange(4,2,600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1700,function(sym,e){sym.getComposition().getStage().speedChange(85,275,1100);sym.getComposition().getStage().gearChange(2,6,1100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3100,function(sym,e){sym.getComposition().getStage().speedChange(275,70,350);sym.getComposition().getStage().gearChange(6,2,350);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3500,function(sym,e){sym.getComposition().getStage().speedChange(70,250,1800);sym.getComposition().getStage().gearChange(2,5,1100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6000,function(sym,e){sym.getComposition().getStage().speedChange(250,115,400);sym.getComposition().getStage().gearChange(5,3,250);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6500,function(sym,e){sym.getComposition().getStage().speedChange(115,275,1000);sym.getComposition().getStage().gearChange(3,6,600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7700,function(sym,e){sym.getComposition().getStage().speedChange(275,100,1000);sym.getComposition().getStage().gearChange(6,3,600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8801,function(sym,e){sym.getComposition().getStage().speedChange(100,326,3000);sym.getComposition().getStage().gearChange(3,7,2000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12300,function(sym,e){sym.getComposition().getStage().speedChange(326,80,500);sym.getComposition().getStage().gearChange(7,2,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12900,function(sym,e){sym.getComposition().getStage().speedChange(80,165,500);sym.getComposition().getStage().gearChange(2,4,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13500,function(sym,e){sym.getComposition().getStage().speedChange(165,140,500);sym.getComposition().getStage().gearChange(4,4,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13800,function(sym,e){sym.getComposition().getStage().speedChange(140,275,1100);sym.getComposition().getStage().gearChange(4,6,1000);});
//Edge binding end
})("CHN");
//Edge symbol end:'CHN'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.getParentSymbol().$("speed").html("275");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",41,function(sym,e){sym.getComposition().getStage().speedChange(100,305,1900);sym.getComposition().getStage().gearChange(1,7,1900);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2000,function(sym,e){sym.getComposition().getStage().speedChange(305,140,400);sym.getComposition().getStage().gearChange(7,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2500,function(sym,e){sym.getComposition().getStage().speedChange(140,290,2100);sym.getComposition().getStage().gearChange(3,6,1800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4700,function(sym,e){sym.getComposition().getStage().speedChange(290,140,500);sym.getComposition().getStage().gearChange(6,3,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5300,function(sym,e){sym.getComposition().getStage().speedChange(140,210,500);sym.getComposition().getStage().gearChange(3,5,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5900,function(sym,e){sym.getComposition().getStage().speedChange(210,90,400);sym.getComposition().getStage().gearChange(5,3,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6400,function(sym,e){sym.getComposition().getStage().speedChange(90,260,800);sym.getComposition().getStage().gearChange(3,6,600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7500,function(sym,e){sym.getComposition().getStage().speedChange(260,140,200);sym.getComposition().getStage().gearChange(6,3,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7800,function(sym,e){sym.getComposition().getStage().speedChange(140,260,600);sym.getComposition().getStage().gearChange(3,6,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8500,function(sym,e){sym.getComposition().getStage().speedChange(260,250,200);sym.getComposition().getStage().gearChange(6,5,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8794,function(sym,e){sym.getComposition().getStage().speedChange(250,295,1500);sym.getComposition().getStage().gearChange(6,6,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10400,function(sym,e){sym.getComposition().getStage().speedChange(295,130,300);sym.getComposition().getStage().gearChange(7,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10800,function(sym,e){sym.getComposition().getStage().speedChange(130,215,300);sym.getComposition().getStage().gearChange(3,5,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11500,function(sym,e){sym.getComposition().getStage().speedChange(215,250,400);sym.getComposition().getStage().gearChange(5,6,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12000,function(sym,e){sym.getComposition().getStage().speedChange(250,250,400);sym.getComposition().getStage().gearChange(6,6,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12400,function(sym,e){sym.getComposition().getStage().speedChange(250,200,100);sym.getComposition().getStage().gearChange(5,4,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12616,function(sym,e){sym.getComposition().getStage().speedChange(200,225,100);sym.getComposition().getStage().gearChange(4,5,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12800,function(sym,e){sym.getComposition().getStage().speedChange(225,150,300);sym.getComposition().getStage().gearChange(5,3,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13200,function(sym,e){sym.getComposition().getStage().speedChange(150,275,1700);sym.getComposition().getStage().gearChange(3,6,1600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9795,function(sym,e){sym.getParentSymbol().$("gear").html("7");});
//Edge binding end
})("ESP");
//Edge symbol end:'ESP'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.getParentSymbol().$("speed").html("285");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",43,function(sym,e){sym.getComposition().getStage().speedChange(100,275,400);sym.getComposition().getStage().gearChange(1,6,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",500,function(sym,e){sym.getComposition().getStage().speedChange(275,130,400);sym.getComposition().getStage().gearChange(6,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",942,function(sym,e){sym.getComposition().getStage().speedChange(130,275,2000);sym.getComposition().getStage().gearChange(3,6,1500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3000,function(sym,e){sym.getComposition().getStage().speedChange(275,240,700);sym.getComposition().getStage().gearChange(6,5,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3800,function(sym,e){sym.getComposition().getStage().speedChange(240,140,100);sym.getComposition().getStage().gearChange(5,4,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4700,function(sym,e){sym.getComposition().getStage().speedChange(235,75,300);sym.getComposition().getStage().gearChange(5,2,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5100,function(sym,e){sym.getComposition().getStage().speedChange(75,185,300);sym.getComposition().getStage().gearChange(2,4,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5500,function(sym,e){sym.getComposition().getStage().speedChange(185,65,300);sym.getComposition().getStage().gearChange(4,2,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5800,function(sym,e){sym.getComposition().getStage().speedChange(65,95,300);sym.getComposition().getStage().gearChange(2,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6400,function(sym,e){sym.getComposition().getStage().speedChange(95,290,3000);sym.getComposition().getStage().gearChange(3,7,2500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9000,function(sym,e){sym.getComposition().getStage().speedChange(290,155,300);sym.getComposition().getStage().gearChange(7,4,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9400,function(sym,e){sym.getComposition().getStage().speedChange(155,275,900);sym.getComposition().getStage().gearChange(4,6,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10400,function(sym,e){sym.getComposition().getStage().speedChange(275,215,300);sym.getComposition().getStage().gearChange(6,5,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10700,function(sym,e){sym.getComposition().getStage().speedChange(215,255,800);sym.getComposition().getStage().gearChange(4,5,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11600,function(sym,e){sym.getComposition().getStage().speedChange(255,105,500);sym.getComposition().getStage().gearChange(5,3,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12000,function(sym,e){sym.getComposition().getStage().speedChange(105,245,600);sym.getComposition().getStage().gearChange(3,5,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12700,function(sym,e){sym.getComposition().getStage().speedChange(245,80,200);sym.getComposition().getStage().gearChange(5,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13000,function(sym,e){sym.getComposition().getStage().speedChange(80,215,300);sym.getComposition().getStage().gearChange(2,5,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13400,function(sym,e){sym.getComposition().getStage().speedChange(215,115,200);sym.getComposition().getStage().gearChange(5,3,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13700,function(sym,e){sym.getComposition().getStage().speedChange(115,285,1000);sym.getComposition().getStage().gearChange(3,6,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4000,function(sym,e){sym.getComposition().getStage().speedChange(140,235,600);sym.getComposition().getStage().gearChange(4,5,600);});
//Edge binding end
})("MON");
//Edge symbol end:'MON'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.getParentSymbol().$("speed").html("285");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,220,800);sym.getComposition().getStage().gearChange(1,5,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",900,function(sym,e){sym.getComposition().getStage().speedChange(220,100,400);sym.getComposition().getStage().gearChange(5,3,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1400,function(sym,e){sym.getComposition().getStage().speedChange(100,255,800);sym.getComposition().getStage().gearChange(3,5,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4000,function(sym,e){sym.getComposition().getStage().speedChange(255,110,300);sym.getComposition().getStage().gearChange(5,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4400,function(sym,e){sym.getComposition().getStage().speedChange(110,300,1700);sym.getComposition().getStage().gearChange(3,7,1400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6600,function(sym,e){sym.getComposition().getStage().speedChange(300,210,500);sym.getComposition().getStage().gearChange(7,5,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7200,function(sym,e){sym.getComposition().getStage().speedChange(210,295,1500);sym.getComposition().getStage().gearChange(5,6,1500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8900,function(sym,e){sym.getComposition().getStage().speedChange(295,100,500);sym.getComposition().getStage().gearChange(6,3,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9500,function(sym,e){sym.getComposition().getStage().speedChange(100,316,3900);sym.getComposition().getStage().gearChange(3,7,3700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13500,function(sym,e){sym.getComposition().getStage().speedChange(316,135,350);sym.getComposition().getStage().gearChange(7,3,350);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13900,function(sym,e){sym.getComposition().getStage().speedChange(135,285,1000);sym.getComposition().getStage().gearChange(3,6,1000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2300,function(sym,e){sym.getComposition().getStage().speedChange(255,180,400);sym.getComposition().getStage().gearChange(5,3,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2900,function(sym,e){sym.getComposition().getStage().speedChange(180,255,1000);sym.getComposition().getStage().gearChange(3,5,1000);});
//Edge binding end
})("CAN");
//Edge symbol end:'CAN'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.getParentSymbol().$("speed").html("280");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,300,900);sym.getComposition().getStage().gearChange(1,7,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1000,function(sym,e){sym.getComposition().getStage().speedChange(300,120,400);sym.getComposition().getStage().gearChange(7,2,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1500,function(sym,e){sym.getComposition().getStage().speedChange(120,295,2600);sym.getComposition().getStage().gearChange(2,6,2200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4200,function(sym,e){sym.getComposition().getStage().speedChange(295,65,400);sym.getComposition().getStage().gearChange(6,2,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4700,function(sym,e){sym.getComposition().getStage().speedChange(65,290,2700);sym.getComposition().getStage().gearChange(2,6,2400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7000,function(sym,e){sym.getComposition().getStage().speedChange(290,100,500);sym.getComposition().getStage().gearChange(7,2,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7600,function(sym,e){sym.getComposition().getStage().speedChange(100,255,1000);sym.getComposition().getStage().gearChange(2,5,900);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8800,function(sym,e){sym.getComposition().getStage().speedChange(255,210,1000);sym.getComposition().getStage().gearChange(5,4,1000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9900,function(sym,e){sym.getComposition().getStage().speedChange(210,175,500);sym.getComposition().getStage().gearChange(5,4,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10500,function(sym,e){sym.getComposition().getStage().speedChange(175,280,2000);sym.getComposition().getStage().gearChange(4,6,1600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12600,function(sym,e){sym.getComposition().getStage().speedChange(280,195,300);sym.getComposition().getStage().gearChange(6,4,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13000,function(sym,e){sym.getComposition().getStage().speedChange(195,215,300);sym.getComposition().getStage().gearChange(4,4,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13400,function(sym,e){sym.getComposition().getStage().speedChange(215,145,300);sym.getComposition().getStage().gearChange(4,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13700,function(sym,e){sym.getComposition().getStage().speedChange(145,280,1100);sym.getComposition().getStage().gearChange(3,6,1000);});
//Edge binding end
})("AUT");
//Edge symbol end:'AUT'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.getParentSymbol().$("speed").html("240");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,285,900);sym.getComposition().getStage().gearChange(1,6,900);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1000,function(sym,e){sym.getComposition().getStage().speedChange(285,275,300);sym.getComposition().getStage().gearChange(6,6,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1408,function(sym,e){sym.getComposition().getStage().speedChange(270,295,700);sym.getComposition().getStage().gearChange(6,7,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2200,function(sym,e){sym.getComposition().getStage().speedChange(295,75,300);sym.getComposition().getStage().gearChange(7,2,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3100,function(sym,e){sym.getComposition().getStage().speedChange(75,300,1800);sym.getComposition().getStage().gearChange(2,7,1500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5000,function(sym,e){sym.getComposition().getStage().speedChange(300,140,300);sym.getComposition().getStage().gearChange(7,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6000,function(sym,e){sym.getComposition().getStage().speedChange(140,295,1800);sym.getComposition().getStage().gearChange(3,7,1600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7900,function(sym,e){sym.getComposition().getStage().speedChange(295,275,400);sym.getComposition().getStage().gearChange(7,6,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8400,function(sym,e){sym.getComposition().getStage().speedChange(275,305,1400);sym.getComposition().getStage().gearChange(6,7,1100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9900,function(sym,e){sym.getComposition().getStage().speedChange(305,220,1100);sym.getComposition().getStage().gearChange(7,5,1100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10500,function(sym,e){sym.getComposition().getStage().speedChange(220,300,2200);sym.getComposition().getStage().gearChange(5,7,1800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12800,function(sym,e){sym.getComposition().getStage().speedChange(300,240,200);sym.getComposition().getStage().gearChange(7,5,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13100,function(sym,e){sym.getComposition().getStage().speedChange(240,285,800);sym.getComposition().getStage().gearChange(5,6,600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14000,function(sym,e){sym.getComposition().getStage().speedChange(285,145,400);sym.getComposition().getStage().gearChange(6,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14500,function(sym,e){sym.getComposition().getStage().speedChange(145,240,400);sym.getComposition().getStage().gearChange(3,5,300);});
//Edge binding end
})("ENG");
//Edge symbol end:'ENG'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.$("speed").html("265");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,295,2600);sym.getComposition().getStage().gearChange(1,7,2400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2700,function(sym,e){sym.getComposition().getStage().speedChange(295,100,300);sym.getComposition().getStage().gearChange(7,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3115,function(sym,e){sym.getComposition().getStage().speedChange(100,305,3600);sym.getComposition().getStage().gearChange(3,7,3200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6808,function(sym,e){sym.getComposition().getStage().speedChange(305,65,400);sym.getComposition().getStage().gearChange(7,2,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7300,function(sym,e){sym.getComposition().getStage().speedChange(65,295,1900);sym.getComposition().getStage().gearChange(2,7,1500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9300,function(sym,e){sym.getComposition().getStage().speedChange(295,105,300);sym.getComposition().getStage().gearChange(7,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9700,function(sym,e){sym.getComposition().getStage().speedChange(105,285,1500);sym.getComposition().getStage().gearChange(3,6,1300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11300,function(sym,e){sym.getComposition().getStage().speedChange(285,185,300);sym.getComposition().getStage().gearChange(6,4,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11700,function(sym,e){sym.getComposition().getStage().speedChange(185,255,1000);sym.getComposition().getStage().gearChange(4,5,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12394,function(sym,e){sym.getComposition().getStage().speedChange(255,170,400);sym.getComposition().getStage().gearChange(5,4,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12900,function(sym,e){sym.getComposition().getStage().speedChange(170,225,600);sym.getComposition().getStage().gearChange(4,5,600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13600,function(sym,e){sym.getComposition().getStage().speedChange(225,265,1400);sym.getComposition().getStage().gearChange(4,6,1200);});
//Edge binding end
})("GER");
//Edge symbol end:'GER'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.$("speed").html("260");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,300,1500);sym.getComposition().getStage().gearChange(1,7,1500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1600,function(sym,e){sym.getComposition().getStage().speedChange(300,100,300);sym.getComposition().getStage().gearChange(7,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2000,function(sym,e){sym.getComposition().getStage().speedChange(100,260,1000);sym.getComposition().getStage().gearChange(3,6,1000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3300,function(sym,e){sym.getComposition().getStage().speedChange(260,140,400);sym.getComposition().getStage().gearChange(6,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3700,function(sym,e){sym.getComposition().getStage().speedChange(140,290,2400);sym.getComposition().getStage().gearChange(3,6,2000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6200,function(sym,e){sym.getComposition().getStage().speedChange(290,150,350);sym.getComposition().getStage().gearChange(6,3,350);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6600,function(sym,e){sym.getComposition().getStage().speedChange(150,225,500);sym.getComposition().getStage().gearChange(3,5,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7200,function(sym,e){sym.getComposition().getStage().speedChange(225,100,250);sym.getComposition().getStage().gearChange(5,3,250);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7500,function(sym,e){sym.getComposition().getStage().speedChange(100,250,900);sym.getComposition().getStage().gearChange(3,5,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8500,function(sym,e){sym.getComposition().getStage().speedChange(250,170,150);sym.getComposition().getStage().gearChange(5,4,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8700,function(sym,e){sym.getComposition().getStage().speedChange(170,270,1100);sym.getComposition().getStage().gearChange(4,6,900);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9900,function(sym,e){sym.getComposition().getStage().speedChange(270,235,150);sym.getComposition().getStage().gearChange(6,5,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10100,function(sym,e){sym.getComposition().getStage().speedChange(235,280,900);sym.getComposition().getStage().gearChange(5,6,900);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11100,function(sym,e){sym.getComposition().getStage().speedChange(280,240,250);sym.getComposition().getStage().gearChange(6,5,250);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11400,function(sym,e){sym.getComposition().getStage().speedChange(240,275,800);sym.getComposition().getStage().gearChange(5,6,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12300,function(sym,e){sym.getComposition().getStage().speedChange(275,100,250);sym.getComposition().getStage().gearChange(6,3,250);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12625,function(sym,e){sym.getComposition().getStage().speedChange(100,240,800);sym.getComposition().getStage().gearChange(3,5,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13500,function(sym,e){sym.getComposition().getStage().speedChange(240,125,250);sym.getComposition().getStage().gearChange(5,3,250);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13800,function(sym,e){sym.getComposition().getStage().speedChange(125,260,1000);sym.getComposition().getStage().gearChange(3,6,900);});
//Edge binding end
})("HUN");
//Edge symbol end:'HUN'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.$("speed").html("260");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(50,150,300);sym.getComposition().getStage().gearChange(1,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",400,function(sym,e){sym.getComposition().getStage().speedChange(150,80,250);sym.getComposition().getStage().gearChange(3,2,250);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",700,function(sym,e){sym.getComposition().getStage().speedChange(80,315,3000);sym.getComposition().getStage().gearChange(2,7,3000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4600,function(sym,e){sym.getComposition().getStage().speedChange(315,125,700);sym.getComposition().getStage().gearChange(7,3,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5400,function(sym,e){sym.getComposition().getStage().speedChange(125,255,600);sym.getComposition().getStage().gearChange(3,5,600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6100,function(sym,e){sym.getComposition().getStage().speedChange(255,150,900);sym.getComposition().getStage().gearChange(5,3,900);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7100,function(sym,e){sym.getComposition().getStage().speedChange(150,290,700);sym.getComposition().getStage().gearChange(3,6,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7900,function(sym,e){sym.getComposition().getStage().speedChange(290,160,200);sym.getComposition().getStage().gearChange(6,4,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8200,function(sym,e){sym.getComposition().getStage().speedChange(160,285,900);sym.getComposition().getStage().gearChange(4,6,900);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9200,function(sym,e){sym.getComposition().getStage().speedChange(285,150,150);sym.getComposition().getStage().gearChange(6,3,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9400,function(sym,e){sym.getComposition().getStage().speedChange(150,260,700);sym.getComposition().getStage().gearChange(3,6,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10200,function(sym,e){sym.getComposition().getStage().speedChange(260,150,700);sym.getComposition().getStage().gearChange(6,3,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11000,function(sym,e){sym.getComposition().getStage().speedChange(150,315,2000);sym.getComposition().getStage().gearChange(3,7,2000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13700,function(sym,e){sym.getComposition().getStage().speedChange(315,90,500);sym.getComposition().getStage().gearChange(7,2,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14300,function(sym,e){sym.getComposition().getStage().speedChange(90,260,600);sym.getComposition().getStage().gearChange(2,5,500);});
//Edge binding end
})("BEL");
//Edge symbol end:'BEL'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.$("speed").html("290");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,335,2100);sym.getComposition().getStage().gearChange(1,7,2000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2200,function(sym,e){sym.getComposition().getStage().speedChange(335,80,500);sym.getComposition().getStage().gearChange(7,2,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2800,function(sym,e){sym.getComposition().getStage().speedChange(80,335,2300);sym.getComposition().getStage().gearChange(2,7,2000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5200,function(sym,e){sym.getComposition().getStage().speedChange(335,115,300);sym.getComposition().getStage().gearChange(7,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5600,function(sym,e){sym.getComposition().getStage().speedChange(115,280,700);sym.getComposition().getStage().gearChange(3,6,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6400,function(sym,e){sym.getComposition().getStage().speedChange(280,170,200);sym.getComposition().getStage().gearChange(6,4,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6700,function(sym,e){sym.getComposition().getStage().speedChange(170,330,2200);sym.getComposition().getStage().gearChange(4,7,2000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10000,function(sym,e){sym.getComposition().getStage().speedChange(330,200,700);sym.getComposition().getStage().gearChange(7,4,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10800,function(sym,e){sym.getComposition().getStage().speedChange(200,335,2200);sym.getComposition().getStage().gearChange(4,7,2200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13100,function(sym,e){sym.getComposition().getStage().speedChange(335,185,500);sym.getComposition().getStage().gearChange(7,4,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13700,function(sym,e){sym.getComposition().getStage().speedChange(185,290,1100);sym.getComposition().getStage().gearChange(4,6,1100);});
//Edge binding end
})("ITA");
//Edge symbol end:'ITA'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.$("speed").html("240");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,290,900);sym.getComposition().getStage().gearChange(1,7,900);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1000,function(sym,e){sym.getComposition().getStage().speedChange(290,200,150);sym.getComposition().getStage().gearChange(7,5,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1200,function(sym,e){sym.getComposition().getStage().speedChange(200,220,200);sym.getComposition().getStage().gearChange(5,5,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1500,function(sym,e){sym.getComposition().getStage().speedChange(220,90,100);sym.getComposition().getStage().gearChange(5,2,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1600,function(sym,e){sym.getComposition().getStage().speedChange(90,270,1000);sym.getComposition().getStage().gearChange(2,6,1000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2700,function(sym,e){sym.getComposition().getStage().speedChange(270,120,200);sym.getComposition().getStage().gearChange(6,3,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3000,function(sym,e){sym.getComposition().getStage().speedChange(120,295,2000);sym.getComposition().getStage().gearChange(3,6,2000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5200,function(sym,e){sym.getComposition().getStage().speedChange(295,110,200);sym.getComposition().getStage().gearChange(6,3,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5500,function(sym,e){sym.getComposition().getStage().speedChange(110,200,300);sym.getComposition().getStage().gearChange(3,4,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5900,function(sym,e){sym.getComposition().getStage().speedChange(200,160,100);sym.getComposition().getStage().gearChange(4,3,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6100,function(sym,e){sym.getComposition().getStage().speedChange(160,220,200);sym.getComposition().getStage().gearChange(3,4,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6400,function(sym,e){sym.getComposition().getStage().speedChange(220,120,200);sym.getComposition().getStage().gearChange(4,3,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6700,function(sym,e){sym.getComposition().getStage().speedChange(120,250,800);sym.getComposition().getStage().gearChange(3,5,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7600,function(sym,e){sym.getComposition().getStage().speedChange(250,160,200);sym.getComposition().getStage().gearChange(5,3,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7900,function(sym,e){sym.getComposition().getStage().speedChange(160,220,200);sym.getComposition().getStage().gearChange(3,5,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8200,function(sym,e){sym.getComposition().getStage().speedChange(220,170,200);sym.getComposition().getStage().gearChange(5,4,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8500,function(sym,e){sym.getComposition().getStage().speedChange(170,245,400);sym.getComposition().getStage().gearChange(4,5,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9000,function(sym,e){sym.getComposition().getStage().speedChange(245,80,200);sym.getComposition().getStage().gearChange(5,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9301,function(sym,e){sym.getComposition().getStage().speedChange(80,280,1000);sym.getComposition().getStage().gearChange(2,6,900);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10600,function(sym,e){sym.getComposition().getStage().speedChange(280,85,100);sym.getComposition().getStage().gearChange(6,2,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10800,function(sym,e){sym.getComposition().getStage().speedChange(85,230,700);sym.getComposition().getStage().gearChange(2,6,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11600,function(sym,e){sym.getComposition().getStage().speedChange(230,200,300);sym.getComposition().getStage().gearChange(6,5,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12000,function(sym,e){sym.getComposition().getStage().speedChange(200,250,300);sym.getComposition().getStage().gearChange(5,6,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12400,function(sym,e){sym.getComposition().getStage().speedChange(250,80,300);sym.getComposition().getStage().gearChange(6,2,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12700,function(sym,e){sym.getComposition().getStage().speedChange(80,260,1200);sym.getComposition().getStage().gearChange(4,5,1200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14000,function(sym,e){sym.getComposition().getStage().speedChange(260,150,300);sym.getComposition().getStage().gearChange(5,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14400,function(sym,e){sym.getComposition().getStage().speedChange(150,240,500);sym.getComposition().getStage().gearChange(3,5,500);});
//Edge binding end
})("SIN");
//Edge symbol end:'SIN'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.$("speed").html("275");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,300,1200);sym.getComposition().getStage().gearChange(1,7,1150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1300,function(sym,e){sym.getComposition().getStage().speedChange(300,130,400);sym.getComposition().getStage().gearChange(7,3,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1800,function(sym,e){sym.getComposition().getStage().speedChange(130,240,300);sym.getComposition().getStage().gearChange(3,5,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2200,function(sym,e){sym.getComposition().getStage().speedChange(240,210,200);sym.getComposition().getStage().gearChange(5,5,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2400,function(sym,e){sym.getComposition().getStage().speedChange(210,260,3200);sym.getComposition().getStage().gearChange(5,6,2000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5700,function(sym,e){sym.getComposition().getStage().speedChange(260,140,200);sym.getComposition().getStage().gearChange(6,3,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6000,function(sym,e){sym.getComposition().getStage().speedChange(140,275,800);sym.getComposition().getStage().gearChange(3,6,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6900,function(sym,e){sym.getComposition().getStage().speedChange(275,70,200);sym.getComposition().getStage().gearChange(6,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7200,function(sym,e){sym.getComposition().getStage().speedChange(70,295,1900);sym.getComposition().getStage().gearChange(2,6,1200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9200,function(sym,e){sym.getComposition().getStage().speedChange(295,185,800);sym.getComposition().getStage().gearChange(6,4,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10100,function(sym,e){sym.getComposition().getStage().speedChange(185,305,1900);sym.getComposition().getStage().gearChange(4,7,1200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12100,function(sym,e){sym.getComposition().getStage().speedChange(305,290,800);sym.getComposition().getStage().gearChange(7,6,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13400,function(sym,e){sym.getComposition().getStage().speedChange(290,95,300);sym.getComposition().getStage().gearChange(6,2,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13800,function(sym,e){sym.getComposition().getStage().speedChange(95,275,1000);sym.getComposition().getStage().gearChange(2,6,1000);});
//Edge binding end
})("JPN");
//Edge symbol end:'JPN'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.$("speed").html("200");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,321,2500);sym.getComposition().getStage().gearChange(1,7,2500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2600,function(sym,e){sym.getComposition().getStage().speedChange(321,128,200);sym.getComposition().getStage().gearChange(7,3,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2900,function(sym,e){sym.getComposition().getStage().speedChange(128,260,1800);sym.getComposition().getStage().gearChange(3,5,1300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4800,function(sym,e){sym.getComposition().getStage().speedChange(260,90,200);sym.getComposition().getStage().gearChange(5,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5100,function(sym,e){sym.getComposition().getStage().speedChange(90,273,800);sym.getComposition().getStage().gearChange(2,5,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6000,function(sym,e){sym.getComposition().getStage().speedChange(273,110,100);sym.getComposition().getStage().gearChange(5,3,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6200,function(sym,e){sym.getComposition().getStage().speedChange(110,280,700);sym.getComposition().getStage().gearChange(3,6,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7000,function(sym,e){sym.getComposition().getStage().speedChange(280,125,150);sym.getComposition().getStage().gearChange(6,3,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7800,function(sym,e){sym.getComposition().getStage().speedChange(260,180,300);sym.getComposition().getStage().gearChange(5,4,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8200,function(sym,e){sym.getComposition().getStage().speedChange(180,250,500);sym.getComposition().getStage().gearChange(4,5,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8800,function(sym,e){sym.getComposition().getStage().speedChange(250,140,100);sym.getComposition().getStage().gearChange(5,3,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9000,function(sym,e){sym.getComposition().getStage().speedChange(140,315,1600);sym.getComposition().getStage().gearChange(3,7,1600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11700,function(sym,e){sym.getComposition().getStage().speedChange(315,160,100);sym.getComposition().getStage().gearChange(7,3,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11900,function(sym,e){sym.getComposition().getStage().speedChange(160,250,800);sym.getComposition().getStage().gearChange(3,6,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12800,function(sym,e){sym.getComposition().getStage().speedChange(250,100,100);sym.getComposition().getStage().gearChange(6,3,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13000,function(sym,e){sym.getComposition().getStage().speedChange(100,250,600);sym.getComposition().getStage().gearChange(3,5,600);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13700,function(sym,e){sym.getComposition().getStage().speedChange(250,100,100);sym.getComposition().getStage().gearChange(5,2,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13900,function(sym,e){sym.getComposition().getStage().speedChange(100,150,200);sym.getComposition().getStage().gearChange(2,4,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14200,function(sym,e){sym.getComposition().getStage().speedChange(150,100,100);sym.getComposition().getStage().gearChange(4,2,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14400,function(sym,e){sym.getComposition().getStage().speedChange(100,200,500);sym.getComposition().getStage().gearChange(2,5,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7200,function(sym,e){sym.getComposition().getStage().speedChange(125,260,500);sym.getComposition().getStage().gearChange(3,5,500);});
//Edge binding end
})("RUS");
//Edge symbol end:'RUS'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.$("speed").html("255");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,300,1300);sym.getComposition().getStage().gearChange(1,7,1100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1400,function(sym,e){sym.getComposition().getStage().speedChange(300,100,200);sym.getComposition().getStage().gearChange(7,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1700,function(sym,e){sym.getComposition().getStage().speedChange(100,280,1800);sym.getComposition().getStage().gearChange(2,6,1500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3900,function(sym,e){sym.getComposition().getStage().speedChange(280,150,800);sym.getComposition().getStage().gearChange(6,3,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4800,function(sym,e){sym.getComposition().getStage().speedChange(160,110,300);sym.getComposition().getStage().gearChange(4,3,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5200,function(sym,e){sym.getComposition().getStage().speedChange(110,290,1600);sym.getComposition().getStage().gearChange(3,6,1400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6700,function(sym,e){sym.getComposition().getStage().speedChange(290,100,200);sym.getComposition().getStage().gearChange(6,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7000,function(sym,e){sym.getComposition().getStage().speedChange(100,308,2500);sym.getComposition().getStage().gearChange(2,7,1800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9900,function(sym,e){sym.getComposition().getStage().speedChange(308,110,200);sym.getComposition().getStage().gearChange(7,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10200,function(sym,e){sym.getComposition().getStage().speedChange(110,200,200);sym.getComposition().getStage().gearChange(2,4,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10500,function(sym,e){sym.getComposition().getStage().speedChange(200,100,300);sym.getComposition().getStage().gearChange(4,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10900,function(sym,e){sym.getComposition().getStage().speedChange(100,200,300);sym.getComposition().getStage().gearChange(2,4,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11300,function(sym,e){sym.getComposition().getStage().speedChange(200,95,300);sym.getComposition().getStage().gearChange(4,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11600,function(sym,e){sym.getComposition().getStage().speedChange(95,260,2000);sym.getComposition().getStage().gearChange(2,6,1100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13400,function(sym,e){sym.getComposition().getStage().speedChange(260,175,250);sym.getComposition().getStage().gearChange(6,4,250);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13700,function(sym,e){sym.getComposition().getStage().speedChange(175,220,400);sym.getComposition().getStage().gearChange(4,5,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14200,function(sym,e){sym.getComposition().getStage().speedChange(220,100,200);sym.getComposition().getStage().gearChange(5,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14500,function(sym,e){sym.getComposition().getStage().speedChange(100,225,400);sym.getComposition().getStage().gearChange(2,6,400);});
//Edge binding end
})("USA");
//Edge symbol end:'USA'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.$("speed").html("310");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,250,700);sym.getComposition().getStage().gearChange(1,5,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",800,function(sym,e){sym.getComposition().getStage().speedChange(250,140,600);sym.getComposition().getStage().gearChange(5,3,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1500,function(sym,e){sym.getComposition().getStage().speedChange(140,315,2500);sym.getComposition().getStage().gearChange(3,7,2000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4500,function(sym,e){sym.getComposition().getStage().speedChange(315,140,300);sym.getComposition().getStage().gearChange(7,4,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4900,function(sym,e){sym.getComposition().getStage().speedChange(140,295,1800);sym.getComposition().getStage().gearChange(4,7,1300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6900,function(sym,e){sym.getComposition().getStage().speedChange(295,165,700);sym.getComposition().getStage().gearChange(7,5,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7700,function(sym,e){sym.getComposition().getStage().speedChange(165,90,300);sym.getComposition().getStage().gearChange(5,2,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8100,function(sym,e){sym.getComposition().getStage().speedChange(90,135,150);sym.getComposition().getStage().gearChange(2,3,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8300,function(sym,e){sym.getComposition().getStage().speedChange(135,105,150);sym.getComposition().getStage().gearChange(3,2,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",8500,function(sym,e){sym.getComposition().getStage().speedChange(105,250,700);sym.getComposition().getStage().gearChange(2,6,700);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9300,function(sym,e){sym.getComposition().getStage().speedChange(250,80,150);sym.getComposition().getStage().gearChange(6,2,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",9500,function(sym,e){sym.getComposition().getStage().speedChange(80,250,1400);sym.getComposition().getStage().gearChange(2,6,1000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11000,function(sym,e){sym.getComposition().getStage().speedChange(250,110,200);sym.getComposition().getStage().gearChange(6,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11300,function(sym,e){sym.getComposition().getStage().speedChange(110,310,3400);sym.getComposition().getStage().gearChange(2,7,2800);});
//Edge binding end
})("BRA");
//Edge symbol end:'BRA'

//=========================================================

//=========================================================

//Edge symbol: 'circuitMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",15000,function(sym,e){sym.stop();sym.getSymbol("carMc").stop();sym.$("speed").html("180");});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10,function(sym,e){sym.getComposition().getStage().speedChange(100,300,900);sym.getComposition().getStage().gearChange(1,7,800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1000,function(sym,e){sym.getComposition().getStage().speedChange(300,130,150);sym.getComposition().getStage().gearChange(7,3,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3600,function(sym,e){sym.getComposition().getStage().speedChange(300,80,200);sym.getComposition().getStage().gearChange(7,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",3900,function(sym,e){sym.getComposition().getStage().speedChange(80,120,200);sym.getComposition().getStage().gearChange(2,3,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4115,function(sym,e){sym.getComposition().getStage().speedChange(120,70,200);sym.getComposition().getStage().gearChange(3,2,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4300,function(sym,e){sym.getComposition().getStage().speedChange(70,315,2800);sym.getComposition().getStage().gearChange(2,7,2200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7300,function(sym,e){sym.getComposition().getStage().speedChange(315,80,400);sym.getComposition().getStage().gearChange(7,2,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",7800,function(sym,e){sym.getComposition().getStage().speedChange(80,315,2300);sym.getComposition().getStage().gearChange(2,7,1800);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10200,function(sym,e){sym.getComposition().getStage().speedChange(315,125,400);sym.getComposition().getStage().gearChange(7,3,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",10700,function(sym,e){sym.getComposition().getStage().speedChange(125,180,300);sym.getComposition().getStage().gearChange(3,5,300);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11000,function(sym,e){sym.getComposition().getStage().speedChange(180,110,100);sym.getComposition().getStage().gearChange(5,3,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",11200,function(sym,e){sym.getComposition().getStage().speedChange(110,280,1200);sym.getComposition().getStage().gearChange(3,6,900);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12500,function(sym,e){sym.getComposition().getStage().speedChange(280,100,150);sym.getComposition().getStage().gearChange(6,3,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12700,function(sym,e){sym.getComposition().getStage().speedChange(100,160,100);sym.getComposition().getStage().gearChange(3,4,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",12800,function(sym,e){sym.getComposition().getStage().speedChange(160,95,100);sym.getComposition().getStage().gearChange(4,3,100);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",13000,function(sym,e){sym.getComposition().getStage().speedChange(95,260,900);sym.getComposition().getStage().gearChange(3,6,500);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14000,function(sym,e){sym.getComposition().getStage().speedChange(260,280,400);sym.getComposition().getStage().gearChange(6,6,400);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14500,function(sym,e){sym.getComposition().getStage().speedChange(280,125,150);sym.getComposition().getStage().gearChange(6,3,150);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",14700,function(sym,e){sym.getComposition().getStage().speedChange(125,185,200);sym.getComposition().getStage().gearChange(3,4,200);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",1200,function(sym,e){sym.getComposition().getStage().speedChange(130,300,2300);sym.getComposition().getStage().gearChange(3,7,2000);});
//Edge binding end
})("UAE");
//Edge symbol end:'UAE'

//=========================================================

//Edge symbol: 'styleHead'
(function(symbolName){})("styleHead");
//Edge symbol end:'styleHead'

//=========================================================

//Edge symbol: 'StyleBase'
(function(symbolName){})("StyleBase");
//Edge symbol end:'StyleBase'

//=========================================================

//Edge symbol: 'MapIntro'
(function(symbolName){})("MapIntro");
//Edge symbol end:'MapIntro'

//=========================================================

//Edge symbol: 'MapButton'
(function(symbolName){})("MapButton");
//Edge symbol end:'MapButton'

//=========================================================

//Edge symbol: 'Down-level'
(function(symbolName){})("Down-level");
//Edge symbol end:'Down-level'
})(jQuery,AdobeEdge,"GraphicNews31524");