if (typeof shop_fuceng == 'undefined') 
{
	var shop_fuceng = {};
}
//显示浮层
shop_fuceng.showBox = function(id)
{
	var offset = $("#fc0316_wrapper").offset();
//	$("#"+id).css("top", eval(document.documentElement.scrollTop+eval((window.screen.availHeight-400)/2)));
//	$("#"+id).css("left", eval((document.documentElement.clientWidth-500)/2));
	zhezhao();
	$("#"+id).show();
}

//管理显示浮层
shop_fuceng.manageshowBox = function(id)
{
	$("#"+id).css("top", eval(document.documentElement.scrollTop+eval((window.screen.availHeight-300)/2)));
	if (document.documentElement.clientWidth-500 > 0)
	{
		$("#"+id).css("left", eval((document.documentElement.clientWidth-500)/2));
	}
	else
	{
		$("#"+id).css("left", eval((document.documentElement.clientWidth+500)/2));
	}
	zhezhao();
	$("#"+id).show();
}

//隐藏浮动层
shop_fuceng.hiddenBox = function(id)
{
	unzhezhao();
	$("#"+id).hide();
}

//添加留言
shop_fuceng.addrecommend = function()
{
	content = $('#recommendcontent')[0].value;
	$.post("/show/ajaxmessage/", { content: content },
  function(data){
    alert("非常感谢您对我店的支持，谢谢！");
    shop_fuceng.hiddenBox('recommend');
    $('#recommendcontent')[0].value="";
  });
}

/**
* 遮盖背景函数
*/
function zhezhao()
{
	var a=document.getElementById("zhezhao");
	a.style.display="block";
	a.style.width=document.documentElement.scrollWidth+"px";
	a.style.height=document.documentElement.scrollHeight+"px";
}

/**
* 显示背景函数
*/
function unzhezhao()
{
	var a=document.getElementById("zhezhao");
	a.style.display="none";
	a.style.width=document.documentElement.scrollWidth+"px";
	a.style.height=document.documentElement.scrollHeight+"px";
}
