/* 改變文章字體大小 */
function ChFontSize(font_name,font_size){
	var font=document.getElementById(font_name);
	font.style.fontSize = font_size+'pt';
	font.style.lineHeight = parseInt(font_size+6)+'pt';
}
function fbs_set(u, t) {
var _param = 'http://www.facebook.com/sharer.php?u=';
_param += encodeURIComponent(u);
_param += '&t=';
_param += encodeURIComponent(t);
window.open( _param, 'sharer', 'toolbar=0,status=0,width=626,height=456');
}
function plurk_set(u, t) {
var _param = 'http://www.plurk.com/?qualifier=shares&status=';
_param += encodeURIComponent(u);
_param += '+(';
_param += encodeURIComponent(t);
_param += ')';
window.open(_param);
}
//----- ϤĪG -----
function highlightit(cur2){
	if (cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=15
	else if(window.highting)
		clearInterval(highlighting)
}
function picHigh(which2){
	theobject=which2;theobject.filters.alpha.opacity=0
	highlighting=setInterval("highlightit(theobject)",50)
}
function picLow(which2){
	clearInterval(highlighting)
	which2.filters.alpha.opacity=100
}
//----- made by bluezz ----
function setLink(url,subject,target){
	str ="<";
	str+="a";
	str+=" hr";
	str+="ef=";
	if(target){
		document.write(str + "\""+ url +"\" target=\""+ target +"\" ref=\"nofollow\">"+ subject +"</" + "a>");
	}else{
		document.write(str + "\""+ url +"\" ref=\"nofollow\">"+ subject +"</" + "a>");
	}
}

function setLink_r(url,subject,target){
	var tmp='';
	for(i=url.length;i>0;i--){
		tmp +=url.substring(i-1,i);
	}
	url=tmp;
	str ="<";
	str+="a";
	str+=" hr";
	str+="ef=";
	if(target){
		document.write(str + "\""+ url +"\" target=\""+ target +"\" ref=\"nofollow\">"+ subject +"</" + "a>");
	}else{
		document.write(str + "\""+ url +"\" ref=\"nofollow\">"+ subject +"</" + "a>");
	}
}

function str_r(url){
	var tmp='';
	for(i=url.length;i>0;i--){
		tmp +=url.substring(i-1,i);
	}
	url=tmp;
	document.write(url);
}
