var ExitPoll=new Class({Implements:[Options],options:{parent:null,event:'mouseup',fileTypes:['pdf','zip','rar','tgz','gz','gzip','jpg','png','svg','gif','doc','eps','xls','ppt','xls','txt','vsd','js','css','rar','exe','wma','mov','avi','wmv','mp3'],track:'pageview'},initialize:function(b){var c=this;c.setOptions(b);var d=c.options.parent?c.options.parent:document.body;document.id(d).getElements('a').each(function(a){if(a.protocol!='mailto:'&&(!$chk(a.href)||a.href=='#'))return;if(a.host.test(location.host)){if(!c.options.fileTypes.contains(a.pathname.substring(a.pathname.lastIndexOf('.')+1).toLowerCase()))return}a.addEvent(c.options.event,c[c.options.track])})},pageview:function(){var l;if(this.protocol=='mailto:')l=this.href.replace(/mailto:/,'');else if(!this.host.test(location.host)&&/http/.test(this.protocol))l='/outgoing/'+this.href;else l='/download'+this.pathname;if(typeof pageTracker=='object')pageTracker._trackPageview(l);else if(typeof(_gaq)=='object')_gaq.push(['_trackPageview',l]);return false},trackEvent:function(){var l=[];if(this.protocol=='mailto:')l=['mailto',this.href.replace(/mailto:/,'')];else if(!this.host.test(location.host)&&/http/.test(this.protocol))l=['outbound',this.href];else l=['download',this.pathname];if(typeof pageTracker=='object')pageTracker._trackEvent(l[0],'click',l[1]);else if(typeof(_gaq)=='object')_gaq.push(['_trackEvent',l[0],l[1]]);return false}});
