

/**********************************************************************************************************************/

var myImage, i=0, MAX=10;


function BeeldPopup (beeld)
{
/*
======================================================
FUNCTION BeeldPopup( beeld )
------------------------------------------------------
Datum creatie 	WKB, 19/10/2000
Auteur(s)		Geert Van Bossche (GVB) 1335
------------------------------------------------------
Beschrijving
Toont een beeld in een popupvenstertje, dat 
zich in grootte aan	past aan grootte van het beeld.
Popupvenster komt pal midden op het scherm.
------------------------------------------------------
Parameters
Beeld:	adres van het beeld zoals het in 
		<img src="..."> zou werken.
------------------------------------------------------
Toepassing
<a href='JavaScript:BeeldPopup(&beeldgroot&);'>
<img scr="&beeldklein&"></a>
------------------------------------------------------
Changes: (date, author, description)
20/10/00	GVB		
	Duchtig aangepast want IE gaf een
	fout op ingebouwde wachtlus. Deze
	is wel behouden voor Netscape
------------------------------------------------------
Changes
Date  . . . :	September, 07 2004					
Author  . . :	Wouter Steegmans (Axxes / K-Logic BVBA)
Description :	
	This procedure has completely rewritten.
	Because Opera and some other browsers don't understand 
	window.resizeTo and window.moveTo, an Image construct 
	is used to get the width and height ...
	After that, a window with the right size can be opened 
	(so no resize is necessary in the window itselves ...)
======================================================			
*/
	var html, oNewWindow, myFeatures, w, h, leftPos, topPos, popW=0, popH=0;
	
/*  First time, set the source of the Image) */
	if (i==0) 
	{	myImage = new Image();
		myImage.src = beeld;
	}

/*	Try loading the image. It could take somewhile before the browser has loaded the picture completely. 
    To avoid an never ending repeat, MAX is used ... */
	if ((!myImage.complete) && (i <= MAX))
	{
		i+=1;
/*		Wait somewhile and try again ... */
		window.setTimeout("BeeldPopup('"+beeld+"')", 500);
	}
	else
	{
/*		Image width and height are available ... */
		popW=myImage.width + 20;
		popH=myImage.height + 20;

/*		Reset i */
		i=0;
	
/*		Compute the position on the screen ... */
		w = window.screen.availWidth;
		h = window.screen.availHeight;

		leftPos = (w-popW)/2;
		topPos = (h-popH)/2;
				
/*		Build the HTML for the new window */
		html= '';
		html+='<html>';
		html+='<head><title>Popup</title>';
		html+='<scr' + 'ipt>function klik() {window.close();}</scr'+'ipt>';
		html+='<style>body { margin-left: 0px; margin-right: 0px; margin-top: 0px; margin-bottom: 0px; Cursor: pointer; }</style>';
		html+='</head>';
		html+='<body onclick="klik();">';
		html+='<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" align="center" valign="center">';
		html+='<tr><td valign="middle" align="center">';
		html+='<img id="bigimgbig" name="bigimgbig" style="border:1px solid #0768A9; ;" src="' + beeld + '"; return true;">';
		html+='</td></tr></table>';
		html+='</body>';
		html+='</html>';

/*		Specify the window.open settings/properties */
		myFeatures = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,left='+leftPos+',top='+topPos+',width='+popW+',height='+popH+' ';

/*		Open the new window with the image, and set the focus to it ...
		Attention, don't us [oNewDocument = oNewWindow.document.open...]
		because it's not recognized by Opera ... */
		oNewWindow = window.open('','popup',myFeatures);
		oNewWindow.document.open("text/html", "replace");
		oNewWindow.document.write(html);
		oNewWindow.document.close();
		oNewWindow.focus();
	}
}


/**********************************************************************************************************************/

function TekstPopupEx( ToonTekst, msgCloseWindow )
{
/*
======================================================
FUNCTION TekstPopup( ToonTekst )
------------------------------------------------------
Datum creatie 	WKB, 26/10/2000
Auteur(s)		Geert Van Bossche (GVB) 1335
------------------------------------------------------
Beschrijving
Toont een tekst in een popupvenstertje, dat 
zich in grootte aan	past aan grootte van de tekst.
Popupvenster komt pal midden op het scherm.
------------------------------------------------------
Parameters
ToonTekst:	de te tonen tekst
------------------------------------------------------
Toepassing
<a href='JavaScript:TekstPopup(&ToonTekst&);'>
Meer Info</a>
------------------------------------------------------
Changes: (date, author, description)
======================================================			
*/
		var html, oNewWindow, oNewDoc, myFeatures, x, y;
		var img2, scrX, scrY, t, oscrX, oscrY, initx, inity;
		initx = 190;
		inity = 210;
		html = '';
		html = html + '<html>';
		html = html + '<head><title>Popup</title>';
		if (navigator.appName == "Netscape"){
			html = html + '<LINK REL=STYLESHEET HREF="style_ns.css" TYPE="text/css">';
	    } else {
			html = html + '<LINK REL=STYLESHEET HREF="style_ie.css" TYPE="text/css">';
		}
		html = html + '</head><body>';
		html = html + '<table border="0" cellspacing="0" cellpadding="10" width="100%" height="100%">';
		html = html + '<tr><td valign=middle align=center>';
		html = html + "<a href='JavaScript: window.close();'>" + msgCloseWindow + "</a><br>";
		html = html + '</td></tr><tr><td valign=middle align=left>';
		html = html + '<div class=tekstpopup id=divsize name=divsize>' + ToonTekst + '</div>';
		html = html + '</td></tr><tr><td valign=middle align=center>';
		html = html + "<a href='JavaScript: window.close();'>" + msgCloseWindow + "</a>";
		html = html + '</td></tr></table>';
		html = html + '</body>';
		html = html + '</html>';
		oscrX = window.screen.availWidth;
		oscrY = window.screen.availHeight;
		oscrX = oscrX - ((oscrX - (oscrX%4)) / 4) - (initx/2);
		oscrY = ((oscrY - (oscrY%2)) / 2) - (inity/2);
		myFeatures = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,titlebar=no,left='+oscrX+',top='+oscrY+',width='+initx+',height='+inity;
		oNewWindow = window.open("", "tekstpopup", myFeatures, false);
		oNewDoc = oNewWindow.document.open("text/html", "replace");
		oNewDoc.write(html);
		oNewDoc.close();
		oNewWindow.focus();
}

/**********************************************************************************************************************/

function PrintPopup( ToonTekst )
{
/*
======================================================
FUNCTION PrintPopup( ToonTekst )
------------------------------------------------------
Datum creatie 	WKB, 15/12/2000
Auteur(s)		Tom Van Zele (TVZ)
------------------------------------------------------
Beschrijving
Geeft een popup window dat afgedrukt wordt.
------------------------------------------------------
Parameters
ToonTekst:	de te tonen tekst
------------------------------------------------------
Toepassing
<a href='JavaScript:PrintPopup(&ToonTekst&);'>
Print</a>
------------------------------------------------------
Changes: (date, author, description)
======================================================			
*/
		var html, oNewWindow, oNewDoc, myFeatures, x, y;
		var img2, scrX, scrY, t, oscrX, oscrY, initx, inity;
		initx = 400;
		inity = 400;
		html = '';
		html = html + '<html>';
		html = html + '<head><title>Wolters Kluwer België/Belgique Bestelling/Commande</title>';
		if (navigator.appName == "Netscape"){
			html = html + '<LINK REL=STYLESHEET HREF="style_ns.css" TYPE="text/css">';
	    } else {
			html = html + '<LINK REL=STYLESHEET HREF="style_ie.css" TYPE="text/css">';
		}
		html = html + '</head><body>';
		html = html + '<table border="0" cellspacing="0" cellpadding="10" width="100%" height="100%">';
		html = html + '<tr><td align=center>';
		html = html + '</td></tr><tr><td align=left>';
		html = html + '<div class=tekstpopup id=divsize name=divsize>' + ToonTekst + '</div>';
		html = html + '</td></tr></table>';
		html = html + '</body>';
		html = html + '</html>';
		oscrX = window.screen.availWidth;
		oscrY = window.screen.availHeight;
		oscrX = oscrX - ((oscrX - (oscrX%4)) / 4) - (initx/2);
		oscrY = ((oscrY - (oscrY%2)) / 2) - (inity/2);
		myFeatures = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,titlebar=no,left='+oscrX+',top='+oscrY+',width='+initx+',height='+inity;
		oNewWindow = window.open("", "printpopup", myFeatures, false);
		oNewDoc = oNewWindow.document.open("text/html", "replace");
		oNewDoc.write(html);
		oNewDoc.close();
		oNewWindow.focus();
		oNewWindow.print();
		oNewWindow.close();
}

/**********************************************************************************************************************/

function ShowInPopUp( sURL , iWidth , iHeight )

/*
======================================================
FUNCTION ShowInPopUp( sURL , iWidth , iHeight )
------------------------------------------------------
Datum creatie 	WKB, 15/12/2000
------------------------------------------------------
Beschrijving
Toont de URL in een popup window.
------------------------------------------------------
Parameters
sURL: URL van de pagina
iWidth: breedte van het popupwindow
iHeight: hoogte van het popupwindow
------------------------------------------------------
Toepassing
<a href="javascript:ShowInPopUp('../asp/cookie.asp?padstrbu=<%=pad_strbu%>&amp;strbu=<%=strbu%>',400,475);">
cookie</a>
------------------------------------------------------
Changes: (date, author, description)
======================================================			
*/
<!--//Hide JavaScript
{
  window.open
 ( sURL , "PopUp" , 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,left=5,top=5,width=' + iWidth + ',height=' + iHeight );
}
//-->	

function viewEx(x,x2,x3, msgClose, msgAllTitles){
if (document.getElementById(x).style.display=="none")
{
	document.getElementById(x).style.display="inline";
	document.getElementById(x2).innerHTML="<a class='infodetailag' href=javascript:view('lijst','link','linkS')>&lt;" + msgClose + "&gt;</a>";
}
else
{
	document.getElementById(x).style.display="none";
	document.getElementById(x2).innerHTML="<a class='infodetailag' href=javascript:view('lijst','link','linkS')>&lt;" + msgAllTitles + "&gt;</a>";
}
}

/**********************************************************************************************************************/

function submitCartForm(submitType) {
	switch (submitType) {
		case 1:
			document.shopcartform.action = "home.asp";
			document.shopcartform.submit();
			break;
		case 2:
			document.shopcartform.action = "home.asp?subpage=checkout";
			document.shopcartform.submit();
			break;
	}		
}

/**********************************************************************************************************************/

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

/**********************************************************************************************************************/

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

/**********************************************************************************************************************/

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

/**********************************************************************************************************************/

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/**********************************************************************************************************************/

function OpenNewWindow(url, wWidth, wHeight)
{	var wTop	= 0
	var wLeft	= 0
	var openProps
	
	if (screen)
	{		
			wLeft	= (screen.width  / 2) - (wWidth / 2);
			wTop	= ((screen.height / 2) - (wHeight / 2)) - 50;
			if (wTop < 0) wTop = 0;
	}
	openProps = "width="+wWidth+",height="+wHeight+",left="+wLeft+",top="+wTop;
	window.open(url,"",openProps + ',toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,resizable=yes,scrollbars=yes')
}

/**********************************************************************************************************************/

function CloseWindow(wnd)
{
	wnd.opener = wnd;
	wnd.close();
}

/**********************************************************************************************************************/
function bookmarksite(){
if (document.all)
window.external.AddFavorite(location.href, document.title);
else if (window.sidebar)
window.sidebar.addPanel(document.title, location.href, "")
}

function toggleInteressegebieden()
{
if (document.getElementById('interessegebiedendev').style.display == 'block')
{

        document.getElementById('interessegebiedendev').style.display = 'none';
         document.getElementById('interessegebiedenlbl').style.display = 'none';
}
else 
{   
    document.getElementById('interessegebiedendev').style.display = 'block';
     document.getElementById('interessegebiedenlbl').style.display = 'block';
}
}

function togglefaq(sectie)
{
if (document.getElementById(sectie).style.display == 'block')
{
        document.getElementById(sectie).style.display = 'none';
}
else 
{   
    document.getElementById(sectie).style.display = 'block';
}
}