if(top.location!=self.location){top.location.replace(self.location)}(function(a){a.fn.hoverIntent=function(k,j){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,d;var e=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(d-m))<l.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return l.over.apply(f,[g])}else{h=n;d=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return l.out.apply(f,[g])};var b=function(q){var o=(q.type=="mouseover"?q.fromElement:q.toElement)||q.relatedTarget;while(o&&o!=this){try{o=o.parentNode}catch(q){o=this}}if(o==this){return false}var g=jQuery.extend({},q);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(q.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},l.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);$(function(){$(window).scroll(function(){if($(this).scrollTop()!=0){$("#toTop").fadeIn()}else{$("#toTop").fadeOut()}});$("#toTop").click(function(){$("body,html").animate({scrollTop:0},800)})});$(document).ready(function(){function c(){$(this).find(".sub").stop().fadeTo("fast",1).show();(function(e){jQuery.fn.calcSubWidth=function(){rowWidth=0;e(this).find("ul").each(function(){rowWidth+=e(this).width()})}})(jQuery);if($(this).find(".row").length>0){var d=0;$(this).find(".row").each(function(){$(this).calcSubWidth();if(rowWidth>d){d=rowWidth}});$(this).find(".sub").css({width:d});$(this).find(".row:last").css({margin:"0"})}else{$(this).calcSubWidth();$(this).find(".sub").css({width:rowWidth})}}function b(){$(this).find(".sub").stop().fadeTo("fast",0,function(){$(this).hide()})}var a={sensitivity:2,interval:100,over:c,timeout:500,out:b};$("ul#topnav li .sub").css({opacity:"0"});$("ul#topnav li").hoverIntent(a);$(".tab_content").hide();$("ul.tabs li:first").addClass("active").show();$(".tab_content:first").show();$("ul.tabs li").click(function(){$("ul.tabs li").removeClass("active");$(this).addClass("active");$(".tab_content").hide();var d=$(this).find("a").attr("href");$(d).fadeIn();return false})});if(document.location.protocol=="http:"){var Tynt=Tynt||[];Tynt.push("dUHuIU5rur3Qdaab7jrHcU");Tynt.i={st:true,ap:"Read more:"};(function(){var b=document.createElement("script");b.async="async";b.type="text/javascript";b.src="http://tcr.tynt.com/ti.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)})()}var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-1853606-3"]);_gaq.push(["_trackPageview"]);(function(){var b=document.createElement("script");b.type="text/javascript";b.async=true;b.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)})();
