var oldLyr = 0;

function inzien(oid) {
 var Lyr;
 if ((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Gecko") == -1)) {
  if (document[oid].visibility != "show") {
   document[oid].visibility="show";
   if (oldLyr!=0 && oldLyr!=oid) {
    document[oldLyr].visibility="hide";
   }
  } else {
   document[oid].visibility="hide";
   if (oldLyr!=0 && oldLyr!=oid) {
    document[oldLyr].visibility="show";
   }
  }
 } else {
  Lyr = document.getElementById(oid);
  if (Lyr.className == 'tijden') {
   Lyr.className = 'tijdenshow';
   if (oldLyr!=0 && oldLyr!=oid) {
    oLyr = document.getElementById(oldLyr);
    oLyr.className = 'tijden';
   }
  } else {
   Lyr.className = 'tijden';
   if (oldLyr!=0 && oldLyr!=oid) {
    oLyr = document.getElementById(oldLyr);
    oLyr.className = 'tijdenshow';
   }
  }
 }
 oldLyr = oid;
}

function oldkaart(w, tid, datum, tijd) {
 url = "http://pers.a-film.nl/belbiostransactie.php?movieID="+movieID+"&cinemaID="+tid+"&performanceDate="+datum+"&performanceTime="+tijd+"&delivery=email,SMS";
 if (w=="R") {
//  url+="&service=reservationConfirm";
  url+="&service=anonymousAndReservationConfirm";
  belbios_reserveer(url);
 }
 if (w=="K") {
  url+="&service=selling";
  belbios_koop(url);
 }
}

function kaart(w, tid, datum, tijd, fid) {
 url = "http://pers.a-film.nl/belbiostransactie.php?movieID="+fid+"&cinemaID="+tid+"&performanceDate="+datum+"&performanceTime="+tijd+"&delivery=email,SMS";
 if (w=="R") {
//  url+="&service=reservationConfirm";
  url+="&service=anonymousAndReservationConfirm";
  belbios_reserveer(url);
 }
 if (w=="K") {
  url+="&service=selling";
  belbios_koop(url);
 }
}

function onemore_kaart(w, tid, datum, tijd, fid) {
 url = "http://pers.a-film.nl/belbiostransactie_onemore.php?movieID="+fid+"&cinemaID="+tid+"&performanceDate="+datum+"&performanceTime="+tijd+"&delivery=email,SMS";
 if (w=="R") {
//  url+="&service=reservationConfirm";
  url+="&service=anonymousAndReservationConfirm";
  belbios_reserveer(url);
 }
 if (w=="K") {
  url+="&service=selling";
  belbios_koop(url);
 }
}

function bb(movid) {
x=1;
y=1;
width=300;
height=300;
if(window.screen){
 per_ancho=(width/800)*100;
 per_alto=(height/width)*100;
 win_ancho=(screen.width*per_ancho)/100;
 win_alto=(win_ancho*per_alto)/100;
 x=(screen.width-win_ancho)/2;
 y=(screen.height-win_alto)/2;
 y=y-40;
 if (y<0) {
  y=0;
  }
 }
 var w = window.open("http://pers.a-film.nl/belbios_details.php?movid="+movid, "bb", "width=300, height=300, left="+x+",top="+y+", scrollbars=yes");
 if (window.screen) {
  w.focus();
 }
}