1var ddaccordion={ajaxloadingmsg:'<br />Loading Content...',headergroup:{},contentgroup:{},preloadimages:function($images){$images.each(function(){var preloadimage=new Image() 2 preloadimage.src=this.src})},expandone:function(headerclass,selected){this.toggleone(headerclass,selected,"expand")},collapseone:function(headerclass,selected){this.toggleone(headerclass,selected,"collapse")},expandall:function(headerclass){var $headers=this.headergroup[headerclass] 3 this.contentgroup[headerclass].filter(':hidden').each(function(){$headers.eq(parseInt($(this).attr('contentindex'))).trigger("evt_accordion")})},collapseall:function(headerclass){var $headers=this.headergroup[headerclass] 4 this.contentgroup[headerclass].filter(':visible').each(function(){$headers.eq(parseInt($(this).attr('contentindex'))).trigger("evt_accordion")})},toggleone:function(headerclass,selected,optstate){var $targetHeader=this.headergroup[headerclass].eq(selected) 5 var $subcontent=this.contentgroup[headerclass].eq(selected) 6 if(typeof optstate=="undefined"||optstate=="expand"&&$subcontent.is(":hidden")||optstate=="collapse"&&$subcontent.is(":visible")) 7 $targetHeader.trigger("evt_accordion")},ajaxloadcontent:function($targetHeader,$targetContent,config,callback){var ajaxinfo=$targetHeader.data('ajaxinfo') 8 function handlecontent(content){if(content){ajaxinfo.cacheddata=content 9 ajaxinfo.status="cached" 10 if($targetContent.queue("fx").length==0){$targetContent.hide().html(content) 11 ajaxinfo.status="complete" 12 callback()}} 13 if(ajaxinfo.status!="complete"){setTimeout(function(){handlecontent(ajaxinfo.cacheddata)},100)}} 14 if(ajaxinfo.status=="none"){$targetContent.html(this.ajaxloadingmsg) 15 $targetContent.slideDown(config.animatespeed) 16 ajaxinfo.status="loading" 17 $.ajax({url:ajaxinfo.url,error:function(ajaxrequest){handlecontent('Error fetching content. Server Response: '+ajaxrequest.responseText)},success:function(content){content=(content=="")?" ":content 18 handlecontent(content)}})}else if(ajaxinfo.status=="loading") 19 handlecontent(ajaxinfo.cacheddata)},expandit:function($targetHeader,$targetContent,config,useractivated,directclick,skipanimation){var ajaxinfo=$targetHeader.data('ajaxinfo') 20 if(ajaxinfo){if(ajaxinfo.status=="none"||ajaxinfo.status=="loading") 21 this.ajaxloadcontent($targetHeader,$targetContent,config,function(){ddaccordion.expandit($targetHeader,$targetContent,config,useractivated,directclick)}) 22 else if(ajaxinfo.status=="cached"){$targetContent.html(ajaxinfo.cacheddata) 23 ajaxinfo.cacheddata=null 24 ajaxinfo.status="complete"}} 25 this.transformHeader($targetHeader,config,"expand") 26 $targetContent.slideDown(skipanimation?0:config.animatespeed,function(){config.onopenclose($targetHeader.get(0),parseInt($targetHeader.attr('headerindex')),$targetContent.css('display'),useractivated) 27 if(config.postreveal=="gotourl"&&directclick){var targetLink=($targetHeader.is("a"))?$targetHeader.get(0):$targetHeader.find('a:eq(0)').get(0) 28 if(targetLink) 29 setTimeout(function(){location=targetLink.href},200)}})},collapseit:function($targetHeader,$targetContent,config,isuseractivated){this.transformHeader($targetHeader,config,"collapse") 30 $targetContent.slideUp(config.animatespeed,function(){config.onopenclose($targetHeader.get(0),parseInt($targetHeader.attr('headerindex')),$targetContent.css('display'),isuseractivated)})},transformHeader:function($targetHeader,config,state){$targetHeader.addClass((state=="expand")?config.cssclass.expand:config.cssclass.collapse).removeClass((state=="expand")?config.cssclass.collapse:config.cssclass.expand) 31 if(config.htmlsetting.location=='src'){$targetHeader=($targetHeader.is("img"))?$targetHeader:$targetHeader.find('img').eq(0) 32 $targetHeader.attr('src',(state=="expand")?config.htmlsetting.expand:config.htmlsetting.collapse)}else if(config.htmlsetting.location=="prefix") 33 $targetHeader.find('.accordprefix').html((state=="expand")?config.htmlsetting.expand:config.htmlsetting.collapse) 34 else if(config.htmlsetting.location=="suffix") 35 $targetHeader.find('.accordsuffix').html((state=="expand")?config.htmlsetting.expand:config.htmlsetting.collapse)},urlparamselect:function(headerclass){var result=window.location.search.match(new RegExp(headerclass+"=((\\d+)(,(\\d+))*)","i")) 36 if(result!=null)
37 result=RegExp.$1.split(',') 38 return result},getCookie:function(Name){var re=new RegExp(Name+"=[^;]+","i") 39 if(document.cookie.match(re)) 40 return document.cookie.match(re)[0].split("=")[1] 41 return null},setCookie:function(name,value){document.cookie=name+"="+value+"; path=/"},init:function(config){document.write('<style type="text/css">\n') 42 document.write('.'+config.contentclass+'{display: none}\n') 43 document.write('a.hiddenajaxlink{display: none}\n') 44 document.write('<\/style>') 45 jQuery(document).ready(function($){ddaccordion.urlparamselect(config.headerclass) 46 var persistedheaders=ddaccordion.getCookie(config.headerclass) 47 ddaccordion.headergroup[config.headerclass]=$('.'+config.headerclass) 48 ddaccordion.contentgroup[config.headerclass]=$('.'+config.contentclass) 49 var $headers=ddaccordion.headergroup[config.headerclass] 50 var $subcontents=ddaccordion.contentgroup[config.headerclass] 51 config.cssclass={collapse:config.toggleclass[0],expand:config.toggleclass[1]} 52 config.revealtype=config.revealtype||"click" 53 config.revealtype=config.revealtype.replace(/mouseover/i,"mouseenter") 54 if(config.revealtype=="clickgo"){config.postreveal="gotourl" 55 config.revealtype="click"} 56 if(typeof config.togglehtml=="undefined") 57 config.htmlsetting={location:"none"}else config.htmlsetting={location:config.togglehtml[0],collapse:config.togglehtml[1],expand:config.togglehtml[2]} 58 config.oninit=(typeof config.oninit=="undefined")?function(){}:config.oninit 59 config.onopenclose=(typeof config.onopenclose=="undefined")?function(){}:config.onopenclose 60 var lastexpanded={} 61 var expandedindices=ddaccordion.urlparamselect(config.headerclass)||((config.persiststate&&persistedheaders!=null)?persistedheaders:config.defaultexpanded) 62 if(typeof expandedindices=='string') 63 expandedindices=expandedindices.replace(/c/ig,'').split(',') 64 if(expandedindices.length==1&&expandedindices[0]=="-1") 65 expandedindices=[] 66 if(config.collapseprev&&expandedindices.length>1) 67 expandedindices=[expandedindices.pop()] 68 if(config.onemustopen&&expandedindices.length==0) 69 expandedindices=[0] 70 $headers.each(function(index){var $header=$(this) 71 if(/(prefix)|(suffix)/i.test(config.htmlsetting.location)&&$header.html()!=""){$('<span class="accordprefix"></span>').prependTo(this) 72 $('<span class="accordsuffix"></span>').appendTo(this)} 73 $header.attr('headerindex',index+'h') 74 $subcontents.eq(index).attr('contentindex',index+'c') 75 var $subcontent=$subcontents.eq(index) 76 var $hiddenajaxlink=$subcontent.find('a.hiddenajaxlink:eq(0)') 77 if($hiddenajaxlink.length==1){$header.data('ajaxinfo',{url:$hiddenajaxlink.attr('href'),cacheddata:null,status:'none'})} 78 var needle=(typeof expandedindices[0]=="number")?index:index+'' 79 if(jQuery.inArray(needle,expandedindices)!=-1){ddaccordion.expandit($header,$subcontent,config,!1,!1,!config.animatedefault) 80 lastexpanded={$header:$header,$content:$subcontent}}else{$subcontent.hide() 81 config.onopenclose($header.get(0),parseInt($header.attr('headerindex')),$subcontent.css('display'),!1) 82 ddaccordion.transformHeader($header,config,"collapse")}}) 83 $headers.bind("evt_accordion",function(e,isdirectclick){var $subcontent=$subcontents.eq(parseInt($(this).attr('headerindex'))) 84 if($subcontent.css('display')=="none"){ddaccordion.expandit($(this),$subcontent,config,!0,isdirectclick) 85 if(config.collapseprev&&lastexpanded.$header&&$(this).get(0)!=lastexpanded.$header.get(0)){ddaccordion.collapseit(lastexpanded.$header,lastexpanded.$content,config,!0)} 86 lastexpanded={$header:$(this),$content:$subcontent}}else if(!config.onemustopen||config.onemustopen&&lastexpanded.$header&&$(this).get(0)!=lastexpanded.$header.get(0)){ddaccordion.collapseit($(this),$subcontent,config,!0)}}) 87 $headers.bind(config.revealtype,function(){if(config.revealtype=="mouseenter"){clearTimeout(config.revealdelay) 88 var headerindex=parseInt($(this).attr("headerindex")) 89 config.revealdelay=setTimeout(function(){ddaccordion.expandone(config.headerclass,headerindex)},config.mouseoverdelay||0)}else{$(this).trigger("evt_accordion",[!0]) 90 return!1}}) 91 $headers.bind("mouseleave",function(){clearTimeout(config.revealdelay)}) 92 config.oninit($headers.get(),expandedindices) 93 $(window).bind('unload',function(){$headers.unbind() 94 var expandedindices=[] 95 $subcontents.filter(':visible').each(function(index){expandedindices.push($(this).attr('contentindex'))}) 96 if(config.persiststate==!0&&$headers.length>0){expandedindices=(expandedindices.length==0)?'-1c':expandedindices
97 ddaccordion.setCookie(config.headerclass,expandedindices)}})})}} 98 ddaccordion.preloadimages(jQuery(ddaccordion.ajaxloadingmsg).filter('img'))
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.