
(function($){})(this.jQuery);window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){console.log(Array.prototype.slice.call(arguments));}};(function(doc){var write=doc.write;doc.write=function(q){log('document.write(): ',arguments);if(/docwriteregexwhitelist/.test(q))write.apply(doc,arguments);};})(document);
$(document).ready(function(){if(typeof console==="undefined"){console={log:function(){}};}
var slidedecks=$('dl.slidedeck').slidedeck({keys:false,autoPlay:true,cycle:true,scroll:false,continueScrolling:false,hideSpines:true,complete:function(deck){var currentSlideReadOut=deck.deck.parent().find(".currentslide");currentSlideReadOut.text(deck.current);}});console.log("var slidedecks? =>"+slidedecks);if(slidedecks!=undefined){console.log('it was defined so let me shut off all but the 1st one');var i=0;slidedecks.forEach(function(sd){if(i>0){sd.pauseAutoPlay=true;}
i++;});}
$('.slideshownav .leftclick').click(function(event){event.preventDefault();var currentSlide=$(this).parent().find(".currentslide");var mySlidedeck=$(this).parent().parent().prev();mySlidedeck.slidedeck().prev(function(deck){mySlidedeck.slidedeck().pauseAutoPlay=true;});});$('.slideshownav .rightclick').click(function(event){event.preventDefault();var mySlidedeck=$(this).parent().parent().prev();mySlidedeck.slidedeck().next(function(deck){mySlidedeck.slidedeck().pauseAutoPlay=true;});});$('.slideshownav .middlenav').click(function(event){var mySlidedeck=$(this).parent().parent().prev();mySlidedeck.slidedeck().next(function(deck){mySlidedeck.slidedeck().pauseAutoPlay=true;});});$('.slidedeck').click(function(event){if(!isTouchDevice()){var mySlidedeck=$(this);mySlidedeck.slidedeck().next(function(deck){mySlidedeck.slidedeck().pauseAutoPlay=true;});}});$(".showit").colorbox();$(".showhtml").colorbox({width:"80%",height:"80%",iframe:true});function isTouchDevice(){try{document.createEvent("TouchEvent");return true;}catch(e){return false;}}
function handleExternalLinks(){var hostName=window.location.hostname;var links=document.getElementsByTagName("a");for(var i=0;i<links.length;i++){if(links[i].href.indexOf(hostName)==-1){var curTitle=(links[i].getAttribute("title"))?links[i].getAttribute("title")+" - ":"";links[i].setAttribute("target","_blank");links[i].setAttribute("title",curTitle+"opens in new window");}}}
handleExternalLinks();});
