function NavClear(pProduct)
{
  document.getElementById('_nav_' + pProduct).src = '/bilder/navi/' + pProduct + '.gif';
}

function NavHover(pProduct,pTarget)
{
  document.getElementById('_nav_' + pTarget).src = '/bilder/navi/' + pTarget + '_hover.gif';
}

function AddToFavorites()
{ 
  if (navigator.appName.indexOf("Explorer") > -1)
  {
    if (window.external) 
    { 
      window.external.AddFavorite(location.href , document.title) 
    }   
  }
  else 
  {
    alert("Diese Funktion wird von Ihrem Browser nicht unterstuetzt."); 
  }
}

function RecommendPage()
{
  newWin = window.open('/allgemein/empfehlen/index.php','_dah_recommend',
          'width=400' + 
          ',height=600' +
          ',dependent=yes' +
          ',location=no' +
          ',menubar=no' +
          ',resizeable=no' +
          ',scrollbars=no' +
          ',status=no' +
          ',toolbars=no');
          
  newWin.moveTo((screen.width-400) / 2, (screen.height-600) / 2);
  
  newWin.focus();
}

function AllPhoneNumbers()
{
  newWin = window.open('/allgemein/allgemein/durchwahlen.php','_dah_phonenumbers',
          'width=400' + 
          ',height=600' +
          ',dependent=yes' +
          ',location=no' +
          ',menubar=no' +
          ',resizeable=yes' +
          ',scrollbars=yes' +
          ',status=no' +
          ',toolbars=no');
          
  newWin.moveTo((screen.width-400) / 2, (screen.height-600) / 2);
  
  newWin.focus();
}


function OpenSocialBookmarker(pID)
{
  document._frm_social_bm._id.value = pID;
  document._frm_social_bm._title.value = document.title;
  document._frm_social_bm._url.value = location.href;
  setTimeout('document._frm_social_bm.submit()', 100);
}
  
