// JavaScript Document
<!--


// OPEN (POPUP) VENSTER
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
// EINDE OPEN (POPUP) VENSTER

// OPEN (POPUP) VENSTER voor artikelen met type (type is voor mainimg, detailimg, etc...)
// anders problemen met & in XSLT/JavaScript combinatie
// is niet mooi en niet veilig moet eigenlijk via ASP/XSLT lopen !!!!
function popup(artnr, type) {
  MM_openBrWindow('popup.asp?artnr='+artnr+'&type='+type,'detail','width=520,height=425');
}
// EINDE OPEN (POPUP) VENSTER


// OPEN AUTO SIZE (POPUP) VENSTER
function AutoSizeFotoPopup(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+20;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}
// EINDE AUTO SIZE (POPUP) VENSTER


// BEGIN CONTROLE LAYER - RELOAD
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// END CONTROLE LAYER - RELOAD


//-->