;var Drupal=Drupal||{};Drupal.jsEnabled=document.getElementsByTagName&&document.createElement&&document.createTextNode&&document.documentElement&&document.getElementById;Drupal.extend=function(obj){for(var i in obj){if(this[i]&&(typeof(this[i])=='function'||typeof(this[i])=='object')){Drupal.extend.apply(this[i],[obj[i]]);}
else{this[i]=obj[i];}}};Drupal.redirectFormButton=function(uri,button,handler){button.onmouseover=button.onfocus=function(){button.onclick=function(){Drupal.createIframe();var button=this;var action=button.form.action;var target=button.form.target;this.form.action=uri;this.form.target='redirect-target';handler.onsubmit();window.iframeHandler=function(){var iframe=$('#redirect-target').get(0);button.form.action=action;button.form.target=target;try{response=(iframe.contentWindow||iframe.contentDocument||iframe).document.body.innerHTML;response=response.replace(/[\f\n\r\t]/g,' ');if(window.opera){response=response.replace(/&quot;/g,'"');}}
catch(e){response=null;}
response=Drupal.parseJson(response);if(response.status==0){handler.onerror(response.data);return;}
handler.oncomplete(response.data);return true;}
return true;}}
button.onmouseout=button.onblur=function(){button.onclick=null;}};Drupal.absolutePosition=function(el){var sLeft=0,sTop=0;var isDiv=/^div$/i.test(el.tagName);if(isDiv&&el.scrollLeft){sLeft=el.scrollLeft;}
if(isDiv&&el.scrollTop){sTop=el.scrollTop;}
var r={x:el.offsetLeft-sLeft,y:el.offsetTop-sTop};if(el.offsetParent){var tmp=Drupal.absolutePosition(el.offsetParent);r.x+=tmp.x;r.y+=tmp.y;}
return r;};Drupal.dimensions=function(el){return{width:el.offsetWidth,height:el.offsetHeight};};Drupal.mousePosition=function(e){return{x:e.clientX+document.documentElement.scrollLeft,y:e.clientY+document.documentElement.scrollTop};};Drupal.parseJson=function(data){if((data.substring(0,1)!='{')&&(data.substring(0,1)!='[')){return{status:0,data:data.length?data:'Unspecified error'};}
return eval('('+data+');');};Drupal.createIframe=function(){if($('#redirect-holder').size()){return;}
window.iframeHandler=function(){};var div=document.createElement('div');div.id='redirect-holder';$(div).html('<iframe name="redirect-target" id="redirect-target" class="redirect" onload="window.iframeHandler();"></iframe>');var iframe=div.firstChild;$(iframe).attr({name:'redirect-target',id:'redirect-target'}).css({position:'absolute',height:'1px',width:'1px',visibility:'hidden'});$('body').append(div);};Drupal.deleteIframe=function(){$('#redirect-holder').remove();};Drupal.freezeHeight=function(){Drupal.unfreezeHeight();var div=document.createElement('div');$(div).css({position:'absolute',top:'0px',left:'0px',width:'1px',height:$('body').css('height')}).attr('id','freeze-height');$('body').append(div);};Drupal.unfreezeHeight=function(){$('#freeze-height').remove();};Drupal.encodeURIComponent=function(item,uri){uri=uri||location.href;item=encodeURIComponent(item).replace(/%2F/g,'/');return(uri.indexOf('?q=')!=-1)?item:item.replace(/%26/g,'%2526').replace(/%23/g,'%2523').replace(/\/\//g,'/%252F');};if(Drupal.jsEnabled){$(document.documentElement).addClass('js');};(function($){var buildRating=function($obj){var $widget=buildInterface($obj),$stars=$('.star',$widget),$cancel=$('.cancel',$widget),$summary=$('.fivestar-summary',$obj),feedbackTimerId=0,summaryText=$summary.html(),summaryHover=$obj.is('.fivestar-labels-hover'),currentValue=$("select",$obj).val(),cancelTitle=$('label',$obj).html(),voteTitle=cancelTitle!=Drupal.settings.fivestar.titleAverage?cancelTitle:Drupal.settings.fivestar.titleUser,voteChanged=false;if($obj.is('.fivestar-user-stars')){var starDisplay='user';}
else if($obj.is('.fivestar-average-stars')){var starDisplay='average';currentValue=$("input[@name=vote_average]",$obj).val();}
else if($obj.is('.fivestar-combo-stars')){var starDisplay='combo';}
else{var starDisplay='none';}
if($obj.is('.fivestar-smart-stars')){var starDisplay='smart';}
if($summary.size()){var textDisplay=$summary.attr('class').replace(/.*?fivestar-summary-([^ ]+).*/,'$1').replace(/-/g,'_');}
else{var textDisplay='none';}
$stars.mouseover(function(){event.drain();event.fill(this);}).mouseout(function(){event.drain();event.reset();});$stars.children().focus(function(){event.drain();event.fill(this.parentNode)}).blur(function(){event.drain();event.reset();}).end();$cancel.mouseover(function(){event.drain();$(this).addClass('on')}).mouseout(function(){event.reset();$(this).removeClass('on')});$cancel.children().focus(function(){event.drain();$(this.parentNode).addClass('on')}).blur(function(){event.reset();$(this.parentNode).removeClass('on')}).end();$cancel.click(function(){currentValue=0;event.reset();voteChanged=false;if($("input.fivestar-path",$obj).size()&&$summary.is('.fivestar-feedback-enabled')){setFeedbackText(Drupal.settings.fivestar.feedbackDeletingVote);}
$("select",$obj).val(0);cancelTitle=starDisplay!='smart'?cancelTitle:Drupal.settings.fivestar.titleAverage;$('label',$obj).html(cancelTitle);if($obj.is('.fivestar-smart-text')){$obj.removeClass('fivestar-user-text').addClass('fivestar-average-text');$summary[0].className=$summary[0].className.replace(/-user/,'-average');textDisplay=$summary.attr('class').replace(/.*?fivestar-summary-([^ ]+).*/,'$1').replace(/-/g,'_');}
if($obj.is('.fivestar-smart-stars')){$obj.removeClass('fivestar-user-stars').addClass('fivestar-average-stars');}
$("input.fivestar-path",$obj).each(function(){var token=$("input.fivestar-token",$obj).val();$.ajax({type:'GET',data:{token:token},dataType:'xml',url:this.value+'/'+0,success:voteHook});});return false;});$stars.click(function(){currentValue=$('select option',$obj).get($stars.index(this)+$cancel.size()+1).value;$("select",$obj).val(currentValue);voteChanged=true;event.reset();if($("input.fivestar-path",$obj).size()&&$summary.is('.fivestar-feedback-enabled')){setFeedbackText(Drupal.settings.fivestar.feedbackSavingVote);}
if($obj.is('.fivestar-smart-text')){$obj.removeClass('fivestar-average-text').addClass('fivestar-user-text');$summary[0].className=$summary[0].className.replace(/-average/,'-user');textDisplay=$summary.attr('class').replace(/.*?fivestar-summary-([^ ]+).*/,'$1').replace(/-/g,'_');}
if($obj.is('.fivestar-smart-stars')){$obj.removeClass('fivestar-average-stars').addClass('fivestar-user-stars');}
$("input.fivestar-path",$obj).each(function(){var token=$("input.fivestar-token",$obj).val();$.ajax({type:'GET',data:{token:token},dataType:'xml',url:this.value+'/'+currentValue,success:voteHook});});return false;});var event={fill:function(el){var index=$stars.index(el)+1;$stars.children('a').css('width','100%').end().filter(':lt('+index+')').addClass('hover').end();if(summaryHover&&!feedbackTimerId){var summary=$("select option",$obj)[index+$cancel.size()].text;var value=$("select option",$obj)[index+$cancel.size()].value;$summary.html(summary!=index+1?summary:'&nbsp;');$('label',$obj).html(voteTitle);}},drain:function(){$stars.filter('.on').removeClass('on').end().filter('.hover').removeClass('hover').end();if(summaryHover&&!feedbackTimerId){var cancelText=$("select option",$obj)[1].text;$summary.html(($cancel.size()&&cancelText!=0)?cancelText:'&nbsp');if(!voteChanged){$('label',$obj).html(cancelTitle);}}},reset:function(){var starValue=currentValue/100*$stars.size();var percent=(starValue-Math.floor(starValue))*100;$stars.filter(':lt('+Math.floor(starValue)+')').addClass('on').end();if(percent>0){$stars.eq(Math.floor(starValue)).addClass('on').children('a').css('width',percent+"%").end().end();}
if(summaryHover&&!feedbackTimerId){$summary.html(summaryText?summaryText:'&nbsp;');}
if(voteChanged){$('label',$obj).html(voteTitle);}
else{$('label',$obj).html(cancelTitle);}}};var setFeedbackText=function(text){feedbackTimerId=1;$summary.html(text);};var voteHook=function(data){var returnObj={result:{count:$("result > count",data).text(),average:$("result > average",data).text(),summary:{average:$("summary average",data).text(),average_count:$("summary average_count",data).text(),user:$("summary user",data).text(),user_count:$("summary user_count",data).text(),combo:$("summary combo",data).text(),count:$("summary count",data).text()}},vote:{id:$("vote id",data).text(),tag:$("vote tag",data).text(),type:$("vote type",data).text(),value:$("vote value",data).text()},display:{stars:starDisplay,text:textDisplay}};if(window.fivestarResult){fivestarResult(returnObj);}
else{fivestarDefaultResult(returnObj);}
summaryText=returnObj.result.summary[returnObj.display.text];if($(returnObj.result.summary.average).is('.fivestar-feedback-enabled')){if(returnObj.vote.value!=0){setFeedbackText(Drupal.settings.fivestar.feedbackVoteSaved);}
else{setFeedbackText(Drupal.settings.fivestar.feedbackVoteDeleted);}
feedbackTimerId=setTimeout(function(){clearTimeout(feedbackTimerId);feedbackTimerId=0;$summary.html(returnObj.result.summary[returnObj.display.text]);},2000);}
if(returnObj.vote.value==0&&(starDisplay=='average'||starDisplay=='smart')){currentValue=returnObj.result.average;event.reset();}};event.reset();return $widget;};var buildInterface=function($widget){var $container=$('<div class="fivestar-widget clear-block"></div>');var $options=$("select option",$widget);var size=$('option',$widget).size()-1;var cancel=1;for(var i=1,option;option=$options[i];i++){if(option.value=="0"){cancel=0;$div=$('<div class="cancel"><a href="#0" title="'+option.text+'">'+option.text+'</a></div>');}
else{var zebra=(i+cancel-1)%2==0?'even':'odd';var count=i+cancel-1;var first=count==1?' star-first':'';var last=count==size+cancel-1?' star-last':'';$div=$('<div class="star star-'+count+' star-'+zebra+first+last+'"><a href="#'+option.value+'" title="'+option.text+'">'+option.text+'</a></div>');}
$container.append($div[0]);}
$container.addClass('fivestar-widget-'+(size+cancel-1));$('select',$widget).after($container).css('display','none');return $container;};function fivestarDefaultResult(voteResult){$('div.fivestar-summary-'+voteResult.vote.tag+'-'+voteResult.vote.id).html(voteResult.result.summary[voteResult.display.text]);if(voteResult.display.stars=='combo'){$('div.fivestar-form-'+voteResult.vote.id).each(function(){var $stars=$('.fivestar-widget-static .star span',this);var average=voteResult.result.average/100*$stars.size();var index=Math.floor(average);$stars.removeClass('on').addClass('off').css('width','auto');$stars.filter(':lt('+(index+1)+')').removeClass('off').addClass('on');$stars.eq(index).css('width',((average-index)*100)+"%");var $summary=$('.fivestar-static-form-item .fivestar-summary',this);if($summary.size()){var textDisplay=$summary.attr('class').replace(/.*?fivestar-summary-([^ ]+).*/,'$1').replace(/-/g,'_');$summary.html(voteResult.result.summary[textDisplay]);}});}};$.fn.fivestar=function(){var stack=[];this.each(function(){var ret=buildRating($(this));stack.push(ret);});return stack;};if($.browser.msie==true){try{document.execCommand('BackgroundImageCache',false,true);}catch(err){}}
if(Drupal.jsEnabled){$(document).ready(function(){$('div.fivestar-form-item:not(.fivestar-processed)').addClass('fivestar-processed').fivestar();$('input.fivestar-submit').css('display','none');});}})(jQuery);;Drupal.gaTrackerAttach=function(context){context=context||document;$('a',context).click(function(){var ga=Drupal.settings.googleanalytics;var isInternal=new RegExp("^(https?):\/\/"+window.location.host,"i");var isInternalSpecial=new RegExp("(\/go\/.*)$","i");var isDownload=new RegExp("\\.("+ga.trackDownloadExtensions+")$","i");try{if(isInternal.test(this.href)){if(ga.trackDownload&&isDownload.test(this.href)){if(ga.LegacyVersion){urchinTracker(this.href.replace(isInternal,''));}
else{var extension=isDownload.exec(this.href);pageTracker._trackEvent("Downloads",extension[1].toUpperCase(),this.href.replace(isInternal,''));}}
else if(isInternalSpecial.test(this.href)){if(ga.LegacyVersion){urchinTracker(this.href.replace(isInternal,''));}
else{pageTracker._trackPageview(this.href.replace(isInternal,''));}}}
else{if(ga.trackMailto&&$(this).is("a[@href^=mailto:]")){if(ga.LegacyVersion){urchinTracker('/mailto/'+this.href.substring(7));}
else{pageTracker._trackEvent("Mails","Click",this.href.substring(7));}}
else if(ga.trackOutgoing){if(ga.LegacyVersion){urchinTracker('/outgoing/'+this.href.replace(/^(https?|ftp|news|nntp|telnet|irc|ssh|sftp|webcal):\/\//i,'').split('/').join('--'));}
else{pageTracker._trackEvent("Outgoing links","Click",this.href);}}}}catch(err){}});};if(Drupal.jsEnabled){$(document).ready(function(){Drupal.gaTrackerAttach(this);});};jQuery.each(["id","title","name","href","src","rel"],function(i,n){jQuery.fn[n]=function(h){return h==undefined?this.length?this[0][n]:null:this.attr(n,h);};});jQuery.each("top,left,position,float,overflow,color,background".split(","),function(i,n){jQuery.fn[n]=function(h){return h==undefined?(this.length?jQuery.css(this[0],n):null):this.css(n,h);};});var e=("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select,"+"submit,keydown,keypress,keyup,error").split(",");for(var i=0;i<e.length;i++)new function(){var o=e[i];jQuery.fn["un"+o]=function(f){return this.unbind(o,f);};jQuery.fn["one"+o]=function(f){var element=jQuery(this);var handler=function(){element.unbind(o,handler);element=null;return f.apply(this,arguments);};return this.bind(o,handler);};};jQuery.fn.ancestors=jQuery.fn.parents;jQuery.expr[":"]["nth-child"]="jQuery.nth(a.parentNode.firstChild,parseInt(m[3])+1,'nextSibling')==a";jQuery.fn._filter=jQuery.fn.filter;jQuery.fn.filter=function(arr){return this._filter(arr.constructor==Array?arr.join(","):arr);};(function(jQuery){jQuery.each(["eq","lt","gt","contains"],function(i,n){jQuery.fn[n]=function(num,fn){return this.filter(":"+n+"("+num+")",fn);};});jQuery.fn.evalScripts=function(){};jQuery.fn.loadIfModified=function(){var old=jQuery.ajaxSettings.ifModified;jQuery.ajaxSettings.ifModified=true;var ret=jQuery.fn.load.apply(this,arguments);jQuery.ajaxSettings.ifModified=old;return ret;};jQuery.getIfModified=function(){var old=jQuery.ajaxSettings.ifModified;jQuery.ajaxSettings.ifModified=true;var ret=jQuery.get.apply(jQuery,arguments);jQuery.ajaxSettings.ifModified=old;return ret;};jQuery.ajaxTimeout=function(timeout){jQuery.ajaxSettings.timeout=timeout;};})(jQuery);;Drupal.behaviors=Drupal.behaviors||{};Drupal.attachBehaviors=function(context){context=context||document;if(Drupal.jsEnabled&&Drupal.behaviors){jQuery.each(Drupal.behaviors,function(){this(context);});}};Drupal.preventSelect=function(elt){if(document.onselectstart){elt.onselectstart=function(){return false;}}
else{$(elt).mousedown(function(){return false;});}};Drupal.getTarget=function(e){if(!e)e=window.event;var target=e.target?e.target:e.srcElement;if(!target)return null;if(target.nodeType==3)target=target.parentNode;if(target.tagName.toUpperCase()=='LABEL'&&e.type=='click'){if(target.getAttribute('for')){target=document.getElementById(target.getAttribute('for'));}}
return target;};Drupal.url=function(path,query,fragment){query=query?query:'';fragment=fragment?'#'+fragment:'';var base=Drupal.settings.jstools.basePath;if(!Drupal.settings.jstools.cleanurls){if(query){return base+'?q='+path+'&'+query+fragment;}
else{return base+'?q='+path+fragment;}}
else{if(query){return base+path+'?'+query+fragment;}
else{return base+path+fragment;}}};Drupal.getPath=function(href){href=Drupal.pathPortion(href);href=href.substring(Drupal.settings.jstools.basePath.length+(Drupal.settings.jstools.cleanurls?0:3),href.length);var chars=['#','?','&'];for(i in chars){if(href.indexOf(chars[i])>-1){href=href.substr(0,href.indexOf(chars[i]));}}
return href;};Drupal.prependPath=function(href,segment){href=Drupal.pathPortion(href);var baseLength=Drupal.settings.jstools.basePath.length+(Drupal.settings.jstools.cleanurls?0:3);var base=href.substring(0,baseLength);return base+segment+'/'+href.substring(baseLength,href.length);};Drupal.pathPortion=function(href){var protocol=window.location.protocol;if(href.substring(0,protocol.length)==protocol){href=href.substring(href.indexOf('/',protocol.length+2));}
return href;};Drupal.redirectFormSubmit=function(uri,form,handler){$(form).submit(function(){Drupal.createIframe();var form=this;this.action=uri;this.target='redirect-target';handler.onsubmit();window.iframeHandler=function(){var iframe=$('#redirect-target').get(0);try{response=(iframe.contentWindow||iframe.contentDocument||iframe).document.body.innerHTML;response=response.replace(/[\f\n\r\t]/g,' ');if(window.opera){response=response.replace(/&quot;/g,'"');}}
catch(e){response=null;}
response=Drupal.parseJson(response);if(response.status==0){handler.onerror(response.data);return;}
handler.oncomplete(response.data);return true;};return true;});};Drupal.scrollTo=function(el){var pos=Drupal.absolutePosition(el);window.scrollTo(0,pos.y);};Drupal.elementChildren=function(element){var children=[];for(i in element){if(i.substr(0,1)!='#'){children[children.length]=i;}}
return children;};Drupal.elementProperties=function(element){var properties=[];for(i in element){if(i.substr(0,1)=='#'){properties[properties.length]=i;}}
return properties;};Drupal.parseQueryString=function(href){query=Drupal.getQueryString(href);var args={};var pairs=query.split("&");for(var i=0;i<pairs.length;i++){var pos=pairs[i].indexOf('=');if(pos==-1)continue;var argname=pairs[i].substring(0,pos);var value=pairs[i].substring(pos+1);args[argname]=unescape(value.replace(/\+/g," "));}
return args;};Drupal.getQueryString=function(href){if(href){var index=href.indexOf('?');href=(index==-1)?'':href.substring(index+1);}
query=href?href:location.search.substring(1);if(!Drupal.settings.jstools.cleanurls){var index=query.indexOf('&');query=(index==-1)?'':query.substring(index+1);}
return query;};Drupal.pathMatch=function(path,paths,type){paths='^'+paths+'$';paths=paths.replace(/\n/g,'$|^');paths=paths.replace(/\*/g,'.*');var search=path.search(new RegExp(paths))>-1?true:false;return(type==0)?search:!search;};if(Drupal.jsEnabled){document.cookie='has_js=1';$(document).ready(function(){Drupal.attachBehaviors(this);});};eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(5($){$.28.8=5(9,2){3(C 9==\'2v\')2=9;2=$.2N({9:(9&&C 9==\'2O\'&&9>0)?--9:0,x:g,j:$.G?1T:R,v:R,1H:g,1L:g,1A:g,1f:g,1G:\'2y\',2e:g,2f:g,2h:R,I:g,O:g,Q:g,P:\'8-2z\',T:\'8-x\',16:\'8-1J\',1k:\'8-2A\',Y:\'H\'},2||{});$.d.1e=$.d.1e||$.d.F&&C 2B==\'5\';5 1q(){27(0,0)}p 6.J(5(){4 f=6;4 8=$(\'>1n:o(0)>1v>a\',6);3(2.v){4 1h={};8.J(5(i){4 n=\'8-v-\'+(i+1);4 7=\'#\'+n;1h[7]=6.1W;6.1W=7;$(f).2C(\'<H n="\'+n+\'" 2W="2E"></H>\')})}3(U.7){8.J(5(i){3(6.7==U.7){2.9=i;3(($.d.F||$.d.2F)&&!2.v){4 c=$(U.7);4 13=c.L(\'n\');c.L(\'n\',\'\');w(5(){c.L(\'n\',13)},2G)}1q();p R}})}3($.d.F){1q()}$(\'>\'+2.Y,6).1E(\':o(\'+2.9+\')\').1I().11().2H(\':o(\'+2.9+\')\').z(2.16);3(!2.v){$(\'>1n:o(0)>1v:o(\'+2.9+\')\',6).z(2.P)}3(2.2h){4 15=$(\'>\'+2.Y,f);4 1D=5(1Y){4 1w=$.2I(15.14(),5(N){4 h,r=$(N);3(1Y){3($.d.1e){N.A.2K(\'20\');N.A.m=\'\';N.18=g}h=r.s({\'V-m\':\'\'}).m()}l{h=r.m()}p h}).2L(5(a,b){p b-a});3($.d.1e){15.J(5(){6.18=1w[0]+\'23\';6.A.2M(\'20\',\'6.A.m = 6.18 ? 6.18 : "2P"\')})}l{15.s({\'V-m\':1w[0]+\'23\'})}};1D();4 17=f.29;4 1g=f.12;4 1C=$(\'#8-24-25-1o\').14(0)||$(\'<1V n="8-24-25-1o">M</1V>\').s({1t:\'2Q\',2R:\'2S\',2T:\'1N\'}).2U(t.1u).14(0);4 1c=1C.12;2V(5(){4 1b=f.29;4 1F=f.12;4 1d=1C.12;3(1F>1g||1b!=17||1d!=1c){1D((1b>17||1d<1c));17=1b;1g=1F;1c=1d}},1x)}4 y={},B={},1r=2.2e||2.1G,1B=2.2f||2.1G;3(2.1L||2.1H){3(2.1L){y[\'m\']=\'1I\';B[\'m\']=\'1J\'}3(2.1H){y[\'D\']=\'1I\';B[\'D\']=\'1J\'}}l{3(2.1A){y=2.1A}l{y[\'V-1M\']=0;1r=2.j?1x:1}3(2.1f){B=2.1f}l{B[\'V-1M\']=0;1B=2.j?1x:1}}4 I=2.I,O=2.O,Q=2.Q;8.X(\'1U\',5(){4 7=6.7;3($(7).S(\':1N\')&&!$(6.K).S(\'.\'+2.T)){3($.d.F){$(6).E();3(2.j){$.G.1z(7);U.7=7.1p(\'#\',\'\')}}l 3($.d.1S){4 1Q=$(\'<1P 2j="\'+7+\'"><H><2k 2l="1R" 2m="h" /></H></1P>\').14(0);1Q.1R();$(6).E();3(2.j){$.G.1z(7)}}l{3(2.j){U.7=7.1p(\'#\',\'\')}l{$(6).E()}}}});8.X(\'1l\',5(){$(6.K).z(2.T)});3(2.x&&2.x.1y){21(4 i=0,k=2.x.1y;i<k;i++){8.o(--2.x[i]).19(\'1l\').11()}};8.X(\'1X\',5(){4 r=$(6.K);r.10(2.T);3($.d.1S){r.2o(1,1.0).s({1t:\'\',D:1});w(5(){r.s({D:\'\'})},2p)}});8.X(\'E\',5(e){4 1O=e.2s;4 1m=$(6.K);3(f.1K||1m.S(\'.\'+2.P)||1m.S(\'.\'+2.T)){6.2d();p R}f[\'1K\']=1T;4 c=$(6.7);3(c.1o()>0){3($.d.F&&2.j){4 13=6.7.1p(\'#\',\'\');c.L(\'n\',\'\');w(5(){c.L(\'n\',13)},0)}4 q=6;4 u=$(\'>\'+2.Y+\':2x\',f);3(C I==\'5\'){w(5(){I(q,c[0],u[0])},0)}5 1i(){3(2.j&&1O){$.G.1z(q.7)}u.22(B,1B,5(){$(q.K).z(2.P).2J().10(2.P);3(C O==\'5\'){O(q,c[0],u[0])}u.z(2.16).s({1t:\'\',26:\'\',m:\'\',D:\'\'});c.10(2.16).22(y,1r,5(){c.s({26:\'\',m:\'\',D:\'\'});3($.d.F){u[0].A.1E=\'\';c[0].A.1E=\'\'}3(C Q==\'5\'){Q(q,c[0],u[0])}f.1K=g})})}3(!2.v){1i()}l{4 1j=$(6);1j.z(2.1k);w(5(){$(q.7).2i(1h[q.7],5(){1i();1j.10(2.1k)})},0)}}l{2q(\'2r S 2t 2u f.\')}4 2a=1s.2w||t.1a&&t.1a.2b||t.1u.2b||0;4 2c=1s.2D||t.1a&&t.1a.1Z||t.1u.1Z||0;w(5(){1s.27(2a,2c)},0);6.2d();p 2.j});3(2.v){8.o(2.9).19(\'E\').11()}3(2.j){$.G.2n(5(){8.o(2.9).19(\'E\').11()})}})};4 Z=[\'1U\',\'1l\',\'1X\'];21(4 i=0;i<Z.1y;i++){$.28[Z[i]]=(5(2g){p 5(W){p 6.J(5(){4 i=W&&W>0&&W-1||0;$(\'>1n:o(0)>1v>a\',6).o(i).19(2g)})}})(Z[i])}})(2X);',62,184,'||settings|if|var|function|this|hash|tabs|initial|||toShow|browser||container|null|||bookmarkable||else|height|id|eq|return|clicked|jq|css|document|toHide|remote|setTimeout|disabled|showAnim|addClass|style|hideAnim|typeof|opacity|click|msie|ajaxHistory|div|onClick|each|parentNode|attr||el|onHide|selectedClass|onShow|false|is|disabledClass|location|min|tabIndex|bind|tabStruct|tabEvents|removeClass|end|offsetHeight|toShowId|get|tabsContents|hideClass|cachedWidth|minHeight|trigger|documentElement|currentWidth|cachedFontSize|currentFontSize|msie6|fxHide|cachedHeight|remoteUrls|switchTab|jqThis|loadingClass|disableTab|jqLi|ul|size|replace|unFocus|showSpeed|window|display|body|li|heights|50|length|update|fxShow|hideSpeed|watchFontSize|_setAutoHeight|filter|currentHeight|fxSpeed|fxFade|show|hide|locked|fxSlide|width|hidden|trueClick|form|tempForm|submit|safari|true|triggerTab|span|href|enableTab|reset|scrollTop|behaviour|for|animate|px|watch|font|overflow|scrollTo|fn|offsetWidth|scrollX|scrollLeft|scrollY|blur|fxShowSpeed|fxHideSpeed|tabEvent|fxAutoHeight|load|action|input|type|value|initialize|fadeTo|30|alert|There|clientX|no|such|object|pageXOffset|visible|normal|selected|loading|XMLHttpRequest|append|pageYOffset|fragment|opera|500|not|map|siblings|removeExpression|sort|setExpression|extend|number|1px|block|position|absolute|visibility|appendTo|setInterval|class|jQuery'.split('|'),0,{}));Drupal.behaviors.tabs=function(context){$('.drupal-tabs:not(.tabs-processed)',context).addClass('tabs-processed').addClass('tabs').each(function(){if($(this).is('.tabs-navigation')){Drupal.tabsNavigation(this);}}).tabs({fxFade:Drupal.settings.tabs.fade,fxSlide:Drupal.settings.tabs.slide,fxSpeed:Drupal.settings.tabs.speed,fxAutoHeight:Drupal.settings.tabs.auto_height,onShow:Drupal.tabsAddClassesCallback()}).show().find('> ul.anchors').after('<span class="clear"></span>').addClass('tabs').each(function(){var newClass=$(this).parents('.drupal-tabs').size()>1?'secondary':'primary';$(this).addClass(newClass);});Drupal.tabsAddClasses();};Drupal.tabsAddClassesCallback=function(){return function(){Drupal.tabsAddClasses();}};Drupal.tabsAddClasses=function(){$('ul.anchors.tabs.primary').find('.active').removeClass('active').end().find('.tabs-selected').addClass('active');};Drupal.tabsNavigation=function(elt){var tabsetName=$(elt).get(0).id.substring(5);var count=$(elt).find('> ul.anchors > li').size();for(i=1;i<=count;i++){var tabContent=$('#tabs-'+tabsetName+'-'+i);if((i>1)||(i<count)){tabContent.append('<span class="clear"></span><div class="tabs-nav-link-sep"></div>');}
if(i>1){var link=$(document.createElement('a')).append(Drupal.settings.tabs.previous_text).attr('id','tabs-'+tabsetName+'-previous-link-'+i).addClass('tabs-nav-previous').click(function(){var tabIndex=parseInt($(this).attr('id').substring($(this).attr('id').lastIndexOf('-')+1));$(elt).triggerTab(tabIndex-1);Drupal.scrollTo(elt);return false;});tabContent.append(link);}
if(i<count){var link=$(document.createElement('a')).append(Drupal.settings.tabs.next_text).attr('id','tabs-'+tabsetName+'-next-button-'+i).addClass('tabs-nav-next').click(function(){var tabIndex=parseInt($(this).attr('id').substring($(this).attr('id').lastIndexOf('-')+1));$(elt).triggerTab(tabIndex+1);Drupal.scrollTo(elt);return false;});tabContent.append(link);}
tabContent.append('<span class="clear"></span>')}}
Drupal.tabsLocalTasks=function(elt){var elt=elt?elt:document;if(Drupal.settings&&Drupal.settings.tabs&&Drupal.dynamicload&&typeof(Drupal.dynamicload=='function')){$(elt).find('ul.tabs.primary').each(function(){var index=1;var activeIndex;$(this).addClass('anchors').addClass('tabs-processed').find('li > a').each(function(){var div=document.createElement('div');$(div).attr('id','section-'+index).addClass('fragment');var parentDiv=$(this).parents('div').get(0);parentDiv.appendChild(div);if($(this).is('.active')){activeIndex=parseInt(index);}
else{Drupal.dynamicload(this,{target:document.getElementById('section-'+index),useClick:false,show:false});}
$(this).attr('href','#section-'+index);index++;}).end().parent('div').each(function(){while(this.nextSibling){var oldDiv=this.parentNode.removeChild(this.nextSibling);document.getElementById('section-'+activeIndex).appendChild(oldDiv);}}).tabs({onShow:Drupal.tabsAddClassesCallback()});});}};;var Lightbox={overlayOpacity:0.8,overlayColor:'000',disableCloseClick:true,resizeSequence:0,resizeSpeed:'normal',fadeInSpeed:'normal',slideDownSpeed:'slow',minWidth:240,borderSize:10,boxColor:'fff',fontColor:'000',topPosition:'',infoHeight:20,alternative_layout:false,imageArray:[],imageNum:null,total:0,activeImage:null,inprogress:false,disableResize:false,disableZoom:false,isZoomedIn:false,rtl:false,loopItems:false,keysClose:['c','x',27],keysPrevious:['p',37],keysNext:['n',39],keysZoom:['z'],keysPlayPause:[32],slideInterval:5000,showPlayPause:true,autoStart:true,autoExit:true,pauseOnNextClick:false,pauseOnPrevClick:true,slideIdArray:[],slideIdCount:0,isSlideshow:false,isPaused:false,loopSlides:false,enableVideo:false,flvPlayer:'/flvplayer.swf',flvFlashvars:'',isModal:false,isVideo:false,videoId:false,modalWidth:400,modalHeight:400,modalHTML:null,isLightframe:false,iframe_width:600,iframe_height:400,iframe_border:1,initialize:function(){var s=Drupal.settings.lightbox2;Lightbox.overlayOpacity=s.overlay_opacity;Lightbox.overlayColor=s.overlay_color;Lightbox.disableCloseClick=s.disable_close_click;Lightbox.resizeSequence=s.resize_sequence;Lightbox.resizeSpeed=s.resize_speed;Lightbox.fadeInSpeed=s.fade_in_speed;Lightbox.slideDownSpeed=s.slide_down_speed;Lightbox.borderSize=s.border_size;Lightbox.boxColor=s.box_color;Lightbox.fontColor=s.font_color;Lightbox.topPosition=s.top_position;Lightbox.rtl=s.rtl;Lightbox.loopItems=s.loop_items;Lightbox.keysClose=s.keys_close.split(" ");Lightbox.keysPrevious=s.keys_previous.split(" ");Lightbox.keysNext=s.keys_next.split(" ");Lightbox.keysZoom=s.keys_zoom.split(" ");Lightbox.keysPlayPause=s.keys_play_pause.split(" ");Lightbox.disableResize=s.disable_resize;Lightbox.disableZoom=s.disable_zoom;Lightbox.slideInterval=s.slideshow_interval;Lightbox.showPlayPause=s.show_play_pause;Lightbox.autoStart=s.slideshow_automatic_start;Lightbox.pauseOnNextClick=s.pause_on_next_click;Lightbox.pauseOnPrevClick=s.pause_on_previous_click;Lightbox.loopSlides=s.loop_slides;Lightbox.alternative_layout=s.use_alt_layout;Lightbox.iframe_width=s.iframe_width;Lightbox.iframe_height=s.iframe_height;Lightbox.iframe_border=s.iframe_border;Lightbox.enableVideo=s.enable_video;if(s.enable_video){Lightbox.flvPlayer=s.flvPlayer;Lightbox.flvFlashvars=s.flvFlashvars;}
Lightbox.initList();var output='<div id="overlay" style="display: none;"></div>\
      <div id="lightbox" style="display: none;">\
        <div id="outerImageContainer"></div>\
        <div id="imageDataContainer" class="clearfix">\
          <div id="imageData"></div>\
        </div>\
      </div>';var loading='<div id="loading"><a href="#" id="loadingLink"></a></div>';var modal='<div id="modalContainer" style="display: none;"></div>';var frame='<div id="frameContainer" style="display: none;"></div>';var imageContainer='<div id="imageContainer" style="display: none;"></div>';var details='<div id="imageDetails"></div>';var bottomNav='<div id="bottomNav"></div>';var image='<img id="lightboxImage" />';var hoverNav='<div id="hoverNav"><a id="prevLink" href="#"></a><a id="nextLink" href="#"></a></div>';var frameNav='<div id="frameHoverNav"><a id="framePrevLink" href="#"></a><a id="frameNextLink" href="#"></a></div>';var caption='<span id="caption"></span>';var numberDisplay='<span id="numberDisplay"></span>';var close='<a id="bottomNavClose" href="#"></a>';var zoom='<a id="bottomNavZoom" href="#"></a>';var zoomOut='<a id="bottomNavZoomOut" href="#"></a>';var pause='<a id="lightshowPause" href="#" style="display: none;"></a>';var play='<a id="lightshowPlay" href="#" style="display: none;"></a>';$("body").append(output);$('#outerImageContainer').append(modal+frame+imageContainer+loading);if(!s.use_alt_layout){$('#imageContainer').append(image+hoverNav);$('#imageData').append(frameNav+details+bottomNav);$('#imageDetails').append(caption+numberDisplay);$('#bottomNav').append(close+zoom+zoomOut+pause+play);}
else{$('#outerImageContainer').append(bottomNav);$('#imageContainer').append(image);$('#bottomNav').append(close+zoom+zoomOut);$('#imageData').append(hoverNav+details);$('#imageDetails').append(caption+numberDisplay+pause+play);}
if(Lightbox.disableCloseClick){$('#overlay').click(function(){Lightbox.end();return false;}).hide();}
$('#loadingLink, #bottomNavClose').click(function(){Lightbox.end('forceClose');return false;});$('#prevLink, #framePrevLink').click(function(){Lightbox.changeData(Lightbox.activeImage-1);return false;});$('#nextLink, #frameNextLink').click(function(){Lightbox.changeData(Lightbox.activeImage+1);return false;});$('#bottomNavZoom').click(function(){Lightbox.changeData(Lightbox.activeImage,true);return false;});$('#bottomNavZoomOut').click(function(){Lightbox.changeData(Lightbox.activeImage,false);return false;});$('#lightshowPause').click(function(){Lightbox.togglePlayPause("lightshowPause","lightshowPlay");return false;});$('#lightshowPlay').click(function(){Lightbox.togglePlayPause("lightshowPlay","lightshowPause");return false;});$('#prevLink, #nextLink, #framePrevLink, #frameNextLink').css({'paddingTop':Lightbox.borderSize+'px'});$('#imageContainer, #frameContainer, #modalContainer').css({'padding':Lightbox.borderSize+'px'});$('#outerImageContainer, #imageDataContainer, #bottomNavClose').css({'backgroundColor':'#'+Lightbox.boxColor,'color':'#'+Lightbox.fontColor});if(Lightbox.alternative_layout){$('#bottomNavZoom, #bottomNavZoomOut').css({'bottom':Lightbox.borderSize+'px','right':Lightbox.borderSize+'px'});}
if(s.force_show_nav){$('#prevLink, #nextLink').addClass("force_show_nav");}},initList:function(){$("a[@rel^='lightbox'], area[@rel^='lightbox']").click(function(){if(Lightbox.disableCloseClick){$('#lightbox').unbind('click');$('#lightbox').click(function(){Lightbox.end('forceClose');});}
Lightbox.start(this,false,false,false,false);return false;});$("a[@rel^='lightshow'], area[@rel^='lightshow']").click(function(){if(Lightbox.disableCloseClick){$('#lightbox').unbind('click');$('#lightbox').click(function(){Lightbox.end('forceClose');});}
Lightbox.start(this,true,false,false,false);return false;});$("a[@rel^='lightframe'], area[@rel^='lightframe']").click(function(){if(Lightbox.disableCloseClick){$('#lightbox').unbind('click');$('#lightbox').click(function(){Lightbox.end('forceClose');});}
Lightbox.start(this,false,true,false,false);return false;});if(Lightbox.enableVideo){$("a[@rel^='lightvideo'], area[@rel^='lightvideo']").click(function(){if(Lightbox.disableCloseClick){$('#lightbox').unbind('click');$('#lightbox').click(function(){Lightbox.end('forceClose');});}
Lightbox.start(this,false,false,true,false);return false;});}
$("a[@rel^='lightmodal'], area[@rel^='lightmodal'], #lightboxAutoModal").click(function(){$('#lightbox').unbind('click');Lightbox.start(this,false,false,false,true);return false;});},start:function(imageLink,slideshow,lightframe,lightvideo,lightmodal){Lightbox.isPaused=!Lightbox.autoStart;Lightbox.toggleSelectsFlash('hide');var arrayPageSize=Lightbox.getPageSize();$("#overlay").hide().css({'width':'100%','zIndex':'10090','height':arrayPageSize[1]+'px','backgroundColor':'#'+Lightbox.overlayColor});if(lightvideo&&this.detectMacFF2()){$("#overlay").removeClass("overlay_default");$("#overlay").addClass("overlay_macff2");$("#overlay").css({'opacity':null});}
else{$("#overlay").removeClass("overlay_macff2");$("#overlay").addClass("overlay_default");$("#overlay").css({'opacity':Lightbox.overlayOpacity});}
$("#overlay").fadeIn(Lightbox.fadeInSpeed);Lightbox.isSlideshow=slideshow;Lightbox.isLightframe=lightframe;Lightbox.isVideo=lightvideo;Lightbox.isModal=lightmodal;Lightbox.imageArray=[];Lightbox.imageNum=0;var anchors=$(imageLink.tagName);var anchor=null;var rel_parts=Lightbox.parseRel(imageLink);var rel=rel_parts["rel"];var rel_group=rel_parts["group"];var title=(rel_parts["title"]?rel_parts["title"]:imageLink.title);var rel_style=null;var i=0;var alt=imageLink.title;if(!alt){var img=$(imageLink).find("img");if(img&&$(img).attr("alt")){alt=$(img).attr("alt");}
else{alt=title;}}
if($(imageLink).attr('id')=='lightboxAutoModal'){rel_style=rel_parts["style"];Lightbox.imageArray.push(['#lightboxAutoModal > *',title,alt,rel_style,1]);}
else{if((rel=='lightbox'||rel=='lightshow')&&!rel_group){Lightbox.imageArray.push([imageLink.href,title,alt]);}
else if(!rel_group){rel_style=rel_parts["style"];Lightbox.imageArray.push([imageLink.href,title,alt,rel_style]);}
else{for(i=0;i<anchors.length;i++){anchor=anchors[i];if(anchor.href&&$(anchor).attr('rel')){var rel_data=Lightbox.parseRel(anchor);var anchor_title=(rel_data["title"]?rel_data["title"]:anchor.title);if(rel_data["rel"]==rel){if(rel_data["group"]==rel_group){if(Lightbox.isLightframe||Lightbox.isModal){rel_style=rel_data["style"];}
Lightbox.imageArray.push([anchor.href,anchor_title,alt,rel_style]);}}}}
for(i=0;i<Lightbox.imageArray.length;i++){for(j=Lightbox.imageArray.length-1;j>i;j--){if(Lightbox.imageArray[i][0]==Lightbox.imageArray[j][0]){Lightbox.imageArray.splice(j,1);}}}
while(Lightbox.imageArray[Lightbox.imageNum][0]!=imageLink.href){Lightbox.imageNum++;}}}
if(Lightbox.isSlideshow&&Lightbox.showPlayPause&&Lightbox.isPaused){$('#lightshowPlay').show();$('#lightshowPause').hide();}
var arrayPageScroll=Lightbox.getPageScroll();var lightboxTop=arrayPageScroll[1]+(Lightbox.topPosition==''?(arrayPageSize[3]/10):Lightbox.topPosition)*1;var lightboxLeft=arrayPageScroll[0];$('#frameContainer, #modalContainer, #lightboxImage').hide();$('#hoverNav, #prevLink, #nextLink, #frameHoverNav, #framePrevLink, #frameNextLink').hide();$('#imageDataContainer, #numberDisplay, #bottomNavZoom, #bottomNavZoomOut').hide();$('#outerImageContainer').css({'width':'250px','height':'250px'});$('#lightbox').css({'zIndex':'10500','top':lightboxTop+'px','left':lightboxLeft+'px'}).show();Lightbox.total=Lightbox.imageArray.length;Lightbox.changeData(Lightbox.imageNum);},changeData:function(imageNum,zoomIn){if(Lightbox.inprogress===false){if(Lightbox.total>1&&((Lightbox.isSlideshow&&Lightbox.loopSlides)||(!Lightbox.isSlideshow&&Lightbox.loopItems))){if(imageNum>=Lightbox.total)imageNum=0;if(imageNum<0)imageNum=Lightbox.total-1;}
if(Lightbox.isSlideshow){for(var i=0;i<Lightbox.slideIdCount;i++){window.clearTimeout(Lightbox.slideIdArray[i]);}}
Lightbox.inprogress=true;Lightbox.activeImage=imageNum;if(Lightbox.disableResize&&!Lightbox.isSlideshow){zoomIn=true;}
Lightbox.isZoomedIn=zoomIn;$('#loading').css({'zIndex':'10500'}).show();if(!Lightbox.alternative_layout){$('#imageContainer').hide();}
$('#frameContainer, #modalContainer, #lightboxImage').hide();$('#hoverNav, #prevLink, #nextLink, #frameHoverNav, #framePrevLink, #frameNextLink').hide();$('#imageDataContainer, #numberDisplay, #bottomNavZoom, #bottomNavZoomOut').hide();if(!Lightbox.isLightframe&&!Lightbox.isVideo&&!Lightbox.isModal){imgPreloader=new Image();imgPreloader.onerror=function(){Lightbox.imgNodeLoadingError(this);};imgPreloader.onload=function(){var photo=document.getElementById('lightboxImage');photo.src=Lightbox.imageArray[Lightbox.activeImage][0];photo.alt=Lightbox.imageArray[Lightbox.activeImage][2];var imageWidth=imgPreloader.width;var imageHeight=imgPreloader.height;var arrayPageSize=Lightbox.getPageSize();var targ={w:arrayPageSize[2]-(Lightbox.borderSize*2),h:arrayPageSize[3]-(Lightbox.borderSize*6)-(Lightbox.infoHeight*4)-(arrayPageSize[3]/10)};var orig={w:imgPreloader.width,h:imgPreloader.height};if(zoomIn!==true){var ratio=1.0;$('#bottomNavZoomOut, #bottomNavZoom').hide();if((orig.w>=targ.w||orig.h>=targ.h)&&orig.h&&orig.w){ratio=((targ.w/orig.w)<(targ.h/orig.h))?targ.w/orig.w:targ.h/orig.h;if(!Lightbox.disableZoom&&!Lightbox.isSlideshow){$('#bottomNavZoom').css({'zIndex':'10500'}).show();}}
imageWidth=Math.floor(orig.w*ratio);imageHeight=Math.floor(orig.h*ratio);}
else{$('#bottomNavZoom').hide();if((orig.w>=targ.w||orig.h>=targ.h)&&orig.h&&orig.w){if(!Lightbox.disableResize&&Lightbox.isSlideshow===false&&!Lightbox.disableZoom){$('#bottomNavZoomOut').css({'zIndex':'10500'}).show();}}}
photo.style.width=(imageWidth)+'px';photo.style.height=(imageHeight)+'px';Lightbox.resizeContainer(imageWidth,imageHeight);imgPreloader.onload=function(){};};imgPreloader.src=Lightbox.imageArray[Lightbox.activeImage][0];imgPreloader.alt=Lightbox.imageArray[Lightbox.activeImage][2];}
else if(Lightbox.isLightframe){var src=Lightbox.imageArray[Lightbox.activeImage][0];$('#frameContainer').html('<iframe id="lightboxFrame" style="display: none;" src="'+src+'"></iframe>');if($.browser.mozilla&&src.indexOf('.swf')!=-1){setTimeout(function(){document.getElementById("lightboxFrame").src=Lightbox.imageArray[Lightbox.activeImage][0];},1000);}
if(!Lightbox.iframe_border){$('#lightboxFrame').css({'border':'none'});$('#lightboxFrame').attr('frameborder','0');}
var iframe=document.getElementById('lightboxFrame');var iframeStyles=Lightbox.imageArray[Lightbox.activeImage][3];iframe=Lightbox.setStyles(iframe,iframeStyles);Lightbox.resizeContainer(parseInt(iframe.width,10),parseInt(iframe.height,10));}
else if(Lightbox.isVideo||Lightbox.isModal){var container=document.getElementById('modalContainer');var modalStyles=Lightbox.imageArray[Lightbox.activeImage][3];container=Lightbox.setStyles(container,modalStyles);if(Lightbox.isVideo){Lightbox.modalHeight=parseInt(container.height,10);Lightbox.modalWidth=parseInt(container.width,10);Lightvideo.startVideo(Lightbox.imageArray[Lightbox.activeImage][0]);}
Lightbox.resizeContainer(parseInt(container.width,10),parseInt(container.height,10));}}},imgNodeLoadingError:function(image){var s=Drupal.settings.lightbox2;var original_image=Lightbox.imageArray[Lightbox.activeImage][0];if(s.display_image_size!==""){original_image=original_image.replace(new RegExp("."+s.display_image_size),"");}
Lightbox.imageArray[Lightbox.activeImage][0]=original_image;image.onerror=function(){Lightbox.imgLoadingError(image);};image.src=original_image;},imgLoadingError:function(image){var s=Drupal.settings.lightbox2;Lightbox.imageArray[Lightbox.activeImage][0]=s.default_image;image.src=s.default_image;},resizeContainer:function(imgWidth,imgHeight){imgWidth=(imgWidth<Lightbox.minWidth?Lightbox.minWidth:imgWidth);this.widthCurrent=$('#outerImageContainer').width();this.heightCurrent=$('#outerImageContainer').height();var widthNew=(imgWidth+(Lightbox.borderSize*2));var heightNew=(imgHeight+(Lightbox.borderSize*2));this.xScale=(widthNew/this.widthCurrent)*100;this.yScale=(heightNew/this.heightCurrent)*100;wDiff=this.widthCurrent-widthNew;hDiff=this.heightCurrent-heightNew;$('#modalContainer').css({'width':imgWidth,'height':imgHeight});if(Lightbox.resizeSequence){var animate1={width:widthNew};var animate2={height:heightNew};if(Lightbox.resizeSequence==2){animate1={height:heightNew};animate2={width:widthNew};}
$('#outerImageContainer').animate(animate1,Lightbox.resizeSpeed).animate(animate2,Lightbox.resizeSpeed,'linear',function(){Lightbox.showData();});}
else{$('#outerImageContainer').animate({'width':widthNew,'height':heightNew},Lightbox.resizeSpeed,'linear',function(){Lightbox.showData();});}
if((hDiff===0)&&(wDiff===0)){if($.browser.msie){Lightbox.pause(250);}
else{Lightbox.pause(100);}}
var s=Drupal.settings.lightbox2;if(!s.use_alt_layout){$('#prevLink, #nextLink').css({'height':imgHeight+'px'});}
$('#imageDataContainer').css({'width':widthNew+'px'});},showData:function(){$('#loading').hide();if(Lightbox.isLightframe||Lightbox.isVideo||Lightbox.isModal){Lightbox.updateDetails();if(Lightbox.isLightframe){$('#frameContainer').show();if($.browser.safari){$('#lightboxFrame').css({'zIndex':'10500'}).show();}
else{$('#lightboxFrame').css({'zIndex':'10500'}).fadeIn(Lightbox.fadeInSpeed);}}
else{if(Lightbox.isVideo){$("#modalContainer").html(Lightbox.modalHTML);$("#modalContainer").click(function(){return false;});}
else{var src=unescape(Lightbox.imageArray[Lightbox.activeImage][0]);if(Lightbox.imageArray[Lightbox.activeImage][4]){$(src).appendTo("#modalContainer");}
else{$("#modalContainer").load(src);}
$('#modalContainer').unbind('click');}
$('#modalContainer').css({'zIndex':'10500'}).show();}}
else{$('#imageContainer').show();if($.browser.safari){$('#lightboxImage').css({'zIndex':'10500'}).show();}
else{$('#lightboxImage').css({'zIndex':'10500'}).fadeIn(Lightbox.fadeInSpeed);}
Lightbox.updateDetails();this.preloadNeighborImages();}
Lightbox.inprogress=false;if(Lightbox.isSlideshow){if(!Lightbox.loopSlides&&Lightbox.activeImage==(Lightbox.total-1)){if(Lightbox.autoExit){Lightbox.slideIdArray[Lightbox.slideIdCount++]=setTimeout(function(){Lightbox.end('slideshow');},Lightbox.slideInterval);}}
else{if(!Lightbox.isPaused&&Lightbox.total>1){Lightbox.slideIdArray[Lightbox.slideIdCount++]=setTimeout(function(){Lightbox.changeData(Lightbox.activeImage+1);},Lightbox.slideInterval);}}
if(Lightbox.showPlayPause&&Lightbox.total>1&&!Lightbox.isPaused){$('#lightshowPause').show();$('#lightshowPlay').hide();}
else if(Lightbox.showPlayPause&&Lightbox.total>1){$('#lightshowPause').hide();$('#lightshowPlay').show();}}
var arrayPageSize=Lightbox.getPageSize();var arrayPageScroll=Lightbox.getPageScroll();var pageHeight=arrayPageSize[1];if(Lightbox.isZoomedIn&&arrayPageSize[1]>arrayPageSize[3]){var lightboxTop=(Lightbox.topPosition==''?(arrayPageSize[3]/10):Lightbox.topPosition)*1;pageHeight=pageHeight+arrayPageScroll[1]+lightboxTop;}
$('#overlay').css({'height':pageHeight+'px','width':arrayPageSize[0]+'px'});if($.browser.mozilla){if(Lightbox.imageArray[Lightbox.activeImage][0].indexOf(".pdf")!=-1){setTimeout(function(){document.getElementById("lightboxFrame").src=Lightbox.imageArray[Lightbox.activeImage][0];},1000);}}},updateDetails:function(){$("#imageDataContainer").hide();var caption=Lightbox.imageArray[Lightbox.activeImage][1];if(!caption)caption='&nbsp;';$('#caption').html(caption).css({'zIndex':'10500'}).show();var s=Drupal.settings.lightbox2;var numberDisplay=null;if(Lightbox.total>1){var currentImage=Lightbox.activeImage+1;if(!Lightbox.isLightframe&&!Lightbox.isModal&&!Lightbox.isVideo){numberDisplay=s.image_count.replace(/\!current/,currentImage).replace(/\!total/,Lightbox.total);}
else if(Lightbox.isVideo){numberDisplay=s.video_count.replace(/\!current/,currentImage).replace(/\!total/,Lightbox.total);}
else{numberDisplay=s.page_count.replace(/\!current/,currentImage).replace(/\!total/,Lightbox.total);}
$('#numberDisplay').html(numberDisplay).css({'zIndex':'10500'}).show();}
$("#imageDataContainer").hide().slideDown(Lightbox.slideDownSpeed,function(){$("#bottomNav").show();});if(Lightbox.rtl==1){$("#bottomNav").css({'float':'left'});}
Lightbox.updateNav();},updateNav:function(){$('#hoverNav').css({'zIndex':'10500'}).show();var prevLink='#prevLink';var nextLink='#nextLink';if(Lightbox.isSlideshow){if((Lightbox.total>1&&Lightbox.loopSlides)||Lightbox.activeImage!==0){$(prevLink).css({'zIndex':'10500'}).show().click(function(){if(Lightbox.pauseOnPrevClick){Lightbox.togglePlayPause("lightshowPause","lightshowPlay");}
Lightbox.changeData(Lightbox.activeImage-1);return false;});}
else{$(prevLink).hide();}
if((Lightbox.total>1&&Lightbox.loopSlides)||Lightbox.activeImage!=(Lightbox.total-1)){$(nextLink).css({'zIndex':'10500'}).show().click(function(){if(Lightbox.pauseOnNextClick){Lightbox.togglePlayPause("lightshowPause","lightshowPlay");}
Lightbox.changeData(Lightbox.activeImage+1);return false;});}
else{$(nextLink).hide();}}
else{if((Lightbox.isLightframe||Lightbox.isModal||Lightbox.isVideo)&&!Lightbox.alternative_layout){$('#hoverNav').css({'zIndex':'10500'}).hide();$('#frameHoverNav').css({'zIndex':'10500'}).show();prevLink='#framePrevLink';nextLink='#frameNextLink';}
if((Lightbox.total>1&&Lightbox.loopItems)||Lightbox.activeImage!==0){$(prevLink).css({'zIndex':'10500'}).show().click(function(){Lightbox.changeData(Lightbox.activeImage-1);return false;});}
else{$(prevLink).hide();}
if((Lightbox.total>1&&Lightbox.loopItems)||Lightbox.activeImage!=(Lightbox.total-1)){$(nextLink).css({'zIndex':'10500'}).show().click(function(){Lightbox.changeData(Lightbox.activeImage+1);return false;});}
else{$(nextLink).hide();}}
if(!Lightbox.isModal){this.enableKeyboardNav();}},enableKeyboardNav:function(){$(document).bind("keydown",this.keyboardAction);},disableKeyboardNav:function(){$(document).unbind("keydown",this.keyboardAction);},keyboardAction:function(e){if(e===null){keycode=event.keyCode;escapeKey=27;}
else{keycode=e.keyCode;escapeKey=e.DOM_VK_ESCAPE;}
key=String.fromCharCode(keycode).toLowerCase();if(Lightbox.checkKey(Lightbox.keysClose,key,keycode)){Lightbox.end('forceClose');}
else if(Lightbox.checkKey(Lightbox.keysPrevious,key,keycode)){if((Lightbox.total>1&&((Lightbox.isSlideshow&&Lightbox.loopSlides)||(!Lightbox.isSlideshow&&Lightbox.loopItems)))||Lightbox.activeImage!==0){Lightbox.changeData(Lightbox.activeImage-1);}}
else if(Lightbox.checkKey(Lightbox.keysNext,key,keycode)){if((Lightbox.total>1&&((Lightbox.isSlideshow&&Lightbox.loopSlides)||(!Lightbox.isSlideshow&&Lightbox.loopItems)))||Lightbox.activeImage!=(Lightbox.total-1)){Lightbox.changeData(Lightbox.activeImage+1);}}
else if(Lightbox.checkKey(Lightbox.keysZoom,key,keycode)&&!Lightbox.disableResize&&!Lightbox.disableZoom&&!Lightbox.isSlideshow&&!Lightbox.isLightframe){if(Lightbox.isZoomedIn){Lightbox.changeData(Lightbox.activeImage,false);}
else if(!Lightbox.isZoomedIn){Lightbox.changeData(Lightbox.activeImage,true);}}
else if(Lightbox.checkKey(Lightbox.keysPlayPause,key,keycode)&&Lightbox.isSlideshow){if(Lightbox.isPaused){Lightbox.togglePlayPause("lightshowPlay","lightshowPause");}
else{Lightbox.togglePlayPause("lightshowPause","lightshowPlay");}
return false;}},preloadNeighborImages:function(){if((Lightbox.total-1)>Lightbox.activeImage){preloadNextImage=new Image();preloadNextImage.src=Lightbox.imageArray[Lightbox.activeImage+1][0];}
if(Lightbox.activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=Lightbox.imageArray[Lightbox.activeImage-1][0];}},end:function(caller){var closeClick=(caller=='slideshow'?false:true);if(Lightbox.isSlideshow&&Lightbox.isPaused&&!closeClick){return;}
if(Lightbox.inprogress===true&&caller!='forceClose'){return;}
Lightbox.disableKeyboardNav();$('#lightbox').hide();$("#overlay").fadeOut();Lightbox.isPaused=true;Lightbox.inprogress=false;Lightbox.toggleSelectsFlash('visible');if(Lightbox.isSlideshow){for(var i=0;i<Lightbox.slideIdCount;i++){window.clearTimeout(Lightbox.slideIdArray[i]);}
$('#lightshowPause, #lightshowPlay').hide();}
else if(Lightbox.isLightframe){$('#frameContainer').empty().hide();}
else if(Lightbox.isVideo||Lightbox.isModal){$('#modalContainer').hide().html("");}},getPageScroll:function(){var xScroll,yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset;}
else if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft;}
else if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft;}
arrayPageScroll=[xScroll,yScroll];return arrayPageScroll;},getPageSize:function(){var xScroll,yScroll;if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}
else if(window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY;}
else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
var windowWidth,windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;}
else{windowWidth=self.innerWidth;}
windowHeight=self.innerHeight;}
else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}
else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
if(yScroll<windowHeight){pageHeight=windowHeight;}
else{pageHeight=yScroll;}
if(xScroll<windowWidth){pageWidth=windowWidth;}
else{pageWidth=xScroll;}
arrayPageSize=[pageWidth,pageHeight,windowWidth,windowHeight];return arrayPageSize;},pause:function(ms){var date=new Date();var curDate=null;do{curDate=new Date();}
while(curDate-date<ms);},toggleSelectsFlash:function(state){if(state=='visible'){$("select.lightbox_hidden, embed.lightbox_hidden, object.lightbox_hidden").show();}
else if(state=='hide'){$("select:visible, embed:visible, object:visible").addClass("lightbox_hidden");$("select.lightbox_hidden, embed.lightbox_hidden, object.lightbox_hidden").hide();}},parseRel:function(link){var parts=[];parts["rel"]=parts["title"]=parts["group"]=parts["style"]=null;if(!$(link).attr('rel'))return parts;parts["rel"]=$(link).attr('rel').match(/\w+/)[0];if($(link).attr('rel').match(/\[(.*)\]/)){var info=$(link).attr('rel').match(/\[(.*?)\]/)[1].split('|');parts["group"]=info[0];parts["style"]=info[1];}
if($(link).attr('rel').match(/\[.*\]\[(.*)\]/)){parts["title"]=$(link).attr('rel').match(/\[.*\]\[(.*)\]/)[1];}
return parts;},setStyles:function(item,styles){item.width=Lightbox.iframe_width;item.height=Lightbox.iframe_height;item.srolling="auto";if(!styles)return item;var stylesArray=styles.split(';');for(var i=0;i<stylesArray.length;i++){if(stylesArray[i].indexOf('width:')>=0){var w=stylesArray[i].replace('width:','');item.width=jQuery.trim(w);}
else if(stylesArray[i].indexOf('height:')>=0){var h=stylesArray[i].replace('height:','');item.height=jQuery.trim(h);}
else if(stylesArray[i].indexOf('scrolling:')>=0){var scrolling=stylesArray[i].replace('scrolling:','');item.scrolling=jQuery.trim(scrolling);}
else if(stylesArray[i].indexOf('overflow:')>=0){var overflow=stylesArray[i].replace('overflow:','');item.overflow=jQuery.trim(overflow);}}
return item;},togglePlayPause:function(hideId,showId){if(Lightbox.isSlideshow&&hideId=="lightshowPause"){for(var i=0;i<Lightbox.slideIdCount;i++){window.clearTimeout(Lightbox.slideIdArray[i]);}}
$('#'+hideId).hide();$('#'+showId).show();if(hideId=="lightshowPlay"){Lightbox.isPaused=false;if(!Lightbox.loopSlides&&Lightbox.activeImage==(Lightbox.total-1)){Lightbox.end();}
else{Lightbox.changeData(Lightbox.activeImage+1);}}
else if(Lightbox.total>1){Lightbox.isPaused=true;}},triggerLightbox:function(rel_type,rel_group){if(rel_type.length){if(rel_group&&rel_group.length){$("a[@rel^='"+rel_type+"\["+rel_group+"\]'], area[@rel^='"+rel_type+"\["+rel_group+"\]']").eq(0).trigger("click");}
else{$("a[@rel^='"+rel_type+"'], area[@rel^='"+rel_type+"']").eq(0).trigger("click");}}},detectMacFF2:function(){var ua=navigator.userAgent.toLowerCase();if(/firefox[\/\s](\d+\.\d+)/.test(ua)){var ffversion=new Number(RegExp.$1);if(ffversion<3&&ua.indexOf('mac')!=-1){return true;}}
return false;},checkKey:function(keys,key,code){return(jQuery.inArray(key,keys)!=-1||jQuery.inArray(String(code),keys)!=-1);}};if(Drupal.jsEnabled){$(document).ready(function(){Lightbox.initialize();$('#lightboxAutoModal').triggerHandler('click');});};Drupal.voteUpDownAutoAttach=function(){var vdb=[];$('span.vote-up-inact, span.vote-down-inact, span.vote-up-act, span.vote-down-act').each(function(){uri=$(this).attr('title');$(this).removeAttr('title');$(this).html('');if(!vdb[uri]){vdb[uri]=new Drupal.VDB(this,uri);}});}
Drupal.VDB=function(elt,uri,id){var db=this;this.elt=elt;this.uri=uri;this.id=$(elt).attr('id');this.dir1=this.id.indexOf('vote_up')>-1?'up':'down';this.dir2=this.dir1=='up'?'down':'up';$(elt).click(function(){$.ajax({type:"GET",url:db.uri,success:function(data){var cid=db.id.match(/[0-9]+$/);var pid='vote_points_'+cid;$('#'+db.id+'.vote-'+db.dir1+'-inact').removeClass('vote-'+db.dir1+'-inact').addClass('vote-'+db.dir1+'-act');$('#'+'vote_'+db.dir2+'_'+cid).removeClass('vote-'+db.dir2+'-act').addClass('vote-'+db.dir2+'-inact');$('#'+pid).html(data);},error:function(xmlhttp){alert('An HTTP error '+xmlhttp.status+' occured.\n'+db.uri);}});});}
if(Drupal.jsEnabled){$(document).ready(Drupal.voteUpDownAutoAttach);};Drupal.Panels={};Drupal.Panels.autoAttach=function(){if($.browser.msie){$("div.panel-pane").hover(function(){$('div.panel-hide',this).addClass("panel-hide-hover");return true;},function(){$('div.panel-hide',this).removeClass("panel-hide-hover");return true;});$("div.admin-links").hover(function(){$(this).addClass("admin-links-hover");return true;},function(){$(this).removeClass("admin-links-hover");return true;});}};$(Drupal.Panels.autoAttach);;var hovertipMouseX;var hovertipMouseY;function hovertipMouseUpdate(e){var mouse=hovertipMouseXY(e);hovertipMouseX=mouse[0];hovertipMouseY=mouse[1];}
function hovertipMouseXY(e){if(!e){if(window.event){e=window.event;}else{return;}}
if(typeof(e.pageX)=='number'){var xcoord=e.pageX;var ycoord=e.pageY;}else if(typeof(e.clientX)=='number'){var xcoord=e.clientX;var ycoord=e.clientY;var badOldBrowser=(window.navigator.userAgent.indexOf('Opera')+1)||(window.ScriptEngine&&ScriptEngine().indexOf('InScript')+1)||(navigator.vendor=='KDE');if(!badOldBrowser){if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){xcoord+=document.body.scrollLeft;ycoord+=document.body.scrollTop;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){xcoord+=document.documentElement.scrollLeft;ycoord+=document.documentElement.scrollTop;}}}else{return;}
return[xcoord,ycoord];}
targetSelectById=function(el,config){var id;var selector;if(id=el.getAttribute('id')){selector='*[@'+config.attribute+'=\''+id+'\']';return $(selector);}};targetSelectByTargetAttribute=function(el,config){target_list=el.getAttribute('target');if(target_list){target_ids=target_list.split(' ');var selector='#'+target_ids.join(',#');return $(selector);}};targetSelectByPrevious=function(el,config){return $(el.previousSibling);}
targetSelectBySiblings=function(el,config){return $(el).siblings();}
clicktipPrepareWithCloseLink=function(o,config){return o.append("<a class='clicktip_close'><span>close</span></a>").find('a.clicktip_close').click(function(e){o.hide();return false;}).end();};hovertipPrepare=function(o,config){return o.hover(function(){hovertipHideCancel(this);},function(){hovertipHideLater(this);}).css('position','absolute').each(hovertipPosition);};hovertipPrepareNoOp=function(o,config){return o;}
hovertipPosition=function(i){document.body.appendChild(this);}
hovertipIsVisible=function(el){return(jQuery.css(el,'display')!='none');}
hovertipShowUnderMouse=function(el){hovertipHideCancel(el);if(!hovertipIsVisible(el)){el.ht.showing=window.setTimeout(function(){el.ht.tip.css({'position':'absolute','top':hovertipMouseY+'px','left':hovertipMouseX+'px'}).show();},el.ht.config.showDelay);}};hovertipHideCancel=function(el){if(el.ht.hiding){window.clearTimeout(el.ht.hiding);el.ht.hiding=null;}};hovertipHideLater=function(el){if(el.ht.showing){window.clearTimeout(el.ht.showing);el.ht.showing=null;}
if(el.ht.hiding){window.clearTimeout(el.ht.hiding);el.ht.hiding=null;}
el.ht.hiding=window.setTimeout(function(){if(el.ht.hiding){el.ht.tip.hide();}},el.ht.config.hideDelay);};clicktipTargetPrepare=function(o,el,config){return o.addClass(config.attribute+'_target').click(function(){el.ht.tip.toggle();return false;});};hovertipTargetPrepare=function(o,el,config){return o.addClass(config.attribute+'_target').hover(function(){hovertipShowUnderMouse(el);},function(){hovertipHideLater(el);});};jQuery.fn.hovertipActivate=function(config,targetSelect,tipPrepare,targetPrepare){return this.css('display','block').hide().each(function(){if(!this.ht)
this.ht=new Object();this.ht.config=config;var targets=targetSelect(this,config);if(targets&&targets.size()){if(!this.ht.targets)
this.ht.targets=targetPrepare(targets,this,config);else
this.ht.targets.add(targetPrepare(targets,this,config));targets.mousemove(hovertipMouseUpdate);if(!this.ht.tip)
this.ht.tip=tipPrepare($(this),config);}});};function hovertipInit(){var clicktipConfig={'attribute':'clicktip'};window.setTimeout(function(){$('.clicktip').hovertipActivate(clicktipConfig,targetSelectById,clicktipPrepareWithCloseLink,clicktipTargetPrepare);},0);window.setTimeout(function(){$('.clicktip').hovertipActivate(clicktipConfig,targetSelectByTargetAttribute,clicktipPrepareWithCloseLink,clicktipTargetPrepare);},0);var hovertipConfig={'attribute':'hovertip','showDelay':300,'hideDelay':700};var hovertipSelect='div.hovertip';$(hovertipSelect).css('display','block').addClass('hovertip_wrap3').wrap("<div class='hovertip_wrap0'><div class='hovertip_wrap1'><div class='hovertip_wrap2'>"+"</div></div></div>").each(function(){var tooltip=this.parentNode.parentNode.parentNode;if(this.getAttribute('target'))
tooltip.setAttribute('target',this.getAttribute('target'));if(this.getAttribute('id')){var id=this.getAttribute('id');this.removeAttribute('id');tooltip.setAttribute('id',id);}});hovertipSelect='div.hovertip_wrap0';window.setTimeout(function(){$(hovertipSelect).hovertipActivate(hovertipConfig,targetSelectById,hovertipPrepare,hovertipTargetPrepare);},0);window.setTimeout(function(){$(hovertipSelect).hovertipActivate(hovertipConfig,targetSelectByTargetAttribute,hovertipPrepare,hovertipTargetPrepare);},0);var hovertipSpanSelect='span.hovertip';$(hovertipSpanSelect).css('display','block').addClass('hovertip_wrap3').wrap("<span class='hovertip_wrap0'><span class='hovertip_wrap1'><span class='hovertip_wrap2'>"+"</span></span></span>").each(function(){var tooltip=this.parentNode.parentNode.parentNode;if(this.getAttribute('target'))
tooltip.setAttribute('target',this.getAttribute('target'));if(this.getAttribute('id')){var id=this.getAttribute('id');this.removeAttribute('id');tooltip.setAttribute('id',id);}});hovertipSpanSelect='span.hovertip_wrap0';window.setTimeout(function(){$(hovertipSpanSelect).hovertipActivate(hovertipConfig,targetSelectByPrevious,hovertipPrepare,hovertipTargetPrepare);},0);};if(top.location!=self.location)top.location.replace(self.location);;(function($){$.fn.overlabel=function(options){var opts=$.extend({},$.fn.overlabel.defaults,options);var selection=this.filter('label[for]').map(function(){var label=$(this);var id=label.attr('for');var field=document.getElementById(id);if(!field)return;var o=$.meta?$.extend({},opts,label.data()):opts;label.addClass(o.label_class);var hide_label=function(){label.css(o.hide_css)};var show_label=function(){this.value||label.css(o.show_css)};$(field).parent().addClass(o.wrapper_class).end().focus(hide_label).blur(show_label).each(hide_label).each(show_label);return this;});return opts.filter?selection:selection.end();};$.fn.overlabel.defaults={label_class:'overlabel-apply',wrapper_class:'overlabel-wrapper',hide_css:{'text-indent':'-10000px'},show_css:{'text-indent':'0px','cursor':'text'},filter:false};})(jQuery);