var imgpath="img/slide/",imgs=["img/slide/_DSC8464_web.jpg","img/slide/_DSC8472_web.jpg","img/slide/_DSC8487_web.jpg","img/slide/_DSC8498_web.jpg","img/slide/_DSC8504_web.jpg","img/slide/_DSC8517_web.jpg","img/slide/_DSC8520_web.jpg","img/slide/_DSC8527_web.jpg","img/slide/_DSC8535_web.jpg","img/slide/_DSC8537_web.jpg","img/slide/_DSC8541_web.jpg","img/slide/_DSC8574_web.jpg","img/slide/_DSC8577_web.jpg","img/slide/_DSC8579_web.jpg","img/slide/_DSC8584_web.jpg","img/slide/_DSC8593_web.jpg","img/slide/_DSC8612_web.jpg","img/slide/_DSC8621_web.jpg","img/slide/_DSC8637_web.jpg","img/slide/_DSC8641_web.jpg","img/slide/_DSC8648_web.jpg","img/slide/_DSC8653_web.jpg","img/slide/_DSC8677_web.jpg","img/slide/_DSC8705_web.jpg","img/slide/_DSC8716_web.jpg","img/slide/_DSC8744_web.jpg","img/slide/_DSC8756_web.jpg","img/slide/_DSC8765_web.jpg"],randImgs=1;jQuery.noConflict();if(randImgs==1)for(var i=0;i<imgs.length;i++)rand=Math.floor(Math.random()*imgs.length),tmp=imgs[i],imgs[i]=imgs[rand],imgs[rand]=tmp;function UnCryptMailto(b){for(var d=0,c="",a=0;a<b.length;a++)d=b.charCodeAt(a),d>=8364&&(d=128),c+=String.fromCharCode(d-7);return c}
function linkTo_UnCryptMailto(b){location.href=UnCryptMailto(b)}
(function(b){var d={};b.fn.Slides=function(c){var a=this,e=b(this).attr("id");d[e]=b.extend({},b.fn.Slides.defaults,c||{});b.fn.Slides.init(a,d[e],function(){return a.each(function(){b.fn.Slides.start(e)})})};b.fn.Slides.defaults={wait:0,pause:6E3,fade:1E3};b.fn.Slides.init=function(c,a,e){if(typeof a.images==="undefined")throw Error('Image array is not optional must be passed in the call jQuery("#id").Slides({images : ["img1.jpg", "img2.jpg"]})');if(typeof a.urls!="undefined"&&a.urls.length!=a.images.length)throw Error("Urls length must match images length");
if(typeof a.functions!="undefined"&&a.functions.length!=a.images.length)throw Error("Functions length must match images length");var a=b.extend(a,{main:b(c),pipes:{urls:[],functions:[]},initialized:!1}),d=function(){a.toggle=a.main.wrap("<span></span>").parent().css({display:"block",overflow:"hidden",height:a.main.height()+"px",width:a.main.width()+"px"});b.fn.Slides.preloadNextImage(a);a.initialized=!0};a.main.load(function(){a.initialized||(d(),e())});a.main[0].complete&&!a.initialized&&(d(),e())};
b.fn.Slides.preloadNextImage=function(c){var a=b.fn.Slides.getNextImage(c),e=new Image;e.src=a;c.nextImage=e};b.fn.Slides.getNextImage=function(c){var a=c.images.shift();c.images.push(a);if(c.urls){var b=c.urls.shift();c.urls.push(b);c.pipes.urls.push(b)}c.functions&&(b=c.functions.shift(),c.functions.push(b),c.pipes.functions.push(b));return a};b.fn.Slides.start=function(c){setTimeout(function(){b.fn.Slides.execute(c)},d[c].wait)};b.fn.Slides.execute=function(c){var a=d[c];a.isToggle=!1;setInterval(function(){a.isToggle?
(a.main.attr("src",a.nextImage.src).animate({opacity:1},a.fade),a.isToggle=!1):(a.toggle.css({background:"transparent url("+a.nextImage.src+") left top no-repeat"}),a.main.animate({opacity:0},a.fade),a.isToggle=!0);a.pipes.urls.length>0&&a.main.click(function(){window.location.href=a.pipes.urls.shift()});a.pipes.functions.length>0&&a.pipes.functions.shift()();b.fn.Slides.preloadNextImage(a)},a.pause)}})(jQuery);
