if (document.images)
{
	icon_a = new Image; icon_a.src = "/images/drucken2.gif";
	icon_b = new Image; icon_b.src = "/images/home2.gif";
	icon_c = new Image; icon_c.src = "/images/kontakt2.gif";
	icon_d = new Image; icon_d.src = "/images/sitemap2.gif";
	icon_e = new Image; icon_d.src = "/images/suche2.gif";
}

function di20(id, newSrc) {
	var theImage = FWFindImage(document, id, 0);
	if (theImage) {
		theImage.src = newSrc;
	}
}

function FWFindImage(doc, name, j) {
	var theImage = false;
	if (doc.images) {
		theImage = doc.images[name];
	}
	if (theImage) {
		return theImage;
	}
	if (doc.layers) {
		for (j = 0; j < doc.layers.length; j++) {
			theImage = FWFindImage(doc.layers[j].document, name, 0);
			if (theImage) {
				return (theImage);
			}
		}
	}
	return (false);
}

// Hauptmenue
function cell_default(cell)
{
	cell.style.backgroundColor = 'transparent';
}

function cell_highlight(cell)
{
	cell.style.backgroundColor = '#e36200';
}


// Rubrikmenue
function cell_l1_highlight(cell)
{
	cell.className = 'rm_ebene1_highlight';
}

function cell_l1_default(cell)
{
	cell.className = 'rm_ebene1';
}

function openPopUp(url, title, width, height)
{
	if (width > screen.width) width = screen.width -20;
	if (height > screen.height) height = screen.height -20;

	var x = Math.floor(screen.width / 2) - Math.floor(width /2);
	var y = Math.floor(screen.height / 2) - Math.floor(height /2);

	var desc = 'top=' + String(y) + ',left=' + String(x) + ',height=' + String(height) + ',width=' + String(width) + 'location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no';
	
	var wind = window.open(url, title, desc);
	wind.focus();
}

