/*
*	DO NOT CHANGE THE CODE BELOW
*	Mario Heiderich for DocCheck Medical Services 
*	Copyright DocCheck Medical Services 2005, 2006
*/

function e(a){
	if(self!=top&&window.name=='tracesIframe'){
		for(i=0;i<=1000;i++){
			if(document.getElementsByTagName('object')[i]){document.getElementsByTagName('object')[i].style.visibility='hidden';
			}
			if(document.getElementsByTagName('a')[i]){
				document.getElementsByTagName('a')[i].href=a;
				document.getElementsByTagName('a')[i].target='_self';
				document.getElementsByTagName('a')[i].title='Link von DocCheck Traces deaktiviert...';
			}
		if(document.getElementsByTagName('select')[i]){
			document.getElementsByTagName('select')[i].disabled='disabled';
			document.getElementsByTagName('select')[i].style.visibility='hidden';
			}
			
		if(document.getElementsByTagName('input')[i]){
			document.getElementsByTagName('input')[i].disabled='disabled';
			document.getElementsByTagName('input')[i].style.visibility='hidden';
			}
		if(document.getElementById('flashcontent_banner')){
			document.getElementById('flashcontent_banner').style.visibility = 'hidden';
			}
		}
	}
}
function f(d,c){
	
	if(window.Event){
		document.captureEvents(Event.CLICK);
	}
	
	document.oncontextmenu=g;
	document.onmousedown=h;

	
	function h(b){
		if(window.name!='tracesIframe'){
			var d=(window.Event)?b.pageX:event.clientX;
			var c=(window.Event)?b.pageY:event.clientY;
			var a=window.location.protocol+'//'+window.location.host+window.location.pathname;
			
		    if(window.innerWidth){
		        var x = window.innerWidth;
		        var y = window.innerHeight;
		    }
		    else if(document.body.offsetWidth){
		        var x = document.body.offsetWidth;
		        var y = document.body.offsetHeight;
		    }
			
			var i=document.referrer;
			document.getElementById('dcCpIframe').src='http://www2.doccheck.com/_ajax/traces.php?x='+d+'&y='+c+'&type=left&path='+encodeURI(a)+'&referer='+i+'&sizex='+x+'&sizey='+y;
		}
	}
	
	function g(b){
		if(window.name!='tracesIframe'){
			var d=(window.Event)?b.pageX:event.clientX;
			var c=(window.Event)?b.pageY:event.clientY;
			var a=window.location.protocol+'//'+window.location.host+window.location.pathname;
			
		    if(window.innerWidth){
		        var x = window.innerWidth;
		        var y = window.innerHeight;
		    }
		    else if(document.body.offsetWidth){
		        var x = document.body.offsetWidth;
		        var y = document.body.offsetHeight;
		    }
			
			var i=document.referrer;
			document.getElementById('dcCpIframe').src='http://www2.doccheck.com/_ajax/traces.php?x='+d+'&y='+c+'&type=right&path='+encodeURI(a)+'&referer='+i+'&sizex='+x+'&sizey='+y;
		}
	}
	e(window.location.protocol+'//'+window.location.host+window.location.pathname);
}

