
artDialog.notice = function (options) {//扩展  右下角向上弹出层
    var opt = options || {},
        api, aConfig, hide, wrap, top,
        duration = 800;
        
    var config = {
        id: 'Notice',
        left: '100%',
        top: '100%',
        fixed: true,
        drag: false,
        resize: false,
        follow: null,
        lock: false,
        init: function(here){
            api = this;
            aConfig = api.config;
            wrap = api.DOM.wrap;
            top = parseInt(wrap[0].style.top);
            hide = top + wrap[0].offsetHeight;
            
            wrap.css('top', hide + 'px')
                .animate({top: top + 'px'}, duration, function () {
                    opt.init && opt.init.call(api, here);
                });
        },
        close: function(here){
            wrap.animate({top: hide + 'px'}, duration, function () {
                opt.close && opt.close.call(this, here);
                aConfig.close = $.noop;
                api.close();
            });
            
            return false;
        }
    };	
    
    for (var i in opt) {
        if (config[i] === undefined) config[i] = opt[i];
    };
    
    return artDialog(config);
};
function loading(){
	art.dialog({
		lock: true,
		background: '#FFFFFF', // 背景色
		opacity: 0.3,	// 透明度
		title: false,
		content: '正在加载...请稍后！',
		cancel: false
	});
};
function doing(con,tim){
	art.dialog.tips(con, tim);
};
function lock_doing(con,tim){
	art.dialog({
		lock: true,
		background: '#FFFFFF', // 背景色
		opacity: 0.5,	// 透明度
		title: false,
		content: con,
		time: tim
	});
};
function closebox_ALL(){
	var list = art.dialog.list;
	for (var i in list) {
		list[i].close();
	};
};
function TZ_p_prop(){
var win = art.dialog.open.origin;//来源页面
	// 如果父页面重载或者关闭其子对话框全部会关闭
win.location.reload();
	return false;
};

function RB_box(){
	art.dialog.load('tc/login.asp',{id: 'box_login',fixed: true,lock: true,resize: false,background: '#FFFFFF',opacity: 0.5,title: '登陆久爱婚姻网'}, false);
};
function UP_box(){
	art.dialog.open('tc/upload.asp', {id: 'box_upload',fixed: true,lock: true,background: '#FFFFFF',opacity: 0.5,title: '上传照片'});
};
function settx_box(){
	art.dialog.open('tc/settx.asp', {id: 'box_settx',fixed: true,lock: true,background: '#FFFFFF',opacity: 0.5,title: '设置头像'});
};
function YX_box(u,zf,gid){
	art.dialog.open('tc/xx.asp?sjr='+u+'&zf='+zf+'&id='+gid, {fixed: true,lock: true,background: '#FFFFFF',opacity: 0.5,title: '创建新邮箱'});
};
function YX_show_box(zf,gid,tit){
	art.dialog.open('tc/showxx.asp?zf='+zf+'&id='+gid, {fixed: true,lock: true,background: '#FFFFFF',opacity: 0.5,title: tit});
};
function prop_box(){
	art.dialog.open('tc/DJ_Purchase.asp', {fixed: true,lock: true,background: '#FFFFFF',opacity: 0.5,title: '购买道具'});
};
function UYX_box(u,zf,gid){
	art.dialog.open('../tc/xx.asp?sjr='+u+'&zf='+zf+'&id='+gid, {fixed: true,lock: true,background: '#FFFFFF',opacity: 0.5,title: '创建新邮箱'});
};
function setmp_box(){
	art.dialog.open('tc/setmp.asp', {id: 'box_setmp',fixed: true,lock: true,background: '#FFFFFF',opacity: 0.5,title: '设置我的名片'});
};
function ZSDJ_box(){
	art.dialog({
		lock: true,
		background: '#FFFFFF', // 背景色
		opacity: 0.8,	// 透明度
		padding: 0,
		title: false,
		content: document.getElementById('ZSDJ_box'),
		id:'ZSDJ_box'
	});
};
function ZSDJ_sl_box(boxid){
	art.dialog({
		lock: true,
		background: '#FFFFFF', // 背景色
		opacity: 0.8,	// 透明度
		padding: 0,
		title: false,
		content: document.getElementById(boxid),
		id:'ZSDJ_sl_box'	
	});
};
function TXL_box(){
	art.dialog({
		lock: true,
		background: '#FFFFFF', // 背景色
		opacity: 0.8,	// 透明度
		title: false,
		content: document.getElementById('TXL_box'),
		id:'TXL_box'	
	});
};
function TXL_hy_box(){
	art.dialog({
		lock: true,
		background: '#FFFFFF', // 背景色
		opacity: 0.8,	// 透明度
		title: false,
		content: document.getElementById('TXL_hy_box'),
		id:'TXL_hy_box'	
	});
};
function PH_show(t,c,w,h){
	art.dialog({
	lock: true,
	background: '#FFFFFF', // 背景色
	opacity: 0.8,	// 透明度
    padding: 0,
    title: t,
    content: '<a href="javascript:void(0);"  onclick="closebox_ALL()" ><img src="'+c+'" width="'+w+'" height="'+h+'" border="0" /></a>'
    
	});
};
function PP_doing(fw,xs){
	art.dialog.confirm('匹配一次全部用户婚缘会覆盖上次的匹配结果，<br>并需要消耗一张<font color=red >【久缘印章】</font>,确定吗？', function(){
    document.getElementById('start_fate').click();
	}, function(){
    	closebox_ALL();
	});
};












