﻿//*****************************Hot Product**************************************
var hott_timer;
var hott_currtab;

function setHottTimer(i) {
    if (i != hott_currtab) hott_timer = setTimeout('showHottTab(' + i + ')', 250);
}

function clearHottTimer() {
    clearTimeout(hott_timer);
}

function showHottTab(i) {

    el1 = document.getElementById('htabname' + hott_currtab);
    el1b = document.getElementById('htab' + hott_currtab);
    el2 = document.getElementById('htabname' + i);
    el2b = document.getElementById('htab' + i);
    if (el1) el1.className = '';
    if (el1b) el1b.className = 'hotlist boxhidden';
    if (el2) el2.className = 'view';
    if (el2b) el2b.className = 'hotlist boxvisible';

    hott_currtab = i;
}

hott_currtab = 1;
//*****************************Hot Product**************************************

//*****************************Product Content**************************************
var prodt_timer;
var prodt_currtab;

function setProdtTimer(i) {
    if (i != prodt_currtab) prodt_timer = setTimeout('showProdtTab(' + i + ')', 250);
}

function clearProdtTimer() {
    clearTimeout(prodt_timer);
}

function showProdtTab(i) {
    el1 = document.getElementById('ptabname' + prodt_currtab);
    el1b = document.getElementById('ptab' + prodt_currtab);
    el2 = document.getElementById('ptabname' + i);
    el2b = document.getElementById('ptab' + i);

    if (el1) el1.className = '';
    if (el2) el2.className = 'currsubtitle';

    if (el1b) el1b.className = 'prodlist boxhidden';
    if (el2b) el2b.className = 'prodlist boxvisible';

    prodt_currtab = i;
}

prodt_currtab = 1;
//*****************************Product Content**************************************

//*****************************Front Tour Product**************************************
var Tour_timer;
var Tour_currtab;
function setTourTimer(i) {
    if (i != Tour_currtab) Tour_timer = setTimeout('showTourTab(' + i + ')', 250);
}

function clearTourTimer() {
    clearTimeout(Tour_timer);
}

function showTourTab(i) {
    el1 = document.getElementById('Tourtabname' + Tour_currtab);
    el1b = document.getElementById('Tourtab' + Tour_currtab);
    el2 = document.getElementById('Tourtabname' + i);
    el2b = document.getElementById('Tourtab' + i);

    if (el1) el1.className = '';
    if (el2) el2.className = 'view2';

	/*
    if (el1b) el1b.className = 'boxhidden';
    if (el2b) el2b.className = 'boxvisible';
	*/
    Tour_currtab = i;
}

Tour_currtab = 1;
//*****************************Front Tour Content**************************************

//*****************************Tour Content**************************************
var tourt_timer;
var tourt_currtab;

function setTourtTimer(i) {
    if (i != tourt_currtab) tourt_timer = setTimeout('showTourtTab(' + i + ')', 250);
}

function clearTourtTimer() {
    clearTimeout(tourt_timer);
}

function showTourtTab(i) {

    el1 = document.getElementById('ttabname' + tourt_currtab);
    el1b = document.getElementById('ttab' + tourt_currtab);
    el2 = document.getElementById('ttabname' + i);
    el2b = document.getElementById('ttab' + i);

    if (el1) el1.className = '';
    if (el2) el2.className = 'view3';
	
	/*
    if (el1b) el1b.className = 'tourlist boxhidden';
    if (el2b) el2b.className = 'tourlist boxvisible';
	*/

    tourt_currtab = i;
    
}

tourt_currtab = 1;
//*****************************Tour Content**************************************

//*****************************Package Content**************************************
var pkgt_timer;
var pkgt_currtab;

function setPkgtTimer(i) {
    if (i != pkgt_currtab) pkgt_timer = setTimeout('showPkgtTab(' + i + ')', 250);
}

function clearPkgtTimer() {
    clearTimeout(pkgt_timer);
}

function showPkgtTab(i) {
    el1 = document.getElementById('htabname' + pkgt_currtab);
    el1b = document.getElementById('htab' + pkgt_currtab);
    el2 = document.getElementById('htabname' + i);
    el2b = document.getElementById('htab' + i);
    if (el1) el1.className = '';
    if (el1b) el1b.className = 'hotlist boxhidden';
    if (el2) el2.className = 'view5';
    if (el2b) el2b.className = 'hotlist boxvisible';
    pkgt_currtab = i;
}

pkgt_currtab = 3;
//*****************************Package Content**************************************

//*****************************AirTicket Content**************************************
var airt_timer;
var airt_currtab;

function setAirtTimer(i) {
    if (i != airt_currtab) airt_timer = setTimeout('showAirtTab(' + i + ')', 250);
}

function clearAirtTimer() {
    clearTimeout(airt_timer);
}

function showAirtTab(i) {
    el1 = document.getElementById('htabname' + airt_currtab);
    el1b = document.getElementById('htab' + airt_currtab);
    el2 = document.getElementById('htabname' + i);
    el2b = document.getElementById('htab' + i);
    if (el1) el1.className = '';
    if (el1b) el1b.className = 'hotlist boxhidden';
    if (el2) el2.className = 'view5';
    if (el2b) el2b.className = 'hotlist boxvisible';
    airt_currtab = i;
}

airt_currtab = 2;
//*****************************AirTicket Content**************************************
