var gSID=window.parent.gSID;var gDomain="http://" + window.parent.zDomain;var gdomain=window.parent.gDomain;var gCssPath="http://mimg.163.com/divcss/";var gIndexFrame="indexFrame";var gIsShowDetail=true;var gDomainInfo="[" +"['mimg.163.com', false, 0, false, 'kf163@188.com']" +",['mimg.126.com', false, 2, false, 'kf126@188.com']" +",['mimg.188.com', false, 0, false, 'kf188@188.com']" +"]";var gReplyAndForwardPicPath="http://mimg.163.com/0814/status_2.gif";var gReplyPicPath="http://mimg.163.com/0814/status_3.gif";var gForwardPicPath="http://mimg.163.com/0814/status_4.gif";var gUnreadPicPath="http://mimg.163.com/0814/status_5.gif";var gReadedPicPath="http://mimg.163.com/0814/status_6.gif";var gConfirmSend="邮件正在发送中，你确定要取消发送吗？\n【确定】：取消发送；\n【取消】：继续发送。";var gConfirmCompose="放弃对此信件所作的修改？";function gModuleInfo(){this.welcome=["",																											false, null, '',		'cm25_foldmain.css',	'indexFrame',		true,	false,	false,	false,"欢迎", 0];this.folderMain=[gDomain +"/coremail/fcg/ldapapp?funcid=foldmain&sid="+ gSID,													false, null, '',		'cm25_foldmain.css',	'indexFrame',		true,	false,	false,	true, "文件夹", 0];this.unRead=[gDomain +"/coremail/fcg/ldsrchapp?funcid=srchhand2&subfolder=yes&sid="+ gSID +"&stateflag=1&fid=0",			false, null, '',		'cm2.5_showheader.css',	'indexFrame',		false,	true,	false,	true, "搜索邮件列表", 0];this.inbox=[gDomain +"/coremail/fcg/ldapapp?funcid=mails&sid="+ gSID +"&fid=1",											false, null, '',		'cm2.5_showheader.css',	'indexFrame',		true,	true,	false,	true, "收件箱", 0];this.draft=[gDomain +"/coremail/fcg/ldapapp?funcid=mails&sid="+ gSID +"&fid=2",											false, null, '',		'cm2.5_showheader.css',	'indexFrame',		true,	true,	false,	true, "草稿箱", 0];this.sended=[gDomain +"/coremail/fcg/ldapapp?funcid=mails&sid="+ gSID +"&fid=3",											false, null, '',		'cm2.5_showheader.css',	'indexFrame',		true,	true,	false,	true, "已发送文件夹", 0];this.deleted=[gDomain +"/coremail/fcg/ldapapp?funcid=mails&sid="+ gSID +"&fid=4",											false, null, '',		'cm2.5_showheader.css',	'indexFrame',		true,	true,	false,	true, "已删除文件夹", 0];this.read=["http://mimg."+ gdomain +"/jsstyle/html/blankpage.htm",																											false, null, '',		'cm2.5_onepageread.css','indexFrame',		false,	false,	false,	true, "阅读邮件", 0];this.compose=[gDomain +"/coremail/fcg/ldmmapp?funcid=compose&sid="+ gSID,													false, null, '',		'cm25_compatta.css',	'indexFrame',		true,	false,	true,	true, "写信", 0];this.receiptopt=["",																											false, null, '',		'',						'indexFrame',		false,	false,	false,	true,"", 0];this.outLink=["",																											false, null, '',		'',						'indexFrame',		false,	false,	false,	false, "外部链接", 0];this.send=["",																											false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "", 0];this.readForward=["",																											false, null, '',		'',						'indexFrame',		false,	false,	false,	true, "转发", 0];this.searchMail=["",																											false, null, '',		'',						'indexFrame',		true,	false,	true,	false, "邮件搜索", 0];this.newMail=[gDomain + "/coremail/fcg/ldgmcapp?funcid=getmsgcnt&sid="+gSID+"&fid=0&&incSubFdrs=1&template=newmsgres.htm",false, null, '',		'',						'indexFrame',		false,	false,	false,	false, "", -1];this.assist=["",																											false, null, '',		'',						'indexFrame',		true,	false,	true,	false, "个人助理", 3];this.option=["",																											false, null, '',		'',						'indexFrame',		true,	false,	true,	false, "选项", 2];this.userinfo=[gDomain +"/coremail/fcg/ldapapp?funcid=opuserinfo&optype=print&sid="+ gSID,									false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "个人信息", 2];this.password=[gDomain +"/coremail/fcg/ldapapp?funcid=password&sid="+ gSID,													false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "修改密码", 2];this.question=[gDomain +"/coremail/fcg/ldapapp?funcid=question&sid="+ gSID,													false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "", 2];this.preference=[gDomain +"/coremail/fcg/ldapapp?funcid=preference&sid="+ gSID,												false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "参数设置", 2];this.signature=[gDomain +"/coremail/fcg/ldapapp?funcid=signature&sid="+ gSID,												false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "签名", 2];this.forward=[gDomain +"/coremail/fcg/ldapapp?funcid=opuserattr&optype=print&tempname=options/forward.htm&sid="+ gSID,		false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "", 2];this.autoresp=[gDomain +"/coremail/fcg/ldapapp?funcid=opuserattr&optype=print&tempname=options/autoresp.htm&sid="+ gSID,	false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "", 2];this.timeset=[gDomain +"/coremail/cgi/lddbapp?funcid=timeset&sid="+ gSID,													false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "定时发信", 2];this.pop=[gDomain +"/coremail/fcg/ldapapp?funcid=pop&sid="+ gSID,														false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "pop3", 2];this.refuselist=[gDomain +"/coremail/fcg/ldapapp?funcid=opuserattr&optype=print&tempname=options/refuselist.htm&sid="+ gSID,	false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "黑名单", 2];this.friends=[gDomain +"/coremail/fcg/ldapapp?funcid=opuserattr&optype=print&tempname=options/friends.htm&sid="+ gSID,		false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "白名单", 2];this.filter=[gDomain +"/coremail/fcg/ldfltapp?funcid=filter&sid="+ gSID,													false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "过滤器", 2];this.filter2=["",																											false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "过滤器", 2];this.junkfilter=[gDomain +"/coremail/fcg/ldapapp?funcid=opuserattr&optype=print&tempname=options/junkfilter.htm&sid="+ gSID,	false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "反垃圾", 2];this.add=["",																											false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "添加联系人", 1];this.address=[gDomain +"/coremail/fcg/ldvcapp?funcid=prtsearchres&tempname=address%2faddress.htm&listnum=10&sid="+ gSID,	false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "通讯录", 1];this.addlist=[gDomain +"/coremail/fcg/ldvcapp?funcid=prtsearchres&tempname=address/addlist.htm&sid="+ gSID,				false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "通讯录", 1];this.addsearch=["",																											false, null, '',		'',						'indexFrame',		true,	false,	true,	false, "联系人查询", 1];this.xport=[gDomain +"/coremail/fcg/ldvcapp?funcid=xportadd&sid="+ gSID,													false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "联系人导入", 1];this.iaddress=["",																											false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "", 1];this.iaddrgrp=["",																											false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "联系组", 1];this.print_view=["",																											false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "打印预览", 1];this.printadd=["",																											false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "", 1];this.addrpout=["",																											false, null, '',		'',						'indexFrame',		true,	false,	false,	true, "联系人导出", 1];}var gFrames={"jsFrame":"http://mimg."+ gdomain +"/jsstyle/html/globe.htm" ,"topFrame": gDomain + "/coremail/fcg/loadpage?sid="+ gSID +"&listpage=top.htm" ,"indexFrame":"http://mimg."+ gdomain +"/jsstyle/html/gblank.htm" ,"submitFrame":"http://mimg."+ gdomain +"/jsstyle/html/blankpage.htm" ,"historyFrame":"http://mimg."+ gdomain +"/jsstyle/html/history_1.htm" ,"contentFrame":"http://mimg."+ gdomain +"/jsstyle/html/blankpage.htm" ,"userFrame": gDomain + "/coremail/fcg/ldapapp?sid="+ gSID +"&funcid=opuserattr&optype=print&tempname=options%2Fuserattr.htm" ,"folderFrame": gDomain + "/coremail/fcg/ldapapp?funcid=folder&sid=" + gSID ,"addressFrame":gDomain + "/coremail/fcg/ldvcapp?funcid=prtsearchres&sid="+ gSID +"&sortattr_N=&showlist=&ifirstv=&tempname=address%2Faddrdata_ntes.htm","debugFrame":"http://mimg."+ gdomain +"/jsstyle/html/blankpage.htm"};var gDisplayFrame="indexFrame";var gStartModule="folderMain";var gTargetFrame="submitFrame";var gDebugFrame="debugFrame";var gInboxFlag={"unRead":"0","inbox":"1","draft":"2","sended":"3","deleted":"4"};var gGetNewMailInterval=180000;var gCurWin=null;var gCurDoc=null;var gCurForm=null;var gContentFrame="contentFrame";var gComposeModule=["compose"];var gAttachInfos=new Array();var gInitModules=["compose","newMail","inbox","read","pop"];var gFrmNumber=0;var gAttach_size=0;var gAttach_encsize=0;var gSingleAttachLimit=0;var gTotalAttachLimit=0;var gUrlfile_infos=new Array();var g_ArrEmailList;var g_MainDiv=null;var g_Body=null;var g_FirstTd=null;var g_CurrentTd=null;var g_InputObject=null;var g_OldInnerTxt="";var g_NewInnerTxt="";var g_TdCssClassName="autofinish_over";var g_TbCssClassName="autofinish";var gAC=null;var g_IgnoreIE=false;var gCD=null;var gCW=null;var gCCW=null;var gCCD=null;var gComposeMode=false;var gTimer=null;var gIsPhoto=0;var gUrlPhoto="";var gDebugInfo="";var gBeginMoving=false;var gDrop=false;var gSourceDiv=null;var gDestDiv=null;var gAppName="";var gVersion=0;var gTips=new Array();var sUrl="";if(gdomain=="126.com"){sUrl="http://mail.126.com/help/desktop200509.htm";}else{sUrl="http://mail.163.com/help/desktop200509.htm";}var gInboxTitle="将拖放的邮件转移到收件箱";var gDraftTitle="将拖放的邮件转移到草稿箱";var gSendedTitle="将拖放的邮件转移到已发送文件夹";var gDeletedTitle="将拖放的邮件转移到已删除文件夹";var gUseFrame=true;var gSystemDate=new Date();var gDateOrder=1;var gArrDateInterval=new Array();var gArrWeek=new Array("日", "一", "二","三","四", "五","六");var gCurrentDateIndex=new Object();;var gIsOrderByDate=true;var gCurrentDiv=new Object();var gAutoRecieve=true;var gNewMailCount=-1;var gGettingNewMail=false;var gDoc=null;var gDeletedCount=0;var gSpamCount=0;var gArrTab=["mail","address","option","assis","disk"];var isSearchByTop=false;var gFolderPos=new Object();var gLetterMoved=false;var gTempUrl="";
var gTipsTitle = [
	"使用<a href='#' target='_blank'>地址本自动完成</a>小技巧，省去您一个个输入的麻烦。",
	"点击写信工具栏的\"魔法表情\"，利用独特的图释，写出动感十足的Email！",
	"从\"网易网盘\"添加附件，<a href='#' target='_blank'>了解更多>></a>",
	"画出来的Email，你见过吗？快来体验网易<a href='#' target='_blank'>魔法信</a>的无穷乐趣吧！",
	"<span><input type='hidden' value='#' style='display:none'>使用免费的<a href='#' target='_blank' onclick='this.href=this.parentNode.childNodes[0].value'>POP访问</a>将您的邮件下载到Outlook等客户端设备上。<a href='#' target='_blank' onclick='this.href=this.parentNode.firstChild.value'>了解更多>></a></span>",

	"在搜索栏输入关键字，快速搜索您要找的邮件。",
	"<span><input type='hidden' value='#' style='display:none'>只需输入一次其它邮箱的帐号密码，<a href='#' target='_blank' onclick='this.href=this.parentNode.childNodes[0].value'>POP</a>帮您收来所有邮件。<a href='#' target='_blank' onclick='this.href=this.parentNode.firstChild.value'>了解更多>></a></span>",
	"将您的联系信息、喜欢的引言，或者其它资料，设定成个性化的<a href='#'>签名档</a>，随信件一起发给好友。",
	"重要日子就要到了，想给心中的她发一张浓情蜜意的<a href='#'>贺卡</a>吗？！",
	"把朋友们的电话号码、注释和其他信息添加到您的<a href='#'>通讯录</a>中，方便以后的联系。",

	"将附件直接保存到网易网盘，无须通过本地\"中转\"。",
	"我使用极速版反而比以前慢，这是为什么？ <a href='#' target='_blank'>了解更多>></a>",
	"我在收件箱，想查看有没有新邮件，要怎么做呢？ <a href='#' target='_blank'>了解更多>></a>",
	"使用<a href='#' target='_blank'>快捷键</a>读信或写信等操作，能更节省你的时间。",
	"写信时间过长时，请注意<a href='#' target='_blank'>保存</a>，以免丢失所编辑的内容。",

	// "点击左边树型菜单中的\"<a href='#' target='_blank'>POP收信</a>\"，迅速克隆其他邮箱的邮件。",
	"使用<a href='#' target='_blank'>快捷键</a>读信或写信等操作，能更节省你的时间。",
	"一改传统文本式签名，使用名片式的个性<a href='#' target='_blank'>图片签名</a>，让您的商务沟通更体面。",
	"随时随地<a href='#' target='_blank'>收藏</a>您喜欢的网址，不必担心重装机器而丢失。",
	"自动将其它邮箱的<a href='#' target='_blank'>通讯录克隆</a>到188财富邮，转用新邮箱，一点也不麻烦！",

	"<a href='#' target='_blank'>新闻DIY</a>，国内国际、财经、体育、娱乐，获取个性化资讯，总比别人快！",
	"全新188<a href='#' target='_blank'>手机邮</a>升级版，让您和朋友随时随地，保持联系！"
];
switch(gdomain){
	case "163.com":
		var arrHelpUrl = [
			"http://digi.163.com/special/00161S7R/188_mail.html"
		];
		var gTipsTitle = [
			"网易邮箱<font color='red'>百问富翁</font>活动，挑战宽屏液晶显示器！ <a href='#' target='_blank'>立即参加</a>&gt;&gt;"
		];
		for(var i=0;i<arrHelpUrl.length;i++){
			if(typeof(arrHelpUrl[i]) != "object"){
				gTips[gTips.length] = [gTipsTitle[i],arrHelpUrl[i]];
			}
		}
		break;
	case "126.com":
		var arrHelpUrl = [
			"http://digi.163.com/special/00161S7R/188_mail.html"
		];
		var gTipsTitle = [
			"网易邮箱<font color='red'>百问富翁</font>活动，挑战宽屏液晶显示器！ <a href='#' target='_blank'>立即参加</a>&gt;&gt;"
		];
		for(var i=0;i<arrHelpUrl.length;i++){
			if(typeof(arrHelpUrl[i]) != "object"){
				gTips[gTips.length] = [gTipsTitle[i],arrHelpUrl[i]];
			}
		}
		break;
	case "188.com":
		var arrHelpUrl = [
			"http://www.188.com/help/address06.htm",
			"",
			"http://www.188.com/help/netdisk05.htm",
			"http://cards.163.com/mfx/",
			"http://www.188.com/help/client03.htm",

			"",
			null,
			"javascript:fGoto(\"MM.getModule\",\"signature\")",
			"javascript:fGoto(\"fComposeToolBarAgen\",\"card\")",
			"javascript:fGoto(\"fGetAddress\");",

			"",
			null,
			null,
			null,
			"http://mail.188.com/help/write03.htm",

			// null,
			null,
			"http://www.188.com/help/picsign.htm",
			"http://www.188.com/help/bookmark.htm",
			"http://www.188.com/help/address13.htm",
			"http://www.188.com/help/rss.htm",
			"http://www.188.com/help/wap2.htm"
		];
		for(var i=0;i<arrHelpUrl.length;i++){
			if(typeof(arrHelpUrl[i]) != "object"){
				gTips[gTips.length] = [gTipsTitle[i],arrHelpUrl[i]];
			}
		}
		break;
}
var gFakeLetter=new Array();gFakeLetterType=1;g188FakeLetter='<a target="_blank" href="http://www.188.com/news/notice.htm"><font color="red">188财富邮重要通知</font></a>';if(gdomain=="163.com"){
gFakeLetter=['http://adclient.163.com/html.ng/site=netease&affiliate=freemail163&cat=inbox&type=textlink&location=1','http://adclient.163.com/html.ng/site=netease&affiliate=freemail163&cat=inbox&type=textlink&location=2','fakeletter0417.htm',];}else if(gdomain=="126.com"){
gFakeLetter=['http://adclient.163.com/html.ng/site=netease&affiliate=freemail126&cat=inbox&type=textlink&location=1','http://adclient.163.com/html.ng/site=netease&affiliate=freemail126&cat=inbox&type=textlink&location=2','fakeletter0417.htm',];}var gBgcolor9="";var gIfCreateNewFolder=false;gHomePage="";switch(gdomain){case "163.com":gHomePage="mail.163.com";gBgcolor9="#9FBFE3";break;case "126.com":gHomePage="www.126.com";gBgcolor9="#7DC184";break;case "188.com":gBgcolor9="#D89898";gHomePage="www.188.com";break;case "yeah.net":gHomePage="www.yeah.net";break;case "netease.com":gHomePage="mail.netease.com";break;}gHomePage="http://" + gHomePage;var gCc="添加抄送";var gBcc="添加密送";var gDelCc="删除抄送";var gDelBcc="删除密送";var gSignIndex=0;var gDefaultSignMode=0;var gDefaultSign="";var gDebug=false;var gFolderSearchType="";var gIsReply=false;var gIsEdited=false;var gSendAdPic="";if(gdomain=="163.com"){gSendAdPic+='<table width=600 cellspacing=1 cellpadding=6 border=0 align=center class=bgcolor5><tr align="center" class=bgcolor1>	<td>&nbsp;<iframe src="http://adclient.163.com/html.ng/site=netease&affiliate=freemail163&cat=sendmsg&type=tvscreen1&location=1" width="360" height="300" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" ></iframe>&nbsp;</td></tr></table>';}else if(gdomain=="126.com"){gSendAdPic+='<table width=600 cellspacing=1 cellpadding=6 border=0 align=center class=bgcolor5><tr align="center" class=bgcolor1>	<td>&nbsp;<iframe src="http://adclient.163.com/html.ng/site=netease&affiliate=freemail126&cat=sendmsg&type=tvscreen1&location=1" width="360" height="300" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" ></iframe> &nbsp;</td></tr></table>';}var gSendAdLink="";
if(gdomain == "163.com"){
	gSendAdLink += '<center><a href="javascript:fGoto()" onclick="fGoto(\'fGetOutLink\',\'http://dnw.mail.163.com/dnw/pages?main=1&sid='+ gSID +'&origin=' + window.top.zDomain + '\',\'\')">还想给朋友转发些好玩的东西吗？点击进入“逗你玩”休闲邮&gt;&gt;</a></center>';
}
var gWelcomeBottomAd='';if(gdomain=="163.com"){gWelcomeBottomAd='<iframe src="http://adclient.163.com/html.ng/site=netease&affiliate=freemail163&cat=login&type=logo310x120&location=1" width="310" height="120" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" ></iframe>';}else if(gdomain=="126.com"){gWelcomeBottomAd='<iframe src="http://adclient.163.com/html.ng/site=netease&affiliate=freemail126&cat=login&type=logo310x120&location=1" width="310" height="120" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" ></iframe>';}