/***************************************************
 *
 * Fluwog Website: scripts for use in the website
 * Version: $Id: scripts.js 30 2010-09-22 07:51:11Z mh $
 *
 * (c) 2010 by mehrwert
 *
 * mehrwert intermediale kommunikation GmbH
 * Steinfelder Gasse 11
 * 50670 Koeln
 *
 * Tel: +49 221 139753-0
 * Fax: +49 221 139753-13
 *
 * typo3@mehrwert.de
 * http://www.mehrwert.de
 *
 **************************************************/

quickpath = 'ich-bin';

function quickbarSelect(selObj){
  selObjValue = selObj.options[selObj.selectedIndex].value;
  
  selObjValue = selObjValue.replace(unescape('%E4'),'ae');
  selObjValue = selObjValue.replace('Ich'+' '+'bin...','ich-bin');
  
  document.getElementById('ich-bin').style.display = 'none';
  document.getElementById('Mitglied').style.display = 'none';
  document.getElementById('Interessierter').style.display = 'none';
  document.getElementById('Geschaeftspartner').style.display = 'none';
  document.getElementById('Journalist').style.display = 'none';
  
  quickpath = selObjValue;
  
  if (document.getElementById(selObjValue)) {
  	document.getElementById(selObjValue).style.display = 'block';
  }
}

function quickbarMenu(selObj){
  selObjValue = selObj.options[selObj.selectedIndex].value.toLowerCase();
  selObjValue = selObjValue.replace(' ','-');
  selObjValue = selObjValue.replace(' ','-');
  selObjValue = selObjValue.replace(' ','-');
  selObjValue = selObjValue.replace(' ','-');
  selObjValue = selObjValue.replace(' ','-');
  selObjValue = selObjValue.replace('»','');
  selObjValue = selObjValue.replace('«','');
  selObjValue = selObjValue.replace(unescape('%E4'),'ae');
  selObjValue = selObjValue.replace(unescape('%F6'),'oe');
  selObjValue = selObjValue.replace(unescape('%FC'),'ue');
  eval("parent.location='schnellstart/"+quickpath+"/"+selObjValue+"'");
}

