// JavaScript Document

function house_change(n) {
    for(var i = 1; i < 6; i++) {
        obj1 = document.getElementById('house_change'+i);
        img = document.getElementById('house_change_button'+i);
        if ( n == i ) {
            obj1.style.display = "block";
                        img.height = 25;
            img.src = "images/tabon"+i+"_house.gif";    
        } else {
            obj1.style.display = "none";
                        img.height = 25;
            img.src = "images/taboff"+i+"_house.gif";    
        }
    }
}

function boarding_change(n) {
    for(var i = 1; i < 3; i++) {
        obj2 = document.getElementById('boarding_change'+i);
        img = document.getElementById('boarding_change_button'+i);
        if ( n == i ) {
            obj2.style.display = "block";
                        img.height = 25;
            img.src = "images/tabon"+i+"_boarding.gif";    
        } else {
            obj2.style.display = "none";
                        img.height = 25;
            img.src = "images/taboff"+i+"_boarding.gif";    
        }
    }
}

function service_change(n) {
    for(var i = 1; i < 3; i++) {
        obj2 = document.getElementById('service_change'+i);
        img = document.getElementById('service_change_button'+i);
        if ( n == i ) {
            obj2.style.display = "block";
                        img.height = 25;
            img.src = "images/tabon"+i+"_service.gif";    
        } else {
            obj2.style.display = "none";
                        img.height = 25;
            img.src = "images/taboff"+i+"_service.gif";    
        }
    }
}

