// ein- / ausblenden des Fotoalbums
function lightbox(attrib,array,css,count) {
	var output = '';
	output += '<div class="image_navi">';
	output += '  <div class="prev"><a onClick="javaschript:arNav(\'-\',\'' + array + '\',' + count + ');"><span class="btn active">&lt;&lt;&lt;</span>&nbsp;<!--vorheriges Foto--></a></div>';
	output += '  <div class="next"><a onClick="javaschript:arNav(\'+\',\'' + array + '\',' + count + ');"><!--nächstes Foto-->&nbsp;<span class="btn active">&gt;&gt;&gt;</span></a></div>';
	output += '  <div id="img_info" class="center">Bild: 1/' + count + '</div>';
//	output += '  <div class="back"><a href="javascript:lightbox(\'hide\');">Album verlassen</a></div>';
	output += '  <div class="back"><a href="javascript:location.reload();">Album verlassen</a></div>';
	output += '</div>';
	
	if(attrib == 'hide') {
		document.getElementById('schoolcontent').className = 'show';
		document.getElementById('schoolcontent2').className = 'hide';
	} else { //'show'
		document.getElementById('schoolcontent').className = 'hide';
		document.getElementById('schoolcontent2').className = 'show bilder_bg' + css;
		document.getElementById('schoolcontent2').innerHTML = '<div id="image">' + bilder[array][0] + '</div>' + output;
	} 
}

// Navigationsfunktionen im Album
var x = 0;
function arNav(control,array,count) {
	if(control == '+' && x < (count-1)) {
		x++;
		document.getElementById('image').innerHTML = bilder[array][x];
		document.getElementById('img_info').innerHTML = 'Bild: ' + (x+1) + '/' + count ;
	}
	if(control == '-' && x > 0) {
		x--;
		document.getElementById('image').innerHTML = bilder[array][x];
		document.getElementById('img_info').innerHTML = 'Bild: ' + (x+1) + '/' + count ;
	}
}

// Pädagogen Übersicht
function arFlip(id,pos,css,css2,browser) {
	document.getElementById('paedagoge'+id).style.minHeight = '150px';
	document.getElementById('paedagoge'+id).style.position = 'absolute';
	document.getElementById('paedagoge'+id).style.zIndex = 9;
	if(pos == 'right') {
		if(browser != 'lte-ie7') {
			document.getElementById('paedagoge'+id).style.marginLeft = '588px';
		} else {
			document.getElementById('paedagoge'+id).style.marginLeft = '24px';
		}
	}
	document.getElementById('p_zusatz'+id).className = 'show p_zusatz ';
//	document.getElementById('p_zusatz_body'+id).className = 'p_zusatz_body' + css;
}
function arClose(id,pos) {
//	document.getElementById('paedagoge'+id).style.height = '150px';
	document.getElementById('paedagoge'+id).style.minHeight = '';
	document.getElementById('paedagoge'+id).style.position = 'relative';
	document.getElementById('paedagoge'+id).style.zIndex = 0;
	document.getElementById('paedagoge'+id).style.marginLeft = '';
	document.getElementById('p_zusatz'+id).className = 'hide';
}

// Kontakt Übersicht
function showKontakt(id,pos,css) {
	document.getElementById('vcard'+id).style.position = 'absolute';
	document.getElementById('vcard'+id).style.minHeight = '50px';
	document.getElementById('vcard'+id).style.zIndex = 9;
	document.getElementById('vcard'+id).className = 'show' + ' ' + css;
	if(pos == 'right') {
		document.getElementById('vcard'+id).style.marginLeft = '';
	}
}
function showKontakt2(id) {
	document.getElementById('vcard'+id).style.minHeight = '';
	document.getElementById('vcard'+id).className = 'hide';
	if(pos == 'right') {
		document.getElementById('vcard'+id).style.marginLeft = '';
	}
}

function showImpressumDatenschutz(display) {
	if(display == 'true') {
		document.getElementById('datenschutz_top').style.borderBottom = 'none';
		document.getElementById('datenschutz_sub').className = 'show';
		document.getElementById('dropdown_pfeil').className = 'hide';
	} else {
		document.getElementById('datenschutz_sub').className = 'hide';
		document.getElementById('datenschutz_top').style.borderBottom = '1px solid #999';
		document.getElementById('dropdown_pfeil').className = 'show';
	}
}

function hoverPresseRef(changeimg,category) {
	if(changeimg == true) {
		if(category == 'presse') {
			document.getElementById('img_presse_ref').src = 'img/hover_presse_link.png';
		}
		if(category == 'ref') {
			document.getElementById('img_presse_ref').src = 'img/hover_referenzen_link.png';
		}
	} else {
			document.getElementById('img_presse_ref').src = 'img/spacer128x128.gif';
	}
}

function hoverKontImp(changeimg,category) {
	if(changeimg == true) {
		if(category == 'kontakt') {
			document.getElementById('img_kontakt_imp').src = 'img/hover_kontakt_link.png';
		}
		if(category == 'impressum') {
			document.getElementById('img_kontakt_imp').src = 'img/hover_impressum_link.png';
		}
	} else {
			document.getElementById('img_kontakt_imp').src = 'img/spacer128x128.gif';
	}
}

function hoverNeugierig(hover) {
	if(hover) {
		document.getElementById('img_neugierig').src = 'img/hover_neugierig_link.png';
	} else {
		document.getElementById('img_neugierig').src = 'img/spacer128x128.gif';
	}
}

