if ('undefined' === typeof BG_SHCE_USE_EFFECTS) { BG_SHCE_USE_EFFECTS = '0'; } if ('undefined' === typeof BG_SHCE_TOGGLE_SPEED) { BG_SHCE_TOGGLE_SPEED = '0'; } if ('undefined' === typeof BG_SHCE_TOGGLE_OPTIONS) { BG_SHCE_TOGGLE_OPTIONS = 'swing'; } if ('undefined' === typeof BG_SHCE_TOGGLE_EFFECT) { BG_SHCE_TOGGLE_EFFECT = ''; } function bgExpandCollapsedContent() { var bgCollapseExpandItems = document.querySelectorAll('input[bg_collapse_expand]'); for ( i=0; i option'); if (effectOpts.length > 0) { var i = 0; while ( i < effectOpts.length ) { if (effectOpts[i].value === BG_SHCE_TOGGLE_EFFECT) { effectOpts[i].selected = true; } i++; } } if (BG_SHCE_USE_EFFECTS === '1') { jQuery('.bg-effects').show(); } } jQuery(document).ready(function() { bgExpandCollapsedContent(); bgSelectedEffect(); });