for(i=0; j=document.getElementById("tagContent"+i); i++){ j.style.display = "none"; } document.getElementById(showContent).style.display = "block"; } var nsliplay; $("#focuslibox a").eq(0).animate({opacity:"1"},0); $("#focuslibox a").eq(0).css("z-index","2"); var sltop = $("#slitxt").position().top; $("#nwbarli li").each(function(i){ $("#nwbarli li").eq(i).click(function() { $(this).addClass("cursli").siblings().removeClass("cursli"); $("#focuslibox a").eq(i).stop().animate({ opacity: "1" },600).css("z-index", "2").siblings().stop().animate({ opacity: "0" },600).css("z-index", "1"); $("#slitxt li").eq(i).show().siblings().hide(); })