"use strict";var I4C={config:{content:document.getElementById("content_slot"),default_link:"default",menu_active:"active",menu:document.getElementById("menu"),menu_prefix:"m-",slideshow:"#slideshow",slideshow_speed:4000,caption_delay:2000,caption:".caption"},_getHashTarget:function(b){var a=b.match(/#(.*)/);return a?a[1]:""},proxyLinks:function(){var c=0,b=0,a=[this.config.content.getElementsByTagName("a"),this.config.menu.getElementsByTagName("a")],d=this;for(c=0;c<a.length;c++){for(b=0;b<a[c].length;b++){a[c][b].onclick=function(){d._proxyLink(this);return false}}}},_proxyLink:function(b){var a=this._getHashTarget(b.href);if(b.href.match(window.location.hostname)&&b.href.match(/#/)){return this._click(a)}window.location=b.href;return false},reactHash:function(){if(window.location.hash){this._click(window.location.hash.substring(1))}else{this._click(this.config.default_link)}},_click:function(a){this._toggleContent(a);this._activateMenu(a)},_toggleContent:function(c){var a,b=this.config.content.getElementsByTagName("div");for(a=0;a<b.length;a++){if(b[a].id===c){b[a].style.display=""}else{b[a].style.display="none"}}},_activateMenu:function(d){var b,a=this.config.menu.getElementsByTagName("ul")[0].getElementsByTagName("a"),c=this.config.menu_prefix+d;for(b=0;b<a.length;b++){if(a[b].id===c){a[b].className=this.config.menu_active}else{a[b].className=""}}},slideshow:function(){$(this.config.slideshow+" img").show();$(this.config.slideshow).slides({generatePagination:false,preload:true,preloadImage:"img/loading.gif",bigTarget:true,play:8000,effect:"fade",crossfade:true,fadeSpeed:1200,captionDelay:9800})}};$(document).ready(function(){$.history.init(function(a){I4C.reactHash()});I4C.slideshow()});
