
(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 clickEventType=('ontouchstart'in document.documentElement?"touchstart":"click");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"});var txtArr=[];$.ajax({type:"GET",url:"GN32276.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);var fontSize=$(xml).find('fontSize').text();for(var i=0;i<10;i++){txtArr[i]=$(xml).find('txt'+i).text();txt[i].html(txtArr[i]);txt[i].css({'font-size':fontSize});}}});var counter=1;sym.getSymbol("btnBackMc").$("btnBack").fadeOut(0);sym.$("btnBackMc").fadeOut(0);sym.getSymbol("btnNextMc").$("btnBack").fadeOut(0);function hideDots(){var dot_arr=["dot0","dot1","dot2","dot3","dot4","dot5","dot6"];$.each(dot_arr,function(index,value){sym.$(value).fadeOut(0);});sym.$("dot"+counter).fadeIn(0);}
hideDots();function showcounters(){sym.$("car"+(counter-1)).stop().animate({opacity:0,left:0,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+(counter-2)).stop().animate({opacity:0,left:0,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+(counter-3)).stop().animate({opacity:0,left:0,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+(counter-4)).stop().animate({opacity:0,left:0,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+(counter-5)).stop().animate({opacity:0,left:0,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+(counter-6)).stop().animate({opacity:0,left:0,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+(counter-7)).stop().animate({opacity:0,left:0,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+(counter+1)).stop().animate({opacity:0,left:650,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+(counter+2)).stop().animate({opacity:0,left:650,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+(counter+3)).stop().animate({opacity:0,left:650,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+(counter+4)).stop().animate({opacity:0,left:650,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+(counter+5)).stop().animate({opacity:0,left:650,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+(counter+6)).stop().animate({opacity:0,left:650,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+(counter+7)).stop().animate({opacity:0,left:650,top:420,width:150,height:88},600,'easeInOutCubic');sym.$("car"+counter).stop().animate({opacity:1,left:0,top:15,width:800,height:470},800,'easeInOutCubic');sym.$("txt0").empty();sym.$("txt0").append(txtArr[counter-1]);if(counter==1){sym.getSymbol("btnBackMc").$("btnBack").fadeOut(0);sym.$("btnBackMc").fadeOut(0);}else{sym.$("btnBackMc").fadeIn(0);}
if(counter==7){sym.getSymbol("btnNextMc").$("btnBack").fadeOut(0);sym.$("btnNextMc").fadeOut(0);}else{sym.$("btnNextMc").fadeIn(0);}
hideDots();resetmenu();sym.getSymbol("btnsMc").getSymbol("dot"+(counter-1)).$("btnClick").fadeIn(0);}
sym.$("btnNextMc").on(clickEventType,function(e){e.stopPropagation();e.preventDefault();counter++;showcounters();});sym.$("btnNextMc").mouseover(function(){sym.getSymbol("btnNextMc").$("btnBack").fadeIn(100);});sym.$("btnNextMc").mouseout(function(){sym.getSymbol("btnNextMc").$("btnBack").fadeOut(100);});sym.$("btnBackMc").on(clickEventType,function(e){e.stopPropagation();e.preventDefault();counter--;showcounters();});sym.$("btnBackMc").mouseover(function(){sym.getSymbol("btnBackMc").$("btnBack").fadeIn(100);});sym.$("btnBackMc").mouseout(function(){sym.getSymbol("btnBackMc").$("btnBack").fadeOut(100);});menuArray=[];for(var h=0;h<7;h++){var menuBtnSymbols=sym.getSymbol("btnsMc").getSymbol("dot"+h);menuBtnSymbols.setVariable("menuId",h);menuArray.push(menuBtnSymbols);}
$.each(menuArray,function(count,menuInTheArray){var menuBtnItem=$(menuInTheArray);var menuBtnElement=menuInTheArray.getSymbolElement();menuBtnElement.bind(clickEventType,{menuId:count},menuBtnClick);menuBtnElement.bind("mouseover",{menuId:count},menuShow);menuBtnElement.bind("mouseout",{menuId:count},menuHide);})
function resetmenu(){for(var h=0;h<menuArray.length;h++){menuArray[h].$("btnClick").fadeOut(0);menuArray[h].$("btnOver").fadeOut(0);}}
resetmenu();function menuBtnClick(e){var menuMenu_id=(e.data.menuId+1);sym.getSymbol("btnsMc").getSymbol("dot"+(menuMenu_id-1)).$("btnClick").fadeIn(0);counter=menuMenu_id;showcounters();}
function menuShow(e){var menuMenu_id=(e.data.menuId);sym.getSymbol("btnsMc").getSymbol("dot"+menuMenu_id).$("btnOver").fadeIn(0);}
function menuHide(e){var menuMenu_id=(e.data.menuId);sym.getSymbol("btnsMc").getSymbol("dot"+menuMenu_id).$("btnOver").fadeOut(0);}
sym.getSymbol("btnsMc").getSymbol("dot0").$("btnClick").fadeIn(0);sym.$("swipe").swipeleft(function(){e.stopPropagation();e.preventDefault();if(counter==7){}else{counter++;showcounters();}});sym.$("swipe").swiperight(function(){e.stopPropagation();e.preventDefault();if(counter==1){}else{counter--;showcounters();}});});
//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: 'Preloader'
(function(symbolName){})("Preloader");
//Edge symbol end:'Preloader'

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

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

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

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

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

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

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

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