var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); /*! * Collapse-O-Matic JavaSctipt v1.5.14 * http://plugins.twinpictures.de/plugins/collapse-o-matic/ * * Copyright 2014, Twinpictures * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, blend, trade, * bake, hack, scramble, difiburlate, digest and/or sell copies of the Software, * and to permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ function collapse_init() { //force collapse jQuery('.force_content_collapse').each(function(index) { jQuery(this).css('display', 'none'); }); //inital collapse jQuery('.collapseomatic:not(.colomat-close)').each(function(index) { var thisid = jQuery(this).attr('id'); jQuery('#target-'+thisid).css('display', 'none'); }); //inital swaptitle for pre-expanded elements jQuery('.collapseomatic.colomat-close').each(function(index) { var thisid = jQuery(this).attr('id'); if(jQuery("#swap-"+thisid).length > 0){ swapTitle(this, "#swap-"+thisid ); } if(jQuery("#swapexcerpt-"+thisid).length > 0){ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid); } }); } function swapTitle(origObj, swapObj){ var orightml = jQuery(origObj).html(); var swaphtml = jQuery(swapObj).html(); jQuery(origObj).html(swaphtml); jQuery(swapObj).html(orightml); //is cufon involved? if so, do that thing if(swaphtml.indexOf(" 0){ swapTitle(this, "#swap-"+id); } //check if the excerpt needs to be swapped out if(jQuery("#swapexcerpt-"+id).length > 0){ swapTitle("#exerpt-"+id, "#swapexcerpt-"+id); } toggleState (jQuery(this), id, false, false); //check if there are nested children that need to be collapsed var ancestors = jQuery('.collapseomatic', '#target-'+id); ancestors.each(function(index) { jQuery(this).removeClass('colomat-close'); var thisid = jQuery(this).attr('id'); jQuery('#target-'+thisid).css('display', 'none'); }) } }); } function closeOtherMembers(rel, id){ jQuery('.collapseomatic[rel="' + rel +'"]').each(function(index) { if(jQuery(this).hasClass('colomat-expand-only') && jQuery(this).hasClass('colomat-close')){ return; } //add close class if open if(jQuery(this).attr('id') != id && jQuery(this).hasClass('colomat-close') && jQuery(this).attr('rel') !== undefined){ //collapse the element jQuery(this).removeClass('colomat-close'); var thisid = jQuery(this).attr('id'); //remove parent highlight class jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight'); //check if the title needs to be swapped out if(jQuery("#swap-"+thisid).length > 0){ swapTitle(this, "#swap-"+thisid); } //check if the excerpt needs to be swapped out if(jQuery("#swapexcerpt-"+thisid).length > 0){ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid); } //check for snap-shut if(!jQuery(this).hasClass('colomat-close') && jQuery(this).hasClass('snap-shut')){ jQuery('#target-'+thisid).hide(); } else{ toggleState (jQuery(this), thisid, false, false); } //check if there are nested children that need to be collapsed var ancestors = jQuery('.collapseomatic', '#target-'+id); ancestors.each(function(index) { if(jQuery(this).hasClass('colomat-expand-only') && jQuery(this).hasClass('colomat-close')){ return; } //deal with extra tirggers var pre_id = id.split('-'); if (pre_id[0].indexOf('extra') != '-1') { //console.log('this is an extra trigger'); pre = pre_id.splice(0, 1); id = pre_id.join('-'); //deal with any scroll to links from the Extra Collapse Trigger if(jQuery(this).hasClass('scroll-to-trigger')){ var target_offset = jQuery('#'+id).offset(); offset_top = target_offset.top; } //deal with any scroll to links from the Title Trigger if(jQuery('#'+id).hasClass('scroll-to-trigger')){ offset_top = jQuery('#scrollonclose-'+id).attr('name'); if (offset_top == 'auto') { var target_offset = jQuery('#'+id).offset(); offset_top = target_offset.top; } } //toggle master trigger arrow jQuery('#'+id).toggleClass('colomat-close'); //toggle any other extra trigger arrows jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close'); } if(jQuery(this).attr('id').indexOf('bot-') == '-1'){ jQuery(this).removeClass('colomat-close'); var thisid = jQuery(this).attr('id'); //check if the title needs to be swapped out if(jQuery("#swap-"+thisid).length > 0){ swapTitle(this, "#swap-"+thisid); } //check if the excerpt needs to be swapped out if(jQuery("#swapexcerpt-"+thisid).length > 0){ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid); } jQuery('#target-'+thisid).css('display', 'none'); } }) } }); } function colomat_expandall(loop_items){ if (!loop_items){ loop_items = jQuery('.collapseomatic:not(.colomat-close)'); } loop_items.each(function(index) { jQuery(this).addClass('colomat-close'); var thisid = jQuery(this).attr('id'); jQuery('#parent-'+thisid).addClass('colomat-parent-highlight'); if(jQuery("#swap-"+thisid).length > 0){ swapTitle(this, "#swap-"+thisid); } if(jQuery("#swapexcerpt-"+thisid).length > 0){ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid); } toggleState(jQuery(this), thisid, false, false); }); } function colomat_collapseall(loop_items){ if (!loop_items){ loop_items = jQuery('.collapseomatic.colomat-close'); } loop_items.each(function(index) { if(jQuery(this).hasClass('colomat-expand-only') && jQuery(this).hasClass('colomat-close')){ return; } jQuery(this).removeClass('colomat-close'); var thisid = jQuery(this).attr('id'); jQuery('#parent-'+thisid).removeClass('colomat-parent-highlight'); if(jQuery("#swap-"+thisid).length > 0){ swapTitle(this, "#swap-"+thisid); } if(jQuery("#swapexcerpt-"+thisid).length > 0){ swapTitle("#excerpt-"+thisid, "#swapexcerpt-"+thisid); } toggleState(jQuery(this), thisid, false, false); }); } jQuery(document).ready(function() { //console.log(colomatduration, colomatslideEffect); collapse_init(); //Display the collapse wrapper... use to reverse the show-all on no JavaScript degredation. jQuery('.content_collapse_wrapper').each(function(index) { jQuery(this).css('display', 'inline'); }); //hover jQuery(document).on({ mouseenter: function(){ //stuff to do on mouseover jQuery(this).addClass('colomat-hover'); }, mouseleave: function(){ //stuff to do on mouseleave jQuery(this).removeClass('colomat-hover'); } }, '.collapseomatic'); //pass the element as an argument to .on //tabindex enter jQuery(document).on('keypress','.collapseomatic', function(event) { if (event.which == 13) { event.currentTarget.click(); }; }); //the main collapse/expand function jQuery(document).on('click', '.collapseomatic', function(event) { var offset_top; //alert('phones ringin dude'); if(jQuery(this).hasClass('colomat-expand-only') && jQuery(this).hasClass('colomat-close')){ return; } var id = jQuery(this).attr('id'); //deal with any scroll to links if(jQuery(this).hasClass('colomat-close') && jQuery(this).hasClass('scroll-to-trigger')){ offset_top = jQuery('#scrollonclose-'+id).attr('name'); if (offset_top == 'auto') { var target_offset = jQuery('#'+id).offset(); offset_top = target_offset.top; } } var id_arr = id.split('-'); //deal with extra tirggers if (id_arr[0].indexOf('extra') != '-1') { //console.log('this is an extra trigger'); pre = id_arr.splice(0, 1); id = id_arr.join('-'); //deal with any scroll to links from the Extra Collapse Trigger if(jQuery(this).hasClass('scroll-to-trigger')){ var target_offset = jQuery('#'+id).offset(); offset_top = target_offset.top; } //deal with any scroll to links from the Title Trigger if(jQuery('#'+id).hasClass('scroll-to-trigger')){ offset_top = jQuery('#scrollonclose-'+id).attr('name'); if (offset_top == 'auto') { var target_offset = jQuery('#'+id).offset(); offset_top = target_offset.top; } } //toggle master trigger arrow jQuery('#'+id).toggleClass('colomat-close'); //toggle any other extra trigger arrows jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close'); } else if(id.indexOf('bot-') != '-1'){ id = id.substr(4); jQuery('#'+id).toggleClass('colomat-close'); //deal with any scroll to links from the Internal Collapse Trigger if(jQuery(this).hasClass('scroll-to-trigger')){ var target_offset = jQuery('#'+id).offset(); offset_top = target_offset.top; } //deal with any scroll to links from the Title Trigger if(jQuery('#'+id).hasClass('scroll-to-trigger')){ offset_top = jQuery('#scrollonclose-'+id).attr('name'); if (offset_top == 'auto') { var target_offset = jQuery('#'+id).offset(); offset_top = target_offset.top; } } } else{ jQuery(this).toggleClass('colomat-close'); //toggle any extra triggers jQuery('[id^=extra][id$='+id+']').toggleClass('colomat-close'); } //check if the title needs to be swapped out if(jQuery("#swap-"+id).length > 0){ swapTitle(jQuery('#'+id), "#swap-"+id); } //check if the excerpt needs to be swapped out if(jQuery("#swapexcerpt-"+id).length > 0){ swapTitle("#excerpt-"+id, "#swapexcerpt-"+id); } //add visited class jQuery(this).addClass('colomat-visited'); //toggle parent highlight class var parentID = 'parent-'+id; jQuery('#' + parentID).toggleClass('colomat-parent-highlight'); //check for snap-shut if(!jQuery(this).hasClass('colomat-close') && jQuery(this).hasClass('snap-shut')){ jQuery('#target-'+id).hide(); } else{ toggleState (jQuery(this), id, true, id); } //deal with grouped items if needed if(jQuery(this).attr('rel') !== undefined){ var rel = jQuery(this).attr('rel'); if(rel.indexOf('-highlander') != '-1'){ closeOtherMembers(rel, id); } else{ closeOtherGroups(rel); } } if(offset_top){ jQuery('html, body').animate({scrollTop:offset_top}, 500); } }); jQuery(document).on('click', '.expandall', function(event) { if(jQuery(this).attr('rel') !== undefined){ var rel = jQuery(this).attr('rel'); var loop_items = jQuery('.collapseomatic:not(.colomat-close)[rel="' + rel +'"]'); } else{ var loop_items = jQuery('.collapseomatic:not(.colomat-close)'); } colomat_expandall(loop_items); }); jQuery(document).on('click', '.collapseall', function(event) { if(jQuery(this).attr('rel') !== undefined){ var rel = jQuery(this).attr('rel'); var loop_items = jQuery('.collapseomatic.colomat-close[rel="' + rel +'"]'); } else { var loop_items = jQuery('.collapseomatic.colomat-close'); } colomat_collapseall(loop_items); }); //handle new page loads with anchor var myFile = document.location.toString(); if (myFile.match('#')) { // the URL contains an anchor // click the navigation item corresponding to the anchor var anchor_arr = myFile.split('#'); if(anchor_arr.length > 1){ junk = anchor_arr.splice(0, 1); anchor = anchor_arr.join('#'); } else{ anchor = anchor_arr[0]; } if( !jQuery('#' + anchor).hasClass('colomat-close') ){ jQuery('#' + anchor).click(); } //expand any nested parents jQuery('#' + anchor).parents('.collapseomatic_content, .collapseomatic_content_inline').each(function(index) { parent_arr = jQuery(this).attr('id').split('-'); junk = parent_arr.splice(0, 1); parent = parent_arr.join('-'); if( !jQuery('#' + parent).hasClass('colomat-close') ){ jQuery('#' + parent).click(); } }) } //handle anchor links within the same page jQuery(document).on('click', 'a.expandanchor', function(event) { event.preventDefault(); var fullurl = jQuery(this).attr('href'); if (fullurl.match('#')) { // the URL contains an anchor // click the navigation item corresponding to the anchor var anchor_arr = fullurl.split('#'); if(anchor_arr.length > 1){ junk = anchor_arr.splice(0, 1); anchor = anchor_arr.join('#'); } else{ anchor = anchor_arr[0]; } if(!jQuery('#' + anchor).hasClass('colomat-close')){ jQuery('#' + anchor).click(); } //expand any nested parents jQuery('#' + anchor).parents('.collapseomatic_content, .collapseomatic_content_inline').each(function(index) { parent_arr = jQuery(this).attr('id').split('-'); junk = parent_arr.splice(0, 1); parent = parent_arr.join('-'); if(!jQuery('#' + parent).hasClass('colomat-close')){ jQuery('#' + parent).click(); } }) } }); jQuery(document).on('click', 'a.colomat-nolink', function(event) { event.preventDefault(); }); }); } /* FILE ARCHIVED ON 23:44:08 May 14, 2016 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 21:00:46 Apr 21, 2026. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): capture_cache.get: 0.964 load_resource: 106.472 PetaboxLoader3.resolve: 45.111 PetaboxLoader3.datanode: 26.11 */