var pagetitle = document.title;
var sPath = "/img/map/";
var sFormat = ".gif";

function fURL2(sParam) {
	if (top.location.search != "") {
		var aSearch = top.location.search.substring(1,top.location.search.length).split("&");
		for (i=0;i<aSearch.length;i++) {
			var aParam = aSearch[i].split("=");
			if (aParam[0] == "id") sParam = aParam[0] + "=" + aParam[1] + "&" + sParam;
		}
	}
	top.location = "/kontakte/?" + sParam;
}

function fPrint(oFrame) {
	oFrame.focus();
	oFrame.print();
}

function fBookmark() {
	if (document.all) {
		window.external.AddFavorite("http://www.keb-net.de/","www.keb-net.de - Katholische Erwachsenenbildung in der Diözese Hildesheim");
	}
	else {
		alert("Drücken Sie 'Strg + D'.");
	}
}

function openWin( windowURL, windowName, windowFeatures ) { 
	return window.open( windowURL, windowName, windowFeatures ); 
} 

function fPopUp(url) { 
	win1 = open(url,"win1","width=300,height=200,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1");
} 

function fCardPopUp(url) { 
	win1 = open("/kontakte/" + url,"win1","width=500,height=400,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1");
} 
// für Fabi Hildesheim http://www.keb-net.de/?id=331 
function openmap (Adresse) {
	  map = window.open(Adresse, "Zweitfenster", "width=650,height=500,left=100,top=200");
	  map.focus();
	}

function show_image(img_name,img_source) {
	var oImgWin = window.open("","_blank","location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no");
	oImgWin.document.open();
	oImgWin.document.writeln("<html>");
	oImgWin.document.writeln("<head>");
	oImgWin.document.writeln("<title>" + img_name + "</title>");
	oImgWin.document.writeln("<\/head>");
	oImgWin.document.writeln("<body  bgcolor=\"#ffffcc\"  marginwidth=\"0\" marginheight=\"0\" topmargin=\"0\" leftmargin=\"0\" style=\"margin:0px;\" onload=\"window.resizeTo(eval(document.images[0].width+24),eval(document.images[0].height+36))\">");
	oImgWin.document.writeln("<div align=\"center\"><img src=\"" + img_source + "\" alt=\"" + img_name + "\" border=\"0\"><\/div>");
	oImgWin.document.writeln("<\/body>");
	oImgWin.document.writeln("<\/html>");
	oImgWin.document.close();
}

function fPreloadImg() {
	var sPath = fPreloadImg.arguments[0];
	var sFormat = "." + fPreloadImg.arguments[1];
	for (var i=2; i<fPreloadImg.arguments.length; i++) {
		var oImg = new Image();
			oImg.src = sPath + fPreloadImg.arguments[i] + sFormat;
	}
}

function cImg() {
	for (var i=0; i<cImg.arguments.length; i+=2) {
		document[cImg.arguments[i]].src = cImg.arguments[i+1] + sFormat;
	}
}

function cImg2() {
	for (var i=0; i<cImg2.arguments.length; i+=2) {
		document[cImg2.arguments[i]].src = cImg2.arguments[i+1];
	}
}

function rImg() {
	cImg('id1','1','id2','2','id3','3','id4','4','id5','5','id6','6','id7','7','id8','8','id9','9','id10','10','id11','11','id12','12','id13','13','id14','14','id15','15','id16','16','id17','17','id18','18','id19','19','id20','20','id21','21','id22','22','id23','23','id24','24');
}

