
function $$dus(id){
	return document.getElementById(id);
} 

function PDF_launch(ID,test)
{
  var d = document;
  var _docW = (d.width != undefined) ? d.width : d.body.offsetWidth;
  var _docH = Math.max(d.documentElement.clientHeight, d.documentElement.scrollHeight);
  if(window.innerHeight > _docH){ _docH = window.innerHeight;}
  _docH = Math.max(_docH,d.body.scrollHeight);
  if(d.documentElement.clientHeight > 0){_docW = d.documentElement.scrollWidth;}else{_docW = d.body.scrollWidth;}
  var _docS = (d.all ? Math.max(d.body.scrollTop,d.documentElement.scrollTop) : window.pageYOffset);
  var _docPH = (d.all ? Math.max(d.body.clientHeight,d.documentElement.clientHeight) : window.innerHeight);
  if(d.all){if(d.documentElement.clientHeight > 0){_docPH = d.documentElement.clientHeight;}}
  if(window.opera){_docPH = window.innerHeight;}

  function getEvent()
	{
		return function( myEvent )
		{
			//venster sluiten op onClick van zwart scherm
			PDF_close();
		}
	}
  
  if(!$$dus('PDF_bg_chezchenz'))
  {
    var PDF_bg = d.createElement('div');
    PDF_bg.style.display = 'none';
    PDF_bg.id = 'PDF_bg_chezchenz'; 
	
	PDF_bg.onclick = getEvent();

	
	
	
    d.getElementsByTagName('body').item(0).appendChild(PDF_bg);
  }
  else
  {
	var PDF_bg = $$dus('PDF_bg_chezchenz');
  }
    
  with (PDF_bg.style)
  {
    position = 'absolute';
    backgroundColor = '#000';
    left = '0px';
    top = '0px';
    zindex = 10001;
    filter = 'alpha(opacity=60)';
    opacity = .60;
    width = _docW +'px';
    height = _docH +'px';
    display = 'block';
 	
  }


  if(!$$dus('PDF_c_chezchenz'))
  {
    var PDF_c = d.createElement('div');
    PDF_c.style.display = 'none';
    PDF_c.id = 'PDF_c_chezchenz';
    d.getElementsByTagName('body').item(0).appendChild(PDF_c);
  }
  else
  {
    var PDF_c = $$dus('PDF_c_chezchenz');
  }

  with (PDF_c.style)
  {
    width = '800px';
    height = '630px';
    position = 'absolute';
	 
	tmptop =(((_docPH-750)/2) + _docS);
	if ( tmptop < 0 ) tmptop = 0;
 	top = tmptop + 'px';

    left =  (((_docW - 800)/2) > 0 ? (((_docW - 800)/2) - 50) + 'px' : '10px');
    backgroundColor = '#999999';
    zindex = 10003;
  }
  
 // PDF_c.innerHTML = '<a href="javascript:PDF_close();"><img src="/images/close.gif" border="0" title="Close"  style="float:right;margin:5px 10px 0px 0px;" /></a>';
 // PDF_c.style.display = 'block';

  if(!$$dus('PDF_i_chezchenz'))
  {
    var PDF_i = d.createElement('iframe');
	
    PDF_i.id = 'PDF_i_chezchenz';
    PDF_i.frameBorder = 0;
	 
	PDF_i.allowTransparency = true;
	
	d.getElementsByTagName('body').item(0).appendChild(PDF_i);
  }
  else
  {
    var PDF_i = $$dus('PDF_i_chezchenz');
  }

  if(document.all) { PDF_i.scrolling = 'no' }; 
  PDF_i.src = '/contact/contact.php' ;
 
 
  with (PDF_i.style)
  {
    position = 'absolute';
    height = '550px';
    display = 'none';
    margin = '0px';
    padding = '0px';
    width = '600px';
    border = '0px';
    
    tmptop = (((_docPH-730)/2) + _docS + 20);
	if ( tmptop < 0 ) tmptop = 0;
 	top = tmptop + 'px';
    left =  (((_docW - 780)/2) > 0 ? (((_docW - 780)/2) - 50) + 'px' : '10px');
    zindex = 10005;
  }

  PDF_i.style.display = 'block';
}


function PDF_close()
{
  $$dus('PDF_bg_chezchenz').style.display = 'none';
  $$dus('PDF_i_chezchenz').style.display = 'none';
  $$dus('PDF_c_chezchenz').style.display = 'none';
}
