$(document).ready(function(){$(document.body).click(function(event){$(event.target).parents("a:first,area:first").andSelf().filter("a,area").each(function(){var ga=Drupal.settings.googleanalytics,isInternal=new RegExp("^(https?):\/\/"+window.location.host,"i"),isInternalSpecial=new RegExp("(\/go\/.*)$","i"),isDownload=new RegExp("\\.("+ga.trackDownloadExtensions+")$","i");if(isInternal.test(this.href)){if(ga.trackDownload&&isDownload.test(this.href)){var extension=isDownload.exec(this.href);_gaq.push(["_trackEvent","Downloads",extension[1].toUpperCase(),this.href.replace(isInternal,'')])}else if(isInternalSpecial.test(this.href))_gaq.push(["_trackPageview",this.href.replace(isInternal,'')])}else if(ga.trackMailto&&$(this).is("a[href^=mailto:],area[href^=mailto:]")){_gaq.push(["_trackEvent","Mails","Click",this.href.substring(7)])}else if(ga.trackOutgoing&&this.href)if(ga.trackOutboundAsPageview){_gaq.push(["_trackPageview",'/outbound/'+this.href.replace(/^(https?|ftp|news|nntp|telnet|irc|ssh|sftp|webcal):\/\//i,'').split('/').join('--')])}else _gaq.push(["_trackEvent","Outbound links","Click",this.href])})})});
Drupal.behaviors.img_assist=function(context){$('textarea.img_assist:not(.img_assist-processed)',context).each(function(){if($(this).is('textarea.teaser:not(.teaser-processed)'))Drupal.behaviors.teaser(context);$(this).addClass('img_assist-processed').parent().append(Drupal.theme('img_assist_link',this))})};Drupal.theme.prototype.img_assist_link=function(el){var html='<div class="img_assist-button">',link=Drupal.t('Add image');if(Drupal.settings.img_assist.link=='icon')link='<img src="'+Drupal.settings.basePath+Drupal.settings.img_assist.icon+'" alt="'+link+'" title="'+link+'" />';html+='<a href="'+Drupal.settings.basePath+'index.php?q=img_assist/load/textarea&textarea='+el.name+'" class="img_assist-link" id="img_assist-link-'+el.id+'" title="'+Drupal.t('Click here to add images')+'" onclick="window.open(this.href, \'img_assist_link\', \'width=600,height=350,scrollbars=yes,status=yes,resizable=yes,toolbar=no,menubar=no\'); return false;">'+link+'</a>';html+='</div>';return html}
function launch_popup(nid,mw,mh){var ox=mw,oy=mh;if((ox>=screen.width)||(oy>=screen.height)){var ox=screen.width-150,oy=screen.height-150,winx=(screen.width/2)-(ox/2),winy=(screen.height/2)-(oy/2),use_scrollbars=1}else{var winx=(screen.width/2)-(ox/2),winy=(screen.height/2)-(oy/2),use_scrollbars=0};var win=window.open(Drupal.settings.basePath+'index.php?q=img_assist/popup/'+nid,'imagev','height='+oy+'-10,width='+ox+',top='+winy+',left='+winx+',scrollbars='+use_scrollbars+',resizable')};

