function WindowOpen(file, windowName, x, y, features)
{
   // verschiedene Aufrufe sollen nicht das selbe Fenster verwenden:
   var windowNameString = windowName.length ? windowName : (file + x + features + y).replace(/[^a-zA-Z0-9]/g,"");
   var posX = parseInt((screen.availWidth - x) / 2);
   var posY = parseInt((screen.availHeight - y) / 2);
   popupMyWindow = window.open(file, windowNameString, "width="+x+",height="+y+",left="+posX+",top="+posY+(features.length?","+features:""));
   popupMyWindow.moveTo(posX, posY);
   popupMyWindow.focus();
}

function flash_metaNavi_open(id) 
{
	switch (id) {
		case 'teilnahme':
			WindowOpen('popups/teilnahmbedingungen/tb_fruchtiger.html', 'tb', 500, 630, 'scrollbars=yes');
		break;
		case 'datenschutz':
			WindowOpen('popups/teilnahmbedingungen/ds_fruchtiger.html', 'ds', 500, 330, '');
		break;
		case 'impressum':
			WindowOpen('http://www.haribo.com/planet/at/impressum/impressum.html', 'impressum', 500, 630, '');
		break;
		case 'haribo':
			//<a href="http://haribo.com" target="_blank">www.haribo.com</a>
			window.open("http://haribo.com", "_blank");
		break;						
	}
}



				
				
				
				