// JavaScript Document

var stijl = new Array()
stijl[0] = "background1";
stijl[1] = "background2";
stijl[2] = "background3";
stijl[3] = "background4";
stijl[4] = "background5";


function genereer(n){
var getal = Math.floor(Math.random() * (n));
return getal;
	}

window.onload = function(){

if (document.all && document.styleSheets && document.styleSheets[0] &&
  document.styleSheets[0].addRule)
 {
  // Feel free to add rules for specific tags only, you just have to call it several times.
  document.styleSheets[0].addRule('*', 'behavior: url(iepngfix.htc)');
 }
	
	return setActiveStyleSheet(stijl[genereer(stijl.length)]);	
}

/** stylesheet-wisselaar **/
function setActiveStyleSheet(title) {
var i;
var a;
var main;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++)
	{
	if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title"))
		{
		a.disabled = true;
		if(a.getAttribute("title") == title) a.disabled = false;
		}
	}
return false;
}

