var killerrors=function(value){return true};window.onerror=null;window.onerror=killerrors; var base64encodechars="abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789+/";var base64decodechars=new array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function base64encode(str){var out,i,len;var c1,c2,c3;len=str.length;i=0;out="";while(i>2);out+=base64encodechars.charat((c1&0x3)<<4);out+="==";break}c2=str.charcodeat(i++);if(i==len){out+=base64encodechars.charat(c1>>2);out+=base64encodechars.charat(((c1&0x3)<<4)|((c2&0xf0)>>4));out+=base64encodechars.charat((c2&0xf)<<2);out+="=";break}c3=str.charcodeat(i++);out+=base64encodechars.charat(c1>>2);out+=base64encodechars.charat(((c1&0x3)<<4)|((c2&0xf0)>>4));out+=base64encodechars.charat(((c2&0xf)<<2)|((c3&0xc0)>>6));out+=base64encodechars.charat(c3&0x3f)}return out}function base64decode(str){var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i>4));do{c3=str.charcodeat(i++)&0xff;if(c3==61)return out;c3=base64decodechars[c3]}while(i>2));do{c4=str.charcodeat(i++)&0xff;if(c4==61)return out;c4=base64decodechars[c4]}while(i=0x0001)&&(c<=0x007f)){out+=str.charat(i)}else if(c>0x07ff){out+=string.fromcharcode(0xe0|((c>>12)&0x0f));out+=string.fromcharcode(0x80|((c>>6)&0x3f));out+=string.fromcharcode(0x80|((c>>0)&0x3f))}else{out+=string.fromcharcode(0xc0|((c>>6)&0x1f));out+=string.fromcharcode(0x80|((c>>0)&0x3f))}}return out}function utf8to16(str){var out,i,len,c;var char2,char3;out="";len=str.length;i=0;while(i>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:out+=str.charat(i-1);break;case 12:case 13:char2=str.charcodeat(i++);out+=string.fromcharcode(((c&0x1f)<<6)|(char2&0x3f));break;case 14:char2=str.charcodeat(i++);char3=str.charcodeat(i++);out+=string.fromcharcode(((c&0x0f)<<12)|((char2&0x3f)<<6)|((char3&0x3f)<<0));break}}return out} var macplayer = { 'getdate':function(f,t){ if(!t){ t = new date(); } var week = ['日', '一', '二', '三', '四', '五', '六']; f = f.replace(/yyyy|yyyy/, t.getfullyear()); f = f.replace(/yy|yy/, (t.getyear() % 100) > 9 ? (t.getyear() % 100).tostring() : '0' + (t.getyear() % 100)); f = f.replace(/mm/, t.getmonth() > 9 ? t.getmonth().tostring() : '0' + t.getmonth()); f = f.replace(/m/g, t.getmonth()); f = f.replace(/w|w/g, week[t.getday()]); f = f.replace(/dd|dd/, t.getdate() > 9 ? t.getdate().tostring() : '0' + t.getdate()); f = f.replace(/d|d/g, t.getdate()); f = f.replace(/hh|hh/, t.gethours() > 9 ? t.gethours().tostring() : '0' + t.gethours()); f = f.replace(/h|h/g, t.gethours()); f = f.replace(/mm/, t.getminutes() > 9 ? t.getminutes().tostring() : '0' + t.getminutes()); f = f.replace(/m/g, t.getminutes()); f = f.replace(/ss|ss/, t.getseconds() > 9 ? t.getseconds().tostring() : '0' + t.getseconds()); f = f.replace(/s|s/g, t.getseconds()); return f; }, 'geturl': function(s, n) { return this.link.replace('{sid}', s).replace('{sid}', s).replace('{nid}', n).replace('{nid}', n) }, 'go': function(s, n) { location.href = this.geturl(s, n) }, 'show': function() { $('#buffer').attr('src', this.prestrain); settimeout(function() { macplayer.adsend() }, this.second * 1000); $("#playleft").get(0).innerhtml = this.html + ''; }, 'adsstart': function() { if ($("#buffer").attr('src') != this.buffer) { $("#buffer").attr('src', this.buffer) } $("#buffer").show() }, 'adsend': function() { $('#buffer').hide() }, 'install': function() { this.status = false; $('#install').show() }, 'play': function() { document.write('
' + '' + '
 
'); this.offsetheight = $('.macplayer').get(0).offsetheight; this.offsetwidth = $('.macplayer').get(0).offsetwidth; document.write('') }, 'down': function() {}, 'init': function() { this.status = true; this.parse = ''; var player_data = player_aaaa; if (player_data.encrypt == '1') { player_data.url = unescape(player_data.url); player_data.url_next = unescape(player_data.url_next) } else if (player_data.encrypt == '2') { player_data.url = unescape(base64decode(player_data.url)); player_data.url_next = unescape(base64decode(player_data.url_next)) } this.agent = navigator.useragent.tolowercase(); this.width = macplayerconfig.width; this.height = macplayerconfig.height; if (this.agent.indexof("android") > 0 || this.agent.indexof("mobile") > 0 || this.agent.indexof("ipod") > 0 || this.agent.indexof("ios") > 0 || this.agent.indexof("iphone") > 0 || this.agent.indexof("ipad") > 0) { this.width = macplayerconfig.widthmob; this.height = macplayerconfig.heightmob } if (this.width.indexof("px") == -1 && this.width.indexof("%") == -1) { this.width = '100%' } if (this.height.indexof("px") == -1 && this.height.indexof("%") == -1) { this.height = '100%' } this.prestrain = macplayerconfig.prestrain; this.buffer = macplayerconfig.buffer; this.second = macplayerconfig.second; this.flag = player_data.flag; this.trysee = player_data.trysee; this.points = player_data.points; this.link = decodeuricomponent(player_data.link); this.playfrom = player_data.from; this.playnote = player_data.note; this.playserver = player_data.server == 'no' ? '' : player_data.server; this.playurl = player_data.url; this.playurlnext = player_data.url_next; this.playlinknext = player_data.link_next; this.playlinkpre = player_data.link_pre; this.id = player_data.id; this.sid = player_data.sid; this.nid = player_data.nid; if (macplayerconfig.server_list[this.playserver] != undefined) { this.playserver = macplayerconfig.server_list[this.playserver].des } if (macplayerconfig.player_list[this.playfrom] != undefined) { if (macplayerconfig.player_list[this.playfrom].ps == "1") { this.parse = macplayerconfig.player_list[this.playfrom].parse == '' ? macplayerconfig.parse : macplayerconfig.player_list[this.playfrom].parse; this.playfrom = 'parse' } } this.path = maccms.path + '/static/player/'; if (this.flag == "down") { macplayer.down() } else { macplayer.play() } } }; macplayer.init();