var onload_do = function(){
	if(document.getElementById){
		if(document.getElementById("profiles")){
			var node0 = document.getElementById("profiles").getElementsByTagName("UL");
			for(var i=0; i<node0.length; i++){
				if(node0[i].getAttribute("id")){
					var node0_1 = node0[i];
					var node0_2 = node0_1.getElementsByTagName("IMG")[0];
					node0_2.onclick=function(){
						location.href='/telefonsex/t6-'+this.parentNode.parentNode.getAttribute("id")+'.html';
					}
					var node0_3 = node0_1.getElementsByTagName("EM")[0];
					node0_3.onclick=function(){
						location.href='/telefonsex/t6-'+this.parentNode.parentNode.parentNode.getAttribute("id")+'.html';
					}
				}
			}
		}
		
		if(document.getElementById("ranprof")){
			node1 = document.getElementById("ranprof");
			var node1_2 = node1.getElementsByTagName("IMG")[0];
			node1_2.onclick=function(){
				location.href='/telefonsex/t6-'+this.parentNode.parentNode.className+'.html';
			}
			var node1_3 = node1.getElementsByTagName("DIV")[0];
			node1_3.onclick=function(){
				location.href='/telefonsex/t6-'+this.parentNode.parentNode.className+'.html';
			}
		}
		
		if(document.getElementById("impressum")){
			var node3 = document.getElementById("impressum");
			node3.onclick=function(){
				location.href='/impressum.html';
			}
		}
		
		if(document.getElementById("bt1")){
			var node_bt1 = document.getElementById("bt1");
			node_bt1.onmousedown=function(){
				return hit(get_bt_url(node_bt1.src)+'/in.php?id=4');
			}
			node_bt1.onclick=function(){
				window.open(get_bt_url(node_bt1.src));
			}
		}
		if(document.getElementById("bt2")){
			var node_bt2 = document.getElementById("bt2");
			node_bt2.onmousedown=function(){
				return hit(get_bt_url(node_bt2.src)+'/in.php?id=11');
			}
			node_bt2.onclick=function(){
				window.open(get_bt_url(node_bt2.src));
			}
		}
		if(document.getElementById("bt3")){
			var node_bt3 = document.getElementById("bt3");
			node_bt3.onmousedown=function(){
				return hit(get_bt_url(node_bt3.src)+'/telefonsex/in.php?id=18');
			}
			node_bt3.onclick=function(){
				window.open(get_bt_url(node_bt3.src)+'/telefonsex/');
			}
		}
		if(document.getElementById("bt4")){
			var node_bt4 = document.getElementById("bt4");
			node_bt4.onmousedown=function(){
				return hit(get_bt_url(node_bt4.src)+'/in.php?id=9');
			}
			node_bt4.onclick=function(){
				window.open(get_bt_url(node_bt4.src));
			}
		}
}	}
window.onload=onload_do;

function get_bt_url(url){
	return url.substr(0, url.indexOf('/', 7));
}

function hit(hitlink){
	if(document.images){
		(new Image()).src=''+hitlink+'';
	}
	return true;
}
