function EffectBlkSlideDown_init_(mx) { var h, v = eval('SlideDown_'+mx); try { h = eval('jsvEffectBlkH_'+mx+'||0'); } catch (e) { h = 40; } ns_setCSS_('.divEffectBlkSlideDown { overflow:hidden; position:relative; }'); ns_setCSS_('.ctrlEffectBlkSlideDown { text-align:center; }'); ns_setCSS_('.btnEffectBlkSlideDown { width:51px; height:14px; background:url(/main/wdb2/images/arrowD_51x14.png); }'); ns_setCSS_('.btnEffectBlkSlideUp { width:51px; height:14px; background:url(/main/wdb2/images/arrowU_51x14.png); display:none; }'); ns_setCSS_('.maskEffectBlkSlideDown { position:absolute; top:0px; left:0px; width:100%; }'); var div = $(v).wrap('
').parents('.divEffectBlkSlideDown').eq(0); div.after('
'); div.append('
'); div.find('.maskEffectBlkSlideDown').css({height:$(this).height()}); $('.btnEffectBlkSlideDown_'+mx+' , .maskEffectBlkSlideDown_'+mx).click(function(){ $('.maskEffectBlkSlideDown_'+mx).hide(); var div = $('.divEffectBlkSlideDown_'+mx)[0]; $(div).animate({height:div.scrollHeight}, function(){ $('.btnEffectBlkSlideDown_'+mx).hide(); $('.btnEffectBlkSlideUp_'+mx).show(); }); }); $('.btnEffectBlkSlideUp_'+mx).click(function(){ $(div).animate({height:h}, function(){ $('.btnEffectBlkSlideUp_'+mx).hide(); $('.btnEffectBlkSlideDown_'+mx+' , .maskEffectBlkSlideDown_'+mx).show(); }); }); div.animate({height:h}); } $(document).ready(function(){ setTimeout(function(){ EffectBlkSlideDown_init_(42012); }, 500); });