var totalPrice=0;var flag=0;var teller=0;var flasher;var totalSize = 0;var totalCount = 0;/*sfHover = function() {	var sfEls = document.getElementById("nav").getElementsByTagName("LI");	for (var i=0; i<sfEls.length; i++) {		sfEls[i].onmouseover=function() {			this.className+=" sfhover";		}		sfEls[i].onmouseout=function() {			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");		}	}}if (window.attachEvent) window.attachEvent("onload", sfHover);*/function documentPartDownloadedBefore(linkObj, linkUrl){   if(confirm('You already downloaded a part of this document. Are you sure you want to continue downloading?'))   {      linkObj.href = linkUrl;      return true;   }   linkObj.href = "#";   return false;}function CurrencyFormatted(amount){	var i = parseFloat(amount);	if(isNaN(i)) { i = 0.00; }	var minus = '';	if(i < 0) { minus = '-'; }	i = Math.abs(i);	i = parseInt((i + .005) * 100);	i = i / 100;	s = new String(i);	if(s.indexOf('.') < 0) { s += '.00'; }	if(s.indexOf('.') == (s.length - 2)) { s += '0'; }	s = minus + s;	return s;}// end of function CurrencyFormatted()function CommaFormatted(amount){	var delimiter = ","; // replace comma if desired	var a = amount.split('.',2)	var d = a[1];	var i = parseInt(a[0]);	if(isNaN(i)) { return ''; }	var minus = '';	if(i < 0) { minus = '-'; }	i = Math.abs(i);	var n = new String(i);	var a = [];	while(n.length > 3)	{		var nn = n.substr(n.length-3);		a.unshift(nn);		n = n.substr(0,n.length-3);	}	if(n.length > 0) { a.unshift(n); }	n = a.join(delimiter);	if(d.length < 1) { amount = n; }	else { amount = n + '.' + d; }	amount = minus + amount;	return amount;}function moneymaker(money){			result = CurrencyFormatted(money);			result = CommaFormatted(result);			return result;}function ge(id) {	return document.getElementById(id);}function menuOver(id) {	// actiefding eventueel uit	if (currentItem) {		ge('m'+currentItem).style.display = 'none';		ge('sub'+currentItem).style.display = 'none';	}	if (menuActief) {		ge('m'+menuActief).style.display = 'none';		ge('sub'+menuActief).style.display = 'none';	}	ge('m'+id).style.display = 'block';	ge('sub'+id).style.display = 'block';	currentItem = id;}function menuOut(id) {	ge('m'+id).style.display = 'none';	ge('sub'+id).style.display = 'none';	// actiefding eventueel aan	if (menuActief) {		ge('m'+menuActief).style.display = 'block';		ge('sub'+menuActief).style.display = 'block';	}}function disableOther (id) {	if (id == 5) {		ge('orgtype').disabled = false;	} else {		ge('orgtype').disabled = true;	}}var currentCriteria = 0;function showNextCriteria(hidenr) {	ge('set'+hidenr).style.display = 'none';	ge('setname'+hidenr).style.color = '#19ACE2';	ge('set'+(hidenr + 1)).style.display = 'block';	ge('setname'+(hidenr + 1)).style.color = '#132D78';}function showPreviousCriteria(hidenr) {	ge('set'+hidenr).style.display = 'none';	ge('setname'+hidenr).style.color = '#19ACE2';	ge('set'+(hidenr - 1)).style.display = 'block';	ge('setname'+(hidenr - 1)).style.color = '#132D78';}function showTab(showtab) {	ge('tab'+opentab).className = 'tabgesloten';	ge('inhoud'+opentab).style.display = 'none';	ge('tab'+showtab).className = 'tabopen';	ge('inhoud'+showtab).style.display = 'block';	opentab = showtab;}function init () {    if(document.getElementsByTagName('div')) {        var allDivs = document.getElementsByTagName('div');        for(i=0;i<allDivs.length;i++) {            if(allDivs[i].className == 'faq_blok') {                allDivs[i].style.display = 'none';            }        }    }}/* my account - paid documents */function updatePrice(ob, price, pages, payment){   var rekenprijs = 0;   switch(payment)   {      case 'page' :  rekenprijs = pages * price;      default     :  rekenprijs = price;   }	if(ob.checked == true)	{		totalPrice += rekenprijs ;	}	else if (ob.checked == false)	{		totalPrice -= rekenprijs;	}}function updateSize(ob, size) {	if (ob.checked == true) {		totalSize += size;		totalCount++;	} else if (ob.checked == false) {		totalSize -= size;		totalCount--;	}}function displayTotalSize() {	ge('doccount').innerHTML = totalCount;	ge('docsize').innerHTML = totalSize;	ge('doctime').innerHTML = Math.round(totalSize/7);}function displayTotalPrice() {	ge('docprice').innerHTML = '&euro; ' + moneymaker(totalPrice);}			function iebody(){			return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body			}			function bordje(event,naam)			{			   if(naam != "" && naam != " ")			   {   				var i = ge('tipje');   				var b = iebody();   				i.style.display='block';   				i.innerHTML=naam;   				i.style.position='absolute';   				if (navigator.appName=='Microsoft Internet Explorer')   				{      				i.style.left=event.x+10+'px';      				i.style.top=event.y+'px';   				}   				else   				{      				i.style.left=event.pageX+-170+'px';      				i.style.top=event.pageY+-215+'px';   				}   			}			}		function bordjeweg(){				var i = ge('tipje');				i.style.display='none';			    i.style.left=0;		}function draw_attention(item){flasher=setInterval('flicker()',80);item.style.display='block';}function flicker(){teller=teller+1;xitem=document.getElementById('anders1');if (flag==1) {	 xitem.style.backgroundColor='#FFEFEF';	 flag=0	 }else	{		flag=1		xitem.style.backgroundColor='white';	}if (teller>10){	teller=0;	flag=0;	xitem.style.backgroundColor='white';	clearInterval(flasher);}};function switchFaqBlok(id) {    var blok = 'faq_blok'+id;    if(ge(blok).style.display == 'none') {        ge(blok).style.display = 'block';    } else {        ge(blok).style.display = 'none';    }}function selectTab(activate, deactivate) {    ca = ge('content-'+activate);    cd = ge('content-'+deactivate);    ha = ge('href-'+activate);    hd = ge('href-'+deactivate);    ca.style.display = "block";    cd.style.display = "none";    ha.style.backgroundColor = '#FFF';    ha.style.height = "20px";    ha.style.marginTop = "0px";    ha.style.borderBottom = "none";    hd.style.backgroundColor = '#BEE8F8';    hd.style.height = "15px";    hd.style.marginTop = "5px";    hd.style.borderBottom = "1px solid #132D78";}var detect = navigator.userAgent.toLowerCase();function checkIt(string){	place = detect.indexOf(string) + 1;	thestring = string;	return place;}function hideHomeSelects() {    if (checkIt('msie')) {        if(ge('product')) {            ge('product').style.visibility = "hidden";            ge('market').style.visibility = "hidden";        }    }}function showHomeSelects() {    if (checkIt('msie')) {        if(ge('product')) {            ge('product').style.visibility = "visible";            ge('market').style.visibility = "visible";        }    }}
