-function() {
	var d = document,
	isStrict = d.compatMode == "CSS1Compat",
	dd = d.documentElement,
	db = d.body,
	m = Math.max,
	ie = !!d.all,
	ua = navigator.userAgent.toLowerCase(),
	head = d.getElementsByTagName('head')[0],
	getWH = function() {
		return {
			h: (isStrict ? dd: db).clientHeight,
			w: (isStrict ? dd: db).clientWidth
		}
	},
	getS = function() {
		return {
			t: m(dd.scrollTop, db.scrollTop),
			l: m(dd.scrollLeft, db.scrollLeft)
		}
	},
	getP = function(a) {
		var r = {
			t: 0,
			l: 0
		},
		isGecko = /gecko/.test(ua),
		add = function(t, l) {
			r.l += l,
			r.t += t
		},
		p = a,
		sTL = getS();
		if (a && a != db) {
			if (a.getBoundingClientRect) {
				var b = a.getBoundingClientRect();
				if (b.top == b.bottom) {
					var g = a.style.display;
					a.style.display = 'block';
					b.top = b.top - a.offsetHeight;
					a.style.display = g
				};
				add(b.top + sTL.t - dd.clientTop, b.left + sTL.l - dd.clientLeft)
			} else {
				var c = d.defaultView;
				while (p) {
					add(p.offsetTop, p.offsetLeft);
					var e = c.getComputedStyle(p, null);
					if (isGecko) {
						var f = parseInt(e.getPropertyValue('border-left-width'), 10) || 0,
						bt = parseInt(e.getPropertyValue('border-top-width'), 10) || 0;
						add(bt, f);
						if (p != a && e.getPropertyValue('overflow') != 'visible') add(bt, f)
					}
					p = p.offsetParent
				}
				p = a.parentNode;
				while (p && p != db) {
					add( - p.scrollTop, -p.scrollLeft);
					p = p.parentNode
				}
			}
		}
		return r
	},
	creElm = function(o, t, a) {
		var b = d.createElement(t || 'div');
		for (var p in o) {
			p == 'style' ? b[p].cssText = o[p] : b[p] = o[p]
		}
		return (a || db).insertBefore(b, (a || db).firstChild)
	},
	div = creElm({
		id: 'ckepop',
		style: "position:absolute;z-index:1000000000;display:none;overflow:auto;"
	}),
	div1 = creElm({
		id: 'ckepop',
		style: "position:absolute;z-index:1000000000;display:none;top:50%;left:50%;overflow:auto;"
	}),
	iframe = creElm({
		style: 'position:' + (/firefox/.test(ua) ? 'fixed': 'absolute') + ';display:none;filter:alpha(opacity=0);opacity:0',
		frameBorder: 0
	},
	'iframe'),
	timer,
	inputTimer,
	list,
	clist,
	h,
	texts = {},
	clickpopjs;
	creElm({
		href: 'sys_common/share/css1.css',
		rel: 'stylesheet',
		type: 'text/css'
	},
	'link');
	$CKE = {
		pop: div,
		centerpop: div1,
		disappear: function(b) {
			var c = window.event || b,
			t = c.srcElement || c.target,
			contain = div1.contains ? div1.contains(t) : !!(div1.compareDocumentPosition(t) & 16),
			a = d.getElementById('jiathis_a'),
			contain1 = div.contains ? div.contains(t) : !!(div.compareDocumentPosition(t) & 16);
			if (!contain && !contain1 && t != a) {
				iframe.style.display = div1.style.display = 'none'
			}
		},
		over: function() {
			var s, T = this,
			timerCont, fn = function() {
				timerCont = setInterval(function() {
					if (div.innerHTML) {
						var p = getP(T),
						wh = getWH(),
						tl = getS();
						with(div.style) {
							display = "block";
							var a = T.style.display;
							T.style.display = 'block';
							top = (p.t + T.offsetHeight + div.offsetHeight > wh.h + tl.t ? p.t - div.offsetHeight - (ie ? 2 : 5) : ie ? p.t + T.offsetHeight + 1 : p.t + T.offsetHeight - 5) + 'px';
							left = p.l + 'px';
							T.style.display = a
						};
						with(iframe.style) {
							top = div.offsetTop + 'px';
							left = div.offsetLeft + 'px';
							width = div.offsetWidth + 'px';
							height = div.offsetHeight + 'px';
							margin = "";
							display = 'block'
						};
						clearInterval(timerCont)
					}
				},
				50)
			};
			if (!clickpopjs) {
				clickpopjs = creElm({
					src: 'sys_common/share/ckepop.js',
					charset: 'utf-8'
				},
				'script', head);
				clickpopjs.onloaded = 0;
				clickpopjs.onload = function() {
					clickpopjs.onloaded = 1;
					fn()
				};
				clickpopjs.onreadystatechange = function() { / complete | loaded / .test(clickpopjs.readyState) && !clickpopjs.onloaded && fn()
				}
			} else {
				fn()
			}
			return false
		},
		out: function() {
			timer = setTimeout(function() {
				div.style.display = 'none';
				div1.style.display != 'block' && (iframe.style.display = 'none')
			},
			100)
		},
		move: function() {
			clearTimeout(timer)
		},
		center: function() {
			div.style.display = iframe.style.display = 'none';
			if (!this.script) {
				this.script = creElm({
					src: 'sys_common/share/ckecenterpop.js',
					charset: 'utf-8'
				},
				'script', head);
				db.style.position = 'static'
			} else {
				var a = getS();
				div1.style.display = "block";
				div1.style.margin = ( - div1.offsetHeight / 2 + a.t) + "px " + ( - div1.offsetWidth / 2 + a.l) + "px";
				list = d.getElementById('ckelist'),
				clist = list.cloneNode(true),
				h = clist.getElementsByTagName('input');
				for (var i = 0,
				ci; ci = h[i++];) {
					texts[ci.value] = ci.parentNode
				};
				with(iframe.style) {
					left = top = '50%';
					width = div1.offsetWidth + 'px';
					height = div1.offsetHeight + 'px';
					margin = div1.style.margin;
					display = 'block'
				}
			};
			return false
		},
		choose: function(o) {
			clearTimeout(inputTimer);
			inputTimer = setTimeout(function() {
				var s = o.value.replace(/^\s+|\s+$/, ''),
				frag = d.createDocumentFragment();
				for (var p in texts) {
					eval("var f = /" + (s || '.') + "/ig.test(p)");
					f && frag.appendChild(texts[p].cloneNode(true))
				}
				list.innerHTML = '';
				list.appendChild(frag)
			},
			100)
		},
		centerClose: function() {
			iframe.style.display = div1.style.display = 'none'
		}
	};
	var h = d.getElementsByTagName('a');
	for (var i = 0,
	ci, tmp; ci = h[i++];) {
		if (/\bjiathis\b/.test(ci.className)) {
			ci.onmouseout = $CKE.out;
			ci.onmousemove = $CKE.move;
			ci.onclick = $CKE.center;
			ci.onmouseover = $CKE.over;
			ci.hideFocus = true;
			continue
		};
		if (ci.className && (tmp = ci.className.match(/^jiathis_button_(\w+)$/)) && tmp[1]) {
			ci.innerHTML = '';
			ci.onclick = function(a) {
				return function() {
					jiathis_sendto(a)
				}
			} (tmp[1]);
			ci.href = '#';
			ci.title = 'send to ' + tmp[1]
		}
	};
	div.onmouseover = function() {
		clearTimeout(timer)
	};
	div.onmouseout = function() {
		$CKE.out()
	};
	ie ? d.attachEvent("onclick", $CKE.disappear) : d.addEventListener("click", $CKE.disappear, false)
} ();
function jiathis_sendto(a) {
	var e = encodeURIComponent,
	conf;
	try {
		conf = jiathis_config
	} catch(err) {
		conf = {}
	};
	if (a=='email') {
		window.open('http://www.jiathis.com/ex/sendmail.php?title=' + e(conf.title || document.title)+ '&url=' + e(conf.url || location), '');
	}
	if (a=='baidu') {
		window.open('http://cang.baidu.com/do/add?it=' + e(conf.title || document.title)+ '&iu=' + e(conf.url || location)+ '&fr=ien#nw=1' , '');
	}
	if (a=='renren') {
		window.open('http://share.renren.com/share/buttonshare.do?link=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='sohu') {
		window.open('http://bai.sohu.com/share/blank/add.do?link=' + e(conf.url || location), '');
	}
	if (a=='51') {
		window.open('http://share.51.com/share/share.php?type=8&title=' + e(conf.title || document.title)+ '&vaddr=' + e(conf.url || location), '');
	}
	if (a=='taobao') {
		window.open('http://share.jianghu.taobao.com/share/addShare.htm?url=' + e(conf.url || location), '');
	}
	if (a=='douban') {
		window.open('http://www.douban.com/recommend/?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='qzone') {
		window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + e(conf.url || location) + '&title=' + e(conf.title || document.title), '');
	}
	if (a=='tsina') {
		window.open('http://v.t.sina.com.cn/share/share.php?title=' + e(conf.url || location)+ '&url=' + e(conf.title || document.title)+ '&source=bookmark&appkey=2992571369', '');
	}
	if (a=='kaixin001') {
		window.open('http://www.kaixin001.com/repaste/share.php?rtitle=' + e(conf.title || document.title)+ '&rurl=' + e(conf.url || location)+ '&rcontent=' + e(conf.title || document.title)+ '+' + e(conf.url || location), '');
	}
	if (a=='buzz') {
		window.open('http://www.google.com/buzz/post?url=' + e(conf.url || location), '');
	}
	if (a=='139') {
		window.open('http://www.139.com/share/share.php?source=shareto139_jiathis&title=' + e(conf.title || document.title)+ '&url=' + e(conf.url || location), '');
	}
	if (a=='cnfol') {
		window.open('http://t.cnfol.com/share.php?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='gmail') {
		window.open('https://mail.google.com/mail/?ui=2&view=cm&fs=1&tf=1&su=' + e(conf.title || document.title)+ '&body=' + e(conf.url || location)+ '%20%20%20' + e(conf.title || document.title)+ '&zx=19col4emn0ksj&shva=1', '');
	}
	if (a=='google') {
		window.open('http://www.google.com/bookmarks/mark?op=add&bkmk=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title)+ '', '');
	}
	if (a=='yahoo') {
		window.open('http://myweb.cn.yahoo.com/popadd.html?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='sina') {
		window.open('http://vivi.sina.com.cn/collect/icollect.php?title=' + e(conf.title || document.title)+ '&url=' + e(conf.url || location)+ '&tag=&desc=', '');
	}
	if (a=='xianguo') {
		window.open('http://www.xianguo.com/subscribe.php?url=' + e(conf.url || location), '');
	}
	if (a=='renjian') {
		window.open('http://www.renjian.com/outside/share_link.xhtml?link=' + e(conf.url || location)+ '&source=ds0537.com', '');
	}
	if (a=='hexun') {
		window.open('http://bookmark.hexun.com/post.aspx?title=' + e(conf.title || document.title)+ '&url=' + e(conf.url || location), '');
	}
	if (a=='delicious') {
		window.open('http://del.icio.us/post?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='fb') {
		window.open('http://www.facebook.com/sharer.php?u=' + e(conf.url || location)+ '&t=' + e(conf.title || document.title), '');
	}
	if (a=='myspace') {
		window.open('http://www.myspace.com/Modules/PostTo/Pages/?u=' + e(conf.url || location)+ '&t=' + e(conf.title || document.title), '');
	}
	if (a=='diglog') {
		window.open('http://www.diglog.com/submit.aspx?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title)+ '&description=', '');
	}
	if (a=='waakee') {
		window.open('http://www.waakee.com/submit.php?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='cyzone') {
		window.open('http://u.cyzone.cn/share.php?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='114la') {
		window.open('http://fav.114la.com/index.php?q=add&u=' + e(conf.url || location)+ '&t=' + e(conf.title || document.title), '');
	}
	if (a=='115') {
		window.open('http://fav.115.com/?ac=add&url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='evernote') {
		window.open('http://www.evernote.com/clip.action?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='linkedin') {
		window.open('http://www.linkedin.com/shareArticle?mini=true&ro=true&url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title)+ '&summary=&source=&armin=armin', '');
	}
	if (a=='netlog') {
		window.open('http://zh.netlog.com/go/manage/links/view=save&origin=external&url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title)+ '&description=' + e(conf.title || document.title), '');
	}
	if (a=='phonefavs') {
		window.open('http://phonefavs.com/login/?action=add&address=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='plaxo') {
		window.open('http://www.plaxo.com/events%3Fshare_link%3D' + e(conf.url || location)+ '%26desc%3D' + e(conf.title || document.title), '');
	}
	if (a=='reddit') {
		window.open('http://www.reddit.com/submit%3Furl%3D' + e(conf.url || location)+ '%26title%3D' + e(conf.title || document.title), '');
	}
	if (a=='wong') {
		window.open('http://www.mister-wong.cn/index.php?action=addurl&bm_description=' + e(conf.title || document.title)+ '&bm_url=' + e(conf.url || location), '');
	}
	if (a=='pdfonline') {
		window.open('http://savepageaspdf.pdfonline.com/pdfonline/pdfonline.asp?cURL=' + e(conf.url || location), '');
	}
	if (a=='translate') {
		window.open('http://translate.google.com/translate?hl=en-US&u=' + e(conf.url || location)+ '&sl=auto&tl=en-US', '');
	}
	if (a=='ymail') {
		window.open('http://compose.mail.yahoo.com/%3fTo%3d%26Subject%3d' + e(conf.title || document.title)+ '%26body%3d' + e(conf.title || document.title)+ '%20' + e(conf.url || location), '');
	}
	if (a=='printfriendly') {
		window.open('http://www.printfriendly.com/printc?url=' + e(conf.url || location), '');
	}
	if (a=='stumbleupon') {
		window.open('http://www.stumbleupon.com/submit?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='poco') {
		window.open('http://my.poco.cn/fav/storeIt.php?t=' + e(conf.title || document.title)+ '&u=' + e(conf.url || location), '');
	}
	if (a=='polladium') {
		window.open('http://www.polladium.com/poll-this.php?u=' + e(conf.url || location)+ '&t=' + e(conf.title || document.title), '');
	}
	if (a=='pingfm') {
		window.open('http://ping.fm/ref/?link=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='netvibes') {
		window.open('http://www.netvibes.com/share%3Furl%3D' + e(conf.url || location)+ '%26title%3D' + e(conf.title || document.title), '');
	}
	if (a=='mixx') {
		window.open('http://www.mixx.com/submit?page_url=' + e(conf.url || location), '');
	}
	if (a=='friendfeed') {
		window.open('http://friendfeed.com/share?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='diigo') {
		window.open('http://www.diigo.com/post?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title)+ '&desc=', '');
	}
	if (a=='9fav') {
		window.open('http://www.9fav.com/profile/user_url/add?t=' + e(conf.title || document.title)+ '&u=' + e(conf.url || location)+ '&tag=&d=', '');
	}
	if (a=='shouker') {
		window.open('http://www.shouker.com/mc/col/post3.aspx?surl=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title)+ '&tags=&desc=', '');
	}
	if (a=='tongxue') {
		window.open('http://share.tongxue.com/share/share.php?link=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title)+ '&source=ds0537', '');
	}
	if (a=='leshou') {
		window.open('http://leshou.com/post?act=shou&reuser=&title=' + e(conf.title || document.title)+ '&url=' + e(conf.url || location)+ '&intro=&tags=&tool=1', '');
	}
	if (a=='wealink') {
		window.open('http://share.wealink.com/share/add/?title=' + e(conf.title || document.title)+ '&content=' + e(conf.title || document.title)+ '&url=' + e(conf.url || location), '');
	}
	if (a=='twitter') {
		window.open('http://twitter.com/home?status=' + e(conf.title || document.title)+ '+' + e(conf.url || location), '');
	}
	if (a=='digg') {
		window.open('http://digg.com/submit?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='yesky') {
		window.open('http://hot.yesky.com/dp.aspx?tbUrl=' + e(conf.url || location)+ '&tbTitle=' + e(conf.title || document.title), '');
	}
	if (a=='follow5') {
		window.open('http://www.follow5.com/f5/jsp/plugin/5share/5ShareLogin.jsp?title=' + e(conf.title || document.title)+ '&url=' + e(conf.url || location), '');
	}
	if (a=='zuosa') {
		window.open('http://zuosa.com/collect/Collect.aspx?t=' + e(conf.title || document.title)+ '&u=' + e(conf.url || location), '');
	}
	if (a=='zhuaxia') {
		window.open('http://www.zhuaxia.com/add_channel.php?url=' + e(conf.url || location), '');
	}
	if (a=='digu') {
		window.open('http://www.diguff.com/diguShare/fireFox_login.jsp?&title2=' + e(conf.title || document.title)+ '&url2=' + e(conf.url || location), '');
	}
	if (a=='live') {
		window.open('http://favorites.live.com/quickadd.aspx?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='qq') {
		window.open('http://shuqian.qq.com/post?from=3&title=' + e(conf.title || document.title)+ '&uri=' + e(conf.url || location)+ '&jumpback=2&noui=1', '');
	}
	if (a=='hi') {
		window.open('http://apps.hi.baidu.com/share/?url=' + e(conf.url || location)+ '&title=' + e(conf.title || document.title), '');
	}
	if (a=='hotmail') {
		window.open('http://mail.live.com/?rru=compose%3Fsubject%3D' + e(conf.title || document.title)+ '%26body%3D' + e(conf.url || location)+ '%20%20%20' + e(conf.title || document.title), '');
	}
	if (a=='tengxunwb') {
		window.open('http://v.t.qq.com/share/share.php?title=' + e(conf.title || document.title) + "&url=" + e(conf.url || location), '');
	}
	return false
}
function jt_copyUrl() {
	var a = this.location.href;
	var b = document.title;
	if (window.clipboardData) {
		var c = b + "\n" + a;
		var d = window.clipboardData.setData("Text", c);
		if (d) alert("复制成功,请粘贴到你的QQ/MSN上推荐给你的好友！")
	} else {
		alert("目前只支持IE，请复制地址栏URL,推荐给你的QQ/MSN好友！")
	}
};
function jt_addBookmark(a) {
	var b = parent.location.href;
	if (window.sidebar) {
		window.sidebar.addPanel(a, b, "")
	} else if (document.all) {
		window.external.AddFavorite(b, a)
	} else if (window.opera && window.print) {
		return true
	}
}
