(new Gallery).addStage("promotion",{header:{title:"抢飞机票"},temp:!0,prepare:function(n){Statistics.trigger(20,encodeURIComponent(n.referer));Filler.fill($(".ticketDetailBox,.ticketFaxInfo,.buyItBtn",$(".promotion")),{query:n.query,ticket:n.tickets.main},{ticket:{date:function(n){return Util.date.formatToShort(Util.date.parse(n.ticket.date))},price:function(n){return"￥"+n.ticket.price+".00"},discount:function(n){return parseInt(n.ticket.discount,10)/10+"折"},zhundian:function(n){return n.ticket.zhundian?n.ticket.zhundian:"-"}},url:function(n){return n.ticket.url+"?"+n.ticket.date+config.urls.kuxunSuffix},flightTime:function(n){var t=n.ticket.launchtime.split(":"),i=n.ticket.landtime.split(":"),r=((i[0]-t[0])*60+(i[1]-t[1])+1440)%1440,u=Math.floor(r/60),f=r%60;return(u!==0?u+"小时":"")+(f!==0?f+"分":"")}});WeatherRetriever.fill($(".promotion .fromGroup"),n.tickets.main.date);WeatherRetriever.fill($(".promotion .toGroup"),n.tickets.main.date)}})