1var $ = jQuery.noConflict(); 2 3$(document).ready(function($) { 4 "use strict"; 5 6 7 8 9 /*-------------------------------------------------*/ 10 /* = Sliders - [Flexslider] 11 /*-------------------------------------------------*/ 12 13jQuery(window).load(function($) { 14 15 jQuery("ul#ticker01").show(); 16 jQuery("ul#ticker01").liScroll({travelocity: 0.07}) 17 18 19 20 }); 21 22 23 24//Check Also Box 25 26/* 27 jQuery(function(){ 28 29 var $the_post = jQuery(".post-listing"); 30 var $window = jQuery(window); 31 32 var $check_also_box = jQuery("#check-also-box"); 33 if( htmag.is_singular && $check_also_box.length > 0 ){ 34 var articleHeight = $the_post.outerHeight(); 35 var checkAlsoClosed = false ; 36 37 $window.scroll(function() { 38 if( !checkAlsoClosed ) { 39 var articleScroll = jQuery(document).scrollTop(); 40 if ( articleScroll > articleHeight ){ $check_also_box.addClass('show-check-also');} 41 else { $check_also_box.removeClass('show-check-also');} 42 } 43 }); 44 } 45 jQuery('#check-also-close').click(function() { 46 $check_also_box.removeClass("show-check-also"); 47 checkAlsoClosed = true ; 48 return false; 49 }); 50 }); 51*/ 52 53 54 jQuery(function(){ 55 56 var $the_post = jQuery(".post-listing"); 57 var $window = jQuery(window); 58 59 var $check_also_box = jQuery("#check-also-box"); 60 //if( htmag.is_singular && $check_also_box.length > 0 ){ 61 if( $check_also_box.length > 0 ){ 62 63 var articleHeight = $the_post.outerHeight(); 64 var checkAlsoClosed = false ; 65 66 $window.scroll(function() { 67 if( !checkAlsoClosed ) { 68 var articleScroll = jQuery(document).scrollTop(); 69 if ( articleScroll >
69 articleHeight ){ $check_also_box.addClass('show-check-also');} 70 else { $check_also_box.removeClass('show-check-also');} 71 } 72 }); 73 } 74 jQuery('#check-also-close').click(function() { 75 $check_also_box.removeClass("show-check-also"); 76 checkAlsoClosed = true ; 77 return false; 78 }); 79 }); 80 81 82 83 84 85 //search-buttons 86 $('.search-buttons .search-icon').click(function() { 87 $(this).parent().toggleClass('active'); 88 return false; 89 }); 90 91 92////////////////////////////////////////////////////////////////////////// 93// Go to top 94////////////////////////////////////////////////////////////////////////// 95 96 jQuery(window).scroll(function(){ 97 if (jQuery(this).scrollTop() > 100) { 98 jQuery('#go-top').css({bottom:"15px"}); 99 } else { 100 jQuery('#go-top').css({bottom:"-100px"}); 101 102 } 103 }); 104 jQuery('#go-top').click(function(){ 105 jQuery('html, body').animate({scrollTop: '0px'}, 800); 106 return false; 107 }); 108 109 110 $('.more.sharing-link').click(function() { 111 jQuery('.share-mask').toggleClass('active'); 112 jQuery('.more.sharing-link').toggleClass('is-active'); 113 return false; 114 }); 115 116 117 /*-------------------------------------------------*/ 118 /* = Tabs Widget - { Popular, Recent and Comments } 119 /*-------------------------------------------------*/ 120 121 122 $('.tab-links li a').live('click', function(e){ 123 e.preventDefault(); 124 if (!$(this).parent('li').hasClass('active')){ 125 var link = $(this).attr('href'); 126 127 $(this).parents('ul').children('li').removeClass('active'); 128 $(this).parent().addClass('active'); 129 130 $('.tabs-widget > div').hide(); 131 132 $(link).fadeIn(); 133 } 134 }); 135 136 137/* Toggle Block */ 138 139 $("ul.toggle-box li").each(function() { 140 $(this).children(".toggle-box-content").not(".active").css('display', 'none'); 141 142 $(this).children(".toggle-box-head").bind("click", function(){ 143 $(this).addClass(function(){ 144 if($(this).hasClass("active")){ 145 $(this).removeClass("active"); 146 return ""; 147 } 148 return "active"; 149 }); 150 $(this).siblings(".toggle-box-content").slideToggle(); 151 }); 152 153 154 }); 155 156 157/* Accordion Block */ 158 159 $("ul.favo-accordion li").each(function() { 160 if($(this).index() > 0) { 161 $(this).children(".accordion-inner").css('display', 'none'); 162 } 163 else { 164 $(this).find(".accordion-heading").addClass('active'); 165 } 166 167 $(this).children(".accordion-heading").bind("click", function() { 168 $(this).addClass(function() { 169 if($(this).hasClass("active")) return ""; 170 return "active"; 171 }); 172 173 $(this).siblings(".accordion-inner").slideDown(350); 174 $(this).parent().siblings("li").children(".accordion-inner").slideUp(350); 175 $(this).parent().siblings("li").find(".active").removeClass("active"); 176 }); 177 }); 178 179 180 181 182 183/* Tabs Block */ 184 var tabs = $('ul.nav-tabs'); 185 tabs.each(function(i) { 186 var tab = $(this).find('> li > a'); 187 tab.click(function(e) { 188 var contentLocation = $(this).attr('href'); 189 190 if(contentLocation.charAt(0)=="#") { 191 e.preventDefault(); 192 tab.removeClass('active'); 193 $(this).addClass('active'); 194 $(contentLocation).show().addClass('active').siblings().hide().removeClass('active'); 195 } 196 }); 197 }); 198 199 200 201 202 203 ////////////////////////////////////////////////////////////////////////// 204 // Tab 205 ////////////////////////////////////////////////////////////////////////// 206 207 var $tabsNav = $('.tabs-nav'), 208 $tabsNavLis = $tabsNav.children('li'); 209 $tabsNav.each(function () { 210 var $this = $(this); 211 $this.next().children('.tab-content').stop(true, true).hide() 212 .first().show(); 213 $this.children('li').first().addClass('active').stop(true, true).show(); 214 }); 215 $tabsNavLis.on('click', function (e) { 216 var $this = $(this); 217 $this.siblings().removeClass('active').end() 218 .addClass('active'); 219 $this.parent().next().children('.tab-content').stop(true, true).hide() 220 .siblings($this.find('a').attr('href')).fadeIn(); 221 e.preventDefault(); 222 }); 223 224 /* ---------------------------------------------------------------------- */ 225 /* Comment Tree 226 /* ---------------------------------------------------------------------- */ 227 try { 228 $('#content ul.children > li, ol#comments > li').each(function(){ 229 if($(this).find(' > ul.children').length == 0){ 230 $(this).addClass('last-child'); 231 } 232 }); 233 234 $("#content ul.children").each(function() { 235 if($(this).find(' > li').length > 1) { 236 $(this).addClass('border'); 237 } 238 }); 239 240 $('ul.children.border').each(function(){ 241 $(this).append('<span class="border-left"></span>'); 242 243 var _height = 0; 244 245 for(var i = 0; i < $(this).find(' > li').length - 1; i++){ 246 _height = _height + parseInt($(this).find(' > li').eq(i).height()) + parseInt($(this).find(' > li').eq(i).css('margin-bottom')); 247 } 248 249 _height = _height + 29; 250 251 $(this).find('span.border-left').css({'height': _height + 'px'}); 252 }); 253 } catch(err) { 254 255 } 256 257 $(window).bind('resize', function(){ 258 try { 259 $('ul.children.border').each(function(){ 260 var _height = 0; 261 262 for(var i = 0; i < $(this).find(' > li').length - 1; i++){ 263 _height = _height + parseInt($(this).find(' > li').eq(i).height()) + parseInt($(this).find(' > li').eq(i).css('margin-bottom')); 264 } 265 266 _height = _height + 29; 267 268 $(this).find('span.border-left').css({'height': _height + 'px'}); 269 }); 270 } catch(err) { 271 272 } 273 }); 274 275 276/*-------------------------------------------------*/ 277/* = fixed Menus 278/*-------------------------------------------------*/ 279 280 281 if(jQuery('.fixed-enabled').length>0){ 282 var headerHeight = jQuery('.fixed-enabled').offset().top ; 283 var mainNav = jQuery('.fixed-enabled'); 284 jQuery(window).scroll(function(){ 285 var scrollY=jQuery(window).scrollTop(); 286 if(scrollY > headerHeight){ 287 mainNav.addClass('fixed-nav'); 288 }else if(scrollY < headerHeight){ 289 mainNav.removeClass('fixed-nav'); 290 } 291 }); 292 } 293 294 295 296/*-------------------------------------------------*/ 297/* = fixed Sidebar 298/*-------------------------------------------------*/ 299 300 //if ($.fn.theiaStickySidebar) { 301 jQuery('#sidebar,.sidebar.Sticky').theiaStickySidebar({ 302 // Settings 303 additionalMarginTop: 30 304 });
305 //} 306 307$('.wpcf7-form-control-wrap').hover(function(){ 308 309 $(this).find('span.wpcf7-not-valid-tip').hide(); 310 311}); 312 313 314/*-------------------------------------------------*/ 315/* = tooltip 316/*-------------------------------------------------*/ 317 318jQuery('.ttip , .tooltip-n').tipsy({fade: true, gravity: 's'}); 319 jQuery('.tooldown, .tooltip-s').tipsy({fade: true, gravity: 'n'}); 320 321 jQuery('.tooltip-nw').tipsy({fade: true, gravity: 'nw'}); 322 jQuery('.tooltip-ne').tipsy({fade: true, gravity: 'ne'}); 323 jQuery('.tooltip-w').tipsy({fade: true, gravity: 'w'}); 324 jQuery('.tooltip-e').tipsy({fade: true, gravity: 'e'}); 325 jQuery('.tooltip-sw').tipsy({fade: true, gravity: 'w'}); 326 jQuery('.tooltip-se').tipsy({fade: true, gravity: 'e'}); 327 328 329 330 //prettyPhoto Setup 331 332 333 jQuery(".gallery .gallery-icon a").attr('rel' , 'prettyPhoto[bkpGallery]'); 334 335 336 jQuery("a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal'}); 337 338 jQuery(".video-box img").removeAttr('title'); 339 340 341 342 //Img Scroll 343 344 345jQuery(function() { 346 var $window = jQuery(window), 347 isTouch = Modernizr.touch, 348 win_height_padded = $window.height() * 0.9; 349 350 $window.on('scroll', revealOnScroll); 351 352function revealOnScroll() { 353 var scrolled = $window.scrollTop(); 354 win_height_padded = $window.height() * 0.9, 355 jQuery(".lazy-loading #content .post_img,.lazy-loading .item-image , .lazy-loading #content .big-item-image ,.lazy-loading #content .small-item-image , .lazy-loading #content .post_img_left , .lazy-loading #content .post-thumbnail,.lazy-loading .post-thumbnail,.lazy-loading .content img:not(.big-slideshow img ,.mega-menu-block .post-thumbnail img,.mega-menu-block .post-thumbnail)").each(function () { 356 357 var $this = jQuery(this), 358 offsetTop = $this.offset().top; 359 360 if (scrolled + win_height_padded > offsetTop) { 361 362 jQuery(this).addClass( 'img_appear' ); 363 364 } 365 366 367 368 }); 369 370 } 371 372 revealOnScroll(); 373 374}); 375 376//Menus 377 378 379 jQuery('#main-menu ul > li > .mega-menu-block, #main-menu ul > li > ul, #main-menu ul > li > ul > li > ul, #main-menu ul > li > ul > li > ul> li > ul, .top-menu ul > li > ul, .top-menu ul > li > ul > li > ul, .top-menu ul > li > ul > li > ul> li > ul ').parent('li').addClass('parent-list'); 380 jQuery('.parent-list').find("a:first").append(' <span class="sub-indicator"></span>'); 381 382//Mega-Menus 383 384 jQuery( "#main-menu li.mega-menu:not(#main-menu li li)" ).hover(function(){ 385 var menuWidth = jQuery( '#main-menu.main-menu' ).width(); 386 var menuPosition = jQuery( '#main-menu.main-menu' ).offset(); 387 388 var $sublist = jQuery(this).find('.menu-sub-wrap:first'); 389 390 var menuItemPosition = jQuery(this).offset(); 391 var PositionLeft = menuItemPosition.left-menuPosition.left; 392 jQuery(this).find('.mega-menu-block').css({ left: '-'+PositionLeft+'px', width: menuWidth }); 393 }); 394 395 console.log('wx:'+window.innerWidth); 396 jQuery("#main-menu li.menu-item-has-children > a,#main-menu li.mega-menu > a").on("click", function() { 397 if (window.innerWidth > 900 && window.innerWidth < 1300) { 398 399 if (jQuery('ul,.mega-menu-block', jQuery(jQuery(this).parents('li'))).css('display') == 'block') { 400 jQuery('ul,.mega-menu-block', jQuery(jQuery(this).parents('li'))).removeClass('opened-js').css('display','none'); 401 } else { 402 jQuery('.opened-js').removeClass('opened-js').css('display','none'); 403 jQuery('ul,.mega-menu-block', jQuery(jQuery(this).parents('li'))).addClass('opened-js').css('display','block'); 404 } 405 406 return false; 407 } 408 }) 409 410//Mega Menus Tabs 411 jQuery(".mega-cat-wrapper").each(function(){ 412 jQuery( this ).find(".mega-cat-content-tab").hide(); 413 jQuery( this ).find(".mega-cat-sub-categories li:first").addClass("cat-active").show(); 414 jQuery( this ).find(".mega-cat-content-tab:first").addClass("already-loaded").show(); 415 jQuery( this ).find(".mega-cat-sub-categories li").click(function( event ) { 416 event.preventDefault(); 417 jQuery( this ).parent().find("li").removeClass("cat-active"); 418 jQuery( this ).addClass("cat-active"); 419 jQuery( this ).parent().parent().parent().find(".mega-cat-content-tab").hide(); 420 var activeTab = jQuery(this).find("a").attr("href"); 421 422 if( jQuery(activeTab).hasClass( "already-loaded" ) ){ 423 jQuery(activeTab).fadeIn(); 424 }else{ 425 jQuery(activeTab).addClass("loading-items").fadeIn( 600 , function() { 426 jQuery( this ).removeClass("loading-items").addClass("already-loaded"); 427 }); 428 } 429 return false; 430 }); 431 }); 432 433 434 435}); 436 437 438 439 440window.randomize = function() { 441 $('.radial-progress').each(function() { 442 var transform_styles = ['-webkit-transform', '-ms-transform', 'transform']; 443 $(this).find('span').fadeTo('slow', 1); 444 var score = $(this).data('score'); 445 var deg = (((100 / 100) * score) / 100) * 180; 446 var rotation = deg; 447 var fill_rotation = rotation; 448 var fix_rotation = rotation * 2; 449 for(i in transform_styles) { 450 $(this).find('.circle .fill, .circle .mask.full').css(transform_styles[i], 'rotate(' + fill_rotation + 'deg)'); 451 $(this).find('.circle .fill.fix').css(transform_styles[i], 'rotate(' + fix_rotation + 'deg)'); 452 } 453 }); 454 } 455 setTimeout(window.randomize, 200); 456 457 458 459 460/** 461 * Author Christopher Blum 462 * Based on the idea of Remy Sharp, http://remysharp.com/2009/01/26/element-in-view-event-plugin/ 463 * 464 * License: WTFPL 465 */ 466(function(b){function t(){var e,a={height:k.innerHeight,width:k.innerWidth};a.height||!(e=l.compatMode)&&b.support.boxModel||(e="CSS1Compat"===e?f:l.body,a={height:e.clientHeight,width:e.clientWidth}
466);return a}function u(){var e=b(),g,q=0;b.each(m,function(a,b){var c=b.data.selector,d=b.$element;e=e.add(c?d.find(c):d)});if(g=e.length)for(d=d||t(),a=a||{top:k.pageYOffset||f.scrollTop||l.body.scrollTop,left:k.pageXOffset||f.scrollLeft||l.body.scrollLeft};q<g;q++)if(b.contains(f,e[q])){var h=b(e[q]),n=h.height(),p=h.width(),c=h.offset(),r=h.data("inview");if(!a||!d)break;c.top+n>a.top&&c.top<a.top+d.height&&c.left+p>a.left&&c.left<a.left+d.width?(p=a.left>c.left?"right":a.left+d.width<c.left+p?"left":"both",n=a.top>c.top?"bottom":a.top+d.height<c.top+n?"top":"both",c=p+"-"+n,r&&r===c||h.data("inview",c).trigger("inview",[!0,p,n])):r&&h.data("inview",!1).trigger("inview",[!1])}}var m={},d,a,l=document,k=window,f=l.documentElement,s=b.expando,g;b.event.special.inview={add:function(a){m[a.guid+"-"+this[s]]={data:a,$element:b(this)};g||b.isEmptyObject(m)||(g=setInterval(u,250))},remove:function(a){try{delete m[a.guid+"-"+this[s]]}catch(d){}b.isEmptyObject(m)&&(clearInterval(g),g=null)}};b(k).bind("scroll resize",function(){d=a=null});!f.addEventListener&&f.attachEvent&&f.attachEvent("onfocusin",function(){a=null})})(jQuery); 467 468 469//Modernizr 2.7.0 470;window.Modernizr=function(a,b,c){function B(a){j.cssText=a}function C(a,b){return B(m.join(a+";")+(b||""))}function D(a,b){return typeof a===b}function E(a,b){return!!~(""+a).indexOf(b)}function F(a,b){for(var d in a){var e=a[d];if(!E(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function G(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:D(f,"function")?f.bind(d||b):f}return!1}function H(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+o.join(d+" ")+d).split(" ");return D(b,"string")||D(b,"undefined")?F(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),G(e,b,c))}var d="2.7.0",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n="Webkit Moz O ms",o=n.split(" "),p=n.toLowerCase().split(" "),q={svg:"http://www.w3.org/2000/svg"},r={},s={},t={},u=[],v=u.slice,w,x=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},y=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return x("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},z={}.hasOwnProperty,A;!D(z,"undefined")&&!D(z.call,"undefined")?A=function(a,b){return z.call(a,b)}:A=function(a,b){return b in a&&D(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=v.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(v.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(v.call(arguments)))};return e}),r.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:x(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},r.csstransforms=function(){return!!H("transform")},r.csstransforms3d=function(){var a=!!H("perspective");return a&&"webkitPerspective"in g.style&&x("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},r.csstransitions=function(){return H("transition")},r.svg=function(){return!!b.createElementNS&&!!b.createElementNS(q.svg,"svg").createSVGRect};for(var I in r)A(r,I)&&(w=I.toLowerCase(),e[w]=r[I](),u.push((e[w]?"":"no-")+w));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)A(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},B(""),i=k=null,function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;
vendor: 7,023 bytes, lines 470-477
470return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function q(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?o(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(s,b.frag)}function r(a){a||(a=b);var c=n(a);return s.shivCSS&&!g&&!c.hasCSS&&(c.hasCSS=!!l(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),k||q(a,c),a}var c="3.7.0",d=a.html5||{},e=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g,h="_html5shiv",i=0,j={},k;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",g="hidden"in a,k=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b)}(this,b),e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.mq=y,e.testProp=function(a){return F([a])},e.testAllProps=H,e.testStyles=x,e.prefixed=function(a,b,c){return b?H(a,b,c):H(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+u.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))}; 471 472 473 474// tipsy, version 1.0.0a 475// (c) 2008-2010 jason frame [[email protected]] 476// released under the MIT license 477(function(a){function b(a,b){return typeof a=="function"?a.call(b):a}function c(a){while(a=a.parentNode){if(a==document)return true}return false}function d(b,c){this.$element=a(b);this.options=c;this.enabled=true;this.fixTitle()}d.prototype={show:function(){var c=this.getTitle();if(c&&this.enabled){var d=this.tip();d.find(".tipsy-inner")[this.options.html?"html":"text"](c);d[0].className="tipsy";d.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var e=a.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight});
477var f=d[0].offsetWidth,g=d[0].offsetHeight,h=b(this.options.gravity,this.$element[0]);var i;switch(h.charAt(0)){case"n":i={top:e.top+e.height+this.options.offset,left:e.left+e.width/2-f/2};break;case"s":i={top:e.top-g-this.options.offset,left:e.left+e.width/2-f/2};break;case"e":i={top:e.top+e.height/2-g/2,left:e.left-f-this.options.offset};break;case"w":i={top:e.top+e.height/2-g/2,left:e.left+e.width+this.options.offset};break}if(h.length==2){if(h.charAt(1)=="w"){i.left=e.left+e.width/2-15}else{i.left=e.left+e.width/2-f+15}}d.css(i).addClass("tipsy-"+h);d.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+h.charAt(0);if(this.options.className){d.addClass(b(this.options.className,this.$element[0]))}if(this.options.fade){d.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity})}else{d.css({visibility:"visible",opacity:this.options.opacity})}}},hide:function(){if(this.options.fade){this.tip().stop().fadeOut(function(){a(this).remove()})}else{this.tip().remove()}},fixTitle:function(){var a=this.$element;if(a.attr("title")||typeof a.attr("original-title")!="string"){a.attr("original-title",a.attr("title")||"").removeAttr("title")}},getTitle:function(){var a,b=this.$element,c=this.options;this.fixTitle();var a,c=this.options;if(typeof c.title=="string"){a=b.attr(c.title=="title"?"original-title":c.title)}else if(typeof c.title=="function"){a=c.title.call(b[0])}a=(""+a).replace(/(^\s*|\s*$)/,"");return a||c.fallback},tip:function(){if(!this.$tip){this.$tip=a('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>');this.$tip.data("tipsy-pointee",this.$element[0])}return this.$tip},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null}},enable:function(){this.enabled=true},disable:function(){this.enabled=false},toggleEnabled:function(){this.enabled=!this.enabled}};a.fn.tipsy=function(b){function e(c){var e=a.data(c,"tipsy");if(!e){e=new d(c,a.fn.tipsy.elementOptions(c,b));a.data(c,"tipsy",e)}return e}function f(){var a=e(this);a.hoverState="in";if(b.delayIn==0){a.show()}else{a.fixTitle();setTimeout(function(){if(a.hoverState=="in")a.show()},b.delayIn)}}function g(){var a=e(this);a.hoverState="out";if(b.delayOut==0){a.hide()}else{setTimeout(function(){if(a.hoverState=="out")a.hide()},b.delayOut)}}if(b===true){return this.data("tipsy")}else if(typeof b=="string"){var c=this.data("tipsy");if(c)c[b]();return this}b=a.extend({},a.fn.tipsy.defaults,b);if(!b.live)this.each(function(){e(this)});if(b.trigger!="manual"){var h=b.live?"live":"bind",i=b.trigger=="hover"?"mouseenter":"focus",j=b.trigger=="hover"?"mouseleave":"blur";this[h](i,f)[h](j,g)}return this};a.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:false,fallback:"",gravity:"n",html:false,live:false,offset:0,opacity:.8,title:"title",trigger:"hover"};a.fn.tipsy.revalidate=function(){a(".tipsy").each(function(){var b=a.data(this,"tipsy-pointee");if(!b||!c(b)){a(this).remove()}})};a.fn.tipsy.elementOptions=function(b,c){return a.metadata?a.extend({},c,a(b).metadata()):c};a.fn.tipsy.autoNS=function(){return a(this).offset().top>a(document).scrollTop()+a(window).height()/2?"s":"n"};a.fn.tipsy.autoWE=function(){return a(this).offset().left>a(document).scrollLeft()+a(window).width()/2?"e":"w"};a.fn.tipsy.autoBounds=function(b,c){return function(){var d={ns:c[0],ew:c.length>1?c[1]:false},e=a(document).scrollTop()+b,f=a(document).scrollLeft()+b,g=a(this);if(g.offset().top<e)d.ns="n";if(g.offset().left<f)d.ew="w";if(a(window).width()+a(document).scrollLeft()-g.offset().left<b)d.ew="e";if(a(window).height()+a(document).scrollTop()-g.offset().top<b)d.ns="s";return d.ns+(d.ew?d.ew:"")}}})(jQuery); 478 479 480 481// jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing 482jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b+c;return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b+c;return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b+c;return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b*b+c;return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){if(b==0)return c;if(b==e)return c+d;if((b/=e/2)<1)return d/2*Math.pow(2,10*(b-1))+c;return d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){if((b/=e/2)<1)return-d/2*(Math.sqrt(1-b*b)-1)+c;return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e/2)==2)return c+d;if(!g)g=e*.3*1.5;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);if(b<1)return-.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c;return h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;return d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;return d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;if((b/=e/2)<1)return d/2*b*b*(((f*=1.525)+1)*b-f)+c;return d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c}
vendor: 418 bytes, lines 482-485
482,easeOutBounce:function(a,b,c,d,e){if((b/=e)<1/2.75){return d*7.5625*b*b+c}else if(b<2/2.75){return d*(7.5625*(b-=1.5/2.75)*b+.75)+c}else if(b<2.5/2.75){return d*(7.5625*(b-=2.25/2.75)*b+.9375)+c}else{return d*(7.5625*(b-=2.625/2.75)*b+.984375)+c}},easeInOutBounce:function(a,b,c,d,e){if(b<e/2)return jQuery.easing.easeInBounce(a,b*2,0,d,e)*.5+c;return jQuery.easing.easeOutBounce(a,b*2-e,0,d,e)*.5+d*.5+c}}); 483 484 485
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.