// Mobile Sentience LLC - http://www.mobilesentience.com - oss@mobilesentience.com - @MobileSentience function confirmDeleteSource($name){ return confirm("Are you sure you wish to permanently remove " + $name + " from Ad Sources?"); } // not animated collapse/expand function togglePannelStatus(content){ var expand = (content.style.display=="none"); content.style.display = (expand ? "block" : "none"); toggleChevronIcon(content); } // current animated collapsible panel content var currentContent = null; function togglePannelAnimatedStatus(content, interval, step){ // wait for another animated expand/collapse action to end if (currentContent==null){ currentContent = content; var expand = (content.style.display=="none"); if (expand) content.style.display = "block"; var max_height = content.offsetHeight; var step_height = step + (expand ? 0 : -max_height); toggleChevronIcon(content); // schedule first animated collapse/expand event content.style.height = Math.abs(step_height) + "px"; setTimeout("togglePannelAnimatingStatus(" + interval + "," + step + "," + max_height + "," + step_height + ")", interval); } } function togglePannelAnimatingStatus(interval, step, max_height, step_height){ var step_height_abs = Math.abs(step_height); // schedule next animated collapse/expand event if (step_height_abs>=step && step_height_abs<=(max_height-step)){ step_height += step; currentContent.style.height = Math.abs(step_height) + "px"; setTimeout("togglePannelAnimatingStatus(" + interval + "," + step + "," + max_height + "," + step_height + ")", interval); }else { // animated expand/collapse done if (step_height_abs 0); chevron.src = chevron.src.split(expand ? "expand.gif" : "collapse.gif").join(expand ? "collapse.gif" : "expand.gif"); } function toggleDisplayedRows(display, hide){ var drow = document.getElementById(display); var hrow = document.getElementById(hide); hrow.style.display = 'none'; drow.style.display = ''; }