/**
*
* @author Stephan Manteufel <stephan@manteufel.info>
*
* @package Library
*
* @version $Id: layer.js 8 2010-04-04 03:39:58Z bluecase $
*
* @license http://www.gnu.org/licenses/lgpl.html GNU LGPL
*
* @copyright 2010 Stephan Manteufel
*/

if(
    undefined == window.debug
) {
    var debug = false;
}

function layerHide(id) {
    try{
        document.getElementById(id).style.display = 'none';
    } catch(e) {
        if (
            window.debug
        ) {
            alert('layerHide::' + e);
        }
    }
    return false;
}

function layerShow(id, x, y) {
    try{
        document.getElementById(id).style.display = 'block';


        if(
            undefined != x
        ) {
            document.getElementById(id).style.left = x + 'px';
        }

        if(
            undefined != y
        ) {
            document.getElementById(id).style.top = y + 'px';
        }
} catch(e) {
        if (
            window.debug
        ) {
            alert('layerShow::' + e);
        }
    }
    return false;
}


