// JavaScript Document

function ScaleFoto(){

var winW = 630, winH = 460;

if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth;
  winH = window.innerHeight ;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = document.body.offsetWidth;
  winH = document.body.offsetHeight ;
 }
}
a = document.getElementById('FotoLarge').style;
//c = document.getElementById('vertspacer');

h =winH -350;
if(h <100){h =100;}


// als de hoogte groter wordt dan het origineel
// schaal dan niet verder

if (h > fotoH) {h = fotoH;}

//schaal = fotoH/fotoW;
w = h / schaal;	


// zet de hoogte van de div en de spacer goed
//b.height = h+"px";
//c.height = h;
document.getElementById('FotoLarge').height = h;
document.getElementById('FotoLarge').width = w;



//aa = parseInt(b.height);
//bb = tempvar;
}
