
(function($,Edge,compId){var Composition=Edge.Composition,Symbol=Edge.Symbol;
//Edge symbol: 'stage'
(function(symbolName){Symbol.bindElementAction(compId,symbolName,"document","compositionReady",function(sym,e){for(var b=0;b<3;b++){sym.getSymbol("menuBtnsMc").getSymbol("menuBtn"+b).$("menuIcon").attr("src","images/menuIcon"+b+".png");}
var btnNo=0;var clickCount=0;var clickDone=0;var xmlNo="GN32118.xml";var headline;var headlinetxt=sym.getSymbol("styleHead").$("headlineTxt").css("pointer-events","none");var stand;var standtxt=sym.getSymbol("styleHead").$("standTxt").css("pointer-events","none");var source;var sourcetxt=sym.getSymbol("styleBase").$("sourceTxt").css("pointer-events","none");var bodyTxt;var bodyTxttxt=sym.$("bodyTxt").css("pointer-events","none");var txt=[];txt[0]=sym.getSymbol("wormMc").$("txt0").css({"pointer-events":"none","padding-right":"95px","padding-left":"6px","padding-bottom":"6px","padding-top":"6px","background-color":"rgba(0,0,0,1)"});txt[1]=sym.getSymbol("wormMc").$("txt1").css({"pointer-events":"none"});txt[2]=sym.getSymbol("wormMc").$("txt2").css({"pointer-events":"none"});txt[3]=sym.getSymbol("capMc").$("txt3").css({"pointer-events":"none"});txt[4]=sym.getSymbol("capMc").$("txt4").css({"pointer-events":"none"});txt[5]=sym.getSymbol("capMc").$("txt5").css({"pointer-events":"none"});txt[6]=sym.getSymbol("capMc").$("txt6").css({"pointer-events":"none"});txt[7]=sym.getSymbol("bodyMc").$("txt7").css({"pointer-events":"none"});txt[8]=sym.getSymbol("bodyMc").$("txt8").css({"pointer-events":"none"});txt[9]=sym.getSymbol("bodyMc").$("txt9").css({"pointer-events":"none"});txt[10]=sym.getSymbol("fixMc").getSymbol("fixTopMc").$("txt10").css({"pointer-events":"none"});txt[11]=sym.getSymbol("fixMc").getSymbol("fixTopMc").$("txt11").css({"pointer-events":"none"});txt[12]=sym.getSymbol("fixMc").getSymbol("fixTopMc").$("txt12").css({"pointer-events":"none"});txt[13]=sym.getSymbol("fixMc").getSymbol("fixTopMc").$("txt13").css({"pointer-events":"none"});txt[14]=sym.getSymbol("fixMc").getSymbol("fixTopMc").$("txt14").css({"pointer-events":"none"});txt[15]=sym.getSymbol("fixMc").getSymbol("fixTopMc").$("txt15").css({"pointer-events":"none"});txt[16]=sym.getSymbol("fixMc").getSymbol("fixTopMc").$("txt16").css({"pointer-events":"none"});txt[17]=sym.getSymbol("fixMc").getSymbol("fixTopMc").$("txt17").css({"pointer-events":"none"});txt[18]=sym.getSymbol("fixMc").getSymbol("fixTopMc").$("txt18").css({"pointer-events":"none"});txt[19]=sym.getSymbol("fixMc").getSymbol("fixTopMc").$("txt19").css({"pointer-events":"none"});txt[20]=sym.getSymbol("fixMc").getSymbol("fixMovMc").$("txt20").css({"pointer-events":"none"});txt[21]=sym.getSymbol("fixMc").getSymbol("fixMovMc").$("txt21").css({"pointer-events":"none"});txt[22]=sym.getSymbol("fixMc").getSymbol("fixMovMc").$("txt22").css({"pointer-events":"none"});txt[23]=sym.getSymbol("fixMc").getSymbol("fixMovMc").$("txt23").css({"pointer-events":"none"});txt[24]=sym.getSymbol("bodyMc").getSymbol("body4Mc").$("txt24").css({"pointer-events":"none","background-color":"rgba(0,0,0,1)"});txt[25]=sym.getSymbol("bodyMc").getSymbol("body4Mc").$("txt25").css({"pointer-events":"none"});txt[26]=sym.getSymbol("bodyMc").getSymbol("body4Mc").$("txt26").css({"pointer-events":"none"});txt[27]=sym.getSymbol("fixMc").getSymbol("fixTopMc").$("txt27").css({"pointer-events":"none"});var txtArr=[];$.ajax({type:"GET",url:xmlNo,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);stand=$(xml).find('stand').text();standtxt.html(stand);source=$(xml).find('source').text();sourcetxt.html(source);bodyTxt=$(xml).find('txt7').text();bodyTxttxt.html(bodyTxt);for(var i=0;i<28;i++){txtArr[i]=$(xml).find('txt'+i).text();txt[i].html(txtArr[i]);}
var text1=sym.getSymbol("fixMc").getSymbol("fixTopMc").$("txt19").height();var text2=sym.getSymbol("fixMc").getSymbol("fixMovMc").$("txt23").height();sym.getSymbol("bodyMc").$("body4Mc").animate({top:0+sym.getSymbol("bodyMc").$("txt9").height()+30},0);sym.getSymbol("fixMc").$("fixMovMc").animate({top:0+sym.getSymbol("fixMc").getSymbol("fixTopMc").$("txt19").height()+0},0);sym.getSymbol("fixMc").getSymbol("fixTopMc").$("fixBox").animate({height:1+(text1+text2)+190},0);}});menuArray=[];for(var h=0;h<3;h++){var menuBtnSymbols=sym.getSymbol("menuBtnsMc").getSymbol("menuBtn"+h);menuBtnSymbols.setVariable("menuId",h);menuArray.push(menuBtnSymbols);}
$.each(menuArray,function(count,menuInTheArray){var menuBtnItem=$(menuInTheArray);var menuBtnElement=menuInTheArray.getSymbolElement();menuBtnElement.bind("click",{menuId:count},menuBtnClick);menuBtnElement.bind("touchstart",{menuId:count},menuBtnClick);menuBtnElement.bind("mouseover",{menuId:count},menuShow);menuBtnElement.bind("mouseout",{menuId:count},menuHide);})
function resetmenu(){for(var s=0;s<3;s++){sym.getSymbol("bodyMc").$("body"+s).fadeOut(0);sym.getSymbol("bodyMc").$("txt"+(s+7)).fadeOut(0);}
for(var h=0;h<menuArray.length;h++){menuArray[h].$("btnClick").fadeOut(0);menuArray[h].$("btnOver").fadeOut(0);}}
resetmenu();sym.getSymbol("bodyMc").$("body0").fadeIn(100);sym.getSymbol("bodyMc").$("txt7").fadeIn(100);sym.getSymbol("bodyMc").$("body4Mc").fadeOut(200);function menuBtnClick(e){resetmenu();var menuMenu_id=(e.data.menuId);sym.getSymbol("menuBtnsMc").getSymbol("menuBtn"+menuMenu_id).$("btnClick").fadeIn(0);sym.getSymbol("bodyMc").$("body"+menuMenu_id).fadeIn(100);sym.getSymbol("bodyMc").$("txt"+(menuMenu_id+7)).fadeIn(100);if(menuMenu_id==2){sym.getSymbol("bodyMc").$("body4Mc").fadeIn(300);}else{sym.getSymbol("bodyMc").$("body4Mc").fadeOut(200);}}
function menuShow(e){var menuMenu_id=(e.data.menuId);sym.getSymbol("menuBtnsMc").getSymbol("menuBtn"+menuMenu_id).$("btnOver").fadeIn(0);}
function menuHide(e){var menuMenu_id=(e.data.menuId);sym.getSymbol("menuBtnsMc").getSymbol("menuBtn"+menuMenu_id).$("btnOver").fadeOut(0);}
sym.getSymbol("menuBtnsMc").getSymbol("menuBtn0").$("btnClick").fadeIn(0);sym.getSymbol("navBtns").$("btnNext").on("click",function(){e.stopPropagation();e.preventDefault();clickCount++;btnClick();sym.getSymbol("navBtns").getSymbol("btnBack").$("btnOver").fadeOut(0);});sym.getSymbol("navBtns").$("btnNext").on("mouseover",function(){sym.getSymbol("navBtns").getSymbol("btnNext").$("btnOver").fadeIn(200);});sym.getSymbol("navBtns").$("btnNext").on("mouseout",function(){sym.getSymbol("navBtns").getSymbol("btnNext").$("btnOver").fadeOut(200);});sym.getSymbol("navBtns").$("btnBack").on("click",function(){e.stopPropagation();e.preventDefault();clickCount--;btnClick();sym.getSymbol("btnNext").$("btnOver").fadeOut(0);});sym.getSymbol("navBtns").$("btnBack").on("mouseover",function(){sym.getSymbol("navBtns").getSymbol("btnBack").$("btnOver").fadeIn(200);});sym.getSymbol("navBtns").$("btnBack").on("mouseout",function(){sym.getSymbol("navBtns").getSymbol("btnBack").$("btnOver").fadeOut(200);});sym.getSymbol("navBtns").getSymbol("btnNext").$("btnOver").fadeOut(0);sym.getSymbol("navBtns").getSymbol("btnBack").$("btnOver").fadeOut(0);$.fn.animateRotate=function(startAngle,endAngle,duration,easing,complete){return this.each(function(){var elem=$(this);$({deg:startAngle}).animate({deg:endAngle},{duration:duration,easing:easing,step:function(now){elem.css({'-moz-transform':'rotate('+now+'deg)','-webkit-transform':'rotate('+now+'deg)','-o-transform':'rotate('+now+'deg)','-ms-transform':'rotate('+now+'deg)','transform':'rotate('+now+'deg)'});},complete:complete||$.noop});});};sym.$("capMc").stop().fadeOut(0);sym.$("capTop").stop().fadeOut(0);sym.$("ring").stop().fadeOut(0);sym.getSymbol("navBtns").$("btnBack").fadeOut(0);function btnClick(){sym.$("fixDiv").stop().fadeIn(500);sym.$("ring").fadeOut(0);sym.getSymbol("navBtns").$("btnNext").fadeIn(0);sym.getSymbol("navBtns").$("btnBack").fadeIn(0);sym.$("capMc").stop().fadeOut(300);sym.$("wormMc").stop().fadeOut(300);if(clickCount==0){sym.getSymbol("navBtns").$("btnBack").fadeOut(0);sym.$("capTop").stop().fadeIn(600,function(){sym.$("ring").fadeOut(0);sym.$("wormMc").stop().fadeIn(500);sym.$("capTop").animateRotate(0,180,500,'easeOutCubic');sym.$("capTop").stop().animate({left:483,top:285,width:67,height:78},500,'easeOutCubic',function(){sym.$("capTop").stop().fadeOut(500);});});clickDone=0;}
if(clickCount==1){sym.$("capMc").stop().fadeIn(500);if(clickDone==0){sym.$("capMc").stop().fadeOut(0);sym.$("wormMc").stop().delay(300).fadeOut(800);sym.$("ring").stop().fadeIn(200);sym.$("capTop").stop().fadeIn(600,function(){sym.$("ring").fadeOut(200);sym.$("capTop").animateRotate(180,0,500,'easeOutCubic');sym.$("capTop").stop().animate({left:8,top:76,width:550,height:450},500,'easeOutCubic',function(){sym.$("capMc").stop().fadeIn(500);sym.getSymbol("capMc").play(0);});});}
clickDone=1;}
if(clickCount==2){sym.$("fixDiv").stop().fadeOut(500);sym.getSymbol("navBtns").$("btnNext").fadeOut(0);sym.$("capTop").stop().fadeOut(0);sym.$("menuBtnsMc").stop().fadeOut(200);sym.$("bodyMc").stop().fadeOut(200);sym.getSymbol("styleHead").$("standTxt").fadeOut(50);sym.getSymbol("fixMc").play(1);}else{sym.$("menuBtnsMc").stop().fadeIn(200);sym.$("bodyMc").stop().fadeIn(200);sym.getSymbol("styleHead").$("standTxt").fadeIn(200);}}
var cure=0;sym.getSymbol("fixMc").getSymbol("fixMovMc").$("txt23").stop().fadeOut(0);sym.getSymbol("fixMc").$("cutBtn").on('touchstart click',function(e){e.stopPropagation();e.preventDefault();if(cure==0){sym.getSymbol("fixMc").getSymbol("cutBtn").$("btnPlus").fadeOut(0);sym.getSymbol("fixMc").getSymbol("fixMovMc").$("cureLeft").stop().animate({top:45},500,'easeOutCubic');sym.getSymbol("fixMc").getSymbol("fixMovMc").$("cureRight").stop().animate({top:43},500,'easeOutCubic');sym.getSymbol("fixMc").getSymbol("fixMovMc").$("cure").stop().animate({top:89},500,'easeOutCubic',function(){sym.getSymbol("fixMc").getSymbol("fixMovMc").$("cureLeft").stop().animate({top:100},200,'easeOutCubic');sym.getSymbol("fixMc").getSymbol("fixMovMc").$("cureRight").stop().animate({top:100},200,'easeOutCubic');sym.getSymbol("fixMc").play(5510);sym.getSymbol("fixMc").getSymbol("fixMovMc").$("txt23").stop().fadeIn(200);});cure=1;}else{sym.getSymbol("fixMc").getSymbol("fixMovMc").$("txt23").stop().fadeOut(50);sym.getSymbol("fixMc").getSymbol("cutBtn").$("btnPlus").fadeIn(0);sym.getSymbol("fixMc").getSymbol("fixMovMc").$("cure").stop().animate({top:134},500,'easeOutCubic');sym.getSymbol("fixMc").getSymbol("fixMovMc").$("cureLeft").stop().animate({top:91},500,'easeOutCubic');sym.getSymbol("fixMc").getSymbol("fixMovMc").$("cureRight").stop().animate({top:88},500,'easeOutCubic');sym.getSymbol("fixMc").play(5000);cure=0;}});sym.getSymbol("fixMc").$("cutBtn").mouseover(function(){sym.getSymbol("fixMc").getSymbol("cutBtn").$("btnCol").fadeOut(0);});sym.getSymbol("fixMc").$("cutBtn").mouseout(function(){sym.getSymbol("fixMc").getSymbol("cutBtn").$("btnCol").fadeIn(0);});});
//Edge binding end 

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

//Edge symbol: 'fixMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",5500,function(sym,e){sym.play(5000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",6250,function(sym,e){sym.stop();});
//Edge binding end
})("fixMc");
//Edge symbol end:'fixMc'

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

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

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

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

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

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