function hide_tabs() {


	if($defined('delivery-options')) 
	{
		deliveryoptionsSlide = new Fx.Slide('delivery-options').hide();
	}

	if($defined('related-products')) 
	{
		relatedproductsSlide = new Fx.Slide('related-products').hide();
	}
	
	if($defined('spare-parts')) 
	{
		sparepartsSlide = new Fx.Slide('spare-parts').hide();
	}
	
	if($('datasheets-downloads') != null) 
	{
		datasheetsdownloadsSlide = new Fx.Slide('datasheets-downloads').hide();
	}

	if($('video') != null) 
	{
		videoSlide = new Fx.Slide('video').hide();
	}

	descriptionSlide = new Fx.Slide('descriptionbit');

}


_current_tab = 'description';
_flash_player_visible = false;

function changeTab(_tab) {
	$('tab_left_' + _current_tab).src='images/tab_left_off.gif';
	$('tab_right_' + _current_tab).src='images/tab_right_off.gif';
	$('tab_repeat_' + _current_tab).removeClass('tab_on');
	$('tab_repeat_' + _current_tab).addClass('tab_off');
	$('tab_repeat_' + _current_tab).setStyle('color', '#686868');
	tabname = _tab.replace("-", "") + "Slide";
	_tabtester = eval(tabname);
	
	_tabtester.slideIn();
	
	tabname2 = _current_tab.replace("-", "") + "Slide";
	_current_tabtester = eval(tabname2);
	
	if (_tab == 'video') {
		_current_tabtester.slideOut().chain(
			function() { 
				_flash_player_visible = true;
				$('player1').setStyle('visibility', 'visible'); 
			}		
		);
	} else {
		if (_flash_player_visible) { 
			$('player1').setStyle('visibility', 'hidden');
		}
		_current_tabtester.slideOut();
	}
	_current_tab = _tab;
	
	$('tab_left_' + _tab).src='images/tab_left_on.gif';
	$('tab_right_' + _tab).src='images/tab_right_on.gif';
	$('tab_repeat_' + _tab).removeClass('tab_off');
	$('tab_repeat_' + _tab).addClass('tab_on');
	$('tab_repeat_' + _tab).setStyle('color', '#000');
	
	
	
}


window.addEvent("domready", hide_tabs);