function shake(n) {
if (parent.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
parent.moveBy(0,i);
parent.moveBy(i,0);
parent.moveBy(0,-i);
parent.moveBy(-i,0);
         }
      }
   }
}

function boom() {
/*
 if (window.outerWidth) {
  window.resizeTo(window.outerWidth-15, window.outerHeight-15);
 }
 shake(4);
*/
}

var vpw;
var vph;
var opw;
var oph;
var tpw;
var tph;

if (window.innerHeight) {
 vpw = window.innerWidth;
 vph = window.innerHeight;
 opw = window.outerWidth;
 oph = window.outerHeight;
} else if (document.documentElement && document.documentElement.clientHeight) {
 vpw = document.documentElement.clientWidth;
 vph = document.documentElement.clientHeight;
 vpw = document.documentElement.outerWidth;
 vph = document.documentElement.outerHeight;
} else if (document.body) {
 vpw = document.body.clientWidth;
 vph = document.body.clientHeight;
 if (document.body.outerWidth) {
  opw = document.body.outerWidth;
  oph = document.body.outerHeight;
 } else {
  opw = 8+document.body.clientWidth;
  oph = 150+document.body.clientHeight;
 }
} else {
 vpw = screen.width-8;
 vph = screen.height-150;
 opw = screen.width;
 oph = screen.height;
}
tpw = opw - vpw;
tph = oph - vph;


function schaalNaar(b,h) {
 var bb = "100%";
 var hh = "100%";
 if (screen.width<b) bb = (b-tpw)+"px";
 if (screen.height<h) hh = (h-tph)+"px";
// alert(b+"/"+h+" "+h+" "+oph);
 document.getElementById("divid").style.width = bb;
 document.getElementById("divid").style.height = hh;
 window.resizeTo(b,h);
}


var tag='http://stats.a-film.nl/spion/stats.php?page=1';
var agt=navigator.userAgent.toLowerCase();
var minor = parseFloat(navigator.appVersion);
if(window.screen) { 
 tag+=('&screen='+screen.width+'x'+screen.height+'c'+screen.colorDepth);
 } 
if(!((parseFloat(navigator.appVersion) > 4.5) && (navigator.appName.indexOf("Netscape") != -1))) {
 if(((""+window.top.location+"").toString() == "") || ((""+window.top.location+"").toString() == "[object Location]")) {
  topref = document.referrer;
  } else {
  topref = top.document.referrer;
  }
 } else {
 topref = document.referrer;
 }
tag+=('&referrer='+escape(topref));
tag+=('&platform='+navigator.platform);
tag+=('&browser='+minor);
statlog = new Image();
statlog.src = tag;

