
var Authcache={'isEnabled':true,'isDebug':false,'json':{},'ajax':{},'info':{},'ajax_count':0,'timeStart':new Date().getTime()};Authcache.init=function(){Authcache.init.preprocess();authcacheLength=0;for(i in Authcache.ajax){authcacheLength++;}
if(authcacheLength>1||(!Authcache.isEnabled&&authcacheLength>0)){Authcache.ajaxRequest(Authcache.ajax);}else if(Authcache.isDebug){$("#authcachedebug").append("Ajax request not sent.<br>");Authcache.debugTimer();}}
Authcache.init.preprocess=function(){$(".authcache-user").html($.cookie("drupal_user"));$("a.authcache-user-link").each(function(){$this=$(this);$this.html($this.html().replace('!username',$.cookie("drupal_user"))).attr("href",Drupal.settings.basePath+'user');});$("form input[name='form_token_id']").each(function(){if(Authcache.ajax["form_token_id[]"]==null)Authcache.ajax["form_token_id[]"]=new Array();Authcache.ajax["form_token_id[]"].push(this.form.form_token_id.value);});$("form").submit(function(){if(typeof this.form_token_id!="undefined"&&!this.form_token.value){this.form_token.className="authcache-must-submit";Authcache.ajaxRequest({"form_token_id[]":this.form_token_id.value});return false;}});$("a:contains('My account')").attr("href",Drupal.settings.basePath+"user");if(Authcache.info.tab_hide!=null&&Authcache.info.node_author!=null&&Authcache.info.node_author!=$.cookie("drupal_user")){for(i in Authcache.info.tab_hide){$("ul.primary li:contains('"+Authcache.info.tab_hide[i]+"')").remove();}
if($("ul.primary li").length==1){$("ul.primary").remove();}}
if(Authcache.isEnabled){if(Authcache.info.node_author!=null&&Authcache.info.node_author==$.cookie("drupal_user")&&!$("ul.primary").length){ajaxJson={'q':Authcache.ajax.q,'menu_local_tasks':1,'max_age':86400};Authcache.ajaxRequest(ajaxJson);}
if(Authcache.info.cache_uid&&Authcache.ajax.q.substring(0,5)=="forum"){$(".authcache-topic-new").each(function(i,elSpan){if(Authcache.ajax["forum_topic_new[]"]==null)Authcache.ajax["forum_topic_new[]"]=new Array();id=Authcache.getValue("forum-id-",elSpan.className);Authcache.ajax["forum_topic_new[]"].push(id);});$(".authcache-topic-info").each(function(i,elSpan){timestamp=Authcache.getValue("timestamp-",elSpan.className);nid=Authcache.getValue("nid-",elSpan.className);Authcache.ajax["forum_topic_info["+nid+"]"]=new Array(timestamp);});}
if(Authcache.info.comment_usertime!=null){$(".authcache-comment-edit.comment-uid-"+$.cookie("drupal_uid")).each(function(i,elSpan){cid=Authcache.getValue("comment-id-",elSpan.className);$(this).parent().find(".links").find(".first").removeClass("first").parent().prepend('<li class="comment_edit first"><a href="'+Drupal.settings.basePath+'comment/edit/'+cid+'">'+Authcache.info.t.edit+'</a></li>');});}}
if($("#block-poll-0").length||$("#poll-view-voting").length){$(".poll").each(function(i,el){elNid=$(el).find(".authcache-poll");nid=Authcache.getValue("nid-",elNid.get(0).className);ajaxJson={'poll[nid]':nid,'poll[block]':$(el).parents(".block-inner").length,'time':$.cookie('nid'+nid),'max_age':600};Authcache.ajaxRequest(ajaxJson);});}};Authcache.ajaxRequest=function(jsonData){$.ajax({url:Drupal.settings.basePath,type:"GET",dataType:"json",data:jsonData,async:(jsonData.max_age!=null)?false:true,success:function(data){Authcache.json=jQuery.extend(true,Authcache.json,data);for(key in data){funcName="_authcache_"+key;try{eval(funcName+"(data[key])");}catch(e){}}
if(Authcache.isDebug){Authcache.debug({'sent':jsonData,'received':data});}},beforeSend:function(xhr){xhr.setRequestHeader("Authcache","1");},error:Authcache.ajaxError});}
Authcache.ajaxError=function(XMLHttpRequest,textStatus,errorThrown){if(Authcache.isDebug){$("#authcachedebug").append(Authcache.debugFieldset("Ajax Response Error ("+textStatus+")",{"ERROR":XMLHttpRequest.responseText.replace(/\n/g,"")}));}}
Authcache.getValue=function(needle,str){matches=str.match(eval("/"+needle+"(.[^\\s]*)/"));return(matches==null)?false:matches[1];}
jQuery(function(){if(typeof authcacheFooter=="undefined"){Authcache.isEnabled=false;}
else{Authcache=jQuery.extend(true,Authcache,authcacheFooter);}});function _authcache_form_token_id(vars){for(key in vars){$("form input[name='form_token_id'][value='"+key+"']").each(function(){oInputToken=$(this.form).find("input[name='form_token']");oInputToken.val(vars[key]);if(oInputToken.hasClass("authcache-must-submit")){this.form.submit();}});}}
function _authcache_contact(vars){$("#contact-mail-page input[name='name']").val(vars.name);$("#contact-mail-page input[name='mail']").val(vars.mail);}
function _authcache_node_history(historyTimestamp){if(Authcache.info.comment_usertime!=null){$(".authcache-comment-new").each(function(i,elSpan){timestamp=Authcache.getValue("timestamp-",elSpan.className);if(timestamp>=historyTimestamp||(timestamp>=Authcache.info.comment_usertime&&Authcache.info.cache_time>=historyTimestamp-2&&Authcache.info.cache_uid==$.cookie("drupal_uid"))){$(elSpan).hide().html(Authcache.info.t["new"]).fadeIn();}})}}
function _authcache_forum_topic_new(vars){for(id in vars){$(".authcache-topic-new.forum-id-"+id).before("<br />").hide().html(""+vars[id]).fadeIn();}}
function _authcache_forum_topic_info(vars){for(id in vars){$(".authcache-topic-replies.nid-"+id).before("<br />").hide().html(""+vars[id]).fadeIn();oIcon=$(".authcache-topic-icon.nid-"+id);oIcon.html(oIcon.html().replace(/default/g,"new"));oIcon.html(oIcon.html().replace(/-hot/g,"-hot-new"));}}
function _authcache_poll(vars){if(vars.block==1){$("#block-poll-0 .poll").html(vars.html);}else{$("#node-"+vars.nid+" .poll").html(vars.html);}}
function _authcache_menu_local_tasks(vars){$("#authcache-tabs").html(vars);}
jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;};var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;};expires='; expires='+date.toUTCString();};var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}};return cookieValue;}};jQuery(function(){if($.cookie('authcache_debug')||Drupal.settings.authcacheDebug!=null){Authcache.isDebug=true;Authcache.debug(false);$.cookie('authcache_debug',1);}})
Authcache.debug=function(ajaxData){if(!ajaxData){legend=($.cookie('drupal_user'))?" (logged in: "+$.cookie('drupal_user')+')':'';if(Authcache.isEnabled){utc=(new Date()).toUTCString();utcTimestamp=Date.parse(utc)/1000;Authcache.info["(page_age)"]=Math.round(utcTimestamp-Authcache.info.cache_time)+" seconds";$("#authcache-info").html("<strong>This page was cached "+Authcache.info["(page_age)"]+" ago.</strong>");if(utcTimestamp-Authcache.info.cache_time<-10){$("#authcache-info").append("<div style=\"font-size:85%\">Your computer's <a href=\"http://tycho.usno.navy.mil/cgi-bin/timer.pl\">time</a> may be off.</div>");}
if(!$.cookie('authcache_debug')){Authcache.info.cache_render='This is your first site visit and the debug cookie has just been set.';}else if(!isNaN($.cookie("cache_render"))){Authcache.info.cache_render=$.cookie("cache_render")+" ms"
Authcache.info.cache_render+=" ("+Math.round((Authcache.info.page_render-$.cookie("cache_render"))/$.cookie("cache_render")*100).toString().replace(/(\d+)(\d{3})/,'$1'+','+'$2')+"% increase)"
$.cookie("cache_render",null);}else if($.cookie("cache_render")){Authcache.info.cache_render=$.cookie("cache_render");}else{Authcache.info.cache_render="n/a (try a different browser?)";}
Authcache.info.page_render+=" ms";debugInfo=Authcache.debugFieldset("Authcache.info"+legend,Authcache.info);}else{if(JSON.stringify(Authcache.info)=="{}")Authcache.info="Authcache.info JSON is empty!";debugInfo=Authcache.debugFieldset("Authcache prevented caching",{"NO_CACHE":"Page not cached.","INFO":Authcache.info});}
debugInfo+='<a href="#" onclick="return Authcache.debugDisable();">Disable caching for this browser session</a>';$("body").prepend("<div style='z-index:100;text-align:left;font-size:11px;left:0px;position:absolute;background:#f7f7f7;color:#000;padding:5px;'><b><a href='#' id='authcachehide'>Authcache Debug</a></b><div id='authcachedebug' style='display:none;'>"+debugInfo+"</div></div>");$("#authcachehide").click(function(){$("#authcachedebug").toggle();return false;})
Authcache.debugTimer();}else{ajaxLink='Request:';legend="Authcache.ajaxRequest #"+(++Authcache.ajax_count);if(typeof ajaxData.sent.max_age!="undefined")legend+=" (Response cached for "+Math.round(ajaxData.sent.max_age/3600)+" hour(s) -- see max_age)";debugInfo="<fieldset><legend><b>"+legend+"</b></legend>"+Authcache.debugFieldset(ajaxLink,ajaxData.sent)+
Authcache.debugFieldset("Response:",ajaxData.received)+"</fieldset>";$("#authcachedebug").append(debugInfo);Authcache.debugTimer();}}
Authcache.debugDisable=function(){if(confirm("Are you sure? (You can renable caching by closing and reopening your browser.)")){$.cookie('nocache',1);location.reload(true);}
return false;}
Authcache.debugTimer=function(){timeMs=new Date().getTime()-Authcache.timeStart;$("#authcachedebug").append("HTML/JavaScript time: "+timeMs+" ms <hr size=1>");}
Authcache.debugFieldset=function(title,jsonData){fieldset='<div style="clear:both;"></div><fieldset style="float:left;min-width:240px;"><legend>'+title+'</legend>';for(key in jsonData){fieldset+="<b>"+key+"</b>: "+JSON.stringify(jsonData[key])+'<br>';}
fieldset+='</fieldset><div style="clear:both;">';return fieldset;}
if(!this.JSON){JSON={};}
(function(){function f(n){return n<10?'0'+n:n;}
if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinutes())+':'+
f(this.getUTCSeconds())+'Z';};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}
function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
if(typeof rep==='function'){value=rep.call(holder,key,value);}
switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
v=partial.length===0?'[]':gap?'[\n'+gap+
partial.join(',\n'+gap)+'\n'+
mind+']':'['+partial.join(',')+']';gap=mind;return v;}
if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+
mind+'}':'<br>{'+partial.join(',<br>')+'}';gap=mind;return v;}}
if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
return str('',{'':value});};}
if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
return reviver.call(holder,key,value);}
cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+
('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}
if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
throw new SyntaxError('JSON.parse');};}})();;
<!-- Authcache Footer JSON -->
<script type="text/javascript">
var authcacheFooter = {"info":{"page_render":114.83,"cache_render":"-1","cache_uid":0,"cache_inc":"memcache.inc","cache_time":1329979083},"ajax":{"q":"sites\/default\/files\/advagg_js\/js_075d26b36df4d6688370be35068142be_37.js"}};
</script>

