// JavaScript Document
function tabswitch(area,tab) {
	$$("#"+area+" div a").each(function(e) {e.removeClassName('tab_on')});
	$(tab+'_tab').addClassName('tab_on');
	$$("#"+area+" table").each(function(e) {e.hide()});
	$$("#"+area+" .display div").each(function(e) {e.hide()});
	$(tab).show();
}

var exclusiveoffersTab = 1;
var exclusiveoffersTimer;
function exclusiveOffersScroll() {
	exclusiveoffersTab++;
	if(exclusiveoffersTab == 4){
		exclusiveoffersTab = 1;
	}
	tabswitch('exclusiveoffers','exclusive_'+exclusiveoffersTab);
	exclusiveoffersTimer = setTimeout('exclusiveOffersScroll()', 5000);
}
function exclusiveOffersSwitch(num){
	exclusiveoffersTab = num;
	clearTimeout(exclusiveoffersTimer);
	exclusiveoffersTimer = setTimeout('exclusiveOffersScroll()', 10000);
}