
(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 headline;var headlinetxt=sym.getSymbol("styleHead").$("headlineTxt").css("pointer-events","none");var source;var sourcetxt=sym.getSymbol("styleBase").$("sourceTxt").css("pointer-events","none");var txt=[];txt[0]=sym.$("txt0").css({"pointer-events":"none",});txt[1]=sym.$("txt1").css({"pointer-events":"none"});txt[2]=sym.$("txt2").css({"pointer-events":"none"});txt[3]=sym.$("txt3").css({"pointer-events":"none"});txt[4]=sym.$("txt4").css({"pointer-events":"none"});txt[5]=sym.$("txt5").css({"pointer-events":"none"});txt[6]=sym.$("txt6").css({"pointer-events":"none"});txt[7]=sym.$("txt7").css({"pointer-events":"none"});txt[8]=sym.$("txt8").css({"pointer-events":"none"});txt[9]=sym.$("txt9").css({"pointer-events":"none"});txt[10]=sym.$("txt10").css({"pointer-events":"none"});txt[11]=sym.$("txt11").css({"pointer-events":"none"});txt[12]=sym.$("txt12").css({"pointer-events":"none"});var txtArr=[];$.ajax({type:"GET",url:"GN30424.xml",dataType:"xml",success:function(xml){custonCol=$(xml).find('customColour').text();sym.getSymbol("styleHead").$("headerBox").css("background-color",custonCol);headline=$(xml).find('headline').text();headlinetxt.html(headline);source=$(xml).find('source').text();sourcetxt.html(source);for(var i=0;i<13;i++){txtArr[i]=$(xml).find('txt'+i).text();txt[i].html(txtArr[i]);}}});sym.$("btnStopper").fadeOut(0);sym.$("txt12").fadeOut(0);sym.$("btnNext").on('touchstart click',function(e){e.stopPropagation();e.preventDefault();date++;btnClick();});sym.$("btnNext").mouseover(function(){sym.getSymbol("btnNext").$("btnOut").fadeOut(200);});sym.$("btnNext").mouseout(function(){sym.getSymbol("btnNext").$("btnOut").fadeIn(200);});sym.$("btnBack").on('touchstart click',function(e){e.stopPropagation();e.preventDefault();date--;btnClick();});sym.$("btnBack").mouseover(function(){sym.getSymbol("btnBack").$("btnOut").fadeOut(200);});sym.$("btnBack").mouseout(function(){sym.getSymbol("btnBack").$("btnOut").fadeIn(200);});function hideDots(){var resetmenu_arr=["dot0","dot1","dot2","dot3","dot4","dot5","dot6","dot7","dot8","dot9"];$.each(resetmenu_arr,function(index,value){sym.getSymbol("dotsMc").$(value).fadeOut(0);});}
hideDots();var plane=0;var date=0;function btnClick(){hideDots();if(date<=0){sym.$("btnBack").fadeOut(0);}else{sym.$("btnBack").fadeIn(0);}
if(date>=10){sym.$("btnNext").fadeOut(0);}else{sym.$("btnNext").fadeIn(0);}
if(date==2){if(plane==1){sym.$("txt12").fadeOut(500);sym.$("planeTop").delay(2200).fadeIn(500);sym.getSymbol("planeSideMc").playReverse();plane=0;sym.$("btnStopper").fadeIn(0);sym.$("dotsMc").fadeOut(0);sym.$("dotsMc").delay(2500).fadeIn(0);sym.getSymbol("dotsMc").$("dot"+date).delay(2500).fadeIn(500);sym.$("btnStopper").delay(2500).fadeOut(0);sym.$("txt11").delay(2500).fadeIn(500);}}
if(date==3){if(plane==0){sym.$("txt11").fadeOut(500);sym.$("planeTop").fadeOut(500);sym.getSymbol("planeSideMc").play(1);plane=1;sym.$("btnStopper").fadeIn(0);sym.$("dotsMc").fadeOut(0);sym.$("dotsMc").delay(2500).fadeIn(0);sym.getSymbol("dotsMc").$("dot"+date).delay(2500).fadeIn(500);sym.$("btnStopper").delay(2500).fadeOut(0);sym.$("txt12").delay(2500).fadeIn(500);}}
sym.getSymbol("dotsMc").$("dot"+date).fadeIn(500);sym.getSymbol("dotsMc").$("dot"+date).animate({width:50,height:50},300);sym.getSymbol("dotsMc").$("dot"+date).animate({width:30,height:30},300);sym.$("txt0").empty();sym.$("txt0").append(txtArr[date]);}
btnClick();sym.getSymbol("btnNext").$("btnOut").fadeOut(0);});
//Edge binding end 

// VIDEO BTN 1 =========================================================

// VIDEO BTN 2 =========================================================
})("stage");
//Edge symbol end:'stage'

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

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

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

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

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

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

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

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

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

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

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

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

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

//Edge symbol: 'StyleBase'
(function(symbolName){})("StyleBase");
//Edge symbol end:'StyleBase'
})(jQuery,AdobeEdge,"GNews30424");