

/**
 * FUNCTION  goToLink
 * sitelink: Top level Link
 * subsitelink: Second level Link
 * subsubsitelink: Third level Link
 * Creates the Link and goes to it
**/
function goToLink (sitelink,subsitelink,subsubsitelink)
{
	
	if (!subsitelink)
	{
		window.location.href = pagePath + sitelink + '.html';
	}
	else if (subsitelink)
	{
		if (!subsubsitelink)
		{
			window.location.href = pagePath + sitelink + '/' + subsitelink + '.html';
		}
		else
		{
			window.location.href = pagePath + sitelink + '/' + subsitelink + '/' + subsubsitelink + '.html';
		}
	}
}


/**
 * FUNCTION  goToSite
 * site: Page to redirect to
 * Redirects to the first page
**/
function goToSite( site )
{
	window.location.href = site;
}


/**
 * FUNCTION  $
 * idOfDiv: Id of the requested Element
 * gets the Element with the idOfDiv
**/
function $ (idOfDiv)
{
	return document.getElementById(idOfDiv);
}


