
function docinit()
{

document.body.style.cursor = "default";
var volg = "N";
var jnlijn = "N";
elements = document.all;
for(var i=0; i<elements.length; i++) 
{
	node = elements[i];

	s = node.size;
	var inhoud = node.value;
        var test = "+";
	



	


	if (node.innerText == " " || node.innerHTML == "&nbsp;" || node.value == " ")
		{
		//node.style.backgroundImage = "";
		node.style.width = "0px";
		node.style.height = "0px";
		node.style.paddingLeft = "0px";
		node.style.paddingRight = "0px";
		node.style.paddingTop = "0px";
		node.style.paddingBottom = "0px";
		//node.style.display = "none";
		node.parentElement.style.paddingLeft = "0px";
		node.parentElement.style.paddingRight = "0px";
		node.parentElement.style.paddingTop = "0px";
		node.parentElement.style.paddingBottom = "0px";
		node.parentElement.style.width = "0px";
		node.parentElement.style.height = "0px";
		node.parentElement.style.border = "none";
		}

	


	if (jnlijn == "J" &! node.className && node.tagName == "TD")
		{
		node.style.borderLeft = "outset 1px";
		node.style.borderColor = "#888888";
		}

	var jnq = node.innerText.search("ABQ");
	if (jnq == 18)
		{
		jnlijn = "J";
		}

	var plusmin = node.innerText.search(/\- /);
	if (plusmin == 0)
		{
		node.innerText = " ";
		node.innerHTML = "<img class='TT' src='images/Icons/Groen.gif'>";
		node.style.textAlign = "center";
		node.style.backgroundColor = "transparent";
		node.style.fontSize = "0px";
		}

	var plusmin = node.innerText.search(/\+ /);

	if (plusmin == 0)
		{
		node.innerText = " ";	
		node.innerHTML = "<img class='TT' src='images/Icons/Rood.gif'>";
		node.style.textAlign = "center";
		node.style.backgroundColor = "transparent";
		node.style.fontSize = "0px";
		}



	if (node.className == "BU1" || node.className == "CMD" || node.className == "OK")
		{
		var swweg = 0;
		var jnvolg = 1;

		if (inhoud == "" || inhoud == " " || inhoud == "  " || inhoud == "   " || inhoud == "    " || inhoud == "     " || inhoud == "      " || inhoud == "       " || inhoud == "        " || inhoud == "         " || inhoud == "          " || inhoud == "           " || inhoud == "            " || inhoud == "                ")

			{
			swweg = 1
			}

		if (swweg == 1)
			{
			//node.style.backgroundImage = "url('')";
			//node.style.backgroundColor = "transparent";
			//node.style.color = "#000000";
			node.style.paddingLeft = "0px";
			node.style.display = "none";
			//node.style.height = "1px";
			node.style.padding = "0px";
			node.parentElement.style.paddingLeft = "0px";
			node.parentElement.style.height = "0px"
			}

		if (node.value){
		volg = node.value.search("olgende");
			if (volg != -1)
			{
			node.style.border = "none";
			}		


		}
						
		}


	if(node.type == "hidden")
		{
		node.style.border = "none";
		node.style.height = "1px";
		node.style.paddingLeft = "0px";
		node.parentElement.style.height = "1px";
		node.parentElement.style.paddingLeft = "0px";
		node.parentElement.style.border = "none";
		}	



	}

	
}














var currentSheet, doc = window.document;
var activators = {
	onhover:{on:'onmouseover', off:'onmouseout'},
	onactive:{on:'onmousedown', off:'onmouseup'}
}

function parsehover()
{
	sheet = doc.styleSheets[1];
	
	parseStylesheet(sheet);
}

	function parseStylesheet(sheet) {
		var l, rules, imports;
		
		rules = (currentSheet = sheet).rules, l = rules.length;
		for(var j=0; j<l; j++) parseCSSRule(rules[j] , j);
	}

	function parseCSSRule(rule , j) {
		var select = rule.selectorText, style = rule.style.cssText;
			
		var pseudo = "onhover";

		var newSelect = select.replace(/(\.([A-Z0-9_-]+):[A-Z]+)|(:[A-Z]+)/gi, '.$2onHover');

		var className = (/\.([A-Z0-9_-]+)/i).exec(newSelect)[1];

		var affected = select.replace(/:hover.*$/, '');

		var elements = getElementsBySelect(affected);
		currentSheet.addRule(newSelect, style);
		for(var i=0; i<elements.length; i++)
			new HoverElement(elements[i], className, activators[pseudo]);

	}

function HoverElement(node, className, events) 
	{
	node.hovers = {};
	node.hovers[className] = true;
	node.attachEvent(events.on,
		function() { node.className += ' ' + className; });
	node.attachEvent(events.off,
		function() { node.className = 
			node.className.replace(new RegExp('\\s+'+className, 'g'),''); });
	}

function getElementsBySelect(rule) 
	{

	nodes = [doc];
	
	nodes = getSelectedNodes(rule, nodes);
	return nodes;
	}
	
function getSelectedNodes(select, elements) 
	{
	var result, node, nodes = [];
	var classname = (/\.([A-Z0-9_-]+)/i).exec(select);

	var identify = (/\#([A-Z0-9_-]+)/i).exec(select);

	var tagName = 'INPUT';
	

	result = elements[0].getElementsByTagName(tagName);

		for(var j=0; j<result.length; j++) 
			{

			node = result[j];

			if((identify && node.id != identify[1]) || (classname && !(new RegExp('\\b' +
					classname[1] + '\\b').exec(node.className)))) 
				{

				continue;
				}

			nodes[nodes.length] = node;
			}
			
		return nodes;
	}




