document.write('<div class="shadow" id="shadow" style="display:none;"><div class="s_r"><div class="s_b"><div class="s_l" id="shadow_box"></div></div></div></div>');

function showShadow(x, y, w, h)
{
 document.getElementById('shadow').style.left = parseInt(x - 10) + 'px';
 document.getElementById('shadow').style.top = parseInt(y - 10) + 'px';
 document.getElementById('shadow_box').style.width = parseInt(w) + 'px';
 document.getElementById('shadow_box').style.height = parseInt(h) + 'px';
 document.getElementById('shadow').style.display = '';
}

function drawShadow(id)
{
 var x = document.getElementById(id);
 showShadow(x.offsetLeft, x.offsetTop, x.offsetWidth, x.offsetHeight);
}

function hideShadow()
{
 document.getElementById('shadow').style.display = 'none';
}
