function inc(fname){
	var body = document.getElementsByTagName('head').item(0);
	script = document.createElement('script');
	script.src = fname;
	script.type = 'text/javascript';
	body.appendChild(script)
}

inc('js/ajax.js');
inc('js/functions.js');
inc('js/validators.js');

inc('js/jquery.bgpos.js');
inc('js/webtoolkit.aim.js');
inc('js/effects.core.js');
inc('js/jquery.preload.js');
inc('js/jquery.scrollbar.js');
inc('js/jquery.timers.js');
inc('js/jquery.tooltip.js');
inc('js/jquery.hoverIntent.js');
inc('js/jquery.mousewheel.js');

temp=navigator.appVersion.split('MSIE');
ieVer=parseInt(temp[1]);

if (ieVer == 6){
	inc('js/pngfix.js');
}

function setPrice(){
	prijs = parseFloat(document.getElementById("optie_"+document.getElementById('factuur[papier_soort]')[document.getElementById('factuur[papier_soort]').selectedIndex].value).value.replace(',','.'));

	if($('#dubbelzijdig').attr('checked')==true){
		prijs=prijs*2;
	}
	
	if($('#checkkleur').attr('checked')==true){
		prijs=prijs*3.5;
	}
	
	document.getElementById('priceEuro').innerHTML = '&euro; '+printf('%0.2f',prijs);
	$('#selectPaper').show();
	
	document.getElementById('priceEuroTotaal').innerHTML = '&euro; '+printf('%0.2f',prijs*document.getElementById('factuur[aantal]').value);
} 

function thickboxStap2(response){
	//tb_remove();
	
	//alert(response);
	
	$('#TB_ajaxContent').html(' ');
	setTimeout(function(){tb_show('','http://www.me-2.nl/pages/plotservice_stap2.php?width=850&height=555','');},1000);
}

function fileUploaded(){
	$('#TB_ajaxContent').html(' ');
	setTimeout(function(){tb_show('','http://www.me-2.nl/pages/plotservice_stap3.php?width=600&height=500','');},1000);
}
