site_base_url=window.location.protocol+"//"+window.location.host+"/";var ekedit='203d6fd2510e3483c6b481f7181c27c4';site_base_url_patt=site_base_url.replace(/\//g,"\\\/");function loadCheckScript(controller,callback){if($j("html").data(controller)!=true){$j.getScript(site_base_url+scriptsURL,callback);$j("html").data(controller,true);}
else{callback();}}
function addslashes(str){return(str+'').replace(/[\\"']/g,'\\$&').replace(/\u0000/g,'\\0');}
function loadCheckDom(data,hash){eval(data.hide_script);if($j("#"+data.id).data("domLoaded")!=true){if(data.destination!=undefined){$j("#"+data.destination).load(ajaxURL+data.filter,"&id="+data.id,function(){if(data.elements!=undefined){$j.each(data.elements,function(i,item){loadCheckDom(item,hash);});}
eval(data.init_script);});}else{eval(data.init_script);}
$j("#"+data.id).data("domLoaded",true);}
eval(data.show_script);}
var $j=jQuery.noConflict();var $=$j;jQuery(document).ready(function(){$j(window).data("news",true);$j(window).data("media",true);$j(window).data("thegroup",false);$j(window).data("guestbook",false);$j(window).data("shows",false);$j(window).data("music",false);$j(window).data("booking",false);$j(window).historyadd(function(e,hash,prevHash){pageNavigate(hash,prevHash);});$j(window).history(function(e,hash,prevHash){pageNavigate(hash,prevHash);});$j('html').addClass('js');$j(document).data('site_base_url',site_base_url);var page=$j.history.getCurrent().replace("&rebuild=true","");var controller=page.split("&");site_reg=new RegExp(site_base_url_patt,"g");path=location.href.replace(site_reg,"").split("/");$j.getJSON(site_base_url+"news/pages",function(data){$j.each(data,function(i,item){if($j.inArray(item,path)!=-1)page=item;if((path.length==1)&&(path[0]=="")&&(page=="")){page="news?"}
if(window.location.hash==""){pageNavigate(page);}else{hash=window.location.hash.substring(1,window.location.hash.length);pageNavigate(hash);}});});});var jsonURL,scriptsURL,ajaxURL,hash,urlController,hashController;function pageNavigate(hash,prevHash){hash_parts=hash.split('?');if(hash.indexOf('?')!=-1){controller=hash_parts[0];args=hash_parts[1];}else{controller="";args=hash_parts[0];}
if((prevHash==undefined)&&(args.length>1)){args=args+"&rebuild=true";}
urlController=path[0];hashController=controller;if((urlController!=hashController)&&!((urlController=="")&&(hashController=="news"))&&!(hashController=="")){currentHash=window.location.hash;window.location.href=site_base_url+hashController+"/"+currentHash;$j.history.add(currentHash);}
if(urlController!=""){jsonURL="/"+urlController+"/json?&"+args;scriptsURL="/"+urlController+"/scripts?&"+args;ajaxURL="/"+urlController+"/ajax?&"+args;}else{jsonURL="/news/json/?"+args;scriptsURL="/news/scripts/?"+args;ajaxURL="/news/ajax/?"+args;}
if($j(window).data(currentController())==true){loadCheckScript(currentController(),function(){$j.getJSON(jsonURL,function(data){$j.each(data,function(i,item){loadCheckDom(item,hash);});});});}};function currentController(){if(urlController=="")return"news";else return urlController;}
function hideBanner(){$j('#topOverlay').css('display','none');$j('#topimage').css('display','none');$j('#mid').addClass('bottom-right-square-corner');$j('#content').height('600px');}
function showBanner(){$j('#topimage').css('display','block');$j('#topOverlay').css('display','block');$j('#mid').removeClass('bottom-right-square-corner');}
function showDialogBox(){$j('#dim').show();growDialogBox(0.05,0,1.0);$j('#dialog_box').show();$j('#dim').animate({opacity:0.9},1000);$j('#dialog_box').animate({"opacity":'0.2'},1000);}
function hideDialogBox(){$j('#dim').animate({display:'none',opacity:0},00);$j('#dialog_box').animate({opacity:'0'},00);$j('#dialog_box').hide();$j('#dim').hide();}
function growDialogBox(percent,time,op,bg,callback){if(!bg){bg="#cccccc";}
screen_w=$j("#dim").width();screen_h=$j("#dim").height();$j("#dialog_box").css("background-color",bg);$j("#dialog_box").html("Loading...").animate({width:(screen_w*percent)+'px',height:(screen_h*percent)+'px',left:(((screen_w)-(screen_w*percent))/2)+'px',top:(((screen_h)-(screen_h*percent))/2)+'px',opacity:op},time,callback);}
