(function(c,i){var e={settings:{loading:"loading...",original:function(){var b=c("body").html();return{callback:function(){c("body").html(b)}}},hashchange:function(){},useHash:function(){return!window.history||!window.history.pushState?true:false},baseurl:function(){return window.location.protocol+"//"+window.location.host+"/"}},stack:[],state:1,inited:false,hashStack:[],popStack:function(b){e.state=b;if((b=e.stack[b])&&b.callback){b.callback();return true}return false}},h={getValueOrCall:function(b){return c.isFunction(b)?
b():b},inArray:function(b,d,a){a=a||0;if(d.indexOf)return d.indexOf(b,a);a=a;for(var f=d.length;a<f;a++)if(d[a]===b)return a;return-1},allInArray:function(b,d){for(var a=[],f=h.inArray(b,d);f!==-1;){a.push(f);f=h.inArray(b,d,f+1)}return a},getPath:function(b){var d=document.createElement("a");d.href=b;if("/"===d.pathname||""===d.pathname)return"/";d=b.indexOf(d.pathname);return b.substring(d)}};c.extend({barcaSetup:function(b,d){if(d)c.extend(true,b,e.settings,d);else{d=b;b=c.extend(true,e.settings,
d)}for(var a in{context:1,url:1})if(a in d)b[a]=d[a];else if(a in e.settings)b[a]=e.settings[a];b.href=h.getValueOrCall(b.url);a=b.href.split("#");b.url=a[0];b.hash=a[1]||i;b.useHash=h.getValueOrCall(b.useHash);b.baseurl=h.getValueOrCall(b.baseurl);b.loading=b.loading||window.document.title;return b},barca:function(b,d){if(typeof b==="object"){d=b;b=i}else d.url=b;d=d||{};var a=jQuery.barcaSetup({},d),f=a.success;a.success=function(){var j=arguments,k=e.state;e.stack[k]={callback:function(){f.apply(this,
j);a.hashchange(a.hash)}};e.stack[k].callback();a.useHash||window.history.replaceState(k,window.document.title,window.location.href);window._gaq&&_gaq.push(["_trackPageview",h.getPath(a.href)])};if(!e.inited){e.inited=true;e.stack[1]=a.original();if(a.useHash)e.hashStack[e.state]=window.location.hash;else window.history.replaceState(1,window.document.title,window.location.href)}e.state++;if(a.useHash){if(0===h.inArray(a.baseurl,a.url)){var g=a.url.substring(a.baseurl.length);if("/"!==g.substring(0,
1))g="/"+g;g="#!"+g;if(i!==a.hash)g=g+"#"+a.hash;e.hashStack[e.state]=g;e.hashStack.length=e.state+1;window.location.hash=g}}else window.history.pushState(e.state,a.loading,a.href);window.document.title=a.loading;if((g=e.xhr)&&g.readyState<4){g.onreadystatechange=c.noop;g.abort()}e.xhr=c.ajax(a)}});-1===h.inArray("state",c.event.props)&&c.event.props.push("state");c(window).bind("popstate",function(b){(b=b.state)&&e.popStack(b)});c(window).bind("hashchange",function(){if(e.hashStack[e.state]!==window.location.hash){var b=
h.allInArray(window.location.hash,e.hashStack);if(0!==b.length){b.sort(function(d,a){return Math.abs(d-e.state)-Math.abs(a-e.state)});e.popStack(b[0])}}})})(jQuery);
(function(c,i){c(document).ready(function(){var e=c("link[rel=index]").attr("href"),h=/^.*?<body class="(.*)">.*?$/m,b=/^.*?<title>(.*)<\/title>.*?$/m,d=c.browser.msie&&parseInt(c.browser.version,10)<9?true:false;c.fn.aligoware_ajax=function(){c("a.re").each(function(){if(c(this).data("re")!==""){var a=c(this),f=c(this).width(),g=c(this).html(),j=c(this).data("re");c([a.get(0)]).mouseover(function(){a.css({width:f,display:"block"});a.data("re","");a.html(j)}).mouseout(function(){window.setTimeout(function(){a.html(g)},
200)})}});c(".post-thumbnail-container").each(function(){c(this).parent().addClass("has-thumbnail")});c(".post:not(.single .post)").hover(function(){c(this).addClass("post-hover");c(this).children(".post-thumbnail-container").stop(true).fadeTo(500,0.3)},function(){var a=this;window.setTimeout(function(){c(a).removeClass("post-hover")},300);c(this).children(".post-thumbnail-container").stop(true).fadeTo(300,0,function(){c(this).attr("style","")})});c("a").not("#wpadminbar a").each(function(){var a=
c(this).attr("href");0===a.indexOf(e)&&c(this).click(function(){d||c("#main").stop(true).fadeTo(500,0);c.barca({baseurl:function(){return c("link[rel=index]").attr("href")},original:function(){var f=c("body").html(),g=c("body").attr("class");return{callback:function(){c("body").html(f);c("body").attr("class",g);c("body").aligoware_ajax()}}},hashchange:function(f){if(i!==f){f=c("#"+f).offset().top;c("html, body").stop(true).animate({scrollTop:f},1E3)}else c("html, body").stop(true).animate({scrollTop:0},
500)},url:a,success:function(f){var g=b.exec(f);window.document.title=g[1];g=h.exec(f);c("body").attr("class",g[1]);c("#main").html(c(f).find("#main").html());d||c("#main").stop(true).fadeTo(500,1);c("#main").aligoware_ajax()}});return false})})};c("body").aligoware_ajax()})})(jQuery);

