function cnt(site,what,to,session) {

	var xmlHttp = null;

	if (typeof XMLHttpRequest != 'undefined') {
		xmlHttp = new XMLHttpRequest();
	}

	if (!xmlHttp) {
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e_cnt_1) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e_cnt_2) {
				xmlHttp = null;
			}
		}
	}

	if (xmlHttp) {
		xmlHttp.open('GET', '/cgi-bin/redir.pl?site='+site+'&amp;what='+what+'&amp;se='+session+'&amp;to='+to, true);
		xmlHttp.onreadystatechange = function () {
			if (xmlHttp.readyState == 4) {
				var is_loaded = 1;
			}
		};
		xmlHttp.send(null);
	}

	return true;

}

function vogel_footer(site,session) {

	var xmlHttp = null;

	if (typeof XMLHttpRequest != 'undefined') {
		xmlHttp = new XMLHttpRequest();
	}

	if (!xmlHttp) {
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e_vf_1) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e_vf_2) {
				xmlHttp = null;
			}
		}
	}

	if (xmlHttp) {
		xmlHttp.open('GET', '/footer.html', true);
		xmlHttp.onreadystatechange = function () {
			if (xmlHttp.readyState == 4) {
				var footer_div = document.getElementById('vogel_footer');
				footer_div.innerHTML = xmlHttp.responseText;
				set_click(site,session);
			}
		};
		xmlHttp.send(null);
	}

	return false;

}

function set_click(site,session) {
	var aElements = document.getElementsByTagName("a");
	for (var i=0;i<aElements.length;i++) {
		if ((aElements[i].href != '') && (aElements[i].hostname != window.location.hostname) && (aElements[i].hostname != '') && ((aElements[i].protocol == 'http:') || (aElements[i].protocol == 'https:'))) {
			if (aElements[i].hostname != '62.8.239.62') {
				aElements[i].setAttribute("onclick","cnt('"+site+"','http',this.href,"+session+");");
				aElements[i].target = "_blank"
			}
			aElements[i].setAttribute("onkeypress","");
		}
	}
}

// Start Funktionen für die Vogel Netzwerk Box

function show_part(id)
{
for(var i = 1;i < 8; i++)
{
document.getElementById("img"+i).setAttribute("src","/pics/footer/"+i+".gif");
document.getElementById("img"+i).setAttribute("onmouseout","m_out("+i+")");
}
for(var i = 1;i < 8; i++)
{document.getElementById("links"+i).style.display = "none";}
document.getElementById("img"+id).setAttribute("src","/pics/footer/over"+id+".gif");
document.getElementById("img"+id).setAttribute("onmouseout","");
document.getElementById("links"+id).style.display = "block";
}

function m_over(id)
{
document.getElementById("img"+id).setAttribute("src","/pics/footer/over"+id+".gif");
}
function m_out(id)
{
document.getElementById("img"+id).setAttribute("src","/pics/footer/"+id+".gif");
}

// Ende Funktionen für die Vogel Netzwerk Box

function view_tel(site,what,to,session) {

	if (document.getElementById("tel_hide_nr").style.display!="inline") {

		var xmlHttp = null;

		if (typeof XMLHttpRequest != 'undefined') {
			xmlHttp = new XMLHttpRequest();
		}

		if (!xmlHttp) {
			try {
				xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
			} catch(e_vtel_1) {
				try {
					xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
				} catch(e_vtel_2) {
					xmlHttp = null;
				}
			}
		}

		if (xmlHttp) {
			xmlHttp.open('GET', '/cgi-bin/redir.pl?site='+site+'&amp;what='+what+'&amp;se='+session+'&amp;to='+to, true);
			xmlHttp.onreadystatechange = function () {
				if (xmlHttp.readyState == 4) {
					document.getElementById("tel_hide_text").style.display="none";
					document.getElementById("tel_hide_nr").style.display="inline";
				}
			};
			xmlHttp.send(null);
		}

	}

	return false;

}

function view_fax(site,what,to,session) {

	if (document.getElementById("fax_hide_nr").style.display!="inline") {

		var xmlHttp = null;
		if (typeof XMLHttpRequest != 'undefined') { xmlHttp = new XMLHttpRequest(); }
		if (!xmlHttp) {
			try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
			} catch(e_vfax_1) {
				try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
				} catch(e_vfax_2) { xmlHttp = null; }
			}
		}

		if (xmlHttp) {
			xmlHttp.open('GET', '/cgi-bin/redir.pl?site='+site+'&amp;what='+what+'&amp;se='+session+'&amp;to='+to, true);
			xmlHttp.onreadystatechange = function () {
				if (xmlHttp.readyState == 4) {
					document.getElementById("fax_hide_text").style.display="none";
					document.getElementById("fax_hide_nr").style.display="inline";
				}
			};
			xmlHttp.send(null);
		}
	}

	return false;

}
