function ChangeHintView(id)
{
    var hint, link, image;

    for (i = 1; i < 9; i++) {
		hint = document.getElementById('hint_'+ i +'_hint');
		link = document.getElementById('hint_'+ i +'_link');

        if (hint && link) {
            if (i == id && 'hint' == hint.className) {
                hint.className = 'hinton';
                link.className = 'poz2';
            } else {
                hint.className = 'hint';
                link.className = '';
            }
        }
    }

    window.adjustWindowHeight && window.adjustWindowHeight();
}

function ChangeCommonView(hint_id)
{
    var hint = document.getElementById(hint_id +'_hint');
    var link = document.getElementById(hint_id + '_link');
    
    if (!hint || !link) {
        return false;
    }

    if ( hint.style.display == '' || hint.style.display == 'block' ) {
        hint.style.display = 'none';
        link.className = link.className.replace(' poz2', '').replace('poz2', '');
    } else {
        hint.style.display = 'block';
        link.className += ' poz2';
    }

    window.adjustWindowHeight && window.adjustWindowHeight();
}

