
(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 stand;var standtxt=sym.getSymbol("styleHead").$("standTxt").css("pointer-events","none");var source;var sourcetxt=sym.getSymbol("styleBase").$("sourceTxt").css("pointer-events","none");var menuTxt0;var menuTxt0txt=sym.getSymbol("styleHead").$("menuTxt0").css("pointer-events","none");var menuTxt1;var menuTxt1txt=sym.getSymbol("styleHead").$("menuTxt1").css("pointer-events","none");var txt=[];txt[0]=sym.getSymbol("pointersMc").$("txt0").css("pointer-events","none");txt[1]=sym.getSymbol("pointersMc").$("txt1").css("pointer-events","none");txt[2]=sym.getSymbol("pointersMc").$("txt2").css("pointer-events","none");txt[3]=sym.getSymbol("pointersMc").$("txt3").css("pointer-events","none");txt[4]=sym.getSymbol("pointersMc").$("txt4").css("pointer-events","none");txt[5]=sym.getSymbol("pointersMc").$("txt5").css("pointer-events","none");txt[6]=sym.getSymbol("pointersMc").$("txt6").css("pointer-events","none");txt[7]=sym.getSymbol("pointersMc").$("txt7").css("pointer-events","none");txt[8]=sym.getSymbol("pointersMc").$("txt8").css("pointer-events","none");txt[9]=sym.getSymbol("pointersMc").$("txt9").css("pointer-events","none");txt[10]=sym.getSymbol("pointersMc").$("txt10").css("pointer-events","none");txt[11]=sym.getSymbol("pointersMc").$("txt11").css("pointer-events","none");txt[12]=sym.$("txt12").css("pointer-events","none");txt[13]=sym.$("txt13").css("pointer-events","none");txt[14]=sym.$("txt14").css("pointer-events","none");txt[15]=sym.$("txt15").css("pointer-events","none");txt[16]=sym.$("txt16").css("pointer-events","none");txt[17]=sym.$("txt17").css("pointer-events","none");txt[18]=sym.$("txt18").css("pointer-events","none");var txtArr=[];$.ajax({type:"GET",url:"GN31561.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);menuTxt0=$(xml).find('menuTxt0').text();menuTxt0txt.html(menuTxt0);menuTxt1=$(xml).find('menuTxt1').text();menuTxt1txt.html(menuTxt1);for(var i=0;i<19;i++){txtArr[i]=$(xml).find('txt'+i).text();txt[i].html(txtArr[i]);}
sym.$("txt15").animate({top:210-sym.$("txt15").height()+10},0);sym.$("txt16").animate({top:210-sym.$("txt16").height()+10},0);sym.$("txt17").animate({top:210-sym.$("txt17").height()+10},0);}});sym.getSymbol("styleHead").getSymbol("menuBtn0").$("btnIcon").attr("src","images/menuShip.png");sym.getSymbol("styleHead").getSymbol("menuBtn1").$("btnIcon").attr("src","images/menuPlay.png");sym.getSymbol("btn0").$("btnIcon").attr("src","images/menuIcon0.png");sym.getSymbol("btn1").$("btnIcon").attr("src","images/menuIcon1.png");sym.getSymbol("btn2").$("btnIcon").attr("src","images/menuIcon2.png");sym.$("videoPanel").animate({opacity:0},0,function(){sym.$("videoPanel").fadeOut();});sym.$("pointersMc").fadeOut(0);sym.$("table").fadeOut(0);sym.$("ship").stop().delay(500).animate({left:19,top:103,width:520,height:300},3000,'easeOutCubic');sym.$("pointersMc").delay(3500).fadeIn(500);sym.$("table").delay(3500).fadeIn(500);menuArray=[];for(var h=0;h<2;h++){var menuBtnSymbols=sym.getSymbol("styleHead").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 h=0;h<menuArray.length;h++){var resetmenu_arr=["menuTxt0","menuTxt1"];$.each(resetmenu_arr,function(index,value){sym.getSymbol("styleHead").$(value).fadeOut(0);});menuArray[h].$("btnClick").fadeOut(0);menuArray[h].$("btnOver").fadeOut(0);}}
resetmenu();function menuBtnClick(e){resetmenu();var menuMenu_id=(e.data.menuId);sym.getSymbol("styleHead").getSymbol("menuBtn"+menuMenu_id).$("btnClick").fadeIn(0);sym.getSymbol("styleHead").$("menuTxt"+menuMenu_id).fadeIn(0);if(menuMenu_id==0){sym.$("videoPanel").animate({opacity:0},400,function(){sym.$("videoPanel").fadeOut();});document.getElementById('vid1').pause();}
if(menuMenu_id==1){sym.$("videoPanel").stop().fadeIn();sym.$("videoPanel").stop().delay(400).animate({opacity:1},800);document.getElementById('vid1').play(0);}}
function menuShow(e){var menuMenu_id=(e.data.menuId);sym.getSymbol("styleHead").getSymbol("menuBtn"+menuMenu_id).$("btnOver").fadeIn(0);sym.getSymbol("styleHead").$("menuTxt"+menuMenu_id).fadeIn(0);}
function menuHide(e){var menuMenu_id=(e.data.menuId);sym.getSymbol("styleHead").getSymbol("menuBtn"+menuMenu_id).$("btnOver").fadeOut(0);sym.getSymbol("styleHead").$("menuTxt"+menuMenu_id).fadeOut(0);}
sym.getSymbol("styleHead").getSymbol("menuBtn0").$("btnClick").fadeIn(0);menu2Array=[];for(var h=0;h<3;h++){var menu2BtnSymbols=sym.getSymbol("btn"+h);menu2BtnSymbols.setVariable("menu2Id",h);menu2Array.push(menu2BtnSymbols);}
$.each(menu2Array,function(count,menu2InTheArray){var menu2BtnItem=$(menu2InTheArray);var menu2BtnElement=menu2InTheArray.getSymbolElement();menu2BtnElement.bind("click",{menu2Id:count},menu2BtnClick);menu2BtnElement.bind("touchstart",{menu2Id:count},menu2BtnClick);menu2BtnElement.bind("mouseover",{menu2Id:count},menu2Show);menu2BtnElement.bind("mouseout",{menu2Id:count},menu2Hide);})
function resetmenu2(){for(var h=0;h<menu2Array.length;h++){var item2Array=["txt15","txt16","txt17","fly0","fly1","fly2"];$.each(item2Array,function(index,value){sym.$(value).animate({opacity:0},0);});menu2Array[h].$("btnClick").fadeOut(0);menu2Array[h].$("btnOver").fadeOut(0);}}
resetmenu2();function menu2BtnClick(e){resetmenu2();var menu2menu2_id=(e.data.menu2Id);sym.getSymbol("btn"+menu2menu2_id).$("btnClick").fadeIn(0);sym.$("txt"+(menu2menu2_id+15)).stop().animate({opacity:1},400);sym.$("fly"+menu2menu2_id).stop().animate({opacity:1},800);}
function menu2Show(e){var menu2menu2_id=(e.data.menu2Id);sym.getSymbol("btn"+menu2menu2_id).$("btnOver").fadeIn(0);}
function menu2Hide(e){var menu2menu2_id=(e.data.menu2Id);sym.getSymbol("btn"+menu2menu2_id).$("btnOver").fadeOut(0);}
sym.getSymbol("btn0").$("btnClick").fadeIn(0);sym.$("txt15").animate({opacity:1},200);sym.$("fly0").animate({opacity:1},200);var vid=$("<video width='800' height='450'  id='vid1'>"+
 "<source src='media/airlander.mp4' type='video/mp4' />"+
 "<source src='media/airlander.webm' type='video/webm' />"+
 "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: '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: 'skyMc'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",50000,function(sym,e){sym.play(1);});
//Edge binding end
})("skyMc");
//Edge symbol end:'skyMc'

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

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

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

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

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

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