window.onload=function() {
	 vervangSifrTitels();	
}

function vervangSifrTitels() {
	if(typeof sIFR == "function"){
		sIFR.replaceElement(".kleur0", named({sFlashSrc: "../css/metaplusliningbold.swf", sColor: "#000000;",sCase: "normal", sWmode:"transparent"}));
		sIFR.replaceElement(".kleur1", named({sFlashSrc: "../css/metaplusliningbold.swf", sColor: "#0393d2;",sCase: "normal", sWmode:"transparent"}));
		sIFR.replaceElement(".kleur2", named({sFlashSrc: "../css/metaplusliningbold.swf", sColor: "#000000;",sCase: "normal", sWmode:"transparent"}));
		sIFR.replaceElement(".kleur3", named({sFlashSrc: "../css/metaplusliningbold.swf", sColor: "#FFFFFF;",sCase: "normal", sWmode:"transparent"}));
		sIFR.replaceElement(".kleur5", named({sFlashSrc: "../css/metaplusliningbold.swf", sColor: "#FFFFFF;",sCase: "normal", sHoverColor:"#000000", sBgColor:"#0192D1"}));
		sIFR.replaceElement(".kleur6", named({sFlashSrc: "../css/metaplusliningbold.swf", sColor: "#000000;",sCase: "normal", sWmode:"transparent"}));
		sIFR.replaceElement(".kleur7", named({sFlashSrc: "../css/metaplusliningbold.swf", sColor: "#000000;",sCase: "normal", sWmode:"transparent"}));
		sIFR.replaceElement(".kleur8", named({sFlashSrc: "../css/metaplusliningbold.swf", sColor: "#0393d2;",sCase: "normal", sWmode:"transparent"}));
	};
}


/* voor de vergroting van referentieafbeeldingen */
function changepic(klein) { 
	var groot = klein.replace("small", "big");
	document.getElementById('ref_big').src = groot;
}

/* voor het loading schermpje */
function showthecontent() { 
	document.getElementById("loading").className = "loading-invisible"; 
	document.getElementById("content").className = "showcontent";
}

/* voor het tonen van het laadscherm */
function showloading() { 
	document.getElementById("loading").className = "loading-visible"; 
	document.getElementById("content").className = "hidecontent";
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


<!--
var rollOverArr=new Array();
function setrollover(OverImgSrc,pageImageName)
{
if (! document.images)return;
if (pageImageName == null)
    pageImageName = document.images[document.images.length-1].name;
rollOverArr[pageImageName]=new Object;
rollOverArr[pageImageName].overImg = new Image;
rollOverArr[pageImageName].overImg.src=OverImgSrc;
}

function rollover(pageImageName)
{
if (! document.images)return;
if (! rollOverArr[pageImageName])return;
if (! rollOverArr[pageImageName].outImg)
    {
    rollOverArr[pageImageName].outImg = new Image;
    rollOverArr[pageImageName].outImg.src = document.images[pageImageName].src;
    }
document.images[pageImageName].src=rollOverArr[pageImageName].overImg.src;
}

function rollout(pageImageName)
{
if (! document.images)return;
if (! rollOverArr[pageImageName])return;
document.images[pageImageName].src=rollOverArr[pageImageName].outImg.src;
}


function blokrollout(comprownr)
{
   document.getElementById("grpblok_"+comprownr).className = "artgroeptop";
}

function blokrollover(comprownr)
{
   document.getElementById("grpblok_"+comprownr).className = "artgroeptopover";
}

function calcblokrollout(bloknr)
{
   document.getElementById("mod_"+bloknr).className = "calccase";
   document.getElementById("modtit_"+bloknr).className = "calccasetop";
}

function calcblokrollover(bloknr)
{
   document.getElementById("mod_"+bloknr).className = "calccaseover";
   document.getElementById("modtit_"+bloknr).className = "calccasetopover";
}


function UpdateMessBox(thebox,islengthval) {
	var theminvalu=16;
	var themaxvalu=180;
	if (islengthval==true) {
		if (document.specs.mxt.value=='4') {
			themaxvalu=150;
		}
		if (document.specs.mxt.value=='5') {
			themaxvalu=120;
		}
	} else {
		themaxvalu=120;  //Breedte sowieso maximaal 120
		if (document.specs.mxt.value=='3') {
			//Koffer model, dus maximale waarde van breedte en hoogte verkleinen
			themaxvalu=80;
		}
	}
	if (validatecalcbox(parseFloat(thebox.value),theminvalu,themaxvalu)) {
		UpdateMessure();
		return true;
	} else {
		thebox.value="";
		return false;
	}
}

function UpdateMessure()
	{
		var mindeksel1=7;  //Deze waarden ook aanpassen in calc.inc.php (35 mm)
		var mindeksel2=7;	 //Deze waarden ook aanpassen in calc.inc.php (55 mm)
		var mindeksel=7;
		
		var splita="y";
		var split1=0;
		var split2=0;
		if (document.getElementById('userack').checked) {
			document.specs.mxy.value=( (parseFloat(document.specs.mxyv.value)*parseFloat(document.varform.defaHEheight.value))+parseFloat(document.varform.defaHEadd.value) );
		} else {
			document.specs.mxy.value=document.specs.mxyv.value;
		}
		var xval=(parseFloat(document.specs.mxx.value)*10);
		  if (parseFloat(document.specs.ms1.value)<mindeksel) {
			if (parseFloat(document.specs.ms1.value)<=mindeksel1) {
				document.specs.ms1.value=mindeksel1;
			} else {
				if (parseFloat(document.specs.ms1.value)<=mindeksel2) {
					document.specs.ms1.value=mindeksel2;
				} else {
					document.specs.ms1.value=mindeksel;
				}
			}
		  }
		switch (parseFloat(document.specs.mxt.value)) {
			case 1:
			  //Trunccase
			  splita="y";
			  if (parseFloat(document.specs.ms1.value)>(parseFloat(document.specs.mxy.value)/2)) {
			  	document.specs.ms1.value=(parseFloat(document.specs.mxy.value)/2);
			  }
			  split1=(parseFloat(document.specs.mxy.value)*10) - (parseFloat(document.specs.ms1.value)*10);
			  break;
			case 2:
			  //Hoedcase
			  splita="y";
			  if (parseFloat(document.specs.ms1.value)>(parseFloat(document.specs.mxy.value)/2)) {
			  	document.specs.ms1.value=(parseFloat(document.specs.mxy.value)/2);
			  }
			  split1=parseFloat(document.specs.ms1.value)*10;
			  break;
			case 3:
			  //Koffer
			  splita="y";
			  if (parseFloat(document.specs.ms1.value)>(parseFloat(document.specs.mxy.value)/2)) {
			  	document.specs.ms1.value=(parseFloat(document.specs.mxy.value)/2);
			  }
			  split1=(parseFloat(document.specs.mxy.value)*10) - (parseFloat(document.specs.ms1.value)*10);
			  break;
			case 4:
			  //Rack ED
			  splita="x";
			  if (parseFloat(document.specs.ms1.value)>30) {
			  	document.specs.ms1.value=30;
			  }
			  xval=(parseFloat(document.specs.mxx.value)*10)+(parseFloat(document.specs.ms1.value)*10);
			  split1=parseFloat(document.specs.ms1.value)*10;
			  break;
			case 5:
			  //Rack DD
			  splita="x";
			  if (parseFloat(document.specs.ms1.value)>30) {
			  	document.specs.ms1.value=30;
			  }
			  xval=(parseFloat(document.specs.mxx.value)*10)+((parseFloat(document.specs.ms1.value)*10)*2);
			  split1=parseFloat(document.specs.ms1.value)*10;
			  split2=xval - (parseFloat(document.specs.ms1.value)*10);
			  break;
		}
		var theparamstring = "?mxx=" + xval + "&mxy=" + (parseFloat(document.specs.mxy.value)*10) + "&mxz=" + (parseFloat(document.specs.mxz.value)*10) + "&ms1=" + split1 + "&ms2=" + split2 + "&msa=" + splita + "&mco=" + document.specs.mco.value;
		document.getElementById('messfield').innerHTML = '<embed src="/'+document.getElementById("messfield").className+'/images/casemessure.swf' + theparamstring + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="288" height="148" bgcolor="#FFFFFF"></embed>';		

	//	document.getElementById('messfield').innerHTML = '<embed src="images/casemessure.swf' + theparamstring + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="288" height="148" bgcolor="#FFFFFF"></embed>';
	}

	function setcolorbox(colorid) {
		deselectallcolorboxes();
		document.getElementById("colorb_"+colorid).style.display = "none";
		document.getElementById("colorb_"+colorid+"_on").style.display = "";
		document.specs.mco.value=document.getElementById("color_"+colorid).value;
		document.specs.calc_pla.value=document.getElementById("colorpla_"+colorid).value;
		UpdateMessure();
		return false;
	}
	
	function deselectallcolorboxes() {
		var stilgome=true;
		var il=1;
		while (stilgome==true) {
			if (!document.getElementById("colorb_"+il+"_on")) { stilgome=false; }
			else {
				document.getElementById("colorb_"+il+"_on").style.display = "none";
				document.getElementById("colorb_"+il).style.display = "";
			}
			il++;
		}
	}

	function setPlaatItems() {
		var montageTypeID=document.specs.calc_hd.selectedIndex;
		document.getElementById('plalst').innerHTML=document.getElementById('pla_'+montageTypeID).value;
		SetSelColor(montageTypeID);
	}
	
	function SetSelColor(montageTypeID) {
		if (montageTypeID==1) {
			document.specs.mco.value=panelcolors_1[document.getElementById('calc_pla').selectedIndex];
		} else {
			document.specs.mco.value=panelcolors_0[document.getElementById('calc_pla').selectedIndex];
		}
		UpdateMessure();
	}
	
	function SetRackVals() {
		var innerv="";
		if (document.getElementById('userack').checked) {
			var heva=2;
			if (document.specs.mxy.value!='') {
				heva=Math.round( (parseFloat(document.specs.mxy.value)-parseFloat(document.varform.defaHEadd.value))/parseFloat(document.varform.defaHEheight.value) );
			}
			if (heva>30) {heva=30;} //Maximaal 30HE
			innerv='<select name="mxyv" id="mxyv" class="dropbox" onChange="UpdateMessure()">';
			innerv=innerv+'<option value="2" '; if (heva==2) { innerv=innerv+'selected'; } innerv=innerv+'>2</option>';
			var optl=3;
			while (optl<31) {
				innerv=innerv+'<option value="'+optl+'" '; if (heva==optl) { innerv=innerv+'selected'; } innerv=innerv+'>'+optl+'&nbsp;</option>';
				optl++;
			}
			innerv=innerv+'</select>';
			document.getElementById('mxz').readOnly=true;
			document.getElementById('mxz').style.backgroundColor = "#DDDDDD";
			document.getElementById('mxz').value=document.varform.defaRackW.value;
			document.getElementById('messval').innerHTML=innerv;
			document.getElementById('messtype').innerHTML="&nbsp;HE";
		} else {
			document.getElementById('mxz').readOnly=false;
			document.getElementById('mxz').style.backgroundColor = "";
			if (parseFloat(document.specs.mxy.value)<10) { document.specs.mxy.value="10"; }
			document.getElementById('messval').innerHTML='<input type="text" name="mxyv" id="mxyv" class="input" maxlength="6" style="width:45px" onKeyPress="return isNumberKeyDot(event);" onChange="return UpdateMessBox(this,false);" value="'+document.specs.mxy.value+'">';
			document.getElementById('messtype').innerHTML="&nbsp;cm";
		}
		UpdateMessure();
	}
//-->
