function toggle(id) {
	var toggleElements = glow.dom.get('.toggle');
	num = toggleElements.length;
	
	toggleElements.each(function(i) {
		e = glow.dom.get(this);
		/*display = e.css("display");
		if (i == id)
			e.show();
		else 
			e.hide();*/
	});
}

function pShow(i, n) {
	actives = glow.dom.get('.active');
	/*actives.each(function(a) {
		this.className = '';
		this.style.border = '1px solid #52514e';
	});*/

        var img = pData[n].e;
        var image = "/fileadmin/images/team/" + img.replace(/\./g, "_") + ".jpg";

	i.className = 'active';
	
	glow.dom.get('#pdata').show();
	
	glow.dom.get('#pdata-img1').attr("src",image);
	
	glow.dom.get('#pdata-name1').html(pData[n].n);
	glow.dom.get('#pdata-name2').html(pData[n].n);
	glow.dom.get('#pdata-pos').html(pData[n].b);
	if(pData[n].t != "") {
		glow.dom.get('#pdata-tel').html('0421 3636 ' + pData[n].t);
	} else {
		glow.dom.get('#pdata-tel').html('');
	}

	email = pData[n].e + '@emsn.de';
	if(pData[n].e !="") {
		glow.dom.get('#pdata-mail').html('<a href="mailto:' + email + '">' + email + '</a>');	
	} else {
		glow.dom.get('#pdata-mail').html('');		
	}
}

/*function pHide(i, flag) {
	if (flag == 1) {
		i.style.border = '1px solid #65645b';
	}
	else {
		if (i.className != 'active')
			i.style.border = '1px solid #52514e';
	}
}*/
