/* This method get the div by id and changes value */
popupWindow_style = new Array();

function showStone(stoneID,changeStyle) {
	document.getElementById(stoneID).style.display = changeStyle;
	if (stoneID == 'erfahrung') {
			document.getElementById('changingicon').style.background = 'url(/styles/images/C/maro_icon_erfahrung.gif) no-repeat bottom left';
	} else if (stoneID == 'kontakte') {
			document.getElementById('changingicon').style.background = 'url(/styles/images/C/maro_icon_kontakte.gif) no-repeat bottom left';
	} else if (stoneID == 'kreativitaet' ) {
			document.getElementById('changingicon').style.background = 'url(/styles/images/C/maro_icon_kreativitaet.gif) no-repeat bottom left';
	} else if (stoneID == 'effizienz' ) {
			document.getElementById('changingicon').style.background = 'url(/styles/images/C/maro_icon_effizienz.gif) no-repeat bottom left';
	}
}

/* This method enlarge and minimize the dtree navigation in admin mode */
function dtreeSizing(activate_Image1,activate_Image2,deactivate_Image1,deactivate_Image2,idOfDiv,sizeOfDiv) {
	document.getElementById(idOfDiv).style.height = sizeOfDiv;
	document.getElementById(activate_Image1).style.display = 'inline';
	document.getElementById(activate_Image2).style.display = 'inline';
	document.getElementById(deactivate_Image1).style.display = 'none';
	document.getElementById(deactivate_Image2).style.display = 'none';
}

/* This method initiates the dynarch navigation, if the menu-ID is found */
function initNavigation(menuId1,menuId2) {
	if (document.getElementById(menuId1)) {
		DynarchMenu.setup('marohp_menumain', { electric: 250 }); 
	}
	if (document.getElementById(menuId2)) {
		DynarchMenu.setup('marohp_menusub', { electric: 250 }); 
	}
}