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/btrestcons.gif"
newpic2 = new Image(86,18)
newpic2.src = "images/btrestconsx.gif"
oldpic3 = new Image(86,18)
oldpic3.src = "images/btprevcons.gif"
newpic3 = new Image(86,18)
newpic3.src = "images/btprevconsx.gif"
oldpic4 = new Image(163,20)
oldpic4.src = "images/btconsmanag.gif"
newpic4 = new Image(163,20)
newpic4.src = "images/btconsmanagx.gif"
oldpic5 = new Image(86,18)
oldpic5.src = "images/btbedrijf.gif"
newpic5 = new Image(86,18)
newpic5.src = "images/btbedrijfx.gif"
oldpic6 = new Image(86,18)
oldpic6.src = "images/btcontact.gif"
newpic6 = new Image(86,18)
newpic6.src = "images/btcontactx.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
//	Alle grote plaatjes staan op www.schilderijenrestaurator.eu/images
{
 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="http://www.schilderijenrestaurator.eu/images/'+inhoud+'" width='+breed+'% height='+hoog+'%><br><br><form><INPUT TYPE="BUTTON" VALUE="    Sluiten    " 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 schilderijenrestauratie</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 schilderijenrestauratie</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 schilderijenrestauratie</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="    Sluiten    " onClick="window.close(self)"></form><img src="images/spacer.gif" class="cvr" width=100% height=100%><img src="http://www.schilderijenrestaurator.eu/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();
}
function disableRightClick(e)
{
  var message = "        Copyright © 2009 - Boeijink & Boekel           ";
  
  if(!document.rightClickDisabled) // initialize
  {
    if(document.layers) 
    {
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {
    if (e.which==2||e.which==3)
    {
      alert(message);
      return false;
    }
  }
  else
  {
    alert(message);
    return false;
  }
}
function EnsureLoadedInFrameset(page) {  
  if (window == top) {
    document.location.replace (page);  
  }
}
function setStatusBar(msgStr) { self.status = msgStr; }
setStatusBar('Boeijink & Boekel Schilderijenrestauratie');
disableRightClick();
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}