var start_do = function(){
	if(document.getElementById){
		var node01 = document.getElementById("home");
		node01.onclick=function(){
			location.href='/';
		}
		var node02 = document.getElementById("contact");
		node02.onclick=function(){
			location.href='/contact.html';
		}
		if(document.getElementById("bt1")){
			var node1 = document.getElementById("bt1");
			node1.onclick=function(){
				window.open(get_bt_url(node1.src));
			}
		}
		if(document.getElementById("bt2")){
			var node2 = document.getElementById("bt2");
			node2.onmousedown=function(){
				return hit(get_bt_url(node2.src)+'/in.php?id=8');
			}
			node2.onclick=function(){
				window.open(get_bt_url(node2.src));
			}
		}
		if(document.getElementById("bt3")){
			var node3 = document.getElementById("bt3");
			node3.onmousedown=function(){
				return hit(get_bt_url(node3.src)+'/telefonsex/in.php?id=16');
			}
			node3.onclick=function(){
				window.open(get_bt_url(node3.src)+'/telefonsex/');
			}
		}
		if(document.getElementById("bt4")){
			var node4 = document.getElementById("bt4");
			node4.onmousedown=function(){
				return hit(get_bt_url(node4.src)+'/in.php?id=1');
			}
			node4.onclick=function(){
				window.open(get_bt_url(node4.src));
			}
		}
		if(document.getElementById("bt5")){
			var node5 = document.getElementById("bt5");
			node5.onmousedown=function(){
				return hit(get_bt_url(node5.src)+'/in.php?id=6');
			}
			node5.onclick=function(){
				window.open(get_bt_url(node5.src));
			}
		}
		if(document.getElementById("bt6")){
			var node6 = document.getElementById("bt6");
			node6.onmousedown=function(){
				return hit(get_bt_url(node6.src)+'/in.php?id=8');
			}
			node6.onclick=function(){
				window.open(get_bt_url(node6.src));
			}
		}
		if(document.getElementById("bt1_t6cam")){
			var node1_t6cam = document.getElementById("bt1_t6cam");
			node1_t6cam.onmousedown=function(){
				return hit(get_bt_url(node1_t6cam.src)+'/in.php?id=11');
			}
			node1_t6cam.onclick=function(){
				window.open(get_bt_url(node1_t6cam.src));
			}
		}
		
		if(document.getElementById("bt2_t6cam")){
			var node2_t6cam = document.getElementById("bt2_t6cam");
			node2_t6cam.onmousedown=function(){
				return hit(get_bt_url(node2_t6cam.src)+'/in.php?id=9');
			}
			node2_t6cam.onclick=function(){
				window.open(get_bt_url(node2_t6cam.src));
			}
		}
}	}
window.onload=start_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;
}
