1 2 3 4 5 6/* 7 FILE ARCHIVED ON 5:44:08 Aug 15, 2011 AND RETRIEVED FROM THE 8 INTERNET ARCHIVE ON 2:43:57 Jul 18, 2016. 9 JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. 10 11 ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. 12 SECTION 108(a)(3)). 13*/ 14/* Copyright (c) 2006 Brandon Aaron (/web/20110815054408/http://brandonaaron.net) 15 * Dual licensed under the MIT (/web/20110815054408/http://www.opensource.org/licenses/mit-license.php) 16 * and GPL (/web/20110815054408/http://www.opensource.org/licenses/gpl-license.php) licenses. 17 * 18 * $LastChangedDate: 2007-06-19 20:25:28 -0500 (Tue, 19 Jun 2007) $ 19 * $Rev: 2111 $ 20 * 21 * Version 2.1 22 */ 23(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&parseInt($.browser.version)<=6){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};if(!$.browser.version)$.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1];})(jQuery); 24 25/************************************************* 26** jQuery Masonry version 1.3.2 27** Copyright David DeSandro, licensed MIT 28** /web/20110815054408/http://desandro.com/resources/jquery-masonry 29**************************************************/ 30(function(e){var n=e.event,o;n.special.smartresize={setup:function(){e(this).bind("resize",n.special.smartresize.handler)},teardown:function(){e(this).unbind("resize",n.special.smartresize.handler)},handler:function(j,l){var g=this,d=arguments;j.type="smartresize";o&&clearTimeout(o);o=setTimeout(function(){jQuery.event.handle.apply(g,d)},l==="execAsap"?0:100)}};e.fn.smartresize=function(j){return j?this.bind("smartresize",j):this.trigger("smartresize",["execAsap"])};e.fn.masonry=function(j,l){var g={getBricks:function(d,b,a){var c=a.itemSelector===undefined;b.$bricks=a.appendedContent===undefined?c?d.children():d.find(a.itemSelector):c?a.appendedContent:a.appendedContent.filter(a.itemSelector)},placeBrick:function(d,b,a,c,h){b=Math.min.apply(Math,a);for(var i=b+d.outerHeight(true),f=a.length,k=f,m=c.colCount+1-f;f--;)if(a[f]==b)k=f;d.applyStyle({left:c.colW*k+c.posLeft,top:b},e.extend(true,{},h.animationOptions));for(f=0;f<m;f++)c.colY[k+f]=i},setup:function(d,b,a){g.getBricks(d,a,b);if(a.masoned)a.previousData=d.data("masonry");a.colW=b.columnWidth===undefined?a.masoned?a.previousData.colW:a.$bricks.outerWidth(true):b.columnWidth;a.colCount=Math.floor(d.width()/a.colW);a.colCount=Math.max(a.colCount,1)},arrange:function(d,b,a){var c;if(!a.masoned||b.appendedContent!==undefined)a.$bricks.css("position","absolute");if(a.masoned){a.posTop=a.previousData.posTop;a.posLeft=a.previousData.posLeft}else{d.css("position","relative");var h=e(document.createElement("div"));d.prepend(h);a.posTop=Math.round(h.position().top);a.posLeft=Math.round(h.position().left);h.remove()}if(a.masoned&&b.appendedContent!==undefined){a.colY=a.previousData.colY;for(c=a.previousData.colCount;c<a.colCount;c++)a.colY[c]=a.posTop}else{a.colY=[];for(c=a.colCount;c--;)a.colY.push(a.posTop)}e.fn.applyStyle=a.masoned&&b.animate?e.fn.animate:e.fn.css;b.singleMode?a.$bricks.each(function(){var i=e(this);g.placeBrick(i,a.colCount,a.colY,a,b)}):a.$bricks.each(function(){var i=e(this),f=Math.ceil(i.outerWidth(true)/a.colW);f=Math.min(f,a.colCount);if(f===1)g.placeBrick(i,a.colCount,a.colY,a,b);else{var k=a.colCount+1-f,m=[];for(c=0;c<k;c++){var p=a.colY.slice(c,c+f);m[c]=Math.max.apply(Math,p)}g.placeBrick(i,k,m,a,b)}});a.wallH=Math.max.apply(Math,a.colY);d.applyStyle({height:a.wallH-a.posTop},e.extend(true,[],b.animationOptions));a.masoned||setTimeout(function(){d.addClass("masoned")},1);l.call(a.$bricks);d.data("masonry",a)},resize:function(d,b,a){a.masoned=!!d.data("masonry");var c=d.data("masonry").colCount;g.setup(d,b,a);a.colCount!=c&&g.arrange(d,b,a)}};return this.each(function(){var d=e(this),b={};b.masoned=!!d.data("masonry");var a=b.masoned?d.data("masonry").options:{},c=e.extend({},e.fn.masonry.defaults,a,j),h=a.resizeable;b.options=c.saveOptions?c:a;l=l||function(){};g.getBricks(d,b,c);if(!b.$bricks.length)return this;g.setup(d,c,b);g.arrange(d,c,b);!h&&c.resizeable&&e(window).bind("smartresize.masonry",function(){g.resize(d,c,b)});h&&!c.resizeable&&e(window).unbind("smartresize.masonry")})};e.fn.masonry.defaults={singleMode:false,columnWidth:undefined,itemSelector:undefined,appendedContent:undefined,saveOptions:true,resizeable:true,animate:false,animationOptions:{}}})(jQuery); 31 32/** 33 * suffusion.js - Contains all custom JavaScript functions required by Suffusion 34 */ 35 36$j = jQuery.noConflict(); 37 38$j.fn.extend({ 39 highlight: function(search, insensitive, hls_class){ 40 var regex = new RegExp("(<[^>]*>)|(\\b"+ search.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1") +")", insensitive ? "ig" : "g"); 41 return this.html(this.html().replace(regex, function(a, b, c){ 42 return (a.charAt(0) == "<") ? a : "<span class=\""+ hls_class +"\">" + c + "</span>"; 43 })); 44 } 45}); 46 47$j.fn.removeHighlight = function() { 48 return this.find("span.search-highlight").each(function() { 49 with (this.parentNode) { 50 replaceChild(this.firstChild, this); 51 normalize(); 52 } 53 }).end(); 54}; 55 56function sufHtmlEncode(value){ 57 return $j('<div/>').text(value).html(); 58} 59 60function sufHtmlDecode(value){ 61 return $j('<div/>').html(value).text(); 62} 63 64$j(document).ready(function() { 65 /* Magazine JS, for the headline section */ 66 $j('div.suf-mag-headlines div.suf-mag-headline-photo').hide(); 67 $j('div.suf-mag-headline-photo-first').show(); 68 $j('div.suf-mag-headline-block ul.mag-headlines li.suf-mag-headline-first a').addClass('tab-current'); 69 70 $j('div.suf-mag-headline-block ul.mag-headlines li a').hover(function(){ 71 var thisClass = this.className.substring(17, this.className.indexOf(" ")); 72 $j('div.suf-mag-headlines div.suf-mag-headline-photo').hide(); 73 $j('div.suf-mag-headline-block ul.mag-headlines li a').removeClass('tab-current'); 74 $j('div.suf-mag-headline-photo-' + thisClass).show(); 75 $j(this).addClass('tab-current'); 76 } ); 77 /* End Magazine JS */ 78 79 /* Tabbed Widgets */ 80 $j('div.tab-box div.sidebar-tab-content').hide(); 81 $j('div.sbtab-content-first').show(); 82 $j('div.tab-box ul.sidebar-tabs li.sbtab-first a').addClass('tab-current'); 83 84 $j('div.tab-box ul.sidebar-tabs li a').click(function(){ 85 var thisClass = this.className.substring(6, this.className.indexOf(" ")); 86 $j('div.tab-box div.sidebar-tab-content').hide(); 87 $j('div.tab-box div.sbtab-content-' + thisClass).show(); 88 $j('div.tab-box ul.sidebar-tabs li a').removeClass('tab-current'); 89 $j(this).addClass('tab-current'); 90 });
91 /* End Tabbed Widgets */ 92 93 /* JQuery-based fix for widgets that do not print "after_title" */ 94 $j('.dbx-handle').each(function() { 95 $j(this).prependTo(this.parentNode.parentNode); 96 }); 97 /* End JQuery-based fix */ 98 99 /* JQuery for tabbed sidebars */ 100 $j('.sidebar-tab .sidebar-tab-content').each(function() { 101 var parentId = this.parentNode.id; 102 var parentClass = this.parentNode.className; 103 parentClass = parentClass.substring(12); 104 $j(this).addClass('sbtab-content-' + parentId); 105 $j(this).addClass(parentClass); 106 $j(this).appendTo(this.parentNode.parentNode.parentNode); 107 }); 108 109 $j('.tabbed-sidebar ul.sidebar-tabs a').each(function() { 110 var parentId = this.parentNode.id; 111 $j(this).addClass(parentId); 112 }); 113 114 $j('#wsidebar-top.tabbed-sidebar ul.sidebar-tabs li:first').addClass('sbtab-first'); 115 $j('#wsidebar-top.tabbed-sidebar div.sidebar-tab-content:first').addClass('sbtab-content-first'); 116 $j('#sidebar.tabbed-sidebar ul.sidebar-tabs li:first').addClass('sbtab-first'); 117 $j('#sidebar.tabbed-sidebar div.sidebar-tab-content:first').addClass('sbtab-content-first'); 118 $j('#sidebar-b.tabbed-sidebar ul.sidebar-tabs li:first').addClass('sbtab-first'); 119 $j('#sidebar-b.tabbed-sidebar div.sidebar-tab-content:first').addClass('sbtab-content-first'); 120 $j('#sidebar-2.tabbed-sidebar ul.sidebar-tabs li:first').addClass('sbtab-first'); 121 $j('#sidebar-2.tabbed-sidebar div.sidebar-tab-content:first').addClass('sbtab-content-first'); 122 $j('#sidebar-2-b.tabbed-sidebar ul.sidebar-tabs li:first').addClass('sbtab-first'); 123 $j('#sidebar-2-b.tabbed-sidebar div.sidebar-tab-content:first').addClass('sbtab-content-first'); 124 $j('#wsidebar-bottom.tabbed-sidebar ul.sidebar-tabs li:first').addClass('sbtab-first'); 125 $j('#wsidebar-bottom.tabbed-sidebar div.sidebar-tab-content:first').addClass('sbtab-content-first'); 126 127 $j('div.tabbed-sidebar div.sidebar-tab-content').hide(); 128 $j('div.sbtab-content-first').show(); 129 $j('div.tabbed-sidebar ul.sidebar-tabs li.sbtab-first a').addClass('tab-current'); 130 131 $j('div.tabbed-sidebar ul.sidebar-tabs li a').click(function(){ 132 $j(this).removeClass('tab-current'); 133 var thisClass = this.className.substring(12, this.className.length); 134 var parentId = this.parentNode.parentNode.parentNode.id; 135 $j('#' + parentId + '.tabbed-sidebar div.sidebar-tab-content').hide(); 136 $j('#' + parentId + '.tabbed-sidebar div.sbtab-content-' + thisClass).show(); 137 $j('#' + parentId + '.tabbed-sidebar ul.sidebar-tabs li a').removeClass('tab-current'); 138 $j(this).addClass('tab-current'); 139 }); 140 /* End tabbed sidebars */ 141 142 $j("ul.sf-menu > li > ul").each(function() { 143 var parentClass = this.parentNode.className; 144 var a_tag_h = this.parentNode.childNodes[0]; 145 var a_tag = $j(a_tag_h); 146 a_tag.prepend("<!--[if !IE]>--><span class='down-ptr'> </span><!--<![endif]-->"); 147 a_tag.append("<!--[if lt IE 7]> ↓<![endif]--> <!--[if (!IE)|(gte IE 7)]><span class='down-ptr'> </span><![endif]-->"); 148 a_tag.addClass('with-arrow'); 149 }); 150 151 $j("ul.sf-menu ul ul").each(function() { 152 var parentClass = this.parentNode.className; 153 var a_tag_h = this.parentNode.childNodes[0]; 154 var a_tag = $j(a_tag_h); 155 a_tag.prepend("<!--[if !IE]>--><span class='float-ptr'> </span><!--<![endif]-->"); 156 a_tag.append("<!--[if lt IE 7]> →<![endif]--> <!--[if (!IE)|(gte IE 7)]><span class='float-ptr'> </span><![endif]-->"); 157 a_tag.addClass('drop'); 158 }); 159 160 $j("#nav ul.sf-menu li").hover( 161 function() { 162 if (suf_nav_effect == 'fade') { 163 $j(this).children('ul:first').fadeIn(suf_nav_delay).css({visibility: "visible"}); 164 } 165 else { 166 $j(this).children('ul:first').show(suf_nav_delay).css({visibility: "visible"}); 167 } 168 }, 169 function() { 170 $j(this).children('ul:first').hide(); 171 }).bgIframe({opacity: 'show'}); 172 173 $j("#nav-top ul.sf-menu li").hover( 174 function() { 175 if (suf_navt_effect == 'fade') { 176 $j(this).find('ul:first').show(suf_navt_delay).fadeIn().css({visibility: "visible"}); 177 } 178 else { 179 $j(this).find('ul:first').show(suf_navt_delay).css({visibility: "visible"}); 180 } 181 }, 182 function() { 183 $j(this).find('ul:first').css({visibility: "hidden"}); 184 }).bgIframe({opacity: 'show'}); 185 186 // Expand Panel 187 $j("#top-bar-right-spanel-tab .open").click(function(){ 188 $j("#top-bar-right-spanel").slideDown("medium"); 189 }); 190 // Collapse Panel 191 $j("#top-bar-right-spanel-tab .close").click(function(){ 192 $j("#top-bar-right-spanel").slideUp("medium"); 193 }); 194 // Switch buttons from "Log In | Register" to "Close Panel" on click 195 $j("#top-bar-right-spanel-tab .toggle a").click(function () { 196 $j("#top-bar-right-spanel-tab .toggle a").toggle(); 197 }); 198 199 $j('#search-info input[type="checkbox"].search-hl').change(function(event) { 200 var search = $j('#search-term').val(); 201 var hls_class = 'search-highlight'; 202 if ($j(this).attr('checked')) { 203 // Highlight search results 204 $j('#content .entry').each(function() { 205 var quotes = search.match(/"([^"]+)"/g); 206 var len = 0; 207 var matches = new Array(); 208 if (quotes != null) { 209 len = quotes.length; 210 for (i=0; i<len; i++) { 211 quotes[i] = quotes[i].replace(/"/g, ''); 212 matches[matches.length] = quotes[i]; 213 search = search.replace(quotes[i], ' '); 214 } 215 } 216 217 var no_quotes = search.match(/\b[\S]+\b/g); 218 if (no_quotes != null) { 219 len = no_quotes.length; 220 for (i=0; i<len; i++) { 221 matches[matches.length] = no_quotes[i]; 222 } 223 } 224 225 len = matches.length; 226 for (i=0; i<len; i++) { 227 var search_string = matches[i];
228 $j(this).highlight(search_string); 229 $j(this).highlight(search_string, true, hls_class); 230 } 231 }); 232 } 233 else { 234 //Un-highlight search results 235 $j('#content .entry').each(function() { 236 $j(this).removeHighlight(); 237 }); 238 } 239 }); 240 241 if (typeof suf_jq_masonry_enabled != 'undefined' && suf_jq_masonry_enabled == 'enabled') { 242 //$j("#top-bar-right-spanel").masonry(); 243 //$j("#widgets-above-header").masonry(); 244 $j("#horizontal-outer-widgets-1").masonry(); 245 $j("#horizontal-outer-widgets-2").masonry(); 246 $j("#ad-hoc-1").masonry(); 247 $j("#ad-hoc-2").masonry(); 248 $j("#ad-hoc-3").masonry(); 249 $j("#ad-hoc-4").masonry(); 250 $j("#ad-hoc-5").masonry(); 251 } 252 253 // If the HTML height attribute is present for images, the max-width setting really hammers the image proportions. 254 $j(".entry img").removeAttr('height'); 255 256 // Fixes for NGG on IE8. This should ideally be on NGG's plugin itself, but given their support or lack thereof :-( ... 257 $j(".ngg-gallery-thumbnail img").removeAttr('height'); 258 $j(".ngg-gallery-thumbnail img").removeAttr('width'); 259 260 $j(".widget_calendar tbody td a").each(function() { 261 var parent = this.parentNode; 262 //var a_tag_h = this.parentNode.childNodes[0]; 263 var td_tag = $j(parent); 264 td_tag.addClass('with-posts'); 265 }); 266 267 $j('a.suf-tile-icon').click(function() { 268 var class_name = this.className; 269 var thisId = this.id; 270 var lastSep = thisId.lastIndexOf('-'); 271 var elementType = thisId.substr(0, lastSep); 272 var elementId = thisId.substr(lastSep); 273 var textElementId = elementType + '-text' + elementId; 274 $j('#' + textElementId).toggle(); 275 if (class_name.indexOf('clicked') > -1) { 276 $j(this).removeClass('clicked'); 277 } 278 else { 279 $j(this).addClass('clicked'); 280 } 281 return false; 282 }); 283 284 // JQuery Cycle stops if there is only one image in it. The following snippet fixes the issue. 285 $j('#sliderContent, .sliderContent').each(function() { 286 if ($j(this).children().length == 1) { 287 var single = this.firstChild; 288 $j(single).show(); 289 } 290 }); 291 292 $j('.page-nav-right a, .page-nav-left a').each(function() { 293 var parentContainer = $j(this).parent().parent(); 294 var height = 0.45 * parentContainer.height(); 295 $j(this).css({top: height + 'px'}); 296 }); 297});
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.