function bookmarksite(title, url)
{
	if (window.sidebar) 
	{
		// firefox
		window.sidebar.addPanel(title, url, "");
	}
	else if(window.opera && window.print)
	{ 
		// opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} 
	else if(document.all) 
	{
		// ie
		window.external.AddFavorite(url, title);
	} 
	else if(window.chrome) 
	{
		// chrome
		alert('Drücken Sie CTRL+D (COMMAND+D für Macs) um diese Seite zu merken.');
	}
	else 
	{
		// alles andere
		alert('Diese Funktion wird in diesem Browser nicht unterstützt.');
	}
}

function jumpToHttps()
{
	if (window.location.protocol.indexOf("https")<0) {
		var newURL = "https://" + window.location.host + "/" + window.location.pathname;
		if (newURL.indexOf("index.php")<0) newURL = newURL + "index.php"
		document.location.href = newURL;
	}
}

function mouseOverB1(idOver, idAktuell, sprache) {
	document.getElementById(idOver).src = "img/"+idOver+"_hi.gif";
	if (idAktuell != "") document.getElementById(idAktuell).src = "img/"+idAktuell+".gif";
	document.getElementById("B1_Startseite_Bild").src = "img/"+idOver+"_Bild"+sprache+".jpg";
}

function mouseOutB1(idOut, idAktuell, sprache) {
	document.getElementById(idOut).src = "img/"+idOut+".gif";
	if (idAktuell != "B1_Startseite") document.getElementById(idAktuell).src = "img/"+idAktuell+"_hi.gif";
	document.getElementById("B1_Startseite_Bild").src = "img/"+idAktuell+"_Bild"+sprache+".jpg";
}

function mouseOverB2(idOver, idAktuell, sprache) {
	var unten = "";
	if (idOver == "B2_Pv" && idAktuell == "B2_VHK") unten = "_unten";
	document.getElementById(idOver).src = "img/"+idOver+"_kl"+unten+"_hi.gif";
	document.getElementById(idAktuell).src = "img/"+idAktuell+"_gr_hi.gif";
	document.getElementById("B2_Bild").src = "img/"+idOver+"_Bild"+sprache+".jpg";
}

function mouseOutB2(idOut, idAktuell, sprache) {
	var unten = "";
	if (idOut == "B2_Pv" && idAktuell == "B2_VHK") unten = "_unten";
	document.getElementById(idOut).src = "img/"+idOut+"_kl"+unten+".gif";
	document.getElementById(idAktuell).src = "img/"+idAktuell+"_gr_hi.gif";
	document.getElementById("B2_Bild").src = "img/"+idAktuell+"_Bild"+sprache+".jpg";
}

function mouseOverEbay(idOver, idAktuell, sprache) {
	document.getElementById(idOver).src = "img/"+idOver+"_hi.gif";
	if (idAktuell != "") document.getElementById(idAktuell).src = "img/"+idAktuell+".gif";
	document.getElementById("B1_ebay_mich").src = "img/"+idOver+"_Bild"+sprache+".jpg";
}

function mouseOutEbay(idOut, idAktuell, sprache) {
	document.getElementById(idOut).src = "img/"+idOut+".gif";
	if (idAktuell != "B1_ebay_mich") document.getElementById(idAktuell).src = "img/"+idAktuell+"_hi.gif";
	document.getElementById("B1_ebay_mich").src = "img/"+idAktuell+"_Bild"+sprache+".jpg";
}

function openPaketshopFinder(sprachcode) {
	popup = window.open('http://customer3.map24.com/hermes/?lang='+sprachcode,"PaketShopFinder","width=800,height=590,directories=no,hotkeys=no,title=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,toolbar=no");	
	if (popup.opener == null) popup.opener = popup;
	return false;
}

function neuesFenster(url, name, width, height) {
	var win = window.open(url, name, 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
	win.focus();
	return false;
}

function MM_openBrWindow(theURL,winName,features) {
	popup = window.open(theURL,winName,features);
	popup.focus();
}

function hideId(divId)
{
	document.getElementById(divId).style.display='none';
	return false;
}

function showId(divId)
{
	document.getElementById(divId).style.display='block';
	return false;
}

function toggleId(divId)
{
	divObj = document.getElementById(divId);
	if (divObj.style.display=='block')
		divObj.style.display='none';
	else
		divObj.style.display=='block';
	return false;
}

