var leer=null;
var info_fenster = null;
var STATUS=null;
var x,y;
var timeo=900;
var _adr   = document.location.href;
var woher = _adr.substr((_adr.indexOf("htm")) - 3, 2);
var woher_m = _adr.substr((_adr.indexOf("module")) +8 , 1);
var _pfad=null;
function images()
{
b1 = new Image(); 
b1.src = "../../../main/text.jpg"; 
b2= new Image(); 
b2.src = "../../../main/tabelle.jpg";
b3 = new Image(); 
b3.src = "../../../main/info.jpg"; 
b4= new Image(); 
b4.src = "../../../main/multi.jpg";
b5= new Image(); 
b5.src = "../../../main/karte.jpg";
b6= new Image(); 
b6.src = "../../../main/grafik.jpg";
b7= new Image(); 
b7.src = "../../../main/bild.jpg";
}


function switchlang(lang)
{
_pfad=document.location.pathname;
_pfad=_pfad.substr(_pfad.indexOf("english") +7);
var rechts = ('../../../../' + lang + _pfad);
self.location=rechts;
}


function init()
{
in_frame();
images();
}

function in_frame()
{
if(self.name != 'rightframe')
//if(self.parent.frames.length == 0)
{
if (woher != 10) if (woher != 11) if (woher != 12) if (woher != 13) if (woher != 14) woher = woher.substr(1,1);


var links = ('../../menu/m' + woher_m + '/m1_' + woher + '.htm')
var rechts = ('../../module/m' + woher_m + '/U' + woher + '.htm');

var pa_fr = document

pa_fr.open();
pa_fr.write('<html>');
pa_fr.write('<head>');
pa_fr.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
pa_fr.write('<title>Virtuelle geographische Texte</title>');
pa_fr.write('</head>');
pa_fr.write('<frameset border="0"  cols="185,*">');
pa_fr.write('<frameset border="0"  rows="110,*">');
pa_fr.write('<frame SCROLLING="no" NORESIZE SRC="../../../main/menu.htm" NAME="topframe">');
pa_fr.write('<frame SCROLLING="AUTO" NORESIZE SRC="');
pa_fr.write(links);
pa_fr.write('" NAME="leftframe">');
pa_fr.write('</frameset>');
pa_fr.write('<frame SCROLLING="AUTO" NORESIZE SRC="');
pa_fr.write(rechts);
pa_fr.write('" NAME="rightframe">');
pa_fr.write('</frameset>');
pa_fr.write('<noframes>');
}

}
 

 function icon_an(icon2)
 {
 parent.topframe.location.href=('../../../main/' + icon2 + '.htm');   
 }
 
 function icon_aus()
 {
 parent.topframe.location.href=('../../../main/menu.htm');   
 self.status='';
 }
 
 function bild(icon, status)
  {
  //timeo=parent.timeo;
  if(status != 0)
  {
  icon2=icon;
  x = setTimeout("icon_an(icon2)",timeo);
  }
  else
  {
  y = clearTimeout(x);
  icon_aus();
  }
  }
function line(line_text)
{
status='Link:    ' + line_text;
}  
function fenster2 (url)
{
leer=window.open('','F2','toolbar=1,resizable=1,location=1,width=650,height=600,top=0,left=0,status=1,scrollbars');
 if (leer != null)
 { 
  leer.location.href = ("../../../main/blank.htm");
  leer.location.href = (url);
  leer.focus();
 }
}
