inc_art='';
inc_noframe=window.location.search.indexOf("noframeset=ja");
inc_close=window.location.search.indexOf("closewindow=ja");
if (inc_noframe==-1 && inc_close==-1){
   inc_back = new Image(); 
   inc_back.src = "bilder/back_leer.gif";
}  

if (inc_close>0){
   inc_back = new Image(); 
   if (window.location.search.indexOf("sprache=eng")==-1)
      inc_back.src = "bilder/close_deu.gif";
   else
      inc_back.src = "bilder/close_eng.gif";
   layer_hide();
   inc_art='closewindow';
   changeLinks(inc_art);  
} 

if (inc_noframe>0){
  inc_art='noframeset';
  changeLinks(inc_art);   
}

function changeLinks(inc_art) {
  if (window.document.images["back_link"]){
     for(count=0;count<window.document.links.length;count++) {
        vers=navigator.appVersion.substring(0,1);
        endung_anf=window.document.links[count].pathname.lastIndexOf('.')+1;
        endung_ende=window.document.links[count].pathname.length;
        endung=window.document.links[count].pathname.substring(endung_anf,endung_ende);
        if(endung.indexOf('SSL') != -1){
          endung_ende=endung.lastIndexOf(':');
          endung=endung.substring(0,endung_ende);
        }    
        if (((endung=="htm") || (endung=="html") || (endung=="dml") || (endung=="php")) && (vers != "1") && (vers != "2") && (vers != "3") && (window.document.links[count].href.indexOf('javascript')==-1)) {
           if (window.document.links[count].href.indexOf("#") > 0){ 
              url=window.document.links[count].href.substring(0,window.document.links[count].href.indexOf("#"));
              anc=window.document.links[count].href.substring(window.document.links[count].href.indexOf("#"),window.document.links[count].href.length);
           }
           else{
              url=window.document.links[count].href;
              anc='';
           }          
           if (window.document.links[count].href.indexOf('?')!=-1)
              window.document.links[count].href=url+"&"+inc_art+"=ja"+anc
           else  
              window.document.links[count].href=url+"?"+inc_art+"=ja"+anc
        }
    }
    if (inc_art=="closewindow")
       window.document.links[window.document.links.length-1].href='javascript:self.close()';
  }
  else
    window.setTimeout("changeLinks('"+inc_art+"')",500);
}

  
function layer_hide(){
   if (window.document.images["back_link"])
       window.document.images["back_link"].src = inc_back.src;
   else
       window.setTimeout("layer_hide()",500);
}


