function videos() {
	$(".videos-container").tabs({ fx: { opacity: 'toggle', duration: 'slow' }}).tabs();
	
}

function helpOn(){
	document.getElementById('lightbox-help').style.display = 'block';
	document.getElementById('fade').style.display = 'block';}

function helpOff(){
	document.getElementById('lightbox-help').style.display = 'none';
	document.getElementById('fade').style.display = 'none';}

function mainmenu(){
	$(" .submenu ").css({display: "none"});
	$(" .nav li").hover(function(){
		$(this).find('.submenu').css({visibility: "visible",display: "none"}).show('slow').toggleClass("active",1);
		$(this).find('.first-level').toggleClass("active",1);
		},function(){
		$(this).find('.submenu').css({visibility: "hidden"});
		$(this).find('.first-level').toggleClass("active",1);
	});
};
/*
function colorSelector(){
	$(" .color-list ").css({display: "none"});
	$('.textures-content').css({display: "none"});
	$(".color-selector-content").tabs({ fx: {}}).tabs();
	
	//clic en color
	$(".tint-item").click(function(){
		$('.tint-list').css({display: "none"}); 
		$('.simulador-paso-1').toggleClass("simulador-paso-2",1);
	});
	//clic en boton 1
	$(".show-step-1").click(function(){
		$('.color-selector-content').css({display: "block"});
		$('.textures-content').css({display: "none"});
		
		$('.tint-list').css({display: "block"});
		$('.color-list').css({display: "none"});
		$('.simulador').removeClass("simulador-paso-2",1);
	});
	//clic en boton 2
	$(".show-step-2").click(function(){
		$('.color-selector-content').css({display: "block"});
		$('.textures-content').css({display: "none"});
	});
	//clic en boton 3
	$(".show-step-3").click(function(){
		$('.color-selector-content').css({display: "none"});
		$('.textures-content').css({display: "block"});
	});
};*/
$(document).ready(function(){	
	mainmenu();
	videos();
	//colorSelector();
		
	flowplayer("a.player",
		{ 	src	: 	"/flash/flowplayer-3.2.5.swf",wmode: 'opaque'},
		{
			screen:	 {	bottom: 0  },// make the video take all the height
			plugins: {				 // change the default controlbar to modern	
				controls: {
					url: 'flowplayer.controls-3.2.3.swf',
					
					sliderColor: '#FFFFFF',
					sliderBorder: '1.5px solid rgba(160,160,160,0.7)',
					volumeSliderColor: '#FFFFFF',
					volumeBorder: '1.5px solid rgba(160,160,160,0.7)',
					timeColor: '#ffffff',
					durationColor: '#535353',
					tooltipColor: 'rgba(255, 255, 255, 0.7)',
					tooltipTextColor: '#000000'
				}
			},
			clip: {
				autoPlay: true,
				autoBuffering: true
			}
		}
	);
});
