function replaceDefaultText(a){var b=window.event?window.event.srcElement:a?a.target:null;if(!b)return;if(b.value==""&&b.defaultText){b.value=b.defaultText}}function clearDefaultText(a){var b=window.event?window.event.srcElement:a?a.target:null;if(!b)return;if(b.value==b.defaultText){b.value=""}}function init(){var a=document.getElementsByTagName("input");for(var b=0;b<a.length;b++){var c=a[b];if(c.type=="text"&&c.className.match(/\bcleardefault\b/)){addEvent(c,"focus",clearDefaultText,false);addEvent(c,"blur",replaceDefaultText,false);if(c.value!=""){c.defaultText=c.value}}}}function addEvent(a,b,c,d){if(a.addEventListener){a.addEventListener(b,c,d);return true}else if(a.attachEvent){var e=a.attachEvent("on"+b,c);return e}else{return false}}function tabPanel(){jQuery(".tabs .tabcontent").hide();jQuery(".tabs").each(function(){jQuery(this).find(".epic_tabnav > li:first").addClass("current-menu-item").show();jQuery(this).find(".tabcontent:first").show()});jQuery(".epic_tabnav > li").click(function(){jQuery(this).parent().find("li").removeClass("current-menu-item");jQuery(this).addClass("current-menu-item");var a=jQuery(this).find("a").attr("href");jQuery(this).parent().parent().find(".tabcontent").hide();jQuery(this).parent().parent().find("div:[data-id="+a+"]").fadeIn("fast");return false})}function showcontent(){jQuery("#wrapper:hidden").fadeIn("fast");jQuery("#showcontent").hide();jQuery("#hidecontent").show()}function hidecontent(){jQuery("#wrapper:visible").fadeOut("fast");jQuery("#hidecontent").hide();jQuery("#showcontent").show()}jQuery("a").hover(function(){$plus=jQuery(this).find(".plus");$plus.css({opacity:0,display:"inline"});$plus.stop().animate({opacity:1},100)},function(){$plus=jQuery(this).find(".plus");$plus.stop().animate({opacity:0},100)});jQuery("a.read-more").hover(function(){$plus=jQuery(this).find(".plus span");jQuery(this).stop().animate({paddingRight:30},200);$plus.fadeIn(200)},function(){jQuery(this).stop().animate({paddingRight:20},200)});$image=jQuery(".featured-image, .overlay-icon");$image.hover(function(){$overlay=jQuery(this).find(".overlay-icon");$overlay.css({opacity:0,display:"block"});$overlay.stop().animate({opacity:1},100);jQuery(this).find("a img").animate({opacity:.9},200)},function(){$overlay=jQuery(this).find(".overlay-icon");$overlay.stop().animate({opacity:0},100);jQuery(this).find("a img").stop().animate({opacity:1},200)});jQuery(".item").hover(function(){jQuery(this).find(".meta-published").css({opacity:0,display:"inline"});jQuery(this).find(".meta-published").stop().animate({opacity:1},100)},function(){jQuery(this).find(".meta-published").stop().animate({opacity:0},200)});jQuery(document).ready(function(a){a("a#goback").click(function(){history.back();return false});a(".infobtn").click(function(){a(this).parent().parent().find(".post-meta-popup").slideDown();return false});a(".close-info-popup").click(function(){a(this).parent().slideUp();return false});a("#hidecontent").click(function(){hidecontent();return false});a("#showcontent").click(function(){showcontent();return false});a(".open_modal").click(function(){a("#modal_signup, #mask").fadeIn();return false});a("a#closemodal").click(function(){a("#modal_signup, #mask").fadeOut();return false});a("#mask").click(function(){a("#modal_signup, #mask").fadeOut();return false});a("#signupform_nav > a").click(function(){var b=jQuery(this).attr("data-rel");a("#signup, #signin, #reset").hide();a("#"+b).fadeIn()});tabPanel()});(function(a){a.fn.fullBg=function(){function c(){var c=b.width();var d=b.height();var e=a(window).width();var f=a(window).height();var g=e/c;var h=f/d;var i=h*c;var j=g*d;if(j>f){b.css({width:e+"px",height:j+"px"})}else{b.css({width:i+"px",height:f+"px"})}}var b=a(this);c();a(window).resize(function(){c()})}})(jQuery);var siteurl=jQuery("meta[name=siteurl]").attr("content");var arrowimages={};var jqueryslidemenu={animateduration:{over:200,out:100},buildmenu:function(a,b){jQuery(document).ready(function(b){var c=b("#"+a+">ul");var d=c.find("ul").parent();d.each(function(a){var c=b(this);var d=b(this).find("ul:eq(0)");this._dimensions={w:this.offsetWidth,h:this.offsetHeight,subulw:d.outerWidth(),subulh:d.outerHeight()};this.istopheader=c.parents("ul").length==1?true:false;d.css({top:this.istopheader?this._dimensions.h+"px":0});c.hover(function(a){var c=b(this).children("ul:eq(0)");this._offsets={left:b(this).offset().left,top:b(this).offset().top};var d=this.istopheader?0:this._dimensions.w;d=this._offsets.left+d+this._dimensions.subulw>b(window).width()?this.istopheader?-this._dimensions.subulw+this._dimensions.w:-this._dimensions.w:d;if(c.queue().length<=1)c.css({left:d+"px",width:this._dimensions.subulw+"px"}).slideDown(jqueryslidemenu.animateduration.over)},function(a){var c=b(this).children("ul:eq(0)");c.slideUp(jqueryslidemenu.animateduration.out)});c.click(function(){b(this).children("ul:eq(0)").hide()})});c.find("ul").css({display:"none",visibility:"visible"})})}};jqueryslidemenu.buildmenu("primary",arrowimages),jqueryslidemenu.buildmenu("epic_user_menu",arrowimages),jqueryslidemenu.buildmenu("filter",arrowimages);addEvent(window,"load",init,false);jQuery(function(){jQuery("a[rel*=external]").click(function(){window.open(this.href);return false})});jQuery.easing.quart=function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c};jQuery(document).ready(function(){jQuery("a[href*=#header],a[href*=#respond]").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=jQuery(this.hash);a=a.length&&a||jQuery("[name="+this.hash.slice(1)+"]");if(a.length){var b=a.offset().top;jQuery("html,body").animate({scrollTop:b},600,"linear");return false}}})});jQuery(function(){jQuery("a").bind("focus",function(){if(this.blur)this.blur()});jQuery(".menu > li:first-child").addClass("first_menu");jQuery(".menu > li:first-child.current_page_item, .menu > li:first-child.current-cat, .menu > li:first-child.current-menu-item").addClass("first_menu_active").removeClass("first_menu");jQuery(".menu > li:last-child").addClass("last_menu");jQuery(".menu > li:last-child.current_page_item, .menu > li:last-child.current-cat, .menu > li:last-child.current-menu-item").addClass("last_menu_active").removeClass("last_menu");jQuery(".menu li ul li:has(ul)").addClass("parent_menu");jQuery("#right_col ul > li:last-child").css({marginBottom:"0"});jQuery("#comment_area ol > li:even").addClass("even_comment");jQuery("#comment_area ol > li:odd").addClass("odd_comment");jQuery(".even_comment > .children > li").addClass("even_comment_children");jQuery(".odd_comment > .children > li").addClass("odd_comment_children");jQuery(".even_comment_children > .children > li").addClass("odd_comment_children");jQuery(".odd_comment_children > .children > li").addClass("even_comment_children");jQuery(".even_comment_children > .children > li").addClass("odd_comment_children");jQuery(".odd_comment_children > .children > li").addClass("even_comment_children");jQuery("#guest_info input,#comment_textarea textarea").focus(function(){jQuery(this).css({borderColor:"#33a8e5"})}).blur(function(){jQuery(this).css({borderColor:"#ccc"})});jQuery("#tag_list ul").hide();jQuery(".search_tag").toggle(function(){jQuery(this).addClass("active_search_tag")},function(){jQuery(this).removeClass("active_search_tag")});jQuery(".search_tag").click(function(){jQuery(this).next("#tag_list ul").slideToggle("400")});jQuery("#trackback_switch").click(function(){jQuery("#comment_switch").removeClass("comment_switch_active");jQuery(this).addClass("comment_switch_active");jQuery("#comment_area").animate({opacity:"hide"},0);jQuery("#trackback_area").animate({opacity:"show"},1e3);return false});jQuery("#comment_switch").click(function(){jQuery("#trackback_switch").removeClass("comment_switch_active");jQuery(this).addClass("comment_switch_active");jQuery("#trackback_area").animate({opacity:"hide"},0);jQuery("#comment_area").animate({opacity:"show"},1e3);return false});jQuery("#guest_info input,#comment_textarea textarea").focus(function(){jQuery(this).css({borderColor:"#33a8e5"})}).blur(function(){jQuery(this).css({borderColor:"#ccc"})});jQuery("blockquote").append('<div class="quote_bottom"></div>');jQuery(".side_box:first").addClass("first_side_box")});(function(){function e(a){return document.getElementById(a)}function d(a,c,d){var e=MGJS.$(a).innerHTML;var f='<a href="#'+c+'">@'+e.replace(/\t|\n|\r\n/g,"")+"</a> \n";b(f,d)}function c(b,c,d,e){var f=MGJS.$(b).innerHTML;var g=MGJS.$(d).innerHTML;var h='<blockquote cite="#'+d+'">';h+='\n<a href="#'+c+'">'+f.replace(/\t|\n|\r\n/g,"")+"</a> :";h+=g.replace(/\t/g,"");h+="</blockquote>\n";a(h,e)}function b(a,b){if(MGJS.$(b)&&MGJS.$(b).type=="textarea"){field=MGJS.$(b)}else{alert("The comment box does not exist!");return false}if(field.value.indexOf(a)>-1){alert("You've already appended this reply!");return false}if(field.value.replace(/\s|\t|\n/g,"")==""){field.value=a}else{field.value=field.value.replace(/[\n]*$/g,"")+"\n\n"+a}field.focus()}function a(a,b){if(MGJS.$(b)&&MGJS.$(b).type=="textarea"){field=MGJS.$(b)}else{alert("The comment box does not exist!");return false}if(document.selection){field.focus();sel=document.selection.createRange();sel.text=a;field.focus()}else if(field.selectionStart||field.selectionStart=="0"){var c=field.selectionStart;var d=field.selectionEnd;var e=c;field.value=field.value.substring(0,c)+a+field.value.substring(d,field.value.length);e+=a.length;field.focus();field.selectionStart=e;field.selectionEnd=e}else{field.value+=a;field.focus()}}window["MGJS"]={};window["MGJS"]["$"]=e;window["MGJS_CMT"]={};window["MGJS_CMT"]["reply"]=d;window["MGJS_CMT"]["quote"]=c})();jQuery(function(a){a("#comments_template .children").children("li").append("<span class='zapper'></span>");a("#comments_template .commentlist>li").each(function(){if(a(this).children(".children").length==0)a(this).css("background","none")});a(".form-submit").append('<span class="comment-loader"></span>');var b=a(".comment-loader");if(!(a.browser.msie&&a.browser.version<=8))a("#submit").live("click",function(b){var c=a(this).parents("form");var d=c.attr("action");a(".comment-loader").fadeIn("normal");var e=c.serializeObject();a.post(d,e,function(b){var c=jQuery(b);a("#comments_template").html(c.find("#comments_template").html());a(".comment-loader").fadeOut("normal");a(".form-submit").append('<span class="comment-loader"></span>')});b.preventDefault()})});$.fn.serializeObject=function(){var a={};var b=this.serializeArray();$.each(b,function(){if(a[this.name]!==undefined){if(!a[this.name].push){a[this.name]=[a[this.name]]}a[this.name].push(this.value||"")}else{a[this.name]=this.value||""}});return a};(function(a){function c(b,d,e,f){if(d.busy)return;var g=b[0].parentNode,h=b[d.currSlide],i=b[d.nextSlide];if(g.cycleTimeout===0&&!e)return;if(e||!g.cyclePause){if(d.before.length)a.each(d.before,function(a,b){b.apply(i,[h,i,d,f])});var j=function(){if(a.browser.msie)this.style.removeAttribute("filter");a.each(d.after,function(a,b){b.apply(i,[h,i,d,f])})};if(d.nextSlide!=d.currSlide){d.busy=1;a.fn.cycle.custom(h,i,d,j)}var k=d.nextSlide+1==b.length;d.nextSlide=k?0:d.nextSlide+1;d.currSlide=k?b.length-1:d.nextSlide-1}if(d.timeout)g.cycleTimeout=setTimeout(function(){c(b,d,0,!d.rev)},d.timeout)}function b(a,b,d){var e=a[0].parentNode,f=e.cycleTimeout;if(f){clearTimeout(f);e.cycleTimeout=0}b.nextSlide=b.currSlide+d;if(b.nextSlide<0){b.nextSlide=a.length-1}else if(b.nextSlide>=a.length){b.nextSlide=0}c(a,b,1,d>=0);return false}var d="Lite-1.3";a.fn.cycle=function(d){return this.each(function(){d=d||{};if(this.cycleTimeout)clearTimeout(this.cycleTimeout);this.cycleTimeout=0;this.cyclePause=0;var e=a(this);var f=d.slideExpr?a(d.slideExpr,this):e.children();var g=f.get();if(g.length<2){window.console&&console.log("terminating; too few slides: "+g.length);return}var h=a.extend({},a.fn.cycle.defaults,d||{},a.metadata?e.metadata():a.meta?e.data():{});var i=a.isFunction(e.data)?e.data(h.metaAttr):null;if(i)h=a.extend(h,i);h.before=h.before?[h.before]:[];h.after=h.after?[h.after]:[];h.after.unshift(function(){h.busy=0});var j=this.className;h.width=parseInt((j.match(/w:(\d+)/)||[])[1])||h.width;h.height=parseInt((j.match(/h:(\d+)/)||[])[1])||h.height;h.timeout=parseInt((j.match(/t:(\d+)/)||[])[1])||h.timeout;if(e.css("position")=="static")e.css("position","relative");if(h.width)e.width(h.width);if(h.height&&h.height!="auto")e.height(h.height);var k=0;f.css({position:"absolute",top:0,left:0}).each(function(b){a(this).css("z-index",g.length-b)});a(g[k]).css("opacity",1).show();if(a.browser.msie)g[k].style.removeAttribute("filter");if(h.fit&&h.width)f.width(h.width);if(h.fit&&h.height&&h.height!="auto")f.height(h.height);if(h.pause)e.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});var l=a.fn.cycle.transitions[h.fx];l&&l(e,f,h);f.each(function(){var b=a(this);this.cycleH=h.fit&&h.height?h.height:b.height();this.cycleW=h.fit&&h.width?h.width:b.width()});if(h.cssFirst)a(f[k]).css(h.cssFirst);if(h.timeout){if(h.speed.constructor==String)h.speed={slow:600,fast:200}[h.speed]||400;if(!h.sync)h.speed=h.speed/2;while(h.timeout-h.speed<250)h.timeout+=h.speed}h.speedIn=h.speed;h.speedOut=h.speed;h.slideCount=g.length;h.currSlide=k;h.nextSlide=1;var m=f[k];if(h.before.length)h.before[0].apply(m,[m,m,h,true]);if(h.after.length>1)h.after[1].apply(m,[m,m,h,true]);if(h.click&&!h.next)h.next=h.click;if(h.next)a(h.next).bind("click",function(){return b(g,h,h.rev?-1:1)});if(h.prev)a(h.prev).bind("click",function(){return b(g,h,h.rev?1:-1)});if(h.timeout)this.cycleTimeout=setTimeout(function(){c(g,h,0,!h.rev)},h.timeout+(h.delay||0))})};a.fn.cycle.custom=function(b,c,d,e){var f=a(b),g=a(c);g.css(d.cssBefore);var h=function(){g.animate(d.animIn,d.speedIn,d.easeIn,e)};f.animate(d.animOut,d.speedOut,d.easeOut,function(){f.css(d.cssAfter);if(!d.sync)h()});if(d.sync)h()};a.fn.cycle.transitions={fade:function(a,b,c){b.not(":eq(0)").hide();c.cssBefore={opacity:0,display:"block"};c.cssAfter={display:"none"};c.animOut={opacity:0};c.animIn={opacity:1}},fadeout:function(b,c,d){d.before.push(function(b,c,d,e){a(b).css("zIndex",d.slideCount+(e===true?1:0));a(c).css("zIndex",d.slideCount+(e===true?0:1))});c.not(":eq(0)").hide();d.cssBefore={opacity:1,display:"block",zIndex:1};d.cssAfter={display:"none",zIndex:0};d.animOut={opacity:0}}};a.fn.cycle.ver=function(){return d};a.fn.cycle.defaults={animIn:{},animOut:{},fx:"fade",after:null,before:null,cssBefore:{},cssAfter:{},delay:0,fit:0,height:"auto",metaAttr:"cycle",next:null,pause:0,prev:null,speed:200,slideExpr:null,sync:1,timeout:4e3}})(jQuery);addComment={moveForm:function(a,b,c,d){var e=this,f,g=e.I(a),h=e.I(c),i=e.I("cancel-comment-reply-link"),j=e.I("comment_parent"),k=e.I("comment_post_ID");if(!g||!h||!i||!j)return;e.respondId=c;d=d||false;jQuery(h).hide();if(!e.I("wp-temp-form-div")){f=document.createElement("div");f.id="wp-temp-form-div";f.style.display="none";h.parentNode.insertBefore(f,h)}g.parentNode.insertBefore(h,g.nextSibling);jQuery(h).slideDown(700);if(k&&d)k.value=d;j.value=b;i.style.display="";i.onclick=function(){var a=addComment,b=a.I("wp-temp-form-div"),c=a.I(a.respondId);if(!b||!c)return;jQuery(c).slideUp(300,function(){a.I("comment_parent").value="0";b.parentNode.insertBefore(c,b);b.parentNode.removeChild(b);$(this).show()});this.style.display="none";this.onclick=null;return false};try{e.I("comment").focus()}catch(l){}return false},I:function(a){return document.getElementById(a)}};$(document).ready(function(){$(".toggle_container").hide();$("h2.trigger").click(function(){$(this).toggleClass("active").next().slideToggle("fast");return false})})
