
(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 a=0;a<6;a++){sym.getSymbol("auxBtnsMc").getSymbol("auxBtn"+a).$("txt").html(a+1);}
var xmlNo="GN31862.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 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: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);for(var i=0;i<11;i++){txtArr[i]=$(xml).find('txt'+i).text();txt[i].html(txtArr[i]);}}});function fadeAll(){sym.$("gpsMc").fadeOut(0);sym.$("laserMc").fadeOut(0);sym.$("vidCam").fadeOut(0);sym.$("rad1Mc").fadeOut(0);sym.$("rad2Mc").fadeOut(0);sym.$("txt0").fadeOut(0);sym.$("laserPoint").fadeOut(0);}
fadeAll();sym.$("gpsMc").fadeIn(500);sym.$("videoHolder").fadeOut(500);sym.getSymbol("playButton").$("stop").fadeOut(0);function menutxtLoad(){sym.getSymbol("menuBtnsMc").$("menuTxt").empty();var menuTxt;var menuTxttxt=sym.getSymbol("menuBtnsMc").$("menuTxt").css("pointer-events","none");$.ajax({type:"GET",url:xmlNo,dataType:"xml",success:function(xml){menuTxt=$(xml).find('menuTxt'+btnNo).text();menuTxttxt.html(menuTxt);}});}
auxArray=[];for(var a=0;a<6;a++){var auxBtnSymbols=sym.getSymbol("auxBtnsMc").getSymbol("auxBtn"+a);auxBtnSymbols.setVariable("auxId",a);auxArray.push(auxBtnSymbols);}
$.each(auxArray,function(count,auxInTheArray){var auxBtnItem=$(auxInTheArray);var auxBtnElement=auxInTheArray.getSymbolElement();auxBtnElement.bind("click",{auxId:count},auxBtnClick);auxBtnElement.bind("touchstart",{auxId:count},auxBtnClick);auxBtnElement.bind("mouseover",{auxId:count},auxBtnShow);auxBtnElement.bind("mouseout",{auxId:count},auxBtnHide);})
function resetAux(){for(var a=0;a<auxArray.length;a++){auxArray[a].$("btnClick").fadeOut(0);auxArray[a].$("btnOver").fadeOut(0);}}
resetAux();function auxBtnClick(e){fadeAll();resetAux();var auxAux_id=(e.data.auxId);sym.$("txt5").empty();sym.$("txt5").append(txtArr[auxAux_id+5]);sym.getSymbol("auxBtnsMc").getSymbol("auxBtn"+auxAux_id).$("btnClick").fadeIn(0);btnNo=auxAux_id;if(auxAux_id==0){sym.$("gpsMc").fadeIn(500);}
if(auxAux_id==1){sym.$("rad1Mc").fadeIn(500);sym.$("rad2Mc").fadeIn(500);}
if(auxAux_id==2){sym.$("laserMc").fadeIn(500);sym.$("txt0").fadeIn(500);sym.$("laserPoint").fadeIn(500);}
if(auxAux_id==3){sym.$("vidCam").fadeIn(500);}}
function auxBtnShow(e){var auxAux_id=(e.data.auxId);sym.getSymbol("auxBtnsMc").getSymbol("auxBtn"+auxAux_id).$("btnOver").fadeIn(0);}
function auxBtnHide(e){var auxAux_id=(e.data.auxId);sym.getSymbol("auxBtnsMc").getSymbol("auxBtn"+auxAux_id).$("btnOver").fadeOut(0);}
sym.getSymbol("auxBtnsMc").getSymbol("auxBtn0").$("btnClick").fadeIn(0);yepnope({nope:['http://www.edgehero.com/edgehero.js/0.2/edgehero-0.2-min.js'],complete:init});videolink_1_mp4="video/google.mp4"
videolink_1_webm="video/google.webm"
function init(){var video=document.getElementById("Stage_videoPlayer");}
vidPlay=0;sym.$("playButton").on('touchstart click',function(e){e.stopPropagation();e.preventDefault();if(vidPlay==0){sym.$("videoHolder").fadeIn(500);sym.getSymbol("playButton").$("play").fadeOut(0);sym.getSymbol("playButton").$("stop").fadeIn(0);vidPlay=1;}else{sym.$("videoHolder").fadeOut(500);sym.getSymbol("playButton").$("play").fadeIn(0);sym.getSymbol("playButton").$("stop").fadeOut(0);vidPlay=0;}});sym.$("playButton").mouseover(function(){sym.getSymbol("playButton").$("btnOver").fadeOut(0);});sym.$("playButton").mouseout(function(){sym.getSymbol("playButton").$("btnOver").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: 'menuBtn_1'
(function(symbolName){})("auxBtn");
//Edge symbol end:'auxBtn'

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

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

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

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

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

//Edge symbol: 'linesMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",2500,function(sym,e){sym.play(2000);});
//Edge binding end
Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",0,function(sym,e){sym.play(2000);});
//Edge binding end
})("linesMc");
//Edge symbol end:'linesMc'

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

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

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

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

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

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

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

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

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

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

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

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