/g,">");a=a.replace(/ /g," ");a=a.replace(/\'/g,"'");a=a.replace(/\"/g,""");a=a.replace(/\n/g,"
");return a}function appendHTML(e,f){var a=document.createElement("div"),c=document.createDocumentFragment();a.innerHTML=f;var b;while(b=a.firstChild){a.removeChild(b);c.appendChild(b)}e.appendChild(c)}function ajax(g,d,h,e,j){var p=/^http:\/\/([\s\S]*?)(\/[\s\S]*?)(?:[?#]|$)/,k=(g+"").match(p),l=k[1],m=k[2],a=new XMLHttpRequest(),b=0,c=0,n=Date.now();a.open("GET",g,true);a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a.timeout=15e3;a.onload=function(){var q;try{a.status==200?(q=JSON.parse(a.responseText)).ret==0?(h&&h(q),b=200,c=1):(b=777,c=3):(b=a.status,c=2);q.ret!=0&&j&&j(q)}catch(r){a.responseText.length==0?b=700:b=701;c=2;e&&e(q)}valueStatReport([{domain:l,cgi:m,code:b,time:Date.now()-n,rate:1,type:c}])};a.ontimeout=a.onerror=function(){b=a.status;c=2;e&&e();valueStatReport([{domain:l,cgi:m,code:b,time:Date.now()-n,rate:1,type:c}])};var f=[];if(typeof d=="string"){f.push(d)}else{for(var o in d){f.push(encodeURIComponent(o)+"="+encodeURIComponent(d[o]))}}a.send(f.join("&"))}function reportInYyb(a){var b="http://ope.app.qq.com/ajax/CampaignStat",c;a=a||{};a.uin=parseUin(getCookie("uin"))||"";!window.thGuid?JsBridge._call("getPrivateMobileInfo","",function(d){window.thGuid=JSON.parse(d.data).phoneGuid;a.guid=window.thGuid||"";pingSender(b+"?"+serializeParam(a))}):(a.guid=window.thGuid||"",pingSender(b+"?"+serializeParam(a)))}function reportInOther(a){var b="http://ope.app.qq.com/ajax/CampaignStat",c;a=a||{};a.uin=parseUin(getCookie("uin"))||"";pingSender(b+"?"+serializeParam(a))}function valueStatReport(b){if(b.length){var a="http://c.isdspeed.qq.com/code.cgi?",c=["domain","cgi","type","code","time","rate"];a+="uin=&key="+encodeURIComponent(c.join(","));b.forEach(function(e,f){var d=[];c.forEach(function(g,h){d.push(f+1+"_"+(h+1)+"="+encodeURIComponent(e[g]))});a+="&"+d.join("&")});pingSender(a)}}function pingSender(b){var a=Math.floor(Math.random()*100);window[a]=new Image();window[a].src=b;window[a].onload=window[a].onerror=function(){window[a]=window[a].onload=window[a].onerror=null}}var pv=function(a,b,c){var d=function(h,j,e){var m=/(?:^|;+|\s+)pgv_pvid=([^;]*)/i,n=/(?:^|;+|\s+)pgv_info=([^;]*)/i,o=/[\?\#]/,p=function(){var r,s,u,v;r=document.cookie.match(m);r&&r.length&&r.length>1?s=r[1]:(s=Math.round(Math.random()*2147483647)*(new Date().getUTCMilliseconds())%1e10,document.cookie="pgv_pvid="+s+"; path=/; domain=qq.com; expires=Sun, 18 Jan 2038 00:00:00 GMT;");u=document.cookie.match(n);!u&&(v=Math.round(Math.random()*2147483647)*(new Date().getUTCMilliseconds())%1e10,document.cookie="pgv_info=ssid=s"+v+"; path=/; domain=qq.com;");return s}();h=h||"yyb-h5.qq.com";j=j||location.pathname;e=e||{};e.referURL=e.referURL||document.referrer;var f,k,l;f=e.referURL.split(o);f=f[0];f=f.split("/");k=f[2]||"-";l="/"+f.slice(3).join("/");e.referDomain=e.referDomain||k;e.referPath=getParam("from")||e.referPath||l;e.timeout=typeof e.timeout=="undefined"?2e3:e.timeout;var g=g||false,q="http://pingfore.qq.com/pingd?cc=-&ct=-&scl=-&scr=-&tt=-&tz=-8&vs=3.3&dm="+h+"&url="+j+"&rdm="+e.referDomain+"&rurl="+e.referPath+"&pgv_pvid="+p+"&pf="+(g?g.name:"")+"&java="+(g?g.isAndroid?"Android":"other":"")+"&flash="+(e.sence||"")+"&sds="+Math.random()+"&lang="+(e.famous||"");setTimeout(function(){pingSender(q,e.timeout)},200)};d(a,b,c)};window.Ua=function(){var a=navigator.userAgent,b,d=a.indexOf("Android")>-1||a.indexOf("Linux")>-1,e=a.indexOf("Windows NT")>-1||a.indexOf("mac")>-1,c=navigator.userAgent.match(/(?:V1_AND_SQ_|QQ\/)([\d\.]+)/),f=function(h,j){h=String(h).split(".");j=String(j).split(".");try{for(var g=0,m=Math.max(h.length,j.length);gl){return true}}}catch(n){return false}return true};/MicroMessenger/.test(a)?b="wechat":c&&f(c[1],"4.6")?b="mobileqq":/MQQBrowser/.test(a)?b="MQQBrowser":b="others";return{isAndroid:d,isPC:e,name:b}}();var js=[],shouldLoadJs;if(Ua.isPC){location.href="http://qzs.qq.com/open/mobile/app_ceremony_2014/pc.html"}else if(Ua.isAndroid){switch(Ua.name){case"wechat":js=["main.js","wx.js","android.js"];break;case"mobileqq":js=["main.js","mq.js","android.js"];break;case"MQQBrowser":js=["android.js"];break;default:js=["android.js","other.js"]}shouldLoadJs=true}else{(function(){var e=Date.now(),a={icon:"http://qzonestyle.gtimg.cn/open/mobile/app_ceremony_2014/img/share-icon.png",title:"1.17腾讯应用宝“星app之夜”票选活动"};location.href.indexOf("lottery")>-1?a.desc="我参与腾讯100%有奖应用投票活动,您也快来免费领取吧!":location.href.indexOf("star")>-1?a.desc="我想见"+cname+",快帮我完成心愿吧!":location.href.indexOf("index")>-1&&(a.desc="参与腾讯年度app评选投票,100%有奖!支持明星上“星app之夜”年度盛典,还有机会获得门票哦!");function c(){WeixinJSBridge.on("menu:share:appmessage",function(g){WeixinJSBridge.invoke("sendAppMessage",{img_url:a.icon,img_width:72,img_height:72,link:location.href+"&isTimeline=false",desc:a.desc,title:a.title})});WeixinJSBridge.on("menu:share:timeline",function(g){WeixinJSBridge.invoke("shareTimeline",{img_url:a.icon,img_width:"72",img_height:"72",link:location.href+"&isTimeline=true",desc:a.desc,title:a.title})})}function d(){var g=$("#ios"),h=$("#mask");h.style.cssText="display:block;height:"+document.body.scrollHeight+"px";g.style.display="block";var j=g.getClientRects()[0].height,k=g.getClientRects()[0].width;g.style.top=(window.innerHeight-j)/2+window.scrollY+"px";g.style.left=(window.innerWidth-k)/2+"px";$(".tips-close")&&$(".tips-close").addEventListener("touchstart",hidePop)}function f(){var g;g={title:a.title,summary:a.desc,url:location.href,desc:a.desc,imageUrl:a.icon,successUrl:location.href,failUrl:location.href};window.location="http://openmobile.qq.com/api/check2?page=qzshare.html&loginpage=loginindex.html&logintype=qzone&"+serializeParam(g)}$each($$(".canJump"),function(g){g.addEventListener("touchstart",function(){document.getElementById("andriod").style.display="none";d()},false)});if(Ua.name=="mobileqq"){var b=document.createElement("script");b.setAttribute("src","http://pub.idqqimg.com/qqmobile/qqapi.js");document.body.appendChild(b);b.onload=function(){mqq.data.setShareInfo({share_url:location.href,title:a.title,desc:a.desc,image_url:a.icon})}}else{Ua.name=="wechat"&&document.addEventListener("WeixinJSBridgeReady",c)}})()}if(shouldLoadJs){if(js.length>0){var tmp=[],prefix="/open/mobile/app_ceremony_2014/js/share/";for(var i=0;i<\/script>")}}var cgi="http://ope.app.qq.com/ajax/TpddGetAppShare";ajax(cgi+"?"+serializeParam({uin:getParam("qno")}),{},function(a){$("#nick-name").innerHTML=a.data[0].nickname;$("#prize").innerHTML="获得"+a.data[0].gift},function(a){});document.addEventListener("DOMContentLoaded",function(){window.Index&&Index.init()});var yybURL="tmast://webview?url="+encodeURIComponent("http://qzs.qq.com/open/mobile/app_ceremony_2014/yybIndex.html")+"&mode=0",aid=0;Ua.name=="mobileqq"?aid=811:Ua.name=="wechat"?aid=809:(Ua.name=="MQQBrowser"||Ua.name=="others")&&(aid=812);reportInOther({actionId:aid,actionType:0,actNum:50014});pv("yyb-h5.qq.com","open/moblie/app_ceremony_2014/lottery.html",{sence:"non-yyb"});