/*
 * 程序名: Maple Web.CMS (函数模块)
 * 当前版本: v1.86 Preview
 * 作者: 云端o枫o0
 * 联系邮件: lantk@126.com
 * 腾讯QQ: 570389199
 * 网站地址: http://lantk.588.net
 * 最后更新: 2007-9-15
 * 注释: 此段代码不会影响程序执行，请尊重作者的劳动，谢谢。
 */

document.write("<iframe name=\"frmPostPanel\" style=\"display:none\"></iframe>");

//简化 document.getElementById 方法
function $(){
	return document.getElementById(arguments[0]);
}

function $E(){
	return document.getElementsByTagName(arguments[0]);
}

function $N(){
	return document.getElementsByName(arguments[0]);
}

function setMonoryURL(){
	var strURL = location.href;
	window.clipboardData.setData("Text",strURL);
	alert("提示：成功复制网站地址，按Ctrl+V粘贴，与好友一起分享吧！");
}

function sendMobileMMS(url){
	var MM_ImgURL=	"http://request.mmstoon.com/Send/bigPic.asp?"
				 +	"f=91506&Title=超大图片彩信diy&Notify=自由选取美图"
				 +	"中最中意部分作为您的屏保！可自由选取、放大、缩小&picUrl="+ url;
	window.open(MM_ImgURL,'caishowSend','width=100,height=100,resizable');
	return false;
}

function AddUserFav(){
	var title=document.title
	var url=document.location.href
	if (window.sidebar){
		window.sidebar.addPanel(title, url,"");
	}else if( window.opera && window.print ){
		var mbm = document.createElement('a');
		mbm.setAttribute('rel','sidebar');
		mbm.setAttribute('href',url);
		mbm.setAttribute('title',title);
		mbm.click();
	}
	else if( document.all ){
		window.external.AddFavorite( url, title);
	}
}

function AddHomePage(){
	obj = window.event.srcElement;
	obj.style.behavior="url(#default#homepage)";obj.setHomePage(location.href);
}
