/**
 * welcome.js
 * Author: Robert Cerny
 * Creation Date: 16.01.2004
 * Last Change: 21.07.2005
 *
 * Simple functions for my Welcome page.
 *
 * Depends on: jsDOMlib
 */

/**
 * Sets the language of the resume box menuitem.
 *
 * lang - the language to set to
 *        accepted values: 'en', 'de'
 */
function setResumeLanguage(lang)
{
    var langOther = (lang == 'en') ? 'de' : 'en';

    // change the language of text in the menuitem box
    showElement("resume-" + lang);
    hideElement("resume-" + langOther);

    // change the language of the details box
    showElement("resume-details-" + lang);
    hideElement("resume-details-" + langOther);
}

/**
 * Shows the element with id.
 *
 * id - the id of the element to show
 */
function showElement(id) {
    show(document.getElementById(id));
}

/**
 * Hides the element with id .
 *
 * id - the id of the element to hide
 */
function hideElement(id) {
    hide(document.getElementById(id));
}
