var button = 0

oldpic1 = new Image(86,18)
oldpic1.src = "images/bthome.gif"
newpic1 = new Image(86,18)
newpic1.src = "images/bthomex.gif"
oldpic2 = new Image(86,18)
oldpic2.src = "images/btUKrestcons.gif"
newpic2 = new Image(86,18)
newpic2.src = "images/btUKrestconsx.gif"
oldpic3 = new Image(86,18)
oldpic3.src = "images/btUKprevcons.gif"
newpic3 = new Image(86,18)
newpic3.src = "images/btUKprevconsx.gif"
oldpic4 = new Image(163,20)
oldpic4.src = "images/btUKconsmanag.gif"
newpic4 = new Image(163,20)
newpic4.src = "images/btUKconsmanagx.gif"
oldpic5 = new Image(86,18)
oldpic5.src = "images/btUKbedrijf.gif"
newpic5 = new Image(86,18)
newpic5.src = "images/btUKbedrijfx.gif"
oldpic6 = new Image(86,18)
oldpic6.src = "images/btUKcontact.gif"
newpic6 = new Image(86,18)
newpic6.src = "images/btUKcontactx.gif"
oldpic11 = new Image(120,14)
oldpic11.src = "images/btactueel.gif"
newpic11 = new Image(120,14)
newpic11.src = "images/btactueelx.gif"

function changepic(cImg,ref) {
  document.images[cImg].src = ref.src
}


function opendoc(inhoud,volscr)
//popupt pdf enz.: 1=fullscreen 2=documenten(html & pdf)640x480 3=halve A4
{
 switch (volscr){
  case 1 :
    FullWin = open('','nieuw_venster','fullscreen=1,resizable=1,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no');
    FullWin.document.open();
    var fullbestand = '<html><head><meta http-equiv="refresh" content="10; URL='+inhoud+'"></head></html>';
    FullWin.document.write(fullbestand);
    FullWin.document.close();
    break;
 case 2 :
    FullWin = open('','nieuw_venster','width=640,height=500,resizable=1,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no');
    FullWin.document.open();
    var fullbestand = '<html><head><meta http-equiv="refresh" content="0; URL='+inhoud+'"></head></html>';
    FullWin.document.write(fullbestand);
    FullWin.document.close();
    break;
 case 3 :
    FullWin = open('','nieuw_venster','width=630,height=430,resizable=1,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no');
    FullWin.document.open();
    var fullbestand = '<html><head><meta http-equiv="refresh" content="0; URL='+inhoud+'"></head></html>';
    FullWin.document.write(fullbestand);
    FullWin.document.close();
    break;
 default :
    break;
 }
}


function openimg(inhoud,volscr,breed,hoog)
//popupt plaatjes: 1=fullscreen %breed x %hoog 
//                 2=popup opgegeven venster pxbreed x pxhoog en formaat plaatje 98%x98%
//                 3=popup vast vensterhoogte(400) met scrollbars
//                 4=popup opgegeven venster pxbreed x pxhoog en formaat plaatje zoals die is
{
 switch (volscr){
  case 1:
    FullWin = open('','nieuw_venster','fullscreen=1,resizable=0,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no');
    FullWin.document.open();
    var fullbestand = '<html><head><style>body{scrollbar-3d-light-color:#000000;scrollbar-arrow-color:#000000;scrollbar-base-color:#000000;scrollbar-dark-shadow-color:#000000;scrollbar-face-color:#000000;scrollbar-highlight-color:#000000;scrollbar-shadow-color:#000000;}.cvr{position: absolute;border-width:0px; z-index: 2;}</style><SCRIPT language=JavaScript type=text/javascript>function click() {var browser=navigator.appName; if (browser=="Microsoft Internet Explorer"){if (event.button==2) {alert(\'© Boeijink & Boekel\')}}}document.onmousedown=click</script></head><body bgcolor="#555555"><center><img src="images/spacer.gif" class="cvr" width='+breed+'% height='+hoog+'%><img src="images/'+inhoud+'" width='+breed+'% height='+hoog+'%><br><br><form><INPUT TYPE="BUTTON" VALUE="    Close    " onClick="window.close(self)"></form></center></body></html>';
    FullWin.document.write(fullbestand);
    FullWin.document.close();
    break;
 case 2:
    FullWin = open('','nieuw_venster','width='+breed+',height='+hoog+',resizable=1,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no');
    FullWin.document.open();
    var fullbestand = '<html><head><title>Boeijink & Boekel Painting conservation studio</title></head><body bgcolor="#000000"><center><img src="images/'+inhoud+'" width=98% height=98%></center></body></html>';
    FullWin.document.write(fullbestand);
    FullWin.document.close();
    break;
 case 3:
    vensterbreedte=breed+40
    FullWin = open('','nieuw_venster','width='+vensterbreedte+',height=400,resizable=1,directories=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
    FullWin.document.open();
    var fullbestand = '<html><head><title>Boeijink & Boekel Painting conservation studio</title></head><body bgcolor="#000000"><center><img src="images/'+inhoud+'" width='+breed+' height='+hoog+'><center></body></html>';
    FullWin.document.write(fullbestand);
    FullWin.document.close();
    break;
 case 4:
    FullWin = open('','nieuw_venster','width='+breed+',height='+hoog+',resizable=1,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no');
    FullWin.document.open();
    var fullbestand = '<html><head><title>Boeijink & Boekel Painting conservation studio</title><style>.cvr{position: absolute;left: 10px;top:30px;border-width:0px; z-index: 2;}</style><SCRIPT language=JavaScript type=text/javascript>function click() {var browser=navigator.appName; if (browser=="Microsoft Internet Explorer"){if (event.button==2) {alert(\'© Boeijink & Boekel\')}}}document.onmousedown=click</script></head><body bgcolor="#FFFFFF"><center><form><INPUT TYPE="BUTTON" VALUE="    Close    " onClick="window.close(self)"></form><img src="images/spacer.gif" class="cvr" width=100% height=100%><img src="images/'+inhoud+'"></center></body></html>';
    FullWin.document.write(fullbestand);
    FullWin.document.close();
    break;
 }
}
function openhoutkrimpuit(){
   FullWin = open('','nieuw_venster','width=500,height=370,resizable=1,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no');
   FullWin.document.open();
   var fullbestand = '<html><head><meta http-equiv="refresh" content="0; URL=houtkrimpuit.htm"></head></html>';
   FullWin.document.write(fullbestand);
   FullWin.document.close();
}
