$j(document).ready(function(){var h=location.href;if(h=="http://theadvocate.com/"||h=="http://www.theadvocate.com/"||h=="http://theadvocate.com"||h=="http://www.theadvocate.com"){$j(document).oneTime(500000,function(){if(h.indexOf("?")!=-1){h=h.substring(0,h.lastIndexOf("?"))}location.href=h})}$j("#latest-news .entry-title:gt(0)").hover(function(){$j(this).nextAll(".preview").css("display","block")},function(){$j(this).nextAll(".preview").css("display","none")});$j("#todays-advocate .sections a").fancybox({autoDimensions:false,width:550,height:492,margin:0,scrolling:"no",overlayOpacity:0.5,overlayColor:"#000"});$j("#nav .primary a").mouseover(function(){var i=$j(this).attr("rel");$j("#nav .current").removeClass("current");$j("#sub-nav .current").css("display","none").removeClass("current");$j(this).addClass("current");$j("#sub-nav #"+i).css("display","block").addClass("current")});$j("#mid-nav a").click(function(){var i=$j(this).attr("href").substring(1,$j(this).attr("href").length);$j("#mid-nav .current").removeClass("current");$j("#center-content .current").css("display","none").removeClass("current");$j(this).addClass("current");$j("#center-content #"+i).css("display","block").addClass("current");return false});$j("#mid-nav-2 a").click(function(){var i=$j(this).attr("href").substring(1,$j(this).attr("href").length);$j("#mid-nav-2 .current").removeClass("current");$j("#center-content-2 .current").css("display","none").removeClass("current");$j(this).addClass("current");$j("#center-content-2 #"+i).css("display","block").addClass("current");return false});function p(s){var r=$j("#latest-news .hentry:eq(0)").attr("id");r=parseInt(r.substring(r.lastIndexOf("-")+1,r.length));var t=$j("#latest-news .hentry:eq(9)").attr("id");t=parseInt(t.substring(t.lastIndexOf("-")+1,t.length));if(s=="newer"){var u=t+1}else{if(s=="older"){var u=r-10}}var q="#latest-news .hfeed";$j(q).html("");var i=10;$j.getJSON("http://www.2theadvocate.com/templates/articles.index.json?start="+u+"&quantity=10",function(v){$j.each(v.entries,function(x,z){if(s=="newer"){var D=t+(x+1)}else{if(s=="older"){var D=r-i;i--}}var y=$j("<a/>").attr("class","entry-title bookmark").attr("href",z.url).text(z.title);if(x==0){var C=$j("<h2/>").html(y);if(z.author!=null){var A=$j("<div/>").addClass("vcard").html($j("<a/>").addClass("fn url author").attr("href","#").text(z.author))}if(z.published!=null){var B=$j("<time/>").addClass("updated").attr("timedate",z.published).text(z.published)}var w=$j("<p/>").attr("class","entry-summary").text(z.summary);$j("<li/>").attr({id:"latest-"+D,"class":"hentry featured"}).append(C).append(w).appendTo(q)}else{$j("<li/>").attr({id:"latest-"+D,"class":"hentry"}).html(y).appendTo(q)}})})}$j("#latest-news .older").click(function(){p("newer");return false});$j("#latest-news .newer").click(function(){if($j("#latest-news .hentry:eq(0)").attr("id")!="latest-1"){p("older")}return false});$j("#featured-content .featured-item.big-photo figcaption a").click(function(){var i=$j("#lead-caption").css("display");if(i=="block"){$j("#featured-content .featured-item.big-photo figcaption a").text("Show caption");$j("#lead-caption").css("display","none")}else{$j("#featured-content .featured-item.big-photo figcaption a").text("Hide caption");$j("#lead-caption").css("display","block")}return false});function d(i,s){var q="#"+i+" .hfeed";$j(q).html("");if(s=="/features/food/recipes"){var r="http://www.2theadvocate.com/templates/articles.index.json?type=Recipe&quantity=6&section="+s}else{var r="http://www.2theadvocate.com/templates/articles.index.json?quantity=6&section="+s}$j.getJSON(r,function(t){$j.each(t.entries,function(v,y){var w=y.type.toLowerCase();var x=$j("<a/>").attr("class","entry-title bookmark").attr("href",y.url).text(y.title);if(v==0){var z=$j("<h1/>").html(x);var u=$j("<p/>").attr("class","entry-summary").text(y.summary);if(y.mediaURL!=null){$j("<img/>").attr({alt:y.mediaAltText,src:y.mediaURL}).css("width","130px").prependTo(u)}$j("<div/>").attr("class","hentry featured").append(z).append(u).appendTo(q)}else{if(v==1){$j("<ul/>").attr("class","more").appendTo(q)}$j("<li/>").attr("class","hentry "+w).html(x).appendTo(q+" ul")}})})}$j(".center-col .panel nav a").click(function(){var q=$j(this).attr("href");var i=$j(this).parents(".panel:eq(0)").attr("id");$j("#"+i+" nav a.current").removeClass("current");$j(this).addClass("current");d(i,q);return false});$j("#zvents-widget .zvents_invertednav a").click(function(){$j("#zvents-widget .zvents_invertednav a").removeClass("current");$j(this).addClass("current");return false});var n=0;var o=$j("#carousel .slides").css("width");if(o){o=parseInt(o.substring(0,o.indexOf("px")));o=(o/138)/6;$j("#carousel .prev").click(function(){if(n>0){$j("#carousel .slides ul").animate({"margin-left":"+=900px"},500);$j(this).css("background-position","left top");n--}else{}return false});$j("#carousel .next").click(function(){if(n<=o){$j("#carousel .slides ul").animate({"margin-left":"-=900px"},500);n++}else{}return false})}$j("#verticals-widget a").click(function(){$j("#verticals-widget a").removeClass("current");$j(this).addClass("current");return false});var f=$j("#verticals-widget .content iframe");$j("#verticals-widget a.jobs").click(function(){f.attr({src:"http://2theadvocate.com/includes/verticals-widget.html",height:"114"})});$j("#verticals-widget a.wheels").click(function(){f.attr({src:"http://advocate.motors.adicio.com/autos/widgets/featuredAutos.php?clientId=advocate&pp=2&cols=2&nopageview=y&nouniquevisitor=y",height:"190"})});$j("#verticals-widget a.shop").click(function(){f.attr({src:"http://2theadvocate.com/includes/shop-widget.html",height:"120"})});$j("#site-search nav a").click(function(){var i=$j(this).attr("href").substring(1,$j(this).attr("href").length);$j("#site-search .current").removeClass("current");$j(this).addClass("current");$j("#site-search #"+i).addClass("current");return false});var m=new Date();if(document.getElementById("archives-month")){var b=document.getElementById("archives-month").getElementsByTagName("option");var a=m.getMonth();for(var g=0;g<b.length;g++){var l=b[g];if(g==a){l.selected=true}}document.getElementById("archives-day").value=m.getDate();document.getElementById("archives-year").value=m.getFullYear()}$j("#site-search #by-keywords").submit(function(){var q=$j("#site-search #by-keywords select").val();var i="http://theadvocate.com/search/searchresults/";if(q=="zvents"){i="http://calendar.2theadvocate.com/search";$j("#site-search #by-keywords input[name=searchKeywords]").attr("name","swhat");$j("<input/>").attr({type:"hidden",name:"where",value:"Baton+Rouge%2C+LA"}).appendTo($j(this));$j("<input/>").attr({type:"hidden",name:"srad",value:"50.0"}).appendTo($j(this));$j("<input/>").attr({type:"hidden",name:"st",value:"event"}).appendTo($j(this));$j("<input/>").attr({type:"hidden",name:"search",value:"true"}).appendTo($j(this))}else{if(q=="classifieds"){i="http://theadvocate.ca.kaango.com/feListAds";$j("#site-search #by-keywords input[name=searchKeywords]").attr("name","search");$j("<input/>").attr({type:"hidden",name:"where",value:"Baton+Rouge%2C+Louisiana"}).appendTo($j(this))}else{if(q=="jobs"){i="http://advocate.careers.adicio.com/careers/jobsearch/results";$j("#site-search #by-keywords input[name=searchKeywords]").attr("name","kAndEntire");$j("<input/>").attr({type:"hidden",name:"city",value:"Baton+Rouge"}).appendTo($j(this));$j("<input/>").attr({type:"hidden",name:"state",value:"Louisiana"}).appendTo($j(this))}else{if(q=="wheels"){i="http://advocate.motors.adicio.com/autos/search/results.php";$j("#site-search #by-keywords input[name=searchKeywords]").attr("name","keywords");$j("<input/>").attr({type:"hidden",name:"zip",value:"70810"}).appendTo($j(this))}else{if(q=="shop"){i="http://shop.theadvocate.com/mkt/BatonRouge/local/Results.aspx";$j("#site-search #by-keywords input[name=searchKeywords]").attr("name","k");$j("<input/>").attr({type:"hidden",name:"f",value:"1"}).appendTo($j(this))}}}}}$j(this).attr("action",i)});if(location.href.indexOf("voted=y")!=-1){var k=$j("#theadvocate-poll header ul a.current").attr("href");var e=$j(this).attr("href");$j(k).removeClass("current");$j(e).addClass("current");$j("#theadvocate-poll header ul a.current").removeClass("current");$j(this).addClass("current");location.href=location.href+"#theadvocate-poll"}$j("#theadvocate-poll header ul a").click(function(){var q=$j("#theadvocate-poll header ul a.current").attr("href");var i=$j(this).attr("href");$j(q).removeClass("current");$j(i).addClass("current");$j("#theadvocate-poll header ul a.current").removeClass("current");$j(this).addClass("current");return false});function j(){}if(location.href.indexOf("grid=y")!=-1){$j("<div.>").css({width:"100%",height:"100%",position:"fixed",left:"0",top:"0",background:"url(http://advocate.ftp.clickability.com/adv_weather/assets/v2/img/grid.png) center repeat-y"}).appendTo("body")}$j(".story .view-larger-map").colorbox({width:840,height:520,iframe:true,opacity:0.4});if(navigator.userAgent.indexOf("MSIE 7")==-1){var c=250}else{var c=280}$j("#user-management .options").css("background","none");$j("#user-management .wait").fadeIn(300);$j("#signin-modal").colorbox({width:380,height:c,iframe:true,opacity:0.4,transition:"none",onComplete:function(){$j("#cboxClose").css("display","none")},onClosed:function(){$j("#cboxClose").css("display","block")}});$j(".story #print-this").css("display","block");if(navigator.userAgent.indexOf("MSIE 8")==-1){$j(".story #print-this").colorbox({width:550,height:600,iframe:true,opacity:0.4})}else{$j(".story #print-this").click(function(){var i=$j(this).attr("href");window.open(i,"","height=600, width=550, location=no, directories=no, ");return false})}$j(".story a.show-caption").toggle(function(){$j(".story #main-photo-caption").css("display","block");$j(".story a.show-caption").text("Hide caption");return false},function(){$j(".story #main-photo-caption").css("display","none");$j(".story a.show-caption").text("Show caption");return false});$j(".story figure").each(function(){if(!$j(this).find("img").attr("src")){if(!$j(this).find("iframe").attr("src")){$j(this).remove()}}});if(navigator.userAgent.indexOf("MSIE")!=-1){$j('.story div[role="main"] article .main .author p:eq(0)').css({"font-family":'"Helvetica Neue",Arial,sans-serif',"font-weight":"bold","text-transform":"uppercase"})}});
