/*################################################################################
	D E B U G
################################################################################*/

var debugModus = 0	; // Debugmodus EIN = 1 || AUS = 0

function debug(txt)
{
	if(!debugModus || typeof(console) != "object") { return; }
	else { console.log(txt); }
}
debug("debugModus = true");


/*################################################################################
	$$$
################################################################################*/

// get Elements by Name

function $$$(obj)
{
	var obj = document.getElementsByName(obj);
	obj = (obj.length==1)?obj[0]:obj;
	return obj;
}


/*################################################################################
	F U N C T I O N S
################################################################################*/


// changeHGB - Moodbilder wechseln durch Blaettern

var activeHGB = 1;
function changeHGB(next)
	{
		if(next)
		{
			activeHGB = (activeHGB == maxHGB) ? 1 : (activeHGB+1);
		} else {
			activeHGB = (activeHGB == 1) ? maxHGB : (activeHGB-1);
		}
		document.getElementById("content").style.backgroundImage = "url(/pix/page/projekte/moods/" + objID + "/mood_" + activeHGB + ".jpg)";
	}
	
	
// HideContent/ShowContent - Verstecke/Zeige ProjektContent

function HideContent() {
	document.getElementById("contentProjekte").style.display='none';
	}
	
	
function ShowContent() {
	document.getElementById("contentProjekte").style.display='block';
	}
