﻿//图层弹出效果
var mout_;
var oMenu_ = null;
var skuId_;
var w_ = 0;
var h_ = 0;
function emotion_(menuName_){
    if(oMenu_==null){
        skuId_ = menuName_;
        oMenu_ = document.getElementById(menuName_);
        oMenu_.style.display = "block";
        fnLarge_();
    }else{
        clearTimeout(mout_);
        h_ = 0;
        oMenu_.style.display = "none";
        oMenu_ = document.getElementById(menuName_);
        window.setTimeout("emotion11_()",10);
    }
}
function fnLarge_(){
    if(oMenu_ != null){
        if(h_ < 80){
            h_ += 20;
            oMenu_.style.height = h_ + "px";
            window.setTimeout("fnLarge_()",15);
        }
    }
}
function fnSmall_(){
    if(oMenu_ != null){
        if(h_ > 0){
            h_ -= 40;
            oMenu_.style.height = h_+"px";
            window.setTimeout("fnSmall_()",5);
        }
        else{
            oMenu_.style.display = "none";
            oMenu_ = null;
        }
    }
}
function setMoutTimeOut_(){
    if(oMenu_ != null){
        mout_=setTimeout('fnSmall_()',300);
    }
}
function clearMoutTimeOut_(){
    clearTimeout(mout_);
}
function emotion11_(){
    if(oMenu_ != null){
        oMenu_.style.display = "block";
        fnLarge_();
    }
}