function chooseDateType(){
	if(!$("allerRetour") || !$("allerSimple")){
		return;
	}
	$("allerRetour").addEvent('click', function(evt){
		
		$("chooseType").setStyle("display", "block");
	});
	$("allerSimple").addEvent('click', function(evt){
		
		$("chooseType").setStyle("display", "none");
	});

}
/////////////tabs /////////////
var ShowHideTab = new Class({
	
	initialize: function(container, options){
		this.container = container;
		this.setOptions(options);
		this.initTab();
	},
	
	initTab: function(){
		var that = this;
		if(!$(that.container)) return;
		var tabsContainer = $(that.container);
		var items = tabsContainer.getElements('li');
		var contents = tabsContainer.getElements('div.proInfo');	
		var activeItem = tabsContainer.getElement('li.active');	
		var activeContent = tabsContainer.getElement('div');		
		
		// intégration
		//var idFolders = ["", "1488638774746284137", "1487922700612534311", "1488638774746284043", "1488638774746284228"];

		// préprod
		//var idFolders = ["", "1493946046315758864", "1493946046315759141", "1493946046315758970", "1493946046315759220"];

		// production
		var idFolders = ["", "1549523140625826913", "1549523140625826947", "1549523140625826929", "1549523140625826963"];
		
		items.each(function(item, index){
			item.addEvent('click', function(evt){
				new Event(evt).stop();
				if(activeItem != this){
					// remove current active item
//					if(activeItem){
//						var content = activeItem.get('html');					
//						activeItem.removeClass('active');
//						activeContent.addClass('hidden');	
//					};
					// set active					
//					this.addClass('active');
//					activeItem = this;
//					activeContent = contents[index];
//					activeContent.removeClass('hidden');
					activeItem = this;
					if(activeItem){
						if(index == 0) {
							document.location.href = "/accueil.do";
						} else {
							document.location.href = "/goFolder.do?f="+idFolders[index]+"&vue=detail";
						}
					};
				}			
			});
		});	
	}	
});
ShowHideTab.implement(new Chain, new Events, new Options);

function initMainTopMenu(){
	if(!$('lev1')){		return;		}
	
	
}

window.addEvent("domready", function(){ //safari cannot get style if window isnt fully loaded
	new ShowHideTab('proTab');
	chooseDateType();
	//initMainTopMenu();
});