/*----- TAB ON OFF Action -----*/

function pressBar(id_name, window_name, id_img){
    var id_Data = parseFloat(document.getElementById(id_name).value);

    switch (id_Data){
        case 1:
            document.getElementById(window_name).style.display = "inline";
            document.getElementById('qoo2').style.display = "none";
            document.getElementById('qoo3').style.display = "none";

            document.getElementById(id_img).src='/images/title_bar/about_1_light_new2.png';
            document.getElementById('id2').src='/images/title_bar/about_2_new.png';
            document.getElementById('id3').src='/images/title_bar/about_3_new.png';
            break;
        case 2:
            document.getElementById(window_name).style.display = "inline";
            document.getElementById('qoo1').style.display = "none";
            document.getElementById('qoo3').style.display = "none";

            document.getElementById(id_img).src='/images/title_bar/about_2_light_new2.png';
            document.getElementById('id1').src='/images/title_bar/about_1_new.png';
            document.getElementById('id3').src='/images/title_bar/about_3_new.png';
            break;
        case 3:
            document.getElementById(window_name).style.display = "inline";
            document.getElementById('qoo1').style.display = "none";
            document.getElementById('qoo2').style.display = "none";

            document.getElementById(id_img).src='/images/title_bar/about_3_light_new2.png';
            document.getElementById('id1').src='/images/title_bar/about_1_new.png';
            document.getElementById('id2').src='/images/title_bar/about_2_new.png';
            break;
    }
}

function MouseOut(id_img){
     switch (id_img){
         case 'id1':
             document.getElementById(id_img).src='/images/title_bar/about_1_new.png';
             break;
         case 'id2':
             document.getElementById(id_img).src='/images/title_bar/about_2_new.png';
             break;
         case 'id3':
             document.getElementById(id_img).src='/images/title_bar/about_3_new.png';
             break;
    }
}


/*----- About Qooker Menu Action -----*/

function pressButton(input_id, window_name, id_img){
    var id_Data = parseFloat(document.getElementById(input_id).value);

    if (id_Data >= 0){
        document.getElementById(window_name).style.display = "inline";
        for (i=1; i <= 8; i++){
            if (id_Data == i){
                document.getElementById(id_img).src='/images/about/info' + i + '_light_new.png';
            }
            if (id_Data != i){
                document.getElementById('info_contents' + i).style.display = "none";
                document.getElementById('in' + i).src='/images/about/info' + i + '_new.png';
            }
        }
    }
}

/** **********************************************
 *
 *
 *
 ********************************************* **/
/*
$(function() {
    if(location.pathname != "/") {
         $('.navi a[href^= "' + location.pathname.split("/")[0] +  ' " ] ').addClass('active');
         alert($('.navi a').parent().get(0).tagName);
         alert(location.pathname.split("/")[1]);

     } else $('.navi a:eq(0)').addClass('active');
});*/

/** **********************************************
 *
 *
 *
 ********************************************* **/
/*
$(function() {
    var now = location.pathname.split("/")[1];

    if(now == "about") {
        $("#naviAbout").addClass("active");
    }else{
        $("#naviFaq").addClass("active");
    }
});*/
