function showServiceWindow(id)
{
    //Position/Show transparent background
    var myFx = new Fx.Style('overlayBackground', 'height').set(window.getScrollHeight());
    document.getElementById('overlayBackground').style.display = 'block';
    myFx = new Fx.Style('overlayBackground', 'opacity').set(0.8);

    //Hide other window that's showing
    /*if (lastPopupWindow != '')
        hideServiceWindow(lastPopupWindow);*/

    //Display window
    document.getElementById(id).style.display = 'block';
    document.getElementById(id).style.visibility = 'hidden';

    //Position popup window
    myFx = new Fx.Style(id, 'top').set(window.getScrollTop() + 175);
    myFx = new Fx.Style(id, 'left').set((window.getScrollWidth() - $(id).getStyle('width').toInt()) / 2);

    //Fade window in
    myFx = new Fx.Style(id, 'opacity', { duration: 500 }).start(0, 1.0);
    
    lastPopupWindow = id;
}

function hideServiceWindow(id)
{
    //Hide window
    document.getElementById(id).style.visibility = 'hidden';
    document.getElementById(id).style.display = 'none';
    var myFx = new Fx.Style(id, 'opacity').set(0);
    //lastPopupWindow = '';

    //Hide transparent background
    document.getElementById('overlayBackground').style.display = 'none';
    myFx = new Fx.Style('overlayBackground', 'opacity').set(0);
}
