<!--

/* nivra.js */

	function getObj(name)
	{
		if (document.getElementById)
		{
			return document.getElementById(name);
		}
		else if (document.all)
		{
			return document.all[name];
		}
		else if (document.layers)
		{
			return document.layers[name];
		}
		else return false;
	}
	
	function printpage()
	{
        newwindow2=window.open('','name','height=400,innerHeight=400,width=785,innerWidth=785,scrollbars=yes,resizable');
        var tmp = newwindow2.document;
        var x = getObj('content');
        if (x.innerHTML)
        {
			var y = x.innerHTML;
			tmp.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' + '\n');
			tmp.write('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">' + '\n' + '<head>' + '\n' + '<title>Print</title>' + '\n');
			tmp.write('<link rel="stylesheet" type="text/css" href="/sites/nivra_site/css/nivra.css" />' + '\n');
			tmp.write('<link rel="stylesheet" type="text/css" media="print" href="/sites/nivra_site/css/print.css" />' + '\n');
			tmp.write('<style type="text/css">' + '\n' + '<!--' + '\n' + ' img { VISIBILITY: hidden; display: none }' + '\n' + ' .para { VISIBILITY: hidden; display: none }' + '\n' + ' #innovatieheader { VISIBILITY: hidden; display: none }' + '\n' + ' #divnav_innovatie { VISIBILITY: hidden; display: none }' + '\n' + ' .knopdisabled { VISIBILITY: hidden; display: none } ' + '\n' + '-->' + '\n' + '</style>' + '\n');
			tmp.write('</head>' + '\n' + '<body style="background: #fff; margin-top: 10px">' + '\n');
			/*tmp.write('<div id="content" style="margin: 0 auto; position: relative; text-align: left; width: 100%">' + '\n');*/
			tmp.write('<div id="content" style="margin: 0 auto; position: relative; text-align: left; width: 95%">' + '\n');
			tmp.write('<p><input type="button" class="knop2" value="Print deze pagina" onClick="javascript:window.print()" />' + '\n');
			tmp.write('&nbsp;&nbsp;<input type="button" class="knop2" value="Sluit venster" onClick="javascript:self.close()" /></p>' + '\n');
			tmp.write(y);
			tmp.write('</div>' + '\n');
			tmp.write('</body>' + '\n' + '</html>');
			tmp.close();
        }
	}
	
	function vervang(string,text,by)
    {
		// Replaces text with by in string;
		var strLength = string.length, txtLength = text.length;
		if ((strLength == 0) || (txtLength == 0)) return string;
		var i = string.indexOf(text);
		if ((!i) && (text != string.substring(0,txtLength))) return string;
		if (i == -1) return string;
		var newstr = string.substring(0,i) + by;
		if (i+txtLength < strLength)
		{
			newstr += vervang(string.substring(i+txtLength,strLength),text,by);
		}
		return newstr;
    }
	
	var DHTML = (document.getElementById || document.all || document.layers);
	var supported = (document.getElementById || document.all);
	var compatible = (
	document.getElementById && document.getElementsByTagName && document.createElement
	&&
	!(navigator.userAgent.indexOf('MSIE 5') != -1 && navigator.userAgent.indexOf('Mac') != -1)
	);
	
	if (supported)
	{
		document.write("<STYLE TYPE='text/css'>");
		document.write(".para {display: none}");
		document.write("</STYLE>");
	}
	
	function schrijf(name)
	{
		if (name)
		{
			if (document.getElementById)
			{
				if (document.getElementById(name))
				{
					if (document.getElementById(name).style.display == 'block')
					{
						document.getElementById(name).style.display = 'none';
					}
					else
					{
						document.getElementById(name).style.display = 'block';
					}
				}
			}
			else if (document.all)
			{
				if (document.all[name])
				{
					if (document.all[name].style.display == 'block')
					{
						document.all[name].style.display = 'none';
					}
					else
					{
						document.all[name].style.display = 'block';
					}
				}
			}
		}
	}
	
	var	msgWindow = "";
	
	function opentool(url,res,scrol)
	{
		w=750;
		h=600;
		t=0;
		l=220;
		if (window.screen)
		{
			w1 = window.screen.availWidth - 10;
			h1 = window.screen.availHeight - 35;
			l = (w1 - w)/2;
		}
		msgWindow = window.open(url,'','height='+h+',innerHeight='+h+',width='+w+',innerWidth='+w+',screenX='+l+',screenY='+t+',top='+t+',left='+l+',resizable='+res+',scrollbars='+scrol+'');
		msgWindow.focus();
	}
	
-->