﻿var prox;
var proy;
var proxc;
var proyc;
function showshopcar(){/*--打开--*/
  clearInterval(prox);
  clearInterval(proy);
  clearInterval(proxc);
  clearInterval(proyc);
  var o = document.getElementById("fd");
  o.style.display = "block";
  o.style.width = "1px";
  o.style.height = "1px"; 
  prox = setInterval(function(){openx(o,400)},10);
} 
function openx(o,x){/*--打开x--*/
  var cx = parseInt(o.style.width);
  if(cx < x)
  {
   o.style.width = (cx + Math.ceil((x-cx)/5)) +"px";
  }
  else
  {
   clearInterval(prox);
   proy = setInterval(function(){openy(o,200)},10);
  }
} 
function openy(o,y){/*--打开y--*/ 
  var cy = parseInt(o.style.height);
  if(cy < y)
  {
   o.style.height = (cy + Math.ceil((y-cy)/5)) +"px";
  }
  else
  {
   clearInterval(proy);   
  }
} 
function closeed(){/*--关闭--*/
  clearInterval(prox);
  clearInterval(proy);
  clearInterval(proxc);
  clearInterval(proyc);  
  var o = document.getElementById("fd");
  if(o.style.display == "block")
  {
   proyc = setInterval(function(){closey(o)},10);   
  }  
} 
function closey(o){/*--关闭y--*/ 
  var cy = parseInt(o.style.height);
  if(cy > 0)
  {
   o.style.height = (cy - Math.ceil(cy/5)) +"px";
  }
  else
  {
   clearInterval(proyc);    
   proxc = setInterval(function(){closex(o)},10);
  }
} 
function closex(o){/*--关闭x--*/
  var cx = parseInt(o.style.width);
  if(cx > 0)
  {
   o.style.width = (cx - Math.ceil(cx/5)) +"px";
  }
  else
  {
   clearInterval(proxc);
   o.style.display = "none";
  }
} 
 
function showfd(str){
	DWRUtil.setValue('fd',str);
}
function showfdd(){
	o3product.showshoppingcar(showfd);
}

function closSession(){
	newMess.closSession(showMemberInfo);
	location.reload();
}
function showMemberInfo(str){
	document.all.memberInfo.innerHTML = str;
}
function showspp(){
	newMess.memberInfo(showMemberInfo);
}
