1/* UItoTop jQuery Plugin 1.2 | Matt Varone | http://www.mattvarone.com/web-design/uitotop-jquery-plugin */ 2(function($){$.fn.UItoTop=function(options){var defaults={text:'To Top',min:200,inDelay:600,outDelay:400,containerID:'toTop',containerHoverID:'toTopHover',scrollSpeed:400,easingType:'linear'},settings=$.extend(defaults,options),containerIDhash='#'+settings.containerID,containerHoverIDHash='#'+settings.containerHoverID;$('body').append('<a href="#" id="'+settings.containerID+'">'+settings.text+'</a>');$(containerIDhash).hide().on('click.UItoTop',function(){$('html, body').animate({scrollTop:0},settings.scrollSpeed,settings.easingType);$('#'+settings.containerHoverID,this).stop().animate({'opacity':0},settings.inDelay,settings.easingType);return false;}).prepend('<span id="'+settings.containerHoverID+'"></span>').hover(function(){$(containerHoverIDHash,this).stop().animate({'opacity':1},600,'linear');},function(){$(containerHoverIDHash,this).stop().animate({'opacity':0},700,'linear');});$(window).scroll(function(){var sd=$(window).scrollTop();if(typeof document.body.style.maxHeight==="undefined"){$(containerIDhash).css({'position':'absolute','top':sd+$(window).height()-50});} 3if(sd>settings.min) 4$(containerIDhash).fadeIn(settings.inDelay);else 5$(containerIDhash).fadeOut(settings.Outdelay);});};})(jQuery); 6jQuery(document).ready(function() { 7/* Scroll to top */ 8 jQuery().UItoTop({ 9 containerID: 'slide_top', 10 containerHoverID : 'slide_top_hover' 11 }); 12}); 13/* Mobile Devices Navigation Script */ 14 (function ($) { 15 $('a.resp_navigation').bind('click', function () { 16 if ($(this).hasClass('active')) {
17 $('#navigation').slideUp('fast'); 18 19 $('#navigation ul').css( { display : 'none' } ); 20 $(this).removeClass('active'); 21 } else { 22 $('#navigation').slideDown('fast'); 23 24 $(this).addClass('active'); 25 } 26 27 return false; 28 } ); 29 30 $('#navigation li a').bind('click', function () { 31 if ($('a.resp_navigation').is(':visible')) { 32 if ($(this).next().is('ul')) { 33 if ($(this).next().is(':visible')) { 34 $(this).removeClass('drop_active'); 35 $(this).next().slideUp('fast'); 36 37 $(this).next().find('ul').css( { 38 display : 'none' 39 } ); 40 } else { 41 $(this).parent().parent().find('a').removeClass('drop_active'); 42 $(this).parent().parent().find('ul').slideUp('fast'); 43 44 $(this).addClass('drop_active'); 45 $(this).next().slideDown('fast'); 46 } 47 48 return false; 49 } 50 } 51 } ); 52 53 $(window).bind('resize', function () { 54 if ($(this).width() > 540) { 55 $('a.resp_navigation').removeClass('active'); 56 57 $('#navigation').removeAttr('style'); 58 $('#navigation ul').removeAttr('style'); 59 } 60 } ); 61 } )(jQuery); 62 63 /* Toggle */ 64 (function ($) { 65 $('.togg a.tog').click(function (i) { 66 var dropDown = $(this).parent().find('.tab_content'); 67 68 $(this).parent().find('.tab_content').not(dropDown).slideUp(); 69 70 if ($(this).hasClass('current')) { 71 $(this).removeClass('current'); 72 } else { 73 $(this).addClass('current'); 74 } 75 76 dropDown.stop(false, true).slideToggle().css( { display : 'block' } ); 77 78 i.preventDefault(); 79 } ); 80 } )(jQuery); 81 82/* Correct OS & Browser Check */ 83var ua = navigator.userAgent, 84 checker = { 85 os : { 86 iphone : ua.match(/iPhone/), 87 ipod : ua.match(/iPod/), 88 ipad : ua.match(/iPad/), 89 blackberry : ua.match(/BlackBerry/), 90 android : ua.match(/(Android|Linux armv6l|Linux armv7l)/), 91 linux : ua.match(/Linux/), 92 win : ua.match(/Windows/), 93 mac : ua.match(/Macintosh/) 94 }, 95 ua : { 96 ie : ua.match(/MSIE/), 97 ie6 : ua.match(/MSIE 6.0/), 98 ie7 : ua.match(/MSIE 7.0/), 99 ie8 : ua.match(/MSIE 8.0/), 100 ie9 : ua.match(/MSIE 9.0/), 101 ie10 : ua.match(/MSIE 10.0/), 102 opera : ua.match(/Opera/), 103 firefox : ua.match(/Firefox/), 104 chrome : ua.match(/Chrome/), 105 safari : ua.match(/(Safari|BlackBerry)/) 106 } 107 }; 108/* Convert Touch Events to Mouse Events Function */ 109function touchHandler(e) { 110var first = e.changedTouches[0], 111type = '', 112simulatedEvent = undefined; 113switch (e.type) { 114 case 'touchstart': 115 type = 'mousedown'; 116 break; 117 case 'touchmove': 118 type = 'mousemove'; 119 break; 120 case 'touchend': 121 type = 'mouseup'; 122 break; 123 case 'touchcancel': 124 type = 'mouseleave'; 125 break; 126 default: 127 return; 128 } 129simulatedEvent = document.createEvent('MouseEvent'); 130simulatedEvent.initMouseEvent(type, true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, false, false, false, false, 0, null ); 131first.target.dispatchEvent(simulatedEvent); 132e.preventDefault(); 133} 134/*! http://responsiveslides.com v1.54 by @viljamis */ 135(function(c,I,B){c.fn.responsiveSlides=function(l){var a=c.extend({auto:!0,speed:500,timeout:4E3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!0,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:c.noop,after:c.noop},l);return this.each(function(){B++;var f=c(this),s,r,t,m,p,q,n=0,e=f.children(),C=e.size(),h=parseFloat(a.speed),D=parseFloat(a.timeout),u=parseFloat(a.maxwidth),g=a.namespace,d=g+B,E=g+"_nav "+d+"_nav",v=g+"_here",j=d+"_on", 136w=d+"_s",k=c("<ul class='"+g+"_tabs "+d+"_tabs' />"),x={"float":"left",position:"relative",opacity:1,zIndex:2},y={"float":"none",position:"absolute",opacity:0,zIndex:1},F=function(){var b=(document.body||document.documentElement).style,a="transition";if("string"===typeof b[a])return!0;s=["Moz","Webkit","Khtml","O","ms"];var a=a.charAt(0).toUpperCase()+a.substr(1),c;for(c=0;c<s.length;c++)if("string"===typeof b[s[c]+a])return!0;return!1}(),z=function(b){a.before(b);F?(e.removeClass(j).css(y).eq(b).addClass(j).css(x), 137n=b,setTimeout(function(){a.after(b)}
137,h)):e.stop().fadeOut(h,function(){c(this).removeClass(j).css(y).css("opacity",1)}).eq(b).fadeIn(h,function(){c(this).addClass(j).css(x);a.after(b);n=b})};a.random&&(e.sort(function(){return Math.round(Math.random())-0.5}),f.empty().append(e));e.each(function(a){this.id=w+a});f.addClass(g+" "+d);l&&l.maxwidth&&f.css("max-width",u);e.hide().css(y).eq(0).addClass(j).css(x).show();F&&e.show().css({"-webkit-transition":"opacity "+h+"ms ease-in-out","-moz-transition":"opacity "+ 138h+"ms ease-in-out","-o-transition":"opacity "+h+"ms ease-in-out",transition:"opacity "+h+"ms ease-in-out"});if(1<e.size()){if(D<h+100)return;if(a.pager&&!a.manualControls){var A=[];e.each(function(a){a+=1;A+="<li><a href='#' class='"+w+a+"'>"+a+"</a></li>"});k.append(A);l.navContainer?c(a.navContainer).append(k):f.after(k)}a.manualControls&&(k=c(a.manualControls),k.addClass(g+"_tabs "+d+"_tabs"));(a.pager||a.manualControls)&&k.find("li").each(function(a){c(this).addClass(w+(a+1))});if(a.pager||a.manualControls)q= 139k.find("a"),r=function(a){q.closest("li").removeClass(v).eq(a).addClass(v)};a.auto&&(t=function(){p=setInterval(function(){e.stop(!0,!0);var b=n+1<C?n+1:0;(a.pager||a.manualControls)&&r(b);z(b)},D)},t());m=function(){a.auto&&(clearInterval(p),t())};a.pause&&f.hover(function(){clearInterval(p)},function(){m()});if(a.pager||a.manualControls)q.bind("click",function(b){b.preventDefault();a.pauseControls||m();b=q.index(this);n===b||c("."+j).queue("fx").length||(r(b),z(b))}).eq(0).closest("li").addClass(v), 140a.pauseControls&&q.hover(function(){clearInterval(p)},function(){m()});if(a.nav){g="<a href='#' class='"+E+" prev'>"+a.prevText+"</a><a href='#' class='"+E+" next'>"+a.nextText+"</a>";l.navContainer?c(a.navContainer).append(g):f.after(g);var d=c("."+d+"_nav"),G=d.filter(".prev");d.bind("click",function(b){b.preventDefault();b=c("."+j);if(!b.queue("fx").length){var d=e.index(b);b=d-1;d=d+1<C?n+1:0;z(c(this)[0]===G[0]?b:d);if(a.pager||a.manualControls)r(c(this)[0]===G[0]?b:d);a.pauseControls||m()}}); 141a.pauseControls&&d.hover(function(){clearInterval(p)},function(){m()})}}if("undefined"===typeof document.body.style.maxWidth&&l.maxwidth){var H=function(){f.css("width","100%");f.width()>u&&f.css("width",u)};H();c(I).bind("resize",function(){H()})}})}})(jQuery,this,0); 142$(function () {$('#herofade').responsiveSlides({maxwidth: 960,speed: 800});}); 143(function(e){e.cookieBar=function(t,n){if(t=="cookies"){var r="cookies"}else if(t=="set"){var r="set"}else{var r=false}var i={message:"This site uses cookies to work better",acceptButton:true,acceptText:"I understand",declineButton:false,declineText:"Disable Cookies",policyButton:true,policyText:"Find out more",policyURL:"/pagek",autoEnable:true,expireDays:365,forceShow:false,effect:"slide",element:"body",append:false,fixed:true,redirect:String(window.location.href),domain:String(window.location.hostname)};var t=e.extend(i,t);var s=new Date;s.setTime(s.getTime()+t.expireDays*24*60*60*1e3);s=s.toGMTString();var o="cb-enabled={value}; expires="+s+"; path=/";var u,a="",f,l=document.cookie.split("; ");for(u=0;u<l.length;u++){f=l[u].split("=");if(f[0]=="cb-enabled"){a=f[1]}}if(a==""&&t.autoEnable){a="enabled";document.cookie=o.replace("{value}","enabled")}if(r=="cookies"){if(a=="enabled"||a=="accepted"){return true}else{return false}}else if(r=="set"&&(n=="accepted"||n=="declined")){document.cookie=o.replace("{value}",n);if(n=="accepted"){return true}else{return false}}else{var c=t.message.replace("{policy_url}",t.policyURL);if(t.acceptButton){var h='<br id="cookbr"><a href="" class="cb-enable">'+t.acceptText+"</a>"}else{var h=""}if(t.declineButton){var p='<a href="" class="cb-disable">'+t.declineText+"</a>"}else{var p=""}if(t.policyButton){var d='<a href="'+t.policyURL+'" class="cb-policy">'+t.policyText+"</a>"}else{var d=""}if(t.fixed){var v=' class="fixed"'}else{var v=""}if(t.forceShow||a=="enabled"||a==""){if(t.append){e(t.element).append('<div id="cookie-bar"'+v+"><p>"+c+h+p+d+"</p></div>")}else{e(t.element).prepend('<div id="cookie-bar"'+v+"><p>"+c+h+p+d+"</p></div>")}}e("#cookie-bar .cb-enable").click(function(){document.cookie=o.replace("{value}","accepted");if(a!="enabled"&&a!="accepted"){window.location=t.currentLocation}else{if(t.effect=="slide"){e("#cookie-bar").slideUp(300,function(){e("#cookie-bar").remove()})}else if(t.effect=="fade"){e("#cookie-bar").fadeOut(300,function(){e("#cookie-bar").remove()})}else{e("#cookie-bar").hide(0,function(){e("#cookie-bar").remove()})}return false}});e("#cookie-bar .cb-disable").click(function(){var n=new Date;n.setTime(n.getTime()-864e6);n=n.toGMTString();l=document.cookie.split("; ");for(u=0;
143u<l.length;u++){f=l[u].split("=");if(f[0].indexOf("_")>=0){document.cookie=f[0]+"=0; expires="+n+"; domain="+t.domain.replace("www","")+"; path=/"}else{document.cookie=f[0]+"=0; expires="+n+"; path=/"}}document.cookie=o.replace("{value}","declined");if(a=="enabled"&&a!="accepted"){window.location=t.currentLocation}else{if(t.effect=="slide"){e("#cookie-bar").slideUp(300,function(){e("#cookie-bar").remove()})}else if(t.effect=="fade"){e("#cookie-bar").fadeOut(300,function(){e("#cookie-bar").remove()})}else{e("#cookie-bar").hide(0,function(){e("#cookie-bar").remove()})}return false}})}}})(jQuery)
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.