// Lauftext für de, en, spa, ita
var leer20 = "                                 ";
var lauftext_de  = "    +++ Sie finden uns auf folgenden Messen:    +++ MEDICA 2010: 17.11 - 20.11.2010    +++ ARAB HEALTH 2011: 24.01 - 27.01.2011     ";
var lauftext_en  = "    +++ You can find us at following exhibitions:    +++ MEDICA 2010: 17.11 - 20.11.2010    +++ ARAB HEALTH 2011: 24.01 - 27.01.2011      ";
var lauftext_spa = "    +++ You can find us at following exhibitions:    +++ MEDICA 2010: 17.11 - 20.11.2010    +++ ARAB HEALTH 2011: 24.01 - 27.01.2011      ";
var lauftext_ita = "    +++ Siamo presenti nelle segmente fiere:    +++ MEDICA 2010: 17.11 - 20.11.2010    +++ ARAB HEALTH 2011: 24.01 - 27.01.2011      ";

function ZweiFrames(URL1,F1,URL2,F2)
{      
    parent.frames[F1].location.href=URL1;
    parent.frames[F2].location.href=URL2;
}


function home()
{
  top.navi.document.location.href='navi.html';
  //  top.navi.document.location.reload();
  top.inhalt.document.location.href='s_inhalt.html';
  //  top.inhalt.document.location.reload();
}

function syFrame(URL1,F1){

  var baseurl="http://www.ceatec.de/";

  //  if(baseurl+URL1!=parent.frames[F1].location.href)
  //    parent.frames[F1].location.href = baseurl+URL1;
  
  //  if((F1 == 1) && parent.navi.document.lauf){
    var lauftext = leer20;
    var lang = URL1.charAt(0);
    switch (lang) {
    case "d":
      lauftext += lauftext_de;
      break;
    case "e":
      lauftext += lauftext_en;
      break;
    case "s":
      lauftext += lauftext_spa;
      break;
    case "i":
      lauftext += lauftext_ita;
      break;
    default:
      lauftext += lauftext_de;
      break;
    }
        laufschrift(lauftext);
        // }
}

function b2Frame(URL1,F1,URL2){
    var baseurl="http://dyn16/";

    if((baseurl+URL1!==parent.frames[F1].location.href)&&(baseurl+URL2!==parent.frames[F1].location.href))
     parent.frames[F1].location.href = baseurl+URL1; 
}

var lf;

function laufschrift(lftext){
   document.lauf.laufband.style.color = '#df0029'
  document.lauf.laufband.value = lftext;//lauftext;
  lf = lftext.substring(1, lftext.length) + lftext.substring(0,1);
  setTimeout("laufschrift(lf)", 100);  // Laufgeschwindigkeit in Millisekunden
}

function toggle_block(block){
  var block = top.navi.document.getElementById(block);
  if (block.style.display == "none") {
    block.style.display = "block";
  } else {
    block.style.display = "none";
  }

}
