$(document).ajaxSend(function(c,b,a){if(typeof(AUTH_TOKEN)=="undefined"){return}a.data=a.data||"";a.data+=(a.data?"&":"")+"authenticity_token="+encodeURIComponent(AUTH_TOKEN)});jQuery.ajaxSetup({beforeSend:function(a){a.setRequestHeader("Accept","text/javascript")}});jQuery.fn.exists=function(){return jQuery(this).length>0};var setWindowLocation=function(a){window.location.hash=a};$(document).ready(function(){$("a").css("outline","none");$(".clearable").focus(function(){var el=$(this);if(el.val()==el.attr("title")){el.val("")}});$(".clearable").blur(function(){var el=$(this);if(el.val()===""){el.val(el.attr("title"))}});$('input[type="hidden"]').css({position:"absolute",top:"0",left:"-9999em"});$(".pagination a").live("click",function(){$(".pagination").html("Loading content...");$.get(this.href,null,null,"script");return false});$("#manifesto-slides").cycle({timeout:0,speed:1000,easing:"easeInOutQuad",pager:".menu",next:".next",pagerAnchorBuilder:function(idx,slide){idxNUM=idx+1;return'<a href="#">'+idxNUM+"</a>"}});$(".tweet").tweet({username:"crushlovely",join_text:"auto",avatar_size:0,count:1,auto_join_text_default:"we said,",auto_join_text_ed:"we",auto_join_text_ing:"we were",auto_join_text_reply:"we replied to",auto_join_text_url:"we were checking out",loading_text:"loading tweets..."}).bind("empty",function(){$("#latest-tweet").hide()});$("#lovelies li:nth-child(2n)").addClass("last");$("#client-list li:nth-child(3n)").addClass("last");$("#client-list li:nth-child(2n)").addClass("");$("#follow-link").click(function(e){$("#follow").slideToggle("slow");e.preventDefault()});$(".full-capabilities").hide();$("#view-full-capabilities").click(function(e){$(".full-capabilities").slideToggle("slow");e.preventDefault()});
/*@cc_on 
    @if ( @_jscript_version < 5.7 )
      var warning = document.createElement('p');
      warning.id = 'ie-warning';
      warning.innerHTML = "You're viewing this page with minimal styles because your browser is old, insecure, and no longer supported by its manufacturer. We recommend upgrading to a modern web browser like <a href=\"http://www.apple.com/safari/\" rel=\"external\">Safari</a> or <a href=\"http://www.mozilla.com/en-US/firefox/personal.html\" rel=\"external\">Firefox</a> for a much improved web experience.";
      document.body.insertBefore(warning, document.getElementById('top-bar'));
    @end
  @*/
});
