PageSourceSearch

https://s61m.com/js/global.js

js s61m.com collected 2026-10-06 13:14:17 UTC 48,541 bytes, 1,495 lines download raw bytes

1/*
2 *¶Ô»°¿òÀà¡£
3 *ʹÓþÙÀý£º
4 *@example
5 new PwMenu('boxID').guide();
6 *
7 */
8/**
9 * @param String
10 *            id ¶Ô»°¿òµÄid£¬Èô²»´«µÝ£¬ÔòĬÈÏΪpw_box
11 */
12PWMENU_ZINDEX=1001;
13
14function PwMenu(id){
15	this.pid	= null;
16	this.obj	= null;
17	this.w		= null;
18	this.h		= null;
19	this.t		= 0;
20	this.menu	= null;
21	this.mid	= id;
22	this.oCall  = null;
23	this.init(id); 
24}
25
26PwMenu.prototype = {
27
28	init : function(id) {
29		this.menu = getPWBox(id);
30		var _ = this;
31		document.body.insertBefore(this.menu,document.body.firstChild);
32		_.menu.style.zIndex=PWMENU_ZINDEX+10+"";
33		PWMENU_ZINDEX+=10;
34	},
35
36	guide : function() {
37		this.menu=this.menu||getPWBox(this.mid);
38		this.menu.className = '';
39		this.menu.innerHTML = '<div class="popout"><table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td class="bgcorner1"></td><td class="pobg1"></td><td class="bgcorner2"></td></tr><tr><td class="pobg4"></td><td><!--[if IE 6]><iframe frameborder="0" style="position:absolute;top:0;left:-6px;width:180px;height:83px;filter:Alpha(opacity=0);_filter:Alpha(opacity=0);opacity:.0;"></iframe><![endif]--><div class="popoutContent" style="padding:20px;"><img src="'+imgpath+'/loading.gif" align="absmiddle" alt="loading" /> ÕýÔÚ¼ÓÔØÊý¾Ý...</div></td><td class="pobg2"></td></tr><tr><td class="bgcorner4"></td><td class="pobg3"></td><td class="bgcorner3"></td></tr></tbody></table></div>';
40		this.menupz(this.obj);
41	},
42
43	close : function() {
44		var _=this;
45		read.t = setTimeout(function() {
46			_.menu?0:_.menu=read.menu;
47			if (_.menu) {
48				_.menu.style.display = 'none';
49				_.menu.className = '';
50				if (_.oCall && _.oCall.close) _.oCall.close();
51			}
52		}, 100);
53	},
54
55	setMenu : function(element,type,border,oCall) {
56		if (this.IsShow() && this.oCall && this.oCall.close) {
57			this.oCall.close();
58		}
59		if (type) {
60			this.menu=this.menu||getPWBox(this.mid);
61			var thisobj = this.menu;
62		} else {
63			var thisobj = getPWContainer(this.mid,border);
64		}
65		if (typeof(element) == 'string') {
66			thisobj.innerHTML = element;
67		} else {
68			/*while (thisobj.hasChildNodes()) {
69				thisobj.removeChild(thisobj.firstChild);
70			}*/
71			thisobj.innerHTML = '';
72			thisobj.appendChild(element);
73		}
74		this.oCall = null;
75		if (oCall && oCall.open) {
76			this.oCall = oCall;
77			oCall.open();
78		}
79	},
80
81	move : function(e) {
82		if(is_ie){document.body.onselectstart = function(){return false;}}
83		if(document.body.style.webkitUserSelect){document.body.style.webkitUserSelect = ''}
84		var e  = window.event || e;
85		var o  = this.menu||getPWBox(this.mid);
86		var x  = e.clientX;
87		var y  = e.clientY;
88		this.w = e.clientX - parseInt(o.offsetLeft);
89		this.h = e.clientY - parseInt(o.offsetTop);
90		var _=this;
91		_.menu=_.menu||getPWBox(_.mid);
92		document.body.setCapture && _.menu.setCapture();
93		document.onmousemove = function(e) {
94			var e  = window.event || e;
95			var x  = e.clientX;
96			var y  = e.clientY;
97			y=(y - _.h<0)?0:(y - _.h);
98			_.menu.style.left = x - _.w + 'px';
99			_.menu.style.top  = y+ 'px';
100		};
101		document.onmouseup   = function() {
102			if(is_ie){document.body.onselectstart = function(){return true;}}
103			document.body.releaseCapture && _.menu.releaseCapture();// IEÊÍ·ÅÊó±ê¼à¿Ø
104			document.onmousemove = null;
105			document.onmouseup = null;
106		};
107	},
108
109
110	open : function(idName, object, type, pz, oCall) {
111		if (typeof idName == 'string') {
112			idName = getObj(idName);
113		}
114		if (idName == null) return false;
115		this.menu=this.menu||getPWBox(this.mid);
116		clearTimeout(read.t);
117		if (typeof type == "undefined" || !type) type = 1;
118		if (typeof pz == "undefined" || !pz) pz = 0;
119
120		this.setMenu(idName.innerHTML, 1, 1, oCall);
121		this.menu.className = idName.className;
122		this.menupz(object,pz);
123
124		if (type == 3) {
125			this.closeByClick();
126		} else if (type != 2) {
127			this.closeByMove(object);
128		}
129	},
130	
131	closeByClick : function() {
132		document.onmousedown = function (e) {
133			var e=e||window.event;
134			var o = e.target||e.srcElement;
135			var contain=contains(read.menu,o);
136			if (!contain) {
137				read.close();
138				document.onmousedown = null;
139			}
140		}
141	},
142
143	closeByMove : function(id) {
144		var _=this;
145		getObj(id).onmouseout = function() {_.close();getObj(id).onmouseout = null;};
146		_.menu.onmouseout = function() {_.close();}
147		_.menu.onmouseover = function() {clearTimeout(read.t);}
148	},
149
150	menupz : function(obj,pz) {
151		this.menu=this.menu||getPWBox(this.mid);
152		this.menu.onmouseout = '';
153		this.menu.style.display = '';
154		// this.menu.style.zIndex = 3000;
155		this.menu.style.position='absolute';
156		this.menu.style.left	= '-500px';
157		this.menu.style.visibility = 'visible';
158
159		if (typeof obj == 'string') {
160			obj = getObj(obj);
161		}
162		if (!obj||obj == null) {
163			if (is_ie) {
164				this.menu.style.top  = (ietruebody().offsetHeight - this.menu.offsetHeight)/3 + getTop() +(getObj('upPanel') ? getObj('upPanel').scrollTop:0)+ 'px';
165				this.menu.style.left = (ietruebody().offsetWidth - this.menu.offsetWidth)/2 + 'px';
166			} else {
167				var top = (document.documentElement.clientHeight - this.menu.offsetHeight)/3 + getTop();
168				if(top < 0){top = 0;}
169				this.menu.style.top  = top + 'px';
170				this.menu.style.left = (document.documentElement.clientWidth - this.menu.offsetWidth)/2 + 'px';
171			}
172		} else {
173			var top  = findPosY(obj);
174			var left = findPosX(obj);
175			var pz_h = Math.floor(pz/10);
176			var pz_w = pz % 10;
177			if (is_ie) {
178				var offsetheight = ietruebody().offsetHeight;
179				var offsethwidth = ietruebody().offsetWidth;
180			} else {
181				var offsetheight = document.documentElement.clientHeight;
182				var offsethwidth = document.documentElement.clientWidth;
183			}
184			/*
185			 * if (IsElement('upPanel') && is_ie) { var gettop = 0; } else { var
186			 * gettop = ; }
187			 */
188			var show_top = IsElement('upPanel') ? top - getObj('upPanel').scrollTop : top;
189			if (pz_h!=1 && (pz_h==2 || show_top < offsetheight/2)) {
190				top += getTop() + obj.offsetHeight;
191			} else {
192				top += getTop() - this.menu.offsetHeight;
193			}
194			if (pz_w!=1 && (pz_w==2 || left > (offsethwidth)*3/5)) {
195				left -= this.menu.offsetWidth - obj.offsetWidth - getLeft();
196			}
197			this.menu.style.top = (top < 0 ? 0 : top) + 'px';
198			this.menu.style.left = left + 'px';
199			if (pz_w != 1 && left + this.menu.offsetWidth > document.body.offsetWidth+ietruebody().scrollLeft) {
200				this.menu.style.left = document.body.offsetWidth+ietruebody().scrollLeft-this.menu.offsetWidth-30 + 'px';
201			}
202		}
203	},
204
205	InitMenu : function() {
206		var _=this;
207		function setopen(a,b) {
208			if (getObj(a)) {
209				var type = null,pz = 0,oc;
210				if (window[a]) {
211					oc = window[a];
212					oc.type ? type = oc.type : 0;
213					oc.pz ? pz = oc.pz : 0;
214				}
215				getObj(a).onmouseover = function(){_.open(b, a, type, pz, oc);};
216				// getObj(a).onmouseover=function(){_.open(b,a);callBack?callBack(b):0};
217				// try{getObj(a).parentNode.onfocus =
218				// function(){_.open(b,a);callBack?callBack(b):0};}catch(e){}
219			}
220		}
221		for (var i in openmenu) {
222			try{setopen(i,openmenu[i]);}catch(e){}
223		}
224	},
225
226	IsShow : function() {
227		this.menu=this.menu||getPWBox(this.mid);
228		return (this.menu.hasChildNodes() && this.menu.style.display != 'none') ? true : false;
229	}
230};
231var read = new PwMenu();
232
233function closep() {
234	read.menu.style.display = 'none';
235	read.menu.className = '';
236}
237function cancelping(url) {
238	ajax.send(url,'',function(){
239	var in_text=ajax.request.responseText;
240	TINY.box.show(in_text,1,700,630,1);
241	})
242}
243function findPosX(obj) {
244	var curleft = 0;
245	if (obj.offsetParent) {
246		while (obj.offsetParent) {
247			curleft += obj.offsetLeft
248			obj = obj.offsetParent;
249		}
250	} else if (obj.x) {
251		curleft += obj.x;
252	}
253	return curleft - getLeft();
254}
255function findPosY(obj) {
256	var curtop = 0;
257	if (obj.offsetParent) {
258		while (obj.offsetParent) {
259			curtop += obj.offsetTop
260			obj = obj.offsetParent;
261		}
262	} else if (obj.y) {
263		curtop += obj.y;
264	}
265	return curtop - getTop();
266}
267function in_array(str,a){
268	for (var i = 0,j = a.length; i < j; i++) {
269		if(str == a[i])	return true;
270	}
271	return false;
272}
273function loadjs(path, code, id, callBack) {
274	id = id || '';
275	if (id != '' && IsElement(id)) {
276		try{callBack?callBack():0;}catch(e){}
277		return false;
278	}
279	var header = document.getElementsByTagName("head")[0];
280	var s = document.createElement("script");
281	if (id) s.id = id;
282	if (path) {
283		// bug fix
284		if(is_webkit && path.indexOf(' ')>-1)
285		{
286			var reg = /src="(.+?)"/ig;
287			var arr = reg.exec(path);
288			if(arr){
289				path = arr[1];
290			}				
291		}
292		s.src = path;
293	} else if (code) {
294		s.text = code;
295	}
296	if (document.all) {
297		s.onreadystatechange = function() {
298			if (s.readyState == "loaded" || s.readyState == "complete") {
299				callBack?callBack():0;
300			}
301		};
302	} else {
303		try{s.onload = callBack?callBack:null;}catch(e){callBack?callBack():0;}
304	}
305	header.appendChild(s);
306	return true;
307}
308addEvent(document,'keyup',function(e){
309	if(read.menu.style.display != 'none'){
310		if (e.keyCode == 27) {
311			read.close();
312		}
313	}
314});
315
316function opencode(menu,td,id) {
317	document.body.onclick = document.body.onmousedown = null;
318	var id = id || 'ckcode';
319	if (read.IsShow() && read.menu.firstChild.id == id) return;
320	read.open(menu,td,2,11);
321	getObj(id).src = 'ck.php?nowtime=' + new Date().getTime();
322
323	document.body.onmousedown=function(e) {
324		var o = is_ie ? window.event.srcElement : e.target;
325        var f = is_ie ? false : true;// firefox e.type = click by lh
326
327		if( o!=getObj(id) && o!=td )
328		{
329			closep();
330		}
331		if (o == td || (f && e.type == "click")) {
332			return;
333		} else if (o.id == id) {
334			getObj(id).src = 'ck.php?nowtime=' + new Date().getTime();
335		} else {
336			closep();
337			document.body.onmousedown = null;
338		}
339	};
340
341}
342
343function getPWBox(type){
344	if (getObj(type||'pw_box')) {
345		return getObj(type||'pw_box');
346	}
347	var pw_box	= elementBind('div',type||'pw_box','','position:absolute;left:-10000px');
348
349	document.body.appendChild(pw_box);
350	return pw_box;
351}
352
353function getPWContainer(id,border){
354	id = id || '';
355	if (getObj(id||'pw_box')) {
356		var pw_box = getObj(id||'pw_box');
357	} else {
358		var pw_box = getPWBox(id);
359	}
360	if (getObj(id+'box_container')) {
361		return getObj(id+'box_container');
362	}
363
364	if (border == 1) {
365		pw_box.innerHTML = '<div class="popout"><div id="'+id+'box_container"></div></div>';
366	} else {
367		pw_box.innerHTML = '<div class="popout"><table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td class="bgcorner1"></td><td class="pobg1"></td><td class="bgcorner2"></td></tr><tr><td class="pobg4"></td><td><div class="popoutContent" id="'+id+'box_container"></div></td><td class="pobg2"></td></tr><tr><td class="bgcorner4"></td><td class="pobg3"></td><td class="bgcorner3"></td></tr></tbody></table></div>';
368	}
369	var popoutContent = getObj(id+'box_container');
370	return popoutContent;
371}
372function elementBind(type,id,stylename,csstext){
373	var element = document.createElement(type);
374	if (id) {
375		element.id = id;
376	}
377	if (typeof(stylename) == 'string') {
378		element.className = stylename;
379	}
380	if (typeof(csstext) == 'string') {
381		element.style.cssText = csstext;
382	}
383	return element;
384}
385
386function addChild(parent,type,id,stylename,csstext){
387	parent = objCheck(parent);
388	var child = elementBind(type,id,stylename,csstext);
389	parent.appendChild(child);
390	return child;
391}
392
393function delElement(id){
394	id = objCheck(id);
395	id.parentNode.removeChild(id);
396}
397
398function pwForumList(isLink,isPost,fid,handle,ifblank) {
399	if (isLink == true) {
400		if (isPost == true){
401			if(ifblank == true) {
402				window.open('post.php?fid='+fid);
403			} else {
404				window.location.href = 'post.php?fid='+fid;
405			}
406			if (is_ie) {
407				window.event.returnValue = false;
408			}
409		} else {
410			return true;
411		}
412	} else {
413		if (gIsPost != isPost || read.menu.style.display=='none' || read.menu.innerHTML == '') {
414			read.menu.innerHTML = '';
415			if (isPost == true) {
416				if (getObj('title_forumlist') == null) {
417					showDialog('error','ûÓÐÕÒµ½°æ¿éÁбíÐÅÏ¢');
418				}
419				getObj('title_forumlist').innerHTML = 'Ñ¡ÔñÄãÒª·¢ÌûµÄ°æ¿é';
420			} else {
421				if (getObj('title_forumlist') == null) {
422					showDialog('error','ûÓÐÕÒµ½°æ¿éÁбíÐÅÏ¢');
423				}
424				getObj('title_forumlist').innerHTML = '¿ìËÙÌø×ª';
425			}
426			gIsPost = isPost;
427			if (handle.id.indexOf('pwb_')==-1) {
428				read.open('menu_forumlist', handle, 3);
429			}
430		} else {
431			read.close();
432		}
433	}
434	return false;
435}
436function char_cv(str){
437	if (str != ''){
438		str = str.replace(/</g,'&lt;');
439		str = str.replace(/%3C/g,'&lt;');
440		str = str.replace(/>/g,'&gt;');
441		str = str.replace(/%3E/g,'&gt;');
442		str = str.replace(/'/g,'&#39;');
443		str = str.replace(/"/g,'&quot;');
444	}
445	return str;
446}
447
448function checkFileType() {
449	var fileName = getObj("uploadpic").value;
450	if (fileName != '') {
451		var regTest = /\.(jpe?g|gif|png)$/gi;
452		var arrMactches = fileName.match(regTest);
453		if (arrMactches == null) {
454			getObj('fileTypeError').style.display = '';
455			return false;
456		} else {
457			getObj('fileTypeError').style.display = 'none';
458		}
459	}
460	return true;
461}
462var searchTxt = 'ËÑË÷ÆäʵºÜ¼òµ¥£¡';
463function searchFocus(e){
464	if(e.value == searchTxt){
465		e.value='';
466		e.className = '';
467	}
468	//e.parentNode.className += ' inputFocus';
469}
470function searchBlur(e){
471	if(e.value == ''){
472		e.value=searchTxt;
473		e.className = 'gray';
474	}
475	//e.parentNode.className = 'ip';
476}
477function getSearchType(evt){
478	var e=evt||window.event;
479	var n = e.srcElement || e.target;
480	if(n && n.tagName!='LI') return;
481	n.parentNode.parentNode.getElementsByTagName('h6')[0].innerHTML = n.innerHTML;
482	var lis = n.parentNode.getElementsByTagName('li');
483	for(var i = 0,j=lis.length;i < j;i++){
484		lis[i].style.display = '';
485	}
486	n.style.display='none';
487	getObj('search_type').value=n.getAttribute('type');
488	n.parentNode.style.display='none';
489	//±¾°æËÑË÷
490	if (typeof(getObj('inner_forum')) != 'undefined'){
491		var inputs = n.parentNode.parentNode.parentNode.getElementsByTagName('input');
492		for(var i = 0,j=inputs.length;i < j;i++){
493			if (typeof(n.id) && n.id == 'inner_forum') {
494				eval("inputs[i].value = " + inputs[i].id + ';');
495			} else {
496				if (typeof(inputs[i].id) != 'undefined' && inputs[i].id.indexOf('ins_') == 0)
497				{
498					inputs[i].value = '';
499				}
500			}
501		}
502	}
503}
504function searchInput() {
505	if(getObj('search_input').value==searchTxt)
506		getObj('search_input').value='';
507	return true;
508}
509//pwͨÓõ¯³ö¿ò
510(function(win,doc) {
511    if (win.showDlg) return;
512        isIE = !+'\v1', // IEä¯ÀÀÆ÷
513	    isCompat = doc.compatMode == 'CSS1Compat',	// ä¯ÀÀÆ÷µ±Ç°½âÊÍģʽ
514	    IE6 = isIE && /MSIE (\d)\./.test(navigator.userAgent) && parseInt(RegExp.$1) < 7, // IE6ÒÔÏÂÐèÒªÓÃiframeÀ´ÕÚÕÖ
515	    useFixed = !isIE || (!IE6 && isCompat), // ¹ö¶¯Ê±£¬IE7+£¨±ê׼ģʽ£©¼°ÆäËüä¯ÀÀÆ÷ʹÓÃFixed¶¨Î»
516        Typeis = function(o,type) {
517		    return Object.prototype.toString.call(o)==='[object ' + type + ']';
518	    }, // ÅжÏÔªËØÀàÐÍ
519        getObj = function(o) {
520            return Typeis(o,'String') ? doc.getElementById(o) : o;
521        },
522        $height = function(obj) {return parseInt(obj.style.height) || obj.offsetHeight}, // »ñÈ¡ÔªËØ¸ß¶È
523        $width = function(obj) {return parseInt(obj.style.width) || obj.offsetWidth}, // »ñÈ¡ÔªËØ¸ß¶È
524        getWinSize = function() {
525            var rootEl = doc.body;
526			return [Math.max(rootEl.scrollWidth, rootEl.clientWidth), Math.max(Math.max(doc.body.scrollHeight,rootEl.scrollHeight), Math.max(rootEl.clientHeight,doc.body.clientHeight || window.clientHeight))]
527		},
528		/* »ñÈ¡scrollLeftºÍscrollTop */
529		getScrollPos = function() {
530		    var body = doc.body,docEl = doc.documentElement;
531			return {
532			    left:body.scrollLeft || docEl.scrollLeft, top:body.scrollTop || docEl.scrollTop
533			}
534		},
535        empty = function(){},
536        defaultCfg = {   // ĬÈÏÅäÖÃ
537            id:         'pw_dialog',
538            type:       'warning',
539            message:    '',// µ¯³öÌáʾµÄÎÄ×Ö
540            showObj:    null,// ÒªÏÔʾµÄ±¾µØÔªËØ,ÔÚajaxÌáʾÊdz£ÓÃ
541            width:      300,// µ¯³ö¿ò¿í¶È
542            isMask:     1,
543            autoHide:   0,// ÊÇ·ñ×Ô¶¯¹Ø±Õ
544		    zIndex:		9999, // ²ãµþÖµ
545		    onShow:		empty,// ÏÔʾʱִÐÐ
546		    onOk:       empty,
547		    onClose:	empty, // ¹Ø±ÕʱִÐÐ
548		    left:       '50%',// ¾ø¶ÔλÖÃ
549		    top:        '50%',
550		    alpha:      0.2,// ÕÚÕÖµÄ͸Ã÷¶È
551		    backgroundColor:'#000',// ÕÚÕֵı³¾°É«
552		    titleText:  'Ìáʾ',// Ìáʾ±êÌâ
553		    okText:      'È·¶¨',// È·¶¨°´Å¥ÎÄ×Ö
554		    cancelText:  'È¡Ïû',// È¡ÏûÎÄ×Ö£¬È·ÈÏʱÓÃ
555		    closeText:  '¹Ø±Õ',// ¹Ø±ÕÎÄ×Ö
556		    button:     null// ĬÈϲ»ÏÔʾ°´Å¥
557        },
558		icoPath = 'images/';
559        
560    var Dialog = function(options) {// ¹¹Ô캯Êý
561        var self = this;
562        this.options = options;
563        if (!(self instanceof Dialog)) {
564            return new Dialog(options);
565        }
566        this._initialize();
567    }
568    Dialog.prototype = {
569        _initialize:function() {
570            for(var i in defaultCfg) {
571                if(!(i in options)){
572                    options[i] = defaultCfg[i];
573                }
574            }
575            this.show();
576        },
577        show:function(options) {
578            var self = this,
579                opt = self.options,
580                box = opt.showObj;
581            	//closep();
582                createButton = function(){// ´´½¨°´Å¥
583                    var html = [],btn = opt.button;
584                    if(opt.autoHide){ html.push('<div class="fl gray">±¾´°¿Ú<span class="spanTime">'+ opt.autoHide +'</span>Ãëºó¹Ø±Õ</div>');}
585                    if(btn){
586                        for(var i = 0,j = btn.length;i < j;i++ ) {
587                            html.push('<span class="bt2"><span><button class="pw_dialoag_button" type="button">'+ btn[i][0] +'</button></span></span>');
588                        }
589                    }else {
590                        if(opt.type === 'confirm') {
591                            html.push('<span class="btn2"><span><button type="button" class="pw_dialoag_ok">'+ opt.okText +'</button></span></span>');
592                        }
593                        html.push('<span class="bt2"><span><button type="button" class="pw_dialoag_close">'+ opt.closeText +'</button></span></span>');
594                    }
595                    return html.join('');
596                }
597                // timeout;
598            if(!opt.showObj) {
599                var divStyle = 'z-index:'+ (opt.zIndex + 1) +';position:'+ (useFixed ? 'fixed' : 'absolute')+';';
600                    maskStyle = (!opt.isMask ? 'display:none':'') + 'width:'+ getWinSize()[0] +'px;height:'+ getWinSize()[1] +'px;z-index:'+ opt.zIndex +';position:absolute;top:0;left:0;text-align:center;filter:alpha(opacity='+ opt.alpha*100 + ');opacity:'+ opt.alpha +';background-color:'+opt.backgroundColor;
601                    if(!getObj(opt.id)) {
602                        box = document.createElement('div');
603                        box.id = opt.id;
604                    }else {
605                        box = getObj(opt.id);
606                    }
607                    if (!opt.type) opt.type = defaultCfg.type;
608		            box.innerHTML = [
609		            /* ÕÚÕÖ */
610		            '<div style="' + maskStyle + '"></div>', IE6 ? ("<iframe id='maskIframe' src='about:blank' style='" + maskStyle + "'></iframe>") : '',
611		            /* ´°Ìå */
612		            // IE6 ? "<iframe src='javascript:false'
613					// style='width:100%;height:999px;position:absolute;top:0;left:0;z-index:-1;opacity:1;filter:alpha(opacity=100)'></iframe>":
614					// '',
615		            '<div style="'+ divStyle +'" class="popout">\
616		            <table cellspacing="0" cellpadding="0" border="0">\
617		                <tbody>\
618		                <tr><td class="bgcorner1"></td><td class="pobg1"></td><td class="bgcorner2"></td></tr><tr><td class="pobg4"></td>\
619		                    <td>\
620		                        <div id="box_container" class="popoutContent">\
621		                            <div style="width:'+ opt.width +'px;">\
622		                                <div class="popTop">'+ opt.titleText +'</div>\
623		                                <div class="popCont" style="padding-left:20px;padding-right:20px;"><img align="absmiddle" class="mr10" src="'+ icoPath + opt.type +'_bg.gif">'+ opt.message +'</div>\
624		                                <div style="text-align: right;" class="popBottom">\
625		                                '+ createButton() + '\
626		                                </div>\
627		                            </div>\
628		                        </div>\
629		                    </td><td class="pobg2"></td></tr><tr><td class="bgcorner4"></td><td class="pobg3"></td><td class="bgcorner3"></td></tr>\
630		                </tbody>\
631		            </table>\
632		            </div>',
633		            /* ÒõÓ° */
634		            isIE ? "<div id='ym-shadow' style='position:absolute;z-index:10000;background:#808080;filter:alpha(opacity=80) progid:DXImageTransform.Microsoft.Blur(pixelradius=5);'></div>": ''].join('');
635		        doc.body.insertBefore(box, doc.body.childNodes[0]);
636		        var popout = getElementsByClassName('popout',box)[0];
637                popout.style.left = Typeis(opt.left,'Number') ? opt.left + 'px' : opt.left
638                popout.style.top = Typeis(opt.top,'Number') ? opt.top + 'px' : opt.top;
639                var h = $height(popout),w = $width(popout);
640                if(!Typeis(opt.left,'Number')) {
641				    popout.style.marginLeft = useFixed ? - w / 2 + "px" : getScrollPos().left - w / 2 + "px";
642				}else {
643				    popout.style.left = ''+opt.left + 'px';
644				}
645				if(!Typeis(opt.top,'Number')) {
646				    popout.style.marginTop = useFixed ? - h / 2 + "px" : getScrollPos().top - h / 2 + "px";
647				}else {
648				    popout.style.top = ''+opt.top + 'px';
649				}
650				var closeTime = function() {
651					if(interval){
652						clearInterval(interval);
653						interval = null;
654					}
655                };
656				if(opt.button) {
657				    var customBtn = getElementsByClassName('pw_dialoag_button',box),buttons = opt.button;
658				    if(customBtn.length){
659                        for(var i = 0,j = customBtn.length;i < j;i++) {
660                            (function(i){
661                                customBtn[i].onclick = function() {
662                                   buttons[i][1] && buttons[i][1](); 
663                                }
664                            })(i)
665                            
666                        }
667                    }
668				}else{
669		            var closeBtn = getElementsByClassName('pw_dialoag_close',box),
670                        okBtn = getElementsByClassName('pw_dialoag_ok',box);
671                   if(closeBtn.length){
672                        closeBtn[0].onclick = function() {
673                            self.close();
674                        }
675                    }
676                    if(okBtn.length) {
677                        okBtn[0].onclick = function() {
678                            self.options.onOk && self.options.onOk();
679							//self.options.onClose && self.options.onClose();
680                            self.close();
681                        }
682                    }
683                }
684                
685            }else{
686                var obj = getObj(opt.showObj);
687                if(obj.nodeType !== 1) {// Èç¹û´«½øÀ´µÄ²»ÊÇÔªËØ,Ö±½Óreturn
688                    return;
689                }
690                obj.style.display = '';
691                var msgObj = getElementsByClassName('message',obj),
692                    msgClose = getElementsByClassName('close',obj);
693                if( !msgObj.length ) { return false; }
694                msgObj[0].innerHTML = opt.message;
695                if( msgClose.length ) { msgClose[0].onclick = function() {obj.style.display = 'none'; }}
696            }
697            opt.onShow && opt.onShow();
698            if(opt.autoHide) {
699                var spanTime = getElementsByClassName('spanTime',popout)[0];
700		        interval = setInterval(function() {
701		                var time = --opt.autoHide;
702		                if(spanTime){ spanTime.innerHTML = time;}
703		                if(time === 0){
704		                    clearInterval(interval);
705		                    self.close();
706		                }
707		        },1000);
708		    }
709        },
710        close:function() {
711            var opt = this.options;
712            if(!opt.showObj && getObj(opt.id)) {
713                doc.body.removeChild(getObj(opt.id));
714            }else if(getObj(opt.showObj)) {
715                getObj(opt.showObj).style.display = 'none';
716            }
717            opt.onClose && opt.onClose();
718        }
719    }
720    win['showDlg'] = function(type,message,autohide,callback){
721		var isMask = type === 'confirm' ? 0 : 1,
722			onClose = type !== 'confirm' ? callback : null,
723			options = arguments.length === 1 ? arguments[0] : { type:type,message:message,autoHide:autohide,onOk:callback,onClose:onClose,isMask:isMask };
724        Dialog(options);
725    }
726	win['showDialog'] = win['showDlg'];
727
728	//tabÇл»
729	win.showTabSimple = function(tabNavs,tabBodys,callback){
730		if(tabNavs.length!=tabBodys.length){return false;}
731		tabBodys[0].style.display = 'block';//ĬÈϵÚÒ»¸öÏÔʾ
732		var len = tabNavs.length;
733		for (var i = 0; i < len; i++) {
734	    		(function(i){
735					addEvent(tabNavs[i],'click',function(e){
736						e.preventDefault();
737						for(var j = 0; j < len; j++){
738							tabBodys[j].style.display = 'none';
739							tabNavs[j].className = '';
740						}
741						tabNavs[i].className = 'current';
742						tabBodys[i].style.display = 'block';
743						callback && callback.call(this,tabNavs[i],tabBodys[i],i);
744					});
745				})(i);
746		}
747	};
748	//ÏÔʾÒþ²ØÒ»¸öÔªËØ
749	win.toggleDisplay=function(handler,cont,callback){
750		if(!handler){
751			return false;
752		}
753		addEvent(handler,"click",function(e){
754			e.preventDefault();
755			var display = getStyle(cont,"display");
756			cont.style.display = (display=="none") ? "block" : "none";
757			handler.arrow = (display == "none") ? "up":"down";
758			callback && callback.call(handler);
759		})
760	};
761	//fadeIn,fadeOut
762	var fade = function(elem, flag){
763		elem.style.display = '';
764		elem.alpha = flag ? 1:100;
765		elem.style.opacity = (elem.alpha / 100);
766		elem.style.filter = 'alpha(opacity=' + elem.alpha + ')';
767		var value = elem.alpha;
768		(function(){
769			elem.style.opacity = (value / 100);
770			elem.style.filter = 'alpha(opacity=' + value + ')';
771			if (flag) {
772				value+=4;
773				if (value <= 100) {
774	            	setTimeout(arguments.callee, 14);//¼ÌÐøµ÷Óñ¾Éí
775	        	}
776			}
777			else {
778				value-=4;
779				if (value >= 0) {
780	            	setTimeout(arguments.callee, 14);//¼ÌÐøµ÷Óñ¾Éí
781	        	}
782			}
783	    })();
784	}
785	win.fadeIn = function(elem){fade(elem,true);};
786	win.fadeOut = function(elem){fade(elem,false);};
787	//»Øµ½¶¥²¿¹¦ÄÜ
788	win.scrollBar=function(){
789		var Tween={
790			Quad:{
791				easeOut: function(t,b,c,d){
792					return -c *(t/=d)*(t-2) + b;
793				},
794				easeInOut: function(t,b,c,d){
795					if ((t/=d/2) < 1) return c/2*t*t + b;
796					return -c/2 * ((--t)*(t-2) - 1) + b;
797				}		
798			}
799		}
800		var that = this;
801		if(!getObj("scrollBar")){
802			var ele = doc.createElement("div");
803			ele.id = "scrollBar";
804			ele.innerHTML='<a hideFocus="true" href="javascript:void(0)">»Øµ½¶¥²¿</a>';
805			doc.body.appendChild(ele);
806		}else{
807			var ele = getObj("scrollBar");
808		}
809		var barTxt="»Øµ½¶¥²¿";
810		var distance=200;//ÏÞ¶¨·¶Î§
811		var dd = doc.documentElement;
812		var db = doc.body;
813		var scrollTop;//¶¥²¿¾àÀë
814		this.setStyle = function(){
815			scrollTop = db.scrollTop || dd.scrollTop;//¶¥²¿¾àÀë
816			var sw = dd.scrollWidth;
817			var pos='right:50%;margin-right:-510px;';
818			var fullscreen = getObj('fullscreenStyle');//ÅÐ¶ÏÆÁĻ״̬
819			if((fullscreen && !fullscreen.disabled) || sw<1020){//¿íÆÁ»òÕß´°¿Ú¿í¶ÈСÓڿɼûֵʱ 1020=960+20*2+10*2
820				pos='right:5px;';
821			}
822			var ctxt=scrollTop >= distance ? '': 'display:none';
823			ele.style.cssText='position:fixed;'+pos+'bottom:75px;'+ctxt;
824		}
825		this.update=function(){//¿ØÖÆ»¬¿éÏÔʾ ²¢ÐÞÕýIE6¶¨Î»
826				scrollTop = db.scrollTop || dd.scrollTop;
827				ele.style.display=(scrollTop>=distance)?"block":"none";
828			if(!win.XMLHttpRequest){//Èç¹ûIE6
829				var h = ele.offsetHeight;
830				var ch = doc.documentElement.clientHeight;
831				ele.style.position="absolute";
832				ele.style.top=ch+scrollTop-h-75+"px";
833			}	
834		}
835		that.b=0;//³õʼֵ
836		that.c=0;//±ä»¯Á¿
837		var d = 10,t = 0;//³ÖÐøÊ±¼äºÍÔöÁ¿
838		this.run=function(){
839			if(dd.scrollTop){
840				dd.scrollTop=Math.ceil(Tween.Quad.easeOut(t,that.b,that.c,d));
841			}else{
842				db.scrollTop = Math.ceil(Tween.Quad.easeOut(t,that.b,that.c,d));
843			}
844			if(t<d){ t++; setTimeout(that.run, 10); }else{t=0;}
845		}
846		ele.onclick=function(){
847			that.b = scrollTop;
848			that.c =- scrollTop;
849			that.run();
850			return false;
851		}
852		this.init=function(){
853			this.setStyle();
854			win.onscroll=function(){
855				that.update();
856			}
857			win.onresize=function(){
858				that.setStyle();
859				that.update();
860			}
861		}
862	}
863	//ÏûÏ¢Ìáʾ
864	win.messageTip=function(st){
865			if(!getObj("pw_all_tip")){
866				return false;
867			}
868			this.dd = document.documentElement;
869			this.db = document.body;
870			this.scrollTop=null;//¶¥²¿¾àÀë
871			this.ele=getObj("pw_all_tip");
872			this.closeBtn=getObj("pw_all_tclose");
873			this.st=st||90;
874			this.height=this.ele.offsetHeight;
875	}
876	messageTip.prototype={
877		init:function(){
878			if(!this.ele){
879				return false;
880			}
881			this.setStyle();
882			var self=this;
883			addEvent(this.closeBtn,"click",function(){
884				self.close();
885				return false;
886			})
887			addEvent(window,"scroll",function(){
888				self.update();
889			})
890			addEvent(window,"resize",function(){
891				self.setStyle();
892				self.update();
893				if(is_ie6){
894					setTimeout(function(){
895						self.setStyle();
896						self.update();
897					},100)
898				}
899			})
900		},
901		setStyle : function(){
902			this.scrollTop = this.db.scrollTop || this.dd.scrollTop;//¶¥²¿¾àÀë
903			var sw = this.dd.scrollWidth;
904			var pos='right:50%;margin-right:-480px;';
905			var fullscreen = getObj('fullscreenStyle');//ÅÐ¶ÏÆÁĻ״̬
906			if((fullscreen && !fullscreen.disabled) || sw<980){//¿íÆÁ»òÕß´°¿Ú¿í¶ÈСÓڿɼûֵʱ 980=960+10*2
907				pos='right:10px;';
908			}
909				this.ele.style.cssText='position:absolute;'+pos+'top:'+this.st+'px;';
910				this.ele.style.display="block";
911		},
912		update:function(){
913				this.scrollTop = this.db.scrollTop + this.dd.scrollTop;
914				var top=this.ele.getBoundingClientRect().top;
915				if(this.scrollTop>this.st){
916					if(!window.XMLHttpRequest){
917						this.ele.style.top=this.scrollTop+"px";
918					}else{
919						this.ele.style.position="fixed";
920						this.ele.style.top="0px";
921					}
922				}else{			
923					if(!!window.XMLHttpRequest){
924						this.ele.style.position="absolute";
925					}
926					this.ele.style.top=this.st+"px";
927				}
928				
929		},
930		close:function(){
931			var self = this,url="";
932			if(typeof pw_baseurl!="undefined"){
933				url=pw_baseurl+"/";
934			}
935			var num=this.closeBtn.getAttribute("data-num");
936			ajax.send(url+'pw_ajax.php?action=clearmessage&num='+num,'',function(){
937				var rText = ajax.request.responseText.split('\t');
938				var parent=self.ele.parentNode;
939				parent.removeChild(self.ele);
940			});
941		}
942	}
943	
944	/*СÃûƬ 2011-06-30*/
945	win.usercard = function(){
946		this.id = "userCard";
947		this.actClass = "_cardshow";
948		this.obj = null;
949		this.popContent=null;
950		this.medalList=null;
951		this.medalNum=7;//ÿ´ÎÒÆ¶¯¼¸¸ö
952		this.inter = null;
953		this.dock = false;
954		this.currHandler = null;//ÓÃÀ´¼Ç¼µ±Ç°»¬¹ýµÄÔªËØ
955		this.wrapWidth=245;//.card_medal_wrap¿í¶È
956		this.liWidth=35;
957		this.data=[];
958	}
959	usercard.prototype = {
960		"init": function(){
961			//³õʼ»¯,°ó¶¨ÔªËØÊó±êʼþ´¥·¢ÃûƬ
962			var self = this;
963			var items = getElementsByClassName(this.actClass);
964			if(items.length<1){
965				return false;
966			}
967			var mouseover=function(){
968				var t = this;
969				if (self.inter) {
970					clearTimeout(self.inter);
971				}
972				self.inter = setTimeout(function(){
973					self.show(t);
974				}, 500);
975				return false;
976			}
977			var mouseout=function(){
978				var t = this;
979				if (self.inter) {
980					clearTimeout(self.inter);
981				}
982				self.inter = setTimeout(function(){
983					if (!self.dock&&self.obj!=null) {
984						self.hide();
985					}
986				}, 1000);
987				return false;
988			}
989			for (var i = 0, len = items.length; i < len; i++) {
990				(function(item){
991					addEvent(item, "mouseover", mouseover);
992					addEvent(item, "mouseout", mouseout);
993				})(items[i])
994			}
995			
996		},
997		"show": function(o){
998			//ÏÔʾÃûƬ
999			var self = this;
1000			//Èç¹ûÊǸոջ¬¹ýµÄÔªËØ
1001			if (self.obj && self.currHandler && self.currHandler == o) {
1002				self.obj.style.visibility="visible";
1003				return false;
1004			}
1005			self.currHandler = o;
1006			var obj = document.getElementById(this.id);
1007			var popc=getObj("cardPopContent");
1008			if (obj&&popc) {
1009				popc.innerHTML = "";
1010				this.obj = obj;
1011			}
1012			else {
1013				this.obj = document.createElement("div");
1014				this.obj.id = this.id;
1015				this.obj.style.position = "absolute";
1016				this.obj.innerHTML='<table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td class="bgcorner1"></td><td class="pobg1"></td><td class="bgcorner2"></td></tr><tr><td class="pobg4"></td><td><div class="popoutContent" id="cardPopContent"></div></td><td class="pobg2"></td></tr><tr><td class="bgcorner4"></td><td class="pobg3"></td><td class="bgcorner3"></td></tr></tbody></table>';
1017				document.body.appendChild(this.obj);
1018			}
1019			//³õʼÒþ²Ø
1020			this.obj.style.visibility="hidden";
1021			
1022			this.popContent=getObj("cardPopContent");
1023			
1024			addEvent(this.obj, "mouseover", function(e){
1025				if (!self.dock) {
1026					self.dock = true;
1027					self.obj.style.visibility="visible";
1028				}
1029			})
1030			addEvent(this.obj, "mouseout", function(e){
1031				var ele = e.relatedTarget || e.toElement;
1032				if (!self.contains(self.obj, ele) && self.dock) {
1033					self.hide();
1034					self.dock = false;
1035				}
1036			})
1037			this.create(o);
1038			
1039		},
1040		"medalAni":function(){
1041			if(!this.prev||!this.next){
1042				return false;
1043			}
1044			var self=this;
1045			var lis=this.medalList.getElementsByTagName("li");
1046			var gw=lis.length*self.liWidth;
1047			this.medalList.style.width=gw+"px";
1048			var maxPan=(gw%self.wrapWidth!=0)?Math.floor(gw/self.wrapWidth)*self.wrapWidth:gw-self.wrapWidth;//×î´óÔÊÐíÆ«ÒÆÁ¿
1049			var timer;
1050			var moveTo=function(elem,final_x,final_y,interval){
1051				var xpos=parseInt(getStyle(self.medalList,"left"));
1052				self.prev.className="card_pre";
1053				self.next.className="card_next";
1054				if(xpos==final_x){
1055					return false;
1056				}
1057				if(xpos<final_x){
1058					var dist=Math.ceil((final_x-xpos)/5);
1059					xpos=xpos+dist;
1060				}
1061				if(xpos>final_x){
1062					var dist=Math.ceil((xpos-final_x)/5);
1063					xpos=xpos-dist;
1064				}
1065				if(xpos>=0){
1066					elem.style.left="0px";
1067					self.prev.className="card_pre_old";
1068					self.next.className="card_next";
1069					return false;
1070				}
1071				if(xpos<=-maxPan){
1072					elem.style.left=-maxPan+"px";
1073					self.prev.className="card_pre";
1074					self.next.className="card_next_old";
1075					return false;
1076				}	
1077				
1078				elem.style.left=xpos+"px";
1079				timer=setTimeout(function(){
1080					moveTo(elem,final_x,final_y,interval);
1081				},interval);
1082			}
1083			addEvent(this.prev,"click",function(){
1084				var xpos=Math.abs(parseInt(getStyle(self.medalList,"left")));
1085				var width=self.liWidth*self.medalNum
1086				if(xpos%width!=0){
1087					return false;
1088				}
1089				if(timer){
1090					clearTimeout(timer);
1091				}
1092				var currLeft=parseInt(getStyle(self.medalList,"left"));
1093				var final_x=currLeft+self.liWidth*self.medalNum;
1094				moveTo(self.medalList,final_x,0,40)
1095			})
1096			addEvent(this.next,"click",function(){
1097				var xpos=Math.abs(parseInt(getStyle(self.medalList,"left")));
1098				var width=self.liWidth*self.medalNum
1099				if(xpos%width!=0){
1100					return false;
1101				}
1102				if(timer){
1103					clearTimeout(timer);
1104				}
1105				var currLeft=parseInt(getStyle(self.medalList,"left"));
1106				var final_x=currLeft-self.liWidth*self.medalNum;
1107				moveTo(self.medalList,final_x,0,40)
1108			})
1109		},
1110		"contains": function(a, b){
1111			//ÔªËØaÊÇ·ñ°üº¬ÔªËØB
1112			if (document.compareDocumentPosition) {
1113				return !!(a.compareDocumentPosition(b) & 16);
1114			}
1115			else {
1116				return a !== b && (a.contains ? a.contains(b) : true);
1117			}
1118		},
1119		"updatePos": function(ele){
1120			//¸üÐÂÃûƬλÖÃ
1121			this.obj.style.visibility="visible";
1122			var dd = document.documentElement;
1123			var db = document.body;
1124			var stop = dd.scrollTop + db.scrollTop
1125			var sleft = dd.scrollLeft + db.scrollLeft;
1126			var cw = dd.clientWidth;
1127			var ch = dd.clientHeight;
1128			var bound = ele.getBoundingClientRect();
1129			var left = bound.left;
1130			var top = bound.top;
1131			var h = ele.offsetHeight;
1132			var w = ele.offsetWidth;
1133			var oh = this.obj.offsetHeight;
1134			var ow = this.obj.offsetWidth;
1135			this.obj.style.left = (left + ow) > cw ? (sleft + left + w - ow + "px") : (sleft + left + "px");
1136			this.obj.style.top = (top + oh + h) > ch ? (stop + top - oh + "px") : (stop + top + h + "px");
1137		},
1138		"hide": function(){
1139			//¹Ø±Õ(Òþ²Ø)ÃûƬ
1140			this.obj.style.visibility="hidden";
1141		},
1142		"create": function(ele){
1143			//¹¹½¨ÃûƬÄÚÈÝ
1144			var self=this;
1145			var key=ele.getAttribute("data-card-key");
1146			//³ýÈ¥ºó¹ËÖ®ÓÇ
1147			if(!key){
1148				key=ele.getAttribute("data-card-url");
1149			}
1150			var data=this.data;
1151			if(data.length>0){
1152				for(var i=0,len=data.length;i<len;i++){
1153					if(data[i].k==key){
1154						this.fillCont(ele,data[i].v);
1155						return false;
1156					}
1157				}
1158			}
1159			this.getData(ele,function(json){
1160				var status=json.status||"";
1161				if(status!="success"){
1162					return false;
1163				}
1164				self.fillCont(ele,json);
1165				self.data.push({"k":key,"v":json})
1166			})
1167			
1168		},
1169		"fillCont":function(ele,json){
1170				var uid=json.uid||"";
1171				var username=json.username||"";
1172				var icon=json.icon||"images/face/none.gif";
1173				var memtitle=json.memtitle||"";
1174				var viewTid=json.viewTid||"";
1175				var viewFid=json.viewFid||"";
1176				var genderClass=json.genderClass||"";
1177				var attention=json.attention||"";
1178				var memberTags=json.memberTags||[];
1179				var online=json.online == 1 ? "ÔÚÏß" : "ÀëÏß";
1180				var mine=json.mine||"";
1181				var medals=json.medals||[];
1182				var displayLen=this.wrapWidth/this.liWidth;//¿ÉÏÔʾµÄͼ±ê¸öÊý
1183				var gender = genderClass == 1 ? 'man' : 'women';
1184				var isonline = json.online == 1 ? '_ol' : '_unol';
1185				var genderclass = gender+isonline;
1186				//ÅжÏËüÕýÔÚ¿´
1187				var readHtml="";
1188				if(viewTid!=""){
1189					readHtml='<a href="read.php?tid='+(viewTid||'')+'" title="TaÕýÔÚ¿´" class="w s4" target="_blank">(TaÕýÔÚ¿´...)</a>';
1190				}
1191				else if(viewFid!="") {
1192					readHtml='<a href="thread.php?fid='+(viewFid||'')+'" title="TaÕýÔÚ¿´" class="w s4" target="_blank">(TaÕýÔÚ¿´...)</a>';
1193				}
1194				//×éºÏ±êÇ©
1195				var tagHtml=[];
1196				var tagLen=memberTags.length;
1197				for(var i=0,len=tagLen;i<len;i++){
1198					var _tid=memberTags[i].tagid;
1199					var _tname=memberTags[i].tagname;
1200					var _tagclass = memberTags[i].className;
1201					tagHtml.push('<a href="u.php?a=friend&type=find&decode=1&according=tags&step=2&f_keyword='+encodeURIComponent(_tname)+'" class='+_tagclass+' target="_blank">
1201'+_tname+'</a>');
1202				}
1203				if(tagLen>3){
1204					tagHtml.push('<a href="u.php?uid='+uid+'" title="²é¿´¸ü¶à"  target="_blank">...</a>');
1205				}
1206				tagHtml = (tagHtml == "") ? "»¹Î´ÉèÖøöÐÔ±êǩŶ" : tagHtml.join("£¬");
1207				//Ñ«ÕÂ
1208				var medalsHtml=[];
1209				var medalsLen=medals.length;
1210				for(var i=0,len=medalsLen;i<len;i++){
1211					var _mclass = medals[i].isuser == 1 ? 'open' : '';
1212					var _smallimage=medals[i].smallimage;
1213					var _mname=medals[i].name;
1214					medalsHtml.push('<li class='+_mclass+'><a href="apps.php?q=medal" target="_blank"><img src="'+_smallimage+'" wihdth="30" height="30" title="'+_mname+'"></a></li>');
1215				}
1216
1217				var attentionHtml=[];
1218				attentionHtml = mine ? '<a href="javascript:void(0)" onclick="'+(attention==1?'':'Attention.add(this,'+uid+',1)')+'" class="'+(attention==1?'add_following':'s4 add_follow')+' mr10">'+(attention==1?'ÒѹØ×¢':'¼Ó¹Ø×¢')+'</a><span class="gray2 mr10">|</span><a href="javascript:void(0)" onclick="sendmsg(\'pw_ajax.php?action=msg&touid='+uid+'\', \'\', this)" class="s4">·¢ÏûÏ¢</a>' : '';
1219				//Ñ«ÕÂhtml
1220				var medalHtml='<div class="popBottom">\
1221						'+((medalsLen>displayLen)?'<div class="card_page"><a href="javascript:void(0)" class="card_pre_old" id="card_pre">ÉÏÒ»×é</a><a href="javascript:void(0)" class="card_next" id="card_next">ÏÂÒ»×é</a></div>':'')+'\
1222								<div class="card_medal_wrap">\
1223									<ul class="cc" id="cardMedal">\
1224										'+(medalsHtml.join(""))+'\
1225									</ul>\
1226								</div>\
1227							</div>';			
1228				var fragment = document.createDocumentFragment();
1229				var card = document.createElement("div");
1230				card.innerHTML = '<div class="card_small"><dl class="cc">\
1231						<dt><a href="u.php?uid='+uid+'" target="_blank"><img src="'+icon+'" width="48" height="48" title="'+username+'"></a></dt>\
1232						<dd>\
1233							<span class="fr gray w">'+memtitle+'</span>\
1234							<span class="'+genderclass+' mr5" title="'+online+'" alt="'+online+'" >ÔÚÏß</span><a href="u.php?uid='+uid+'" class="b mr5" target="_blank">'+username+'</a>'+readHtml+'\
1235							<p><span class="w">±êÇ©£º</span>'+tagHtml+'</p>\
1236							<p class="tar">'+attentionHtml+'</p>\
1237						</dd>\
1238					</dl>\
1239					'+(medalsLen>0?medalHtml:'')+'</div>';
1240				fragment.appendChild(card);
1241				//return fragment;
1242				this.popContent.innerHTML="";//fix ajax multi addEvent  
1243				this.popContent.appendChild(fragment);
1244				this.medalList=getObj("cardMedal");
1245				this.prev=getObj("card_pre");
1246				this.next=getObj("card_next");
1247				this.updatePos(ele);
1248				this.medalAni();
1249		},
1250		"getData":function(ele,callback){
1251			var url=ele.getAttribute("data-card-url");
1252			ajax.send(url,"",function(){
1253				if(callback){
1254					var data=ajax.request.responseText;
1255					callback(eval("("+data+")"));
1256				}
1257			})
1258		}
1259	}
1260	win.onReady(function(){
1261			var goTop=new scrollBar();
1262				goTop.init();
1263				win.goTop=goTop;
1264			win.uCard=new usercard();
1265			win.uCard.init();
1266	});
1267	/*й¦ÄÜÆøÅÝ
1268	*new Bubble(a).init();
1269	*a:Ò³ÃæÖÐµÄÆøÅÝÔªËØID  Èç: [{"name":"pw_all_tip_kmd","id":"markoperation"},{"name":"pw_all_tip_medal","id":"applicationcenter"}]
1270	*/
1271	win.Bubble=function(ids){
1272		this.ids=ids;
1273		this.info={};//³ÌÐòÊä³öµÄÆøÅÝID£¬±íʾ²»ÏÔʾ´ËÆøÅÝ
1274		this.uid=(typeof winduid!="undefined")?winduid:null;
1275	}
1276	Bubble.prototype={
1277		init:function(){
1278			if(this.uid==null){
1279				return false;
1280			}
1281			var self=this;
1282			if(this.ids.length<1){
1283				return false;
1284			}
1285			if(typeof userBubbleInfo!="undefined"){
1286				this.info=userBubbleInfo;
1287			}
1288			var elems=[];
1289			for(var i=0,len=this.ids.length;i<len;i++){
1290				var name=this.ids[i].name;
1291				var id=this.ids[i].id;
1292				//ÅжϸòãÊÇ·ñ¿ÉÒÔÏÔʾ
1293				if(this.info[name]!=undefined){
1294					continue;
1295				}
1296				if(!getObj(name)){
1297					continue;
1298				}
1299				if(!getObj(id)){
1300					continue;
1301				}
1302				//ÆøÅÝÔªËØ
1303				var obj=getObj(name);
1304				//²ÎÕÕID
1305				var ele=getObj(id);
1306				elems.push({k:name,v:obj,ele:ele});
1307			}
1308			if(elems.length>0){
1309				var bubbleBox=elems[0].v;
1310				var posBox=elems[0].ele;
1311				var left=posBox.getBoundingClientRect().left;
1312				var top=posBox.getBoundingClientRect().top;
1313				var st=document.documentElement.scrollTop+document.body.scrollTop;
1314				bubbleBox.style.display="block";
1315				bubbleBox.style.position="absolute";
1316				bubbleBox.style.left=left+"px";
1317				bubbleBox.style.top=top+st+"px";
1318				
1319				var btns=bubbleBox.getElementsByTagName("a");
1320				for(var i=0,len=btns.length;i<len;i++){
1321					var btn=btns[i];
1322					(function(ele,obj,id){
1323						addEvent(ele,"click",function(){
1324							self.hide(obj,id,ele);
1325							return false;
1326						})
1327					})(btn,bubbleBox,elems[0].k)
1328				}
1329			}
1330		},
1331		close:function(obj){
1332			obj.style.display="none";
1333		},
1334		hide:function(obj,str,ele){
1335			ajax.send("pw_ajax.php?action=bubble&uid="+this.uid+"&sign="+str,"",function(){
1336				var href=ele.getAttribute("href");
1337				if(href&&href.indexOf("javascript")==-1){
1338					location.href=href;
1339				}
1340			});
1341			this.close(obj);
1342			return false;
1343		}
1344	}
1345})(window,document);
1346//ie9¹Ì¶¨ÍøÕ¾
1347(function(){
1348	var IE9_pinned=function(){
1349	this.data={ "type":"msg",
1350				"overlayIcon":"images/ico/overlay.ico",
1351				"overlayText":"ÐÂÏûÏ¢",
1352				"name":"ÐÂÏûÏ¢Ìáʾ",
1353				"items":[]
1354			  };
1355	}
1356	IE9_pinned.prototype={
1357		//ÉèÖø²¸Çͼ±ê
1358		setOverlayIcon:function(json){
1359			try {
1360				if (window.external.msIsSiteMode()) {
1361						var icon=json.overlayIcon;
1362						var text=json.overlayText;
1363						window.external.msSiteModeSetIconOverlay(icon, text);
1364						window.external.msSiteModeActivate();
1365				}
1366			}
1367			catch (e) {
1368			}
1369		},
1370		//Çå³ýͼ±ê
1371		clearOverlayIcon:function(){
1372			try {
1373				if (window.external.msIsSiteMode()) {
1374					window.external.msSiteModeClearIconOverlay();
1375				}
1376			}
1377			catch (e) {
1378			}
1379		},
1380		//Ìí¼Ó¶¯Ì¬Áбí
1381		addJumpList:function(json){
1382			try{
1383				if(window.external.msIsSiteMode()){
1384					window.external.msSiteModeClearJumpList();
1385					window.external.msSiteModeCreateJumpList(json.name);
1386					for(var i=0,len=json.items.length;i<len;i++){
1387						var item=json.items[i];
1388						var name=item.name;
1389						var num=item.num;
1390						var url=item.url;
1391						var icon=item.icon;
1392						window.external.msSiteModeAddJumpListItem(name+":"+num,url,icon,"tab"); 
1393					}
1394					window.external.msSiteModeShowJumpList();
1395				}
1396			}
1397			catch(e){
1398			}
1399		},
1400		//Çå³ý¶¯Ì¬Áбí
1401		clearJumpList:function(){
1402			try{
1403				if(window.external.msIsSiteMode()){
1404					window.external.msSiteModeClearJumpList();
1405				}
1406			}
1407			catch(e){
1408			}
1409		},
1410		//¼¤»î´°¿Ú µ¥Î»:s
1411		modeActivate:function(delay){
1412			try{
1413				if(window.external.msIsSiteMode()){
1414					setTimeout("window.external.msSiteModeActivate()",delay*1000)
1415				}
1416			}
1417			catch(e){
1418				
1419			}
1420		
1421		},
1422		reset:function(){
1423			this.clearOverlayIcon();
1424			this.clearJumpList();
1425		}
1426	}
1427	if(UA.ie>=9){
1428		var ie9=new IE9_pinned();
1429		ie9.reset();
1430		var obj=getObj("pw_all_tip");
1431		if(!obj){return false;}
1432		ie9.setOverlayIcon(ie9.data);
1433		var _data=JSONParse(obj.getAttribute("data-msg"));
1434		if(!_data){return false;}
1435		var items=ie9.data.items=[];
1436		for(var i=0,len=_data.length;i<len;i++){
1437			var item=_data[i];
1438			var num=item.num;
1439			var name=item.name;
1440			var url=item.url;
1441			if(num>0){
1442				items.push({"name":name,"num":num,"url":url,"icon":"images/ico/mail.ico","target":"tab"})
1443			}
1444		}
1445		ie9.addJumpList(ie9.data);
1446	}
1447})();
1448//±¾µØ´æ´¢
1449(function(){
1450	var UserData = {
1451        userData : null,
1452        name : location.hostname,
1453        init:function(){
1454            if (!UserData.userData) {
1455                try {
1456                    UserData.userData = document.createElement('INPUT');
1457                    UserData.userData.type = "hidden";
1458                    UserData.userData.style.display = "none";
1459                    UserData.userData.addBehavior ("#default#userData");
1460                    document.body.appendChild(UserData.userData);
1461                    var expires = new Date();
1462                    expires.setDate(expires.getDate()+365);
1463                    UserData.userData.expires = expires.toUTCString();
1464                } catch(e) {
1465                    return false;
1466                }
1467            }
1468            return true;
1469        },
1470        setItem : function(key, value) {
1471            if(UserData.init()){
1472                UserData.userData.load(UserData.name);
1473                UserData.userData.setAttribute(key, value);
1474                UserData.userData.save(UserData.name);
1475            }
1476        },
1477        getItem : function(key) {
1478            if(UserData.init()){
1479            UserData.userData.load(UserData.name);
1480            return UserData.userData.getAttribute(key)
1481            }
1482        },
1483        removeItem : function(key) {
1484            if(UserData.init()){
1485            UserData.userData.load(UserData.name);
1486            UserData.userData.removeAttribute(key);
1487            UserData.userData.save(UserData.name);
1488            }
1489
1490        }
1491    };
1492	if(!window.localStorage){
1493		window.localStorage=UserData;
1494	}
1495})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.