var imgnr;
var idx;
var aktiv;

function setExploreContent(title, description) {
  clearTimeout(aktiv);
  imgnr = 0;
  document.getElementById("explore_title").innerHTML = title;
  document.getElementById("explore_desc").innerHTML = description;
  showImages();
}

function showImages() {
  document.getElementById("explore_bigimg_pic").src=a_explore[idx][imgnr];
  imgnr++;
  if (a_explore[idx].length > imgnr) {
    aktiv = setTimeout("showImages()", 5000);
  } else {
    imgnr = 0;
    aktiv = setTimeout("showImages()", 5000);
  }
}

function getGalleryPicName(name, opt_postfix) {
  var ext = "";
  var bild = name.substring(0, name.indexOf("."));
  if (name.indexOf("_big") != -1) {
    bild = name.substring(0, name.indexOf("_big"));
    ext = name.substr(name.indexOf(".")+1);
    return bild + opt_postfix + "." + ext;
  } else {
    return "";
  }
}

function setpic(self, id) {
  document.getElementById(id).src = self;
}

function switchStaffGallery (country, city, name, text, img) {
  document.getElementById("gallery_country").innerHTML=country;
  document.getElementById("gallery_city").innerHTML=city;
  document.getElementById("gallery_name").innerHTML=name;
  document.getElementById("gallery_text").innerHTML=text;
  document.getElementById("gallery_img").src=img;

}

function switchImgText (country, city) {
	document.getElementById("gallery_country").innerHTML = country;
        document.getElementById("gallery_city").innerHTML = city;
}

function moveright() {
  if (anz > 5) {
  if ((340+(parseInt(y)*(-1)) <= (my_contentwidth))) {
    y=parseInt(y)-speed+"px";
    crossobj.style.left=y;
  } else if (ns4&&y>=(my_contentwidth*(-1)) && (parseInt(y) < (my_contentwidth+340))) {
    y-=speed;
    crossobj.style.left=y;
  }
  moverightvar=setTimeout("moveright()",20);
  }
}

function moveleft(){
  if (anz > 5) {
  if (iens6 && parseInt(y) <= -3) {
    y=parseInt(y)+speed+"px";
    crossobj.style.left=y;
  } else if (ns4 && y <= -3) {
    y+=speed;
    crossobj.style.left=y;
  }
  moveleftvar=setTimeout("moveleft()",20);
  }
}

startList = function() {
  if (document.all&&document.getElementById) {
  navRoot = document.getElementById("menu");
  for (i=0; i<navRoot.childNodes.length; i++) {
    node = navRoot.childNodes[i];
    if (node.nodeName=="UL") {
      node.onmouseover=function() {
        this.className+=" over";
      }
      node.onmouseout=function() {
      this.className=this.className.replace(" over", "");
        }
      }
    }
  }
}


//window.onload=startList;
