﻿-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(o) {
		var l, t;
		if (o.getBoundingClientRect) {
			var p = getS();
			var el = o.getBoundingClientRect();
			l = p.l + el.left;
			t = p.t + el.top;
		} else {
			l = o.offsetLeft;
			t = o.offsetTop;
			while (o = o.offsetParent) {
				l += o.offsetLeft;
				t += o.offsetTop;
			}
		}
		return {
			x : l,
			y : t
		};
	}, 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( {
		style : "position:absolute;z-index:10000;display:none;overflow:auto;"
	}), div1 = creElm( {
		style : "position:fixed;z-index:10000;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 : '/03cn/shareto/shareto.css',
		rel : 'stylesheet',
		type : 'text/css'
	}, 'link');
	sharetoBtnContain = {
		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), contain1 = div.contains ? div
					.contains(t)
					: !!(div.compareDocumentPosition(t) & 16);
			if (!contain && !contain1
					&& t.className.indexOf('shareto_button_compact') == -1
					&& t.parentNode.className != 'shareto_button') {
				iframe.style.display = div1.style.display = 'none';
			}
		},
		over : function(e) {
			var c = window.event || e, target = c.srcElement || c.target, T = this, timerCont, fn = function() {
				timerCont = setInterval(function() {
					if (div.innerHTML) {
						var p = getP(target), wh = getWH(), tl = getS();
						with (div.style) {
							display = "block";
							var a = T.style.display;
							T.style.display = 'block';
							top = p.y + target.offsetHeight + 'px';
							left = p.x + '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) {
				//http://shareto.googlecode.com/svn/trunk/js
				clickpopjs = creElm( {
					src : '/03cn/shareto/shareto_button_menu.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() {
			if (!this.script) {
				this.script = creElm( {
					src : 'shareto_button_window.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 (/\bshareto_button\b/.test(ci.className)) {
			ci.onmouseout = sharetoBtnContain.out;
			ci.onmousemove = sharetoBtnContain.move;
			ci.onclick = sharetoBtnContain.center;
			ci.onmouseover = sharetoBtnContain.over;
			ci.hideFocus = true;
			continue
		}
		;
		if (/\bshareto_button_compact\b/.test(ci.className)) {
			ci.className = 'shareto_button_compact st_button stico stico_shareto';
			ci.onmouseout = sharetoBtnContain.out;
			ci.onmousemove = sharetoBtnContain.move;
			ci.onclick = sharetoBtnContain.center;
			ci.onmouseover = sharetoBtnContain.over;
			ci.hideFocus = true;
			continue
		}
		;
		if (ci.className
				&& (tmp = ci.className.match(/^shareto_button_(\w+)$/))
				&& tmp[1]) {
			ci.innerHTML = '<span class="stico st_button stico_' + tmp[1] + '"></span>';
			ci.onclick = function(a) {
				return function() {
					share_to(a)
				}
			}(tmp[1]);
			ci.href = 'javascript:void(0);';
			ci.title = '分享到' + tmp[1]
		}
	}
	;
	div.onmouseover = function() {
		clearTimeout(timer)
	};
	div.onmouseout = function() {
		sharetoBtnContain.out()
	};
	ie ? d.attachEvent("onclick", sharetoBtnContain.disappear) : d.addEventListener("click",
			sharetoBtnContain.disappear, false);
}();
function share_to(m) {
	if (m == "baidu") {
		window.open('http://cang.baidu.com/do/add?it='
			  + encodeURIComponent(document.title.substring(0, 76))
			  + '&iu=' + encodeURIComponent(location.href)
			  + '&fr=ien#nw=1', 'baidu',
			  'scrollbars=yes,resizable=yes,left=30');
	} else if (m == "qq") {
		window.open('http://shuqian.qq.com/post?from=3&title='
			    + encodeURIComponent(document.title) + '&uri='
		      	    + encodeURIComponent(document.location.href)
			    + '&jumpback=2&noui=1',
			    'favit',
			    'scrollbars=yes,resizable=yes,left=30');
	} else if (m == "tsina") {
		void ((function(s, d, e) {
			try {
			} catch (e) {
			}
			var f = 'http://v.t.sina.com.cn/share/share.php?', u = d.location.href, p = [
					'url=', e(u), '&title=', e(d.title), '&appkey=330242870' ]
					.join('');
			function a() {
				if (!window.open(
						[ f, p ].join(''),
								'mb',
								['scrollbars=yes,resizable=yes,left=30'].join('')))
					u.href = [ f, p ].join('');
			}
			;
			if (/Firefox/.test(navigator.userAgent)) {
				setTimeout(a, 0)
			} else {
				a()
			}
		})(screen, document, encodeURIComponent));
	} else if (m == "douban") {
		void (function() {
			var d = document, e = encodeURIComponent, s1 = window.getSelection, s2 = d.getSelection, s3 = d.selection, s = s1 ? s1()
					: s2 ? s2() : s3 ? s3.createRange().text : '', r = 'http://www.douban.com/recommend/?url='
					+ e(d.location.href)
					+ '&title='
					+ e(d.title)
					+ '&sel='
					+ e(s) + '&v=1', x = function() {
				if (!window.open(r, 'douban','scrollbars=yes,resizable=yes,left=30'))
					location.href = r + '&r=1'
			};
			if (/Firefox/.test(navigator.userAgent)) {
				setTimeout(x, 0)
			} else {
				x()
			}
		})();
	} else if (m == "renren") {
		// 官方分享方式1
//		var connect_url = "http://www.connect.renren.com";
//		var url = window.location.href;
//		var addQS = function(url, qs) {
//			var a = [];
//			for ( var k in qs)
//				if (qs[k])
//					a.push(k.toString() + '=' + encodeURIComponent(qs[k]));
//			return url + '?' + a.join('&');
//		}
//		var href = addQS(connect_url + '/sharer.do', {
//			'url' : url,
//			'title' : url == window.location.href ? document.title : null
//		});
//		window.open(href, 'sharer',
//				'toolbar=0,status=0,width=550,height=400,left='
//						+ (screen.width - 550) / 2 + ',top='
//						+ (screen.height - 500) / 2);

		// 官方分享方式2
		 void ((function(s, d, e) {
		 if (/renren\.com/.test(d.location))
		 return;
		 var f = 'http://share.renren.com/share/buttonshare.do?link=', u =
		 d.location, l = d.title, p = [
		 e(u), '&title=', e(l) ].join('');
		 function a() {
		 if (!window
		 .open(
		 [ f, p ].join(''),
		 'xnshare',
		 ['scrollbars=yes,resizable=yes,left=30'].join('')))
		 u.href = [ f, p ].join('');
		 }
		 ;
		 if (/Firefox/.test(navigator.userAgent))
		 setTimeout(a, 0);
		 else
		 a();
		 })(screen, document, encodeURIComponent));
	} else if (m == "kaixin001") {
		var kw = window.open('',
				'kaixin001',
				'scrollbars=yes,resizable=yes,left=30');
		var tempForm = kw.document.createElement('form');
		function openPostWindow(url, data, name) {
			var tempForm = document.createElement('form');
			tempForm.id = 'tempForm1';
			tempForm.method = 'post';
			tempForm.action = url;
			tempForm.target = 'kaixin001';
			var hideInput = document.createElement('input');
			hideInput.type = 'hidden';
			hideInput.name = 'rcontent';
			hideInput.value = data;
			tempForm.appendChild(hideInput);
			document.body.appendChild(tempForm);
			tempForm.submit();
			document.body.removeChild(tempForm);
		}
		function add2Kaixin001() {
			var u = document.location.href;
			var t = document.title;
			var c = '' + (document.getSelection ? document.getSelection()
					: document.selection.createRange().text);
			var iframec = '';
			var url = 'http://www.kaixin001.com/repaste/bshare.php?rtitle='
					+ encodeURIComponent(t) + '&rurl=' + encodeURIComponent(u)
					+ '&from=maxthon';
			var data = encodeURIComponent(c);
			openPostWindow(url, c, '_blank')
		}
		add2Kaixin001();
	} else if (m == "google") {
		void (function() {
			var a = window, b = document, c = encodeURIComponent, d = a
					.open(
							'http://www.google.com/bookmarks/mark?op=edit&hl=zh-CN&output=popup&bkmk='
									+ c(b.location) + '&title=' + c(b.title),
							'bkmk_popup',
							'scrollbars=yes,resizable=yes,left=30');
			a.setTimeout(function() {
				d.focus()
			}, 300)
		})();
	} else if (m == "taojianghu") {
		window.open("http://share.jianghu.taobao.com/share/addShare.htm?url="
				+ encodeURIComponent(document.location.href), 'taojianghu',
				'scrollbars=yes,resizable=yes,left=30');
	} else if (m == "gmail") {
		var a = window, b = document, c = encodeURIComponent;
		var w = window.open("https://mail.google.com/mail/?view=cm&fs=1&tf=1&ui=2&shva=1&to&su="
				+ c(b.title) + "&body=" + c(b.location), 'gmail',
				'scrollbars=yes,resizable=yes,left=30');
	} else if (m == "yahoo") {
		window.open('http://myweb.cn.yahoo.com/popadd.html?url='
						+ encodeURIComponent(document.location.href)
						+ '&title=' + encodeURIComponent(document.title),
						'Yahoo',
						'scrollbars=yes,resizable=yes,left=30');

	} else if (m == "douban9") {
		void (function() {
			var d = document, e = encodeURIComponent, s1 = window.getSelection, s2 = d.getSelection, s3 = d.selection, s = s1 ? s1()
					: s2 ? s2() : s3 ? s3.createRange().text : '', r = 'http://www.douban.com/recommend/?url='
					+ e(d.location.href)
					+ '&title='
					+ e(d.title)
					+ '&sel='
					+ e(s) + '&v=1&n=1', x = function() {
				if (!window.open(r, 'douban9',
					'scrollbars=yes,resizable=yes,left=30'))
					location.href = r + '&r=1'
			};
			if (/Firefox/.test(navigator.userAgent)) {
				setTimeout(x, 0)
			} else {
				x()
			}
		})();
	} else if (m == "115") {
		var sel = '' + (document.getSelection ? document.getSelection()
				: document.selection.createRange().text);
		var url = document.location.href;
		var title = document.title;
		var c = encodeURIComponent;
		void (window.open('http://fav.115.com/?ac=add&title=' + c(title)
				+ '&url=' + c(url) + '&c=' + c(sel), '115',
				'scrollbars=yes,resizable=yes,left=30'));
	} else if (m == "51") {
		try {
			var w = window.open(
					"http://share.51.com/share/share.php?type=8&title="
							+ encodeURIComponent(document.title) + '&vaddr='
							+ encodeURIComponent(document.location), '51',
					'scrollbars=yes,resizable=yes,left=30');
			window.opener.focus();
		} catch (e) {
		}
	} else if (m == "tsohu") {// 非官方
		void ((function(s, d, e) {
			var f = 'http://t.sohu.com/third/post.jsp?link=', u = d.location;
			function a() {
				if (!window.open(
								[ f, e(u) ].join(''),
								'tsohu',
								['scrollbars=yes,resizable=yes,left=30' ].join('')))
					u.href = [ f, e(u) ].join('');
			}
			;
			if (/Firefox/.test(navigator.userAgent))
				setTimeout(a, 0);
			else
				a();
		})(screen, document, encodeURIComponent));
	} else if (m == "leshou") {
		window.open('http://leshou.com/post?act=shou&reuser=&url='
						+ encodeURIComponent(location.href) + '&title='
						+ encodeURIComponent(document.title)
						+ '&intro=&tags=&tool=1', 'leshou',
						'scrollbars=yes,resizable=yes,left=30');
		return false;
	} else if (m == "vivi") {
		var sel = '' + (document.getSelection ? document.getSelection()
				: document.selection.createRange().text);
		var url = document.location.href;
		var title = document.title;
		void (window.open('http://vivi.sina.com.cn/collect/icollect.php?title='
						+ escape(title) + '&url=' + escape(url) + '&desc='
						+ escape(sel), '_blank',
						'scrollbars=yes,resizable=yes,left=30'))
	} else if (m == "bai") {
		void ((function(s, d, e) {
			var f = 'http://bai.sohu.com/share/blank/addbutton.do?link=', u = d.location, l = d.title, p = [
					e(u), '&title=', e(l) ].join('');
			function a() {
				if (!window.open(
								[ f, p ].join(''),
								'sohushare',
								['scrollbars=yes,resizable=yes,left=30'].join('')))
					u.href = [ f, p ].join('');
			}
			;
			if (/Firefox/.test(navigator.userAgent))
				setTimeout(a, 0);
			else
				a();
		})(screen, document, encodeURIComponent));
	} else if (m == "qzone") {// 未开放分享
		window.open("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="
						+ encodeURIComponent(document.location), 'qzone',
				'scrollbars=yes,resizable=yes,left=30');
	} else if (m == "live") {
		window.open("https://skydrive.live.com/sharefavorite.aspx/.SharedFavorites/?marklet=1&mkt=zh-CN&top=1&url="
								+ encodeURIComponent(document.location)
								+ "&title="
								+ encodeURIComponent(document.title), 'live',
						'scrollbars=yes,resizable=yes,left=30');
	} else if (m == "greader") {
		var b = document.body;
		var GR________bookmarklet_domain = 'http://www.google.com';
		if (b && !document.xmlVersion) {
			void (z = document.createElement('script'));
			void (z.src = 'http://www.google.com/reader/ui/link-bookmarklet.js');
			void (b.appendChild(z));
		} else {
		}
	} else if (m == "itieba") {// 未开放分享
		var sendT = {
			getContent : function() {
				var allPageTagss = document.getElementsByTagName("div");
				for ( var i = 0; i < allPageTagss.length; i++) {
					if (allPageTagss[i].className == 'content') {
						return allPageTagss[i].innerHTML;
					} else if (allPageTagss[i].className == 'content_txt') {

						return allPageTagss[i].getElementsByTagName("P")[0].innerHTML;
					}

				}
			}
		}
		var itieba_share = 'http://tieba.baidu.com/i/sys/share?link='
				+ encodeURIComponent(window.location.href) + '&type='
				+ encodeURIComponent('text') + '&title='
				+ encodeURIComponent(document.title.substring(0, 76))
				+ '&content=' + encodeURIComponent(sendT.getContent());
		if (!window
				.open(itieba_share, 'itieba',
						'scrollbars=yes,resizable=yes,left=30')) {
			location.href = itieba_share;
		}
	} else if (m == "hexun") {
		var t = document.title;
		var u = location.href;
		var e = document.selection ? (document.selection.type != 'None' ? document.selection
				.createRange().text
				: '')
				: (document.getSelection ? document.getSelection() : '');
		void (window.open('http://bookmark.hexun.com/post.aspx?title='
				+ escape(t) + '&url=' + escape(u) + '&excerpt=' + escape(e),
				'HexunBookmark',
				'scrollbars=yes,resizable=yes,left=30'));
	} else if (m == "t163") {// 待完善--非官方
		(function() {
			var url = 'link=http://www.shareto.com.cn/&source='
					+ encodeURIComponent('网易新闻   ') + '&info='
					+ encodeURIComponent(document.title) + ' '
					+ encodeURIComponent(document.location.href);
			window.open('http://t.163.com/article/user/checkLogin.do?'
					+ url + '&' + new Date().getTime(),
							't163',
							'scrollbars=yes,resizable=yes,left=30');
		})()
	} else if (m == "xianguo") {
		void (function() {
			var d = document, e = encodeURIComponent, s1 = window.getSelection, s2 = d.getSelection, s3 = d.selection, s = s1 ? s1()
					: s2 ? s2() : s3 ? s3.createRange().text : '', r = 'http://xianguo.com/service/submitfav/?link='
					+ e(d.location.href)
					+ '&title='
					+ e(d.title)
					+ '&notes='
					+ e(s), x = function() {
				if (!window.open(r + '&r=0', 'xgfav',
								'scrollbars=yes,resizable=yes,left=30'))
					location.href = r + '&r=1'
			};
			if (/Firefox/.test(navigator.userAgent)) {
				setTimeout(x, 0)
			} else {
				x()
			}
		})()
	} else if (m == 'hotmail') {
		window.open("http://mail.live.com/secure/start?action=compose&subject="
				+ encodeURIComponent(document.title) + "&body="
				+ encodeURIComponent(document.location.href), 'hotmail',
				'scrollbars=yes,resizable=yes,left=30');
	} else if (m == "delicious") {
		(function() {
			f = 'http://delicious.com/save?url='
					+ encodeURIComponent(window.location.href) + '&title='
					+ encodeURIComponent(document.title) + '&v=5&';
			a = function() {
				if (!window.open(f + 'noui=1&jump=doclose', 'deliciousuiv5',
								'scrollbars=yes,resizable=yes,left=30'))
					location.href = f + 'jump=yes'
			};
			if (/Firefox/.test(navigator.userAgent)) {
				setTimeout(a, 0)
			} else {
				a()
			}
		})()
	} else if (m == "digg") {
		window.open("http://digg.com/submit?type=0&url="
				+ encodeURIComponent(window.location.href), 'digg',
				'scrollbars=yes,resizable=yes,left=30');
	} else if (m == "translate") {
		// 网页内翻译
		// var d = document;
		// var b = d.body;
		// var v = b.insertBefore(d.createElement('div'), b.firstChild);
		// v.id = 'google_translate_element';
		// v.style.display = 'none';
		// var z = d.createElement('script');
		// z.src =
		// 'http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit';
		// b.appendChild(z);
		// 新窗口翻译
		var t = ((window.getSelection && window.getSelection())
				|| (document.getSelection && document.getSelection()) || (document.selection
				&& document.selection.createRange && document.selection
				.createRange().text));
		var e = (document.charset || document.characterSet);
		if (t != '') {
			window.open('http://translate.google.cn/?text=' + t
					+ '&hl=zh-CN&langpair=auto|zh-CN&tbb=1&ie=' + e,
					'gtranslate');
		} else {
			window.open('http://translate.google.cn/translate?u='
					+ encodeURIComponent(location.href)
					+ '&hl=zh-CN&langpair=auto|zh-CN&tbb=1&ie=' + e,
					'gtranslate');
		}
		;
	} else if (m == "buzz") {
		window
				.open(
						"http://www.google.com/buzz/post?hl=zh-CN&url="
								+ encodeURIComponent(window.location.href),
						'buzz',
						'scrollbars=yes,resizable=yes,left=30');
	} else if (m == "pdf") {
		var authorId = "ECF83C2F-F3A3-45DE-8A44-2A36A9A9A1FB";
		var pageOrientation = "1";
		var topMargin = "0.5";
		var bottomMargin = "0.5";
		var leftMargin = "0.5";
		var rightMargin = "0.5";
		function savePageAsPDF() {
			var sUriRequest = "";

			sUriRequest = "author_id=" + authorId;
			sUriRequest += "&page=" + pageOrientation;
			sUriRequest += "&top=" + topMargin;
			sUriRequest += "&bottom=" + bottomMargin;
			sUriRequest += "&left=" + leftMargin;
			sUriRequest += "&right=" + rightMargin;

			// savepageaspdf.pdfonline.com
			var pURL = "http://savepageaspdf.pdfonline.com/pdfonline/pdfonline.asp?cURL="
					+ escape(document.location.href) + "&" + sUriRequest;
			window.open(pURL, "PDFOnline",
							'scrollbars=yes,resizable=yes,left=30');
		}
		savePageAsPDF();
	} else if (m == "hi") {
		window
				.open(
						'http://apps.hi.baidu.com/share/?url=' + encodeURIComponent(location.href)+ '&title='
						+ encodeURIComponent(document.title),
						'baiduhi',
						'scrollbars=yes,resizable=yes,left=30');
	} else if (m == "reddit") {
		var href = 'http://www.reddit.com/submit?url='
				+ encodeURIComponent(location.href) + '&title='
				+ encodeURIComponent(document.title);
		window.open(href, 'reddit',
				'scrollbars=yes,resizable=yes,left=30');
	} else if (m == "t139") {
		window.open('http://www.139.com/share/share.php?title='
				+ encodeURIComponent(document.title) + '&url='
				+ encodeURIComponent(location.href), 't139',
				'scrollbars=yes,resizable=yes,left=30');
	} else if (m == "myspace") {
		(function() {
			window.open('http://www.myspace.cn/Modules/PostTo/Pages/DefaultMblog.aspx?t='
							+ encodeURIComponent(document.title) + '&u='
							+ encodeURIComponent(location.href)
							+ '&source=bookmark', 'myspace',
					'scrollbars=yes,resizable=yes,left=30');
		})();
	} else if (m == "ymail") {
		window.open("http://compose.mail.yahoo.com/?subject="
				+ encodeURIComponent(document.title) + "&body="
				+ encodeURIComponent(document.location), 'ymail',
				'scrollbars=yes,resizable=yes,left=30');
	} else if (m == "csdn") {
		var d = document;
		var t = d.selection ? (d.selection.type != 'None' ? d.selection
				.createRange().text : '') : (d.getSelection ? d.getSelection()
				: '');
		void (saveit = window.open('http://wz.csdn.net/storeit.aspx?t=' + escape(d.title)
						+ '&u=' + escape(d.location.href) + '&c=' + escape(t),
						'csdn',
						'scrollbars=yes,resizable=yes,left=30'));
		saveit.focus();
	} else if (m == "youdao") {
		void (window.open('http://shuqian.youdao.com/manage?a=popwindow&title='
								+ encodeURI(document.title) + '&url='
								+ encodeURI(document.location),
						'youdao',
						'scrollbars=yes,resizable=yes,left=30'));
	}

	// 33twwiter,facebook,digu,有道,白社会(mop),csdn,yahoo bazz,myspace.com(参考chinadaily.com.cn)
	// 待开发:和讯微博
	return false;
}
// function googleTranslateElementInit() {
// new google.translate.TranslateElement({}, 'google_translate_element');
// }
function st_addBookmark(title){
    var url = parent.location.href;
    if (window.sidebar) { // Mozilla Firefox Bookmark
        window.sidebar.addPanel(title, url,"");
    } else if(document.all) { // IE Favorite
        window.external.AddFavorite( url, title);
    } else if(window.opera) { // Opera 7+
        return false; // do nothing
    } else { 
         alert('请按 Ctrl + D 为chrome浏览器添加书签!');
    }
}
