/*
* Main nav menu subnavs
*/
var navHideCountdown;
// The Band/Bio nv
function showBandNav() {
    if (navHideCountdown) { 
		clearTimeout(navHideCountdown); 
	}
	
	document.getElementById('theband_subnav').style.display = 'block';
	
    //$('#theband_subnav').show();
    if ($.browser.msie) {
        $('select').css('visibility', 'hidden');
    }
    startHideTourNav();
    startHideMediaNav();
}
function hideBandNav() {
    document.getElementById('theband_subnav').style.display = 'none';
	//$('#theband_subnav').hide();
    if ($.browser.msie) {
        $('select').css('visibility', 'visible');
    }
}

function startHideBandNav() {
    navHideCountdown = setTimeout(hideBandNav, 200);
}

/* Media Nav: */
function showMediaNav() {
    if (navHideCountdown) { 
		clearTimeout(navHideCountdown); 
	}
	
	document.getElementById('media_subnav').style.display = 'block';
	
    //$('#theband_subnav').show();
    if ($.browser.msie) {
        $('select').css('visibility', 'hidden');
    }
    startHideTourNav();
    startHideBandNav();
}
function hideMediaNav() {
    document.getElementById('media_subnav').style.display = 'none';
	//$('#theband_subnav').hide();
    if ($.browser.msie) {
        $('select').css('visibility', 'visible');
    }
}

function startHideMediaNav() {
    navHideCountdown = setTimeout(hideMediaNav, 200);
}
/* End Media Nav */


/* Tour Nav: */
function showTourNav() {
    if (navHideCountdown) { 
		clearTimeout(navHideCountdown); 
	}
	
	document.getElementById('ontheroad_subnav').style.display = 'block';
	
    //$('#theband_subnav').show();
    if ($.browser.msie) {
        $('select').css('visibility', 'hidden');
    }
    startHideBandNav();
    startHideMediaNav();
}
function hideTourNav() {
    document.getElementById('ontheroad_subnav').style.display = 'none';
	//$('#theband_subnav').hide();
    if ($.browser.msie) {
        $('select').css('visibility', 'visible');
    }
}

function startHideTourNav() {
    navHideCountdown = setTimeout(hideTourNav, 200);
}
/* End Tour Nav */


var subnavHideCountdown;

function showSubnav() {
    if (subnavHideCountdown) {
		clearTimeout(subnavHideCountdown);
    }
    document.getElementById('store_subnav').style.display = 'block';
    if ($.browser.msie) {
        $('select').css('visibility', 'hidden');
    }
}
function hideSubnav() {
    document.getElementById('store_subnav').style.display = 'none';
    if ($.browser.msie) {
        $('select').css('visibility', 'visible');
    }
}
function startHideSubnav() {
    subnavHideCountdown = setTimeout(hideSubnav, 200);
}


/**
* Rollovers simple solution -- rollover img should have class "rollover"
* and id = rollover src
*/

/*
//image swap code
function rollover() {
    var temp = this.src;
    this.src = this.id;
    this.id = temp;
}

function bindRollovers(context) {
    //preload rollover images
    $('img.rollover', context).each(function() {
        var ii = new Image();
        ii.src = this.id;
    });

    //bind image swapping to all images with class "rollover"
    $('img.rollover', context).hover(rollover, rollover);

    //alert('rollovers bound');
}

$(function() {
    //IE DOM ready seems to be firing prematurely...
    if ($.browser.msie) {
		setTimeout(bindRollovers, 900);
		//alert(document.body.getAttribute('onload'));
		
    } else {
		bindRollovers();
    }
});
*/