function cTracking() { this.etProtocol = ''; this.etLocation = ''; this.trackLinks = function(event) { var trackEvent = Event.findElement(event,'A'); if(trackEvent) { if(trackEvent != undefined && trackEvent != '[object HTMLDocument]' && trackEvent != '[object]') { //external links var myPath = trackEvent.pathname; if( trackEvent.protocol == 'mailto:') { this.effectiveTracking(this.escapeEffectivetrackingParam('Seite',trackEvent)); } else if( trackEvent.hostname != location.hostname ) { this.effectiveTracking(this.escapeEffectivetrackingParam('Seite',trackEvent)); } else if(myPath.search('filestorage') != -1){ this.effectiveTracking(this.escapeEffectivetrackingParam('Seite',myPath)); } } } } this.escapeEffectivetrackingParam = function(paramName,paramValue) { return escape(paramName) + '=' + escape(paramValue); } this.effectiveTracking = function(params) { var Amp=unescape('%26'); var Ref=''; var TrackSrc= this.etProtocol + '://' + this.etLocation + '?'; var Cur=escape(window.location.href); var Param=escape(params); var Img; try { Ref = escape(parent.document.referrer); } catch(e) {} TrackSrc+="pParam="+Param; TrackSrc+=Amp+"pHome="+Cur; TrackSrc+=Amp+"pReferer="+Ref; Img = new Image(); Img.src = TrackSrc; } }