<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">var def_shareurl   = location.href;
var def_sharetitle = document.title;

function fb_share(shareurl,sharetitle) {
	if(typeof(shareurl) == "undefined")   var shareurl   = def_shareurl;
	if(typeof(sharetitle) == "undefined") var sharetitle = def_sharetitle;
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(shareurl)+'&amp;t='+encodeURIComponent(sharetitle), 'sharer', 'toolbar=0,status=0,width=626,height=436');
	return false;
}

function plurk_share(shareurl,sharetitle) {
	if(typeof(shareurl) == "undefined")   var shareurl   = def_shareurl;
	if(typeof(sharetitle) == "undefined") var sharetitle = def_sharetitle;
	window.open('http://www.plurk.com/?qualifier=shares&amp;status='+encodeURIComponent(shareurl+' ('+sharetitle+')'), 'sharer', 'toolbar=0,status=0,width=626,height=436');
	return false;
}

//Twitter
function twitter_share(shareurl,sharetitle) {
	if(typeof(shareurl) == "undefined")   var shareurl   = def_shareurl;
	if(typeof(sharetitle) == "undefined") var sharetitle = def_sharetitle;
	window.open('http://twitter.com/intent/tweet?text='+encodeURIComponent(sharetitle)+''+encodeURIComponent(shareurl));
	return false;
}

function weibo_share() {
	window.open('http://v.t.sina.com.cn/share/share.php?title='+encodeURIComponent(shareurl)+'&amp;url='+encodeURIComponent(sharetitle));
	return false;
}

function isMobileView(){
  return Math.max(document.documentElement.clientWidth, window.innerWidth || 0) &lt;= 768;
}

function getURLVar(key) {
	var value = [];

	var query = String(document.location).split('?');

	if (query[1]) {
		var part = query[1].split('&amp;');

		for (i = 0; i &lt; part.length; i++) {
			var data = part[i].split('=');

			if (data[0] &amp;&amp; data[1]) {
				value[data[0]] = data[1];
			}
		}

		if (value[key]) {
			return value[key];
		} else {
			return '';
		}
	}
}
function rawurlencode(q) {
	q = (q + '').toString();
	return encodeURIComponent(q).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A');
}

function count_link(url) {
	imgs = new Image();
	imgs.src = baseurl+'/redirect.php?url='+ encodeURIComponent(url) + "&amp;from=" + encodeURIComponent(shareurl);
	delete imgs;
	return false;
}

function init() {
	//var fn  = onloadFnList;
	//var bID = document.getElementsByTagName("body")[0].id;
	for (var i = 0,  l = onloadFnList.length; i &lt; l; i++) {
		/*if ((bID != "" &amp;&amp; fn[i].tag.indexOf(bID) != -1) || fn[i].tag == "*") {
			fn[i].fn();
		}*/
		//alert(onloadFnList[i].tag);
		onloadFnList[i].fn();
		delete onloadFnList[i];
	}
	onloadFnList = [];
}

function checkbrowse() {
	var ua = navigator.userAgent.toLowerCase();
	var is = (ua.match(/\b(chrome|opera|safari|msie|firefox)\b/) || ['', 'mozilla'])[1];
	var r = '(?:' + is + '|version)[\\/: ]([\\d.]+)';
	var v = (ua.match(new RegExp(r)) || [])[1];
	jQuery.browser.is = is;
	jQuery.browser.ver = v;
	return {
		'is':  jQuery.browser.is,
		'ver': jQuery.browser.ver
	}
}


function userAgent() {
	var e, t = {}, n = navigator.userAgent.toLowerCase();
	return t = (e = n.match(/rv:([\d.]+)\) like gecko/)) ? {
		browser: "ie",
		version: e[1]
	} : (e = n.match(/msie ([\d.]+)/)) ? {
		browser: "ie",
		version: e[1]
	} : (e = n.match(/firefox\/([\d.]+)/)) ? {
		browser: "firefox",
		version: e[1]
	} : (e = n.match(/chrome\/([\d.]+)/)) ? {
		browser: "chrome",
		version: e[1]
	} : (e = n.match(/opera.([\d.]+)/)) ? {
		browser: "opera",
		version: e[1]
	} : (e = n.match(/version\/([\d.]+).*safari/)) ? {
		browser: "safari",
		version: e[1]
	} : 0
}

//if(typeof(old_title) != "undefined")    document.title = old_title;
//if(typeof(old_hostname) != "undefined") document.location.hostname = old_hostname;
//if(typeof(old_pathname) != "undefined") document.location.pathname = old_pathname;



/*--- move to top ---*/
function move_to_top(div)
{
	var div = (typeof(div) == 'undefined') ? "body" : div;
	var $body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $('html') : $('body')) : $('html,body');
	$body.animate({
		scrollTop: $(div).offset().top
	}, 1000);
}


function autosize(ImgD, h, w) {
	var image = new Image();
	image.src = ImgD.src;
	if (image.width &lt; w &amp;&amp; image.height &lt; h) {
		ImgD.width = image.width;
		ImgD.height = image.height;
	}
	else {
		if (w / h &lt;= image.width / image.height) {
			ImgD.width = w;
			ImgD.height = w * (image.height / image.width);
		}
		else {
			ImgD.width = h * (image.width / image.height);
			ImgD.height = h;
		}
	}
}</pre></body></html>