
function SwitchImg()
{
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
        store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1
];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length
);
         obj = eval(store);
    if (obj != null) {
           switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
}

function RestoreImg()
{
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
}


function redirectFirmenPage() {
        
  var domain;
  var targetadress;
  domain = window.location.host;

  if(domain == 'www.quartis.de')
  {
    targetadress = 'http://www.quartis.de/quweb/';
  }
  else if(domain == 'www.qult.de' )
  {
    targetadress = 'http://www.qult.de/singlelounge/';
  }
  else
  {
    targetadress = 'http://www.quartis.de/quweb/';
  }
  
  window.location.href= targetadress;
}

function redirectMainPage() {
  var domain;
  var targetadress;
  domain = window.location.host;
  
  if(domain == 'www.quartis.de')
  {
    targetadress = 'http://www.quartis.de/quweb/';
  }
  else if(domain == 'www.qult.de' )
  {
    targetadress = 'http://www.qult.de/singlelounge/';
  }
  else
  {
    targetadress = 'http://www.quartis.de/quweb/';
  }
  
  window.location.href= targetadress;
}

function redirectPalmPage() {
  var domain;
  var targetadress;
  domain = window.location.host;
  
  if(domain == 'www.quartis.de')
  {
    targetadress = 'http://www.quartis.de/quweb/kfzwb.html';
  }
  else if(domain == 'www.qult.de' )
  {
    targetadress = 'http://www.qult.de/singlelounge/';
  }
  else
  {
    targetadress = 'http://www.quartis.de/quweb/';
  }
  
  window.location.href= targetadress;
}


