TRUELOCALHomePage=function(){return{init:function(){$("#notification-close").click(this.closeNotification)},closeNotification:function(A){$(this).parent().parent().fadeOut("default",function(){$(this).remove()})}}}();$(function(){TRUELOCALHomePage.init()});TL=window.TL||{};TL.SuperWidget=function(){return{showRandomCategory:function(){var B=$("#popTabs li").children().length;var A=Math.ceil(Math.random()*B);$("#popTabs li:nth-child("+A+")").children("a").trigger("mouseover")},showCategory:function(E,F){$("#popItemOne .popCat").hide();$("#popItemOne > #superCat-"+E).show();$("#popTabs a").removeClass("active");$("#popTabs #superCatLink-"+E).addClass("active");var D=Math.floor(Math.random()*5);var C=$("#businesses-"+E+" ol").children()[D];var B=$(C).attr("id");var A=B.split("_")[1];this.showRecentReview(E,A,D);return false},showRecentReview:function(B,A,C){A=jQuery.trim(A);if($("#recent-review-"+B+"-"+A).html()==""){$("#recent-review-"+B+"-"+A).html("<div></div>");$("#recent-review-"+B+"-"+A).load("/showRecentReview.do?organisationId="+A+"&fbreload=true")}$("#recent-reviews-"+B+" > div").css("display","none");$("#recent-reviews-"+B+" > #recent-review-"+B+"-"+A).css("display","block");TL.SuperWidget.highlightRatingsCount(B,A)},highlightRatingsCount:function(B,A){$("#businesses-"+B+" .rCount").removeClass("redtext");$("#businesses-"+B+" #rCount-"+A).addClass("redtext")}}}();$(document).ready(function(){adkit.onload("ads",function(){adkit.ads.leaderboard().write("ndmadkit-leaderboard-1")});adkit.onload("ads",function(){adkit.ads.leaderboard().write("ndmadkit-leaderboard-2")})});jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H<J.length;H++){var C=jQuery.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return D}};
