function openbelbios() {
r = window.open("belbios.php","tonez","width=450,height=320,scrollbars=yes");
if (window.focus) {
 r.focus();
}
}

function maintenance() {
 msg = "Vannacht (30 maart) tussen 0:00 en 2:00 uur zal deze site down zijn ten behoeve van werkzaamheden aan de server.";
 alert(msg);
}

function openringtones() {
r = window.open("http://inoranje.piminteractive.nl/","tonez","width=400,height=320,scrollbars=no");
if (window.focus) {
 r.focus();
}
}

function showpic(naam) {
x=1;
y=1;
width=300;
height=350;
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;
  }
 }
s="showpic.html?pic="+naam;
w=window.open(s,"picshow","width=300,height=350,left="+x+",top="+y+",resizable=0,status=0,toolbar=0,scrollbars=0");
if (window.screen) {
 w.focus();
 }
}



function opentrailer(speed) {
x=1;
y=1;
width=250;
height=250;
if (!speed) {
 speed="med";
}
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;
  }
 }
s="trailer_"+speed+".html";
t=window.open(s,"trailer","width="+width+",height="+height+",left="+x+",top="+y+",resizable=0,status=0,toolbar=0,scrollbars=0");
if (window.screen) {
 t.focus();
}
}


function openpuzzel() {
x=1;
y=1;
width=390;
height=530;
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;
  }
 }
s="puzzle.html";
p=window.open(s,"puzzel","width="+width+",height="+height+",left="+x+",top="+y+",resizable=0,status=0,toolbar=0,scrollbars=0");
if (window.screen) {
 p.focus();
 }
}


function opensponsors() {
w = window.open("sponsors.html","osponsors","width=250,height=515,scrollbars=no");
if (window.focus) {
 w.focus();
}
}

function opengb() {
w = window.open("guestbooksign.php","ogb","width=450,height=250");
if (window.focus) {
 w.focus();
}
}

function addFav() {
 if (window.external) {
  window.external.AddFavorite("http://www.inoranje.nl","In Oranje");
 } else if (window.sidebar&&window.sidebar.addPanel) {
  window.sidebar.addPanel("Inoranje.nl","http://www.inoranje.nl/ns6side.html","");
 } else {
  alert("Helaas ondersteunt uw browser deze functie niet. Zet deze site aub handmatig in uw bookmarks of favorieten.");
 }
}

function goup() {
window.document.movie.SetVariable('_level0.overmov.containerMC.frameCounter',3);
// window.document.movie.SetVariable('_level0.overmov.containerMC.scrolling',"up");
window.document.movie.SetVariable('_level0.overmov.containerMC.onetimescroll',1);
}
function godown() {
window.document.movie.SetVariable('_level0.overmov.containerMC.frameCounter',3);
// window.document.movie.SetVariable('_level0.overmov.containerMC.scrolling',"down");
window.document.movie.SetVariable('_level0.overmov.containerMC.onetimescroll',2);
}
function checkupdown() {
 if (window.document.movie) {
  if (event.wheelDelta<0) {
   godown();
  }
  if (event.wheelDelta>0) {
   goup();
  }
 }
}
document.onmousewheel=checkupdown;
