	var oSC 		= new lemon.cx.ShoppingCart();
	var isCartOpen	= isLoginOpen=isSearchOpen=false;
	var oShopList 	= document.getElementById("ShopList");
	var oShopLogin 	= document.getElementById("ShopLogin");
	var oSearchOrder= document.getElementById("SearchOrder");
	var iHeight  	= i1RecoH = 35;
    var anListOpen 	= anListClose = aniLoginOpen = aniLoginClose = null;
	YAHOO.util.Event.onContentReady("body",  function(e,o) {
		with(oSC){
			setShowElement("ListDetail");
			setShowCurrentPrdSnBy_GET('PrdSn');
			setPrdNumSelElement('BookingSelNum');
			setCartListAmountElement('amount');
			//aniShopList("close");
			initialize();
		}
	 });
	function aniShopList(keepStatus){
		if(oShopList.className != "showLS")
		oShopList.className = "showLS";
		var nowHeight = oSC.lengthItems()*i1RecoH+i1RecoH;
		//if record no has been changed, should reflash list height.
		if(nowHeight!=iHeight){
			iHeight = nowHeight; var isReflash=true;
		}
		if(anListOpen==null || anListClose==null || isReflash){
			aniListOpen = new YAHOO.util.Anim("ShopList", {height: { from: 0, to: iHeight}},0.5,YAHOO.util.Easing.easeIn );
			aniListClose = new YAHOO.util.Anim("ShopList", {height: { from: iHeight, to: 0}},0.5,YAHOO.util.Easing.easeIn );
		}
		switch(keepStatus){
			case "open":
			if(!isCartOpen||isReflash){
				aniListOpen.animate();isCartOpen=!isCartOpen;
			}
			break;
			case "close":
			if(isCartOpen||isReflash){
				aniListClose.animate();isCartOpen=!isCartOpen;
			}
			break;
			default:
			isCartOpen?aniListClose.animate():aniListOpen.animate();
			isCartOpen=!isCartOpen;
			break;
		}
	}
	function aniLogin(){
		if(oShopLogin.className != "showLS")
		oShopLogin.className = "showLS";
		if(aniLoginOpen==null || aniLoginClose==null){
			aniLoginOpen = new YAHOO.util.Anim("ShopLogin", {height: { from: 0, to: 45}},0.5,YAHOO.util.Easing.easeIn );
			aniLoginClose = new YAHOO.util.Anim("ShopLogin", {height: { from: 45, to: 0}},0.5,YAHOO.util.Easing.easeIn );
		}
		isLoginOpen?aniLoginClose.animate():aniLoginOpen.animate();
		isLoginOpen=!isLoginOpen;
	}
	function aniSearchOrder(){
		if(oSearchOrder.className != "showLS")
		oSearchOrder.className = "showLS";
		iHeight = oSC.lengthItems()*i1RecoH+i1RecoH;
		if(anListOpen==null || anListClose==null){
			aniSearchOpen = new YAHOO.util.Anim("SearchOrder", {height: { from: 0, to: 30}},0.5,YAHOO.util.Easing.easeIn );
			aniSearchClose = new YAHOO.util.Anim("SearchOrder", {height: { from: 30, to: 0}},0.5,YAHOO.util.Easing.easeIn );
		}
		isSearchOpen?aniSearchClose.animate():aniSearchOpen.animate();
		isSearchOpen=!isSearchOpen;
	}
// Shoping Cart List page
	YAHOO.util.Event.onContentReady("body",  function(e,o) {
		// Define where is the Shopping Cart List Table
		if(typeof(document.getElementById("CatList")) == "object")
		oSC.setShopCartListElement(document.getElementById("CatList"));
		
	});
