function psPhotoSwipe(){var f=window.navigator.userAgent,j=/Trident\/4\.0/.test(f)?8:parseFloat((f.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1]),a=/opera/i.test(f),d=/msie/i.test(f)&&!this.opera,h=/Firefox/i.test(f),e=(/iphone|ipod|ipad/gi).test(window.navigator.platform),i="/data/",g="/photo/",c=true;if(h&&j<4){c=false}if(d&&j<9){c=false}if(a&&j<9.8){c=false}if(e){var k=new Date(),b=5000;while(b--){Math.sqrt(b*Math.random())}if((new Date-k)>15){c=false}}if(c){(function(window,$,PhotoSwipe){$(document).ready(function(){if(document.getElementById("Gallery")){document.getElementById("viewport").setAttribute("content","width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0");var q=document.URL.match(/\/[0-9]+/);if(q){q=" - Gallery "+q.toString().replace(/\/*/g,"")}else{q=""}var p=0,o={doubleTapZoomLevel:1.5,doubleTapZoomNaturalSize:true,doubleTapZoomWindowSize:true,slideshowDelay:9000,captionAndToolbarAutoHideDelay:4000,imageScaleMethod:"fitNoUpscale",minUserZoom:1,maxUserZoom:10,swipeThreshold:100,getImageCaption:function(r){p++;return"kylacolemodel.net"+q+" - Image "+((p<100)?((p>=10)?("0"):("00")):"")+p},getImageSource:function(u){var t,s,r,v="";if(u.nodeName==="A"){u.setAttribute("onclick","");v=u.getAttribute("href")}for(t=0,s=u.childNodes.length;t<s;t++){r=u.childNodes[t];if(u.childNodes[t].nodeName==="A"){r.setAttribute("onclick","");v=r.getAttribute("href")}}return v.replace(g,i)}};$("#Gallery a").not(".edit-button").photoSwipe(o)}})}(window,window.jQuery,window.Code.PhotoSwipe))}}psPhotoSwipe();
