function addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){if(b){b()}a()}}}addLoadEvent(function(){var b=document.getElementsByTagName("a");for(var a=0;a<b.length;a++){if(b[a].getAttribute("href")){if(b[a].getAttribute("rel")=="external"){b[a].target="_blank";if((b[a].hostname!=location.hostname)||!/(?:\/|.html)$/.test(b[a].pathname)){b[a].onclick=function(){var c=/^[\w]+:\/\/([\w-\.]+(\/[^#]*))#?.*$/;try{if(this.hostname!=location.hostname){pageTracker._trackPageview("/outbound/"+c.exec(this.href)[1])}else{pageTracker._trackPageview(c.exec(this.href)[2])}}catch(d){}}}}}}});function windowGenerator(a,c,b){return function(i){var g=[],h,d,j;var f=this.target||"_blank";b=b||this.href;if(a!=null){a=(a==0)?screen.availWidth:Math.min(a,screen.availWidth);d=(screen.availWidth-a)/2;g.push("left="+d+", screenX="+d);g.push("width="+a)}if(c!=null){c=(c==0)?screen.availHeight:Math.min(c,screen.availHeight);j=(screen.availHeight-c)/2;g.push("top="+j+",screenY="+j);g.push("height="+c)}g.push("scrollbars=1");g.push("resizable");window.open(b,f,g);this.blur();if(i&&i.preventDefault){i.preventDefault()}else{window.event.returnValue=false;return false}}}addLoadEvent(function(){var d,e,c,b,a;if(document.getElementById){d=/\bpopup-(\d+)x(\d+)\b/;e=/([^?]*\/)(.*)$/;c=document.getElementById("content").getElementsByTagName("a");for(b=0;b<c.length;b++){if(c[b].href&&c[b].className){if((a=c[b].className.match(d))!=null){c[b].onclick=windowGenerator(a[1],a[2],c[b].href+"/popup")}}}}});function xpopup(e){var d,f,c,b,a;e=(e)?e:"copy";if(document.getElementById){d=/\bxpopup-(\d+)x(\d+)\b/;f=/([^?]*\/)(.*)$/;c=document.getElementById(e).getElementsByTagName("a");for(b=0;b<c.length;b++){if(c[b].href&&c[b].className){if((a=c[b].className.match(d))!=null){uri=c[b].href.match(f);c[b].onclick=windowGenerator(a[1],a[2],uri[1]+uri[2])}}}}}addLoadEvent(xpopup);addLoadEvent(function(){var d,e,c,b,a;if(document.getElementById){d=/\bimg-(\d+)x(\d+)\b/;e=/([^?]*\/)(.*)$/;c=document.getElementById("copy").getElementsByTagName("a");for(b=0;b<c.length;b++){if(c[b].href&&c[b].className){if((a=c[b].className.match(d))!=null){uri=c[b].href.match(e);c[b].onclick=windowGenerator(a[1],a[2],"photo/?i="+uri[2])}}}}});function initTestimonialsPopup(){var a;if(document.getElementById){if(a=document.getElementById("testimonials")){a.onclick=windowGenerator(600,500,a.href+"/popup")}}}addLoadEvent(initTestimonialsPopup);function initJourneyPopup(){var a;if(document.getElementById){if(a=document.getElementById("journey-link")){a.onclick=windowGenerator(638,450)}}}addLoadEvent(initJourneyPopup);