


// COPYRIGHT WARNING
function show_copy(e, sort) {

var selection = '';
if (window.getSelection) { selection = ''+window.getSelection(); }
else if (document.selection) { selection = ''+document.selection.createRange().text; }

if((e.ctrlKey && e.keyCode == 65) || (selection.length > 300 && ((e.ctrlKey && e.keyCode == 67) || sort == 'menu')) || selection.length > 1000){
if (window.getSelection) { window.getSelection().removeAllRanges(); }
else if (document.selection) { document.selection.empty(); }
lightbox_iframe('www.tuinadvies.be/auteursrecht.html', 776, 450, 'Auteursrecht Tuinadvies &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="javascript:doeiets();" class="contenttitelnav">Klik hier voor de afdrukbare versie van dit artikel.</a>.'); } }





// LIGHTBOX
function lightbox() {
if(document.all) { style = 'STYLE="position: absolute;"'; } else { style = ''; }
strHTML = '<DIV CLASS="lightbox" ID="lightbox" ONCLICK="close_lightbox();"><DIV CLASS="lightbox_gray_overlay"></DIV>';
strHTML+= '<TABLE CLASS="lightbox_table" '+style+' CELLSPACING=0 CELLPADDING=0><TR><TD WIDTH="50%"></TD><TD><DIV CLASS="lightbox_content">';
strHTML+= '<IMG SRC="images/close2.gif" BORDER=0 WIDTH=13 HEIGHT=13 ONCLICK="close_lightbox(); return false;"><H1 ID="lightbox_info"></H1>';
strHTML+= '<SPAN ID="insert_content"></SPAN></DIV></TD><TD WIDTH="50%"></TD></TR></TABLE></DIV>';

var box = document.createElement('div');
box.setAttribute('id', 'lightbox_div');
box.innerHTML = strHTML;
document.getElementsByTagName('body')[0].appendChild(box); }

function open_lightbox() { lightbox();
document.getElementById('insert_content').innerHTML = '';
document.getElementById('lightbox').style.visibility = 'visible'; }

function close_lightbox() {
var t = document.getElementById('lightbox_div');
t.innerHTML = '';
t.parentNode.removeChild(t);
if(document.getElementById('subform') && document.getElementById('subform').action_after) { document.getElementById('subform').target = '';
document.getElementById('subform').action = document.getElementById('action_after').value; } }

function close_lightbox_iframe() {
var t = top.document.getElementById('lightbox_div');
t.innerHTML = '';
t.parentNode.removeChild(t); }

function link_lightbox(url) {
var t = top.document.getElementById('lightbox_div');
t.innerHTML = '';
t.parentNode.removeChild(t);
top.location.href = url; }

function lightbox_iframe(src, width, height, info) { open_lightbox();
document.getElementById('lightbox_info').innerHTML = info;

if(typeof(window.innerWidth) == 'number') { myHeight = window.innerHeight;
} else if(document.documentElement && document.documentElement.clientHeight) { myHeight = document.documentElement.clientHeight;
} else if(document.body && document.body.clientHeight) { myHeight = document.body.clientHeight; }

if(myHeight - 63 < height) { var newHeight = myHeight - 63; } else { var newHeight = height; }
if(newHeight < 100) { var newHeight = height; }

document.getElementById('insert_content').innerHTML = '<IFRAME SRC="http://'+src+'" WIDTH='+width+' HEIGHT='+newHeight+' MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 SCROLLING="AUTO" ID="i_lightbox" NAME="i_lightbox"></IFRAME>'; }
