function css_browser_selector(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',o='opera',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js'];c=b.join(' ');h.className+=' '+c;return c;};css_browser_selector(navigator.userAgent);(function(F,C){var D=function(H){var G,I=[];for(G in H){if(/string|number/.test(typeof H[G])&&H[G]!==""){I.push(G+'="'+H[G]+'"')}}return I[A]("")},E=function(I){var G,K,J=[],H;if(typeof I=="object"){for(G in I){if(typeof I[G]=="object"){H=[];for(K in I[G]){H.push([K,"=",encodeURIComponent(I[G][K])][A](""))}I[G]=H[A]("&amp;")}if(I[G]){J.push(['<param name="',G,'" value="',I[G],'" />'][A](""))}}I=J[A]("")}return I},B=false,A="join";F[C]=(function(){try{var G="0,0,0",H=navigator.plugins["Shockwave Flash"]||ActiveXObject;G=H.description||(function(){try{return(new H("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(J){}}())}catch(I){}G=G.match(/^[A-Za-z\s]*?(\d+)[\.|,](\d+)(?:\s+[d|r]|,)(\d+)/);return{available:G[1]>0,activeX:H&&!H.name,version:{major:G[1]*1,minor:G[2]*1,release:G[3]*1},hasVersion:function(K){var N=this.version,L="major",M="minor",J="release";K=(/string|number/.test(typeof K))?K.toString().split("."):K||[0,0,0];K=[K[L]||K[0]||N[L],K[M]||K[1]||N[M],K[J]||K[2]||N[J]];return(K[0]<N[L])||(K[0]==N[L]&&K[1]<N[M])||(K[0]==N[L]&&K[1]==N[M]&&K[2]<=N[J])},expressInstall:"expressInstall.swf",create:function(J){if(!F[C].available||B||!typeof J=="object"||!J.swf){return false}if(J.hasVersion&&!F[C].hasVersion(J.hasVersion)){J={swf:J.expressInstall||F[C].expressInstall,attrs:{id:J.id||"SWFObjectExprInst",name:J.name,height:Math.max(J.height||137),width:Math.max(J.width||214)},params:{flashvars:{MMredirectURL:location.href,MMplayerType:(F[C].activeX)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}};B=true}else{J=F.extend(true,{attrs:{id:J.id,name:J.name,height:J.height||180,width:J.width||320},params:{wmode:J.wmode||"opaque",flashvars:J.flashvars}},J)}if(F[C].activeX){J.attrs.classid=J.attrs.classid||"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";J.params.movie=J.params.movie||J.swf}else{J.attrs.type=J.attrs.classid||"application/x-shockwave-flash";J.attrs.data=J.attrs.data||J.swf}return["<object ",D(J.attrs),">",E(J.params),"</object>"][A]("")}}}());F.fn[C]=function(G){if(typeof G=="object"){this.each(function(){var I=document.createElement(C);var H=F[C].create(G);if(H){I.innerHTML=H;if(I.childNodes[0]){this.appendChild(I.childNodes[0])}}})}else{if(typeof G=="function"){this.find("object").andSelf().filter("object").each(function(){var I=this,H="jsInteractionTimeoutMs";I[H]=I[H]||0;if(I[H]<660){if(I.clientWidth||I.clientHeight){G.call(this)}else{setTimeout(function(){F(I)[C](G)},I[H]+66)}}})}}return this}}(jQuery,"flash"));$(document).ready(function(){var root_url="http://www.antifestival.com/";function replace(str,text,replacement){var strLength=replacement.length,txtLength=text.length;if((strLength==0)||(txtLength==0))return str;var i=str.indexOf(text);if((!i)&&(text!=str.substring(0,txtLength)))return str;if(i==-1)return str;var newstr=str.substring(0,i)+replacement;if(i+txtLength<strLength)
newstr+=replace(str.substring(i+txtLength,strLength),text,replacement);return newstr;}
function taLimitMaxlength(){$('textarea[maxlength]').keyup(function(){var max=parseInt($(this).attr('maxlength'));if($(this).val().length>max){$(this).val($(this).val().substr(0,$(this).attr('maxlength')));}
$(this).parent().find('.remaining').html((max-$(this).val().length));});}
taLimitMaxlength();function scaleBg()
{var proportion=1280/900;var winProportion=$(window).width()/$(window).height();if(winProportion>=proportion)
{$("div.bg img").attr("style","width: "+$(window).width()+"px; height: auto");}
else
{$("div.bg img").attr("style","height: "+$(window).height()+"px; width: auto");}
$("div.bg").attr("style","width: "+$(window).width()+"px; height: "+$(window).height()+"px");}
var resizeTimer=null;$(window).bind('resize',function()
{if(resizeTimer)clearTimeout(resizeTimer);resizeTimer=setTimeout(scaleBg,10);});scaleBg();$("a.blank").attr("target","_blank");var maxwidth=$("#content .text").width();$("#contents img").each(function()
{if($(this).width()>$(this).parent().width())
{var img=$(this).attr("src").split(root_url);$(this).hide().attr("style","").attr("src","/images/thumb/phpThumb.php?src=/"+img[1]+"&w=475&f=jpg").wrap('<div class="image" />').show();}});var currentyear=$("body").attr("id").substr(4);if($("body").hasClass("fin")){$("li#nav-"+currentyear+"-eng").remove();}
if($("body").hasClass("eng")){$("li#nav-"+currentyear+"-fin").remove();}
$("#nav li a:eq(0), #nav li a:eq(1), #nav ul li ul li ul li ul li").hide();$("#navigation ul#nav").mouseenter(function()
{$("#navigation ul#nav li ul li ul li.here ul, #navigation ul#nav li ul li ul li.parent-here ul, #navigation ul#nav li ul li ul li.parent-here ul li").addClass("shown");});$("#navigation ul#nav").mouseleave(function()
{$("#navigation ul#nav li ul li ul li.here ul, #navigation ul#nav li ul li ul li.parent-here ul, #navigation ul#nav li ul li ul li.parent-here ul li").delay(200).fadeIn().addClass("shown");});$("#navigation ul#nav li ul li ul li, #navigation ul#nav li ul li ul li.here").hover(function()
{$(this).find("ul").show();$(this).find("li").css("display","inline");},function(){$(this).find("ul").hide();$(this).find("li").css("display","none");});var ajax_load="<img src='images/layout/ajax-loader.gif' alt='Loading...' style='margin: 30px 0 3px 30px' />";$("div.artist-list h2 a").click(function(){$("hr#divider").fadeIn();$("#contents .artist-wrapper").css("min-height","500px");$("#contents").addClass("nopad");var ajaxUrl=$(this).attr('href');$("#ajax-loader").hide().delay(100).addClass("artist-wrapper").html(ajax_load).load($(this).attr('href')+" #ajax",function(){$('#cycle-slideshow').cycle({fx:'fade',speed:'slow',pager:'#pager',before:cycleOnBefore});var imgcount=$("#cycle-slideshow img").length;if(imgcount<2){$("#cycle-nav").hide();}
taLimitMaxlength();}).fadeIn();$(this).wrap('<strike></strike>');function cycleOnBefore(){if(this.alt!="")$("#description").html(this.alt);}
return false;});$('#cycle-slideshow').cycle({fx:'fade',speed:'slow',pager:'#pager'});});var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-1011169-39']);_gaq.push(['_trackPageview']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})();