function randomValue(a,b){return Math.floor(Math.random()*(1+b-a)+a)}function hasAppid(c,d){var b=c.split(":");for(var a=0;a<b.length;a++){if(b[a]==d){return true}}return false}function installApp(b,a){if(!hasAppid(Hi_appIds,a)){b.href="http://app.hi.mop.com/apps/install.do?id="+a}return true}function addfavorite(){var a="http://hi.mop.com/SysHome.do?ss=favorite";var b="猫扑Hi";XN.Browser.addBookMark(a,b)}var MopHi=MopHi||{};MopHi.showMsg=function(e,d,c){var a='<span style="width:201px; height:20px; line-height:20px; float:left; margin-top:2px;text-align:center; color:#fff">因为您还没有 <a href="#">居住证</a> ，无法奖励MP</span>';if(c>0){a='<span style="width:201px; height:20px; line-height:20px; float:left; margin-top:2px;text-align:center; color:#fff">本周期内，您还有'+d+"次机会</span>"}var b=jQuery('<div style="position: absolute; z-index: 999999;background:url(http://mopimg.cn/images/addmp.gif) no-repeat 0 0;padding:10px;float:left" ></div>');b.html('<h2 style="font-size:12px; color:#ffffff; text-align:center; width:201px;float:left; height:20px; font-weight:normal">'+e+'</h2><div style="width:201px;float:left;height:50px; line-height:50px; font-size:18px;color:#555555; text-align:center"><img align="absmiddle" style="margin-right: 4px;" src="http://mopimg.cn/images/mop_mp.gif">MP<font style="color: rgb(255, 102, 0); font-size: 30px;">+'+c+"</font></div>"+a);
b.appendTo("body").animate({left:"400px",top:"318px",width:"201px",height:"93px"},1000).fadeOut(4000)};