// JavaScript Document
function carousel(newBox,oldBox, maxRows){
	if(newBox.substring(4) > maxRows){
		newBox = "box_1";
	}else if(newBox.substring(4) == 0){
		newBox = "box_" + maxRows;
	}
	document.getElementById(oldBox).style.display = "none";
	document.getElementById(newBox).style.display = "block";	
	
	var PetitaMedium = {
  src: '/PetitaMedium.swf'
  ,ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
};

var PetitaBold = {
  src: '/PetitaBold.swf'
  ,ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
};

// You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
// sIFR.useStyleCheck = true;
sIFR.activate(PetitaMedium, PetitaBold);

sIFR.replace(PetitaMedium, {
	selector: '.textBox h1, #nieuwsCntr h3'
		,css: [
	    	'.sIFR-root { color: #000000 }'
	  	]
		,transparent: true
});

sIFR.replace(PetitaBold, {
	selector: '.verhuurBox h2, .meldBox h3, .contactBox h3'
		,css: [
	    	'.sIFR-root { color: #000000 }'
	  	]
		,transparent: true
});
}



