
(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.$("headlineTxt").css("pointer-events","none");var stand;var standtxt=sym.$("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.getSymbol("sizeMc").$("txt1").css("pointer-events","none");txt[2]=sym.getSymbol("sizeMc").$("txt2").css("pointer-events","none");txt[3]=sym.getSymbol("sizeMc").$("txt3").css("pointer-events","none");txt[4]=sym.getSymbol("sizeMc").$("txt4").css("pointer-events","none");txt[5]=sym.getSymbol("yellowMc").$("txt5").css("pointer-events","none");txt[6]=sym.getSymbol("yellowMc").$("txt6").css("pointer-events","none");txt[7]=sym.getSymbol("yellowMc").$("txt7").css("pointer-events","none");txt[8]=sym.$("txt8").css("pointer-events","none");txt[9]=sym.$("txt9").css("pointer-events","none");txt[10]=sym.getSymbol("txt13Mc").$("txt10").css("pointer-events","none");txt[11]=sym.getSymbol("txt11Mc").$("txt11").css("pointer-events","none");txt[12]=sym.getSymbol("txt12Mc").$("txt12").css("pointer-events","none");txt[13]=sym.getSymbol("txt13Mc").$("txt13").css("pointer-events","none");txt[14]=sym.getSymbol("txt14Mc").$("txt14").css("pointer-events","none");txt[15]=sym.getSymbol("videoPanel").$("txt15").css("pointer-events","none");var txtArr=[];$.ajax({type:"GET",url:"GN30829.xml",dataType:"xml",success:function(xml){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<16;i++){txtArr[i]=$(xml).find('txt'+i).text();txt[i].html(txtArr[i]);}
sym.getSymbol("yellowMc").$("txt5").animate({top:26-(sym.getSymbol("yellowMc").$("txt5").height()+26)},0);}});sym.getSymbol("playBtn").$("btnPlayOver").fadeOut(100);sym.$("robo").animate({opacity:0,left:72,top:4,width:118,height:92},0);sym.$("robo").delay(500).animate({opacity:1,left:72,top:4,width:491,height:383},2000,'easeOutCubic');sym.$("tags").fadeOut(0);sym.$("tags").delay(2000).fadeIn(500);sym.$("logo").fadeOut(0);sym.$("logo").delay(2000).fadeIn(500);sym.$("sizeMc").fadeOut(0);sym.$("sizeMc").delay(2000).fadeIn(500);sym.$("yellowMc").fadeOut(0);sym.$("yellowMc").delay(2000).fadeIn(500);sym.$("playBtn").fadeOut(0);sym.$("playBtn").delay(2000).fadeIn(500);sym.$("rollBtnsMc").animate({opacity:0},0);sym.$("rollBtnsMc").delay(2000).animate({opacity:1},2000);sym.$("txt8").fadeOut(0);sym.$("txt8").delay(2000).fadeIn(500);sym.$("txt9").fadeOut(0);sym.$("txt9").delay(2000).fadeIn(500);menuArray=[];for(var h=0;h<4;h++){var menuBtnSymbols=sym.getSymbol("rollBtnsMc").getSymbol("rollBtn"+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 h=0;h<menuArray.length;h++){var resetmenu_arr=["txt11Mc","txt12Mc","txt13Mc","txt14Mc"];$.each(resetmenu_arr,function(index,value){sym.$(value).fadeOut(0);});menuArray[h].$("btnClick").fadeOut(0);menuArray[h].$("btnOver").fadeOut(0);menuArray[h].$("btnOut").fadeIn(0);}}
resetmenu();var clicked=4;function menuBtnClick(e){resetmenu();var menuMenu_id=(e.data.menuId);if(clicked==menuMenu_id){resetmenu();clicked=4;}else{sym.getSymbol("rollBtnsMc").getSymbol("rollBtn"+menuMenu_id).$("btnClick").fadeIn(0);sym.getSymbol("rollBtnsMc").getSymbol("rollBtn"+menuMenu_id).$("btnOut").fadeOut(0);sym.getSymbol("rollBtnsMc").getSymbol("rollBtn"+menuMenu_id).$("btnOver").fadeOut(0);sym.$("txt"+(menuMenu_id+11)+"Mc").fadeIn(200);}
if(menuMenu_id==0){clicked=0;}
if(menuMenu_id==1){clicked=1;}
if(menuMenu_id==2){clicked=2;}
if(menuMenu_id==3){clicked=3;}}
function menuShow(e){var menuMenu_id=(e.data.menuId);sym.$('handMc').hide();sym.getSymbol("rollBtnsMc").getSymbol("rollBtn"+menuMenu_id).$("btnOver").fadeIn(0);}
function menuHide(e){var menuMenu_id=(e.data.menuId);sym.getSymbol("rollBtnsMc").getSymbol("rollBtn"+menuMenu_id).$("btnOver").fadeOut(0);}
sym.$("videoPanel").fadeOut(0);sym.$("playBtn").on('touchstart click',function(e){e.stopPropagation();e.preventDefault();document.getElementById('vid1').play();sym.$("videoPanel").fadeIn(1000);});sym.$("playBtn").mouseover(function(){sym.getSymbol("playBtn").$("btnPlayOver").fadeIn(100);});sym.$("playBtn").mouseout(function(){sym.getSymbol("playBtn").$("btnPlayOver").fadeOut(100);});sym.getSymbol("videoPanel").$("closeBtn").on('touchstart click',function(e){e.stopPropagation();e.preventDefault();sym.$("videoPanel").fadeOut(1000);document.getElementById('vid1').pause();});var vid=$("<video width='600' height='338'  id='vid1'>"+
 "<source src='media/kibo.webm' type='video/webm' />"+
 "<source src='media/kibo.ogv' type='video/ogg' />"+
 "<source src='media/kibo.mp4' type='video/mp4' />"+
 "This browser is not compatible with HTML 5"+"</video>");sym.getSymbol("videoPanel").$("vidHolder").append(vid);vid.attr('preload','auto');});
//Edge binding end 

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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