
var AutoPrint = true; // Indien 'false' wordt de pagina niet automatisch uitgeprint

function PrintPagina(){
if (document.getElementById != null){
var html = '<HTML>\n<HEAD>\n';
if (document.getElementsByTagName != null){
var headTags = document.getElementsByTagName("head");
if (headTags.length > 0)
html += headTags[0].innerHTML;}
html += '\n</HE' + 'AD>\n<BODY>\n';
var PrintKlaarElem = document.getElementById("PrintKlaar");
if (PrintKlaarElem != null){
html += PrintKlaarElem.innerHTML;}
html += '\n</BO' + 'DY>\n</HT' + 'ML>';
var printWin = window.open("","PrintPagina");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (AutoPrint)printWin.print();}}



// function fullsizescreen & prevention copying photos

if (window.Event)   
  document.captureEvents(Event.MOUSEUP);   
 function nocontextmenu()    
{  
 event.cancelBubble = true  
 event.returnValue = false;  
  return false;  
}  
 function norightclick(e)   
{  
 if (window.Event)   
 {  
  if (e.which == 2 || e.which == 3)  
   return false;  
 }  
 else  
  if (event.button == 2 || event.button == 3)  
  {  
   event.cancelBubble = true  
   event.returnValue = false;  
   return false;  
  }  
 }  
 document.oncontextmenu = nocontextmenu;   
document.onmousedown = norightclick;   
  

top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
};


var ns4 = (document.layers) ? true : false
var IE4 = (document.all && !document.getElementById) ? true : false; 
var NS6IE5 = (document.getElementById) ? true : false; 

function showIt(name) {
//alert(NS6IE5);
	if (ns4) document.layers[name].visibility = 'show'
	else if (IE4) document.all[name].style.visibility='visible';
	else if (NS6IE5) document.getElementById(name).style.visibility='visible';
	//document.all(name).style.visibility = 'visible';
	//alert(name)
}
function hideIt(name) {
	if (ns4) document.layers[name].visibility = 'hide'
	else if (IE4) document.all[name].style.visibility='hidden';
	else if (NS6IE5) document.getElementById(name).style.visibility='hidden';
	//document.all(name).style.visibility = 'hidden';
	//alert(name)
}
//  end first script

// =======================================================================================================

//  second script
//  function for menu items producten & projecten
//  For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//  This credit MUST stay intact for use
