window.onresize = resizeIt;

function init() {
	/*hideTimer 	= setTimeout('subItems()',3000);
	divAll 			= new DynLayer('divAllDiv');
	fig			 		= new DynLayer('figDiv');
	impro				= new DynLayer('improDiv');
	debutant		= new DynLayer('debutantDiv');
	pub					= new DynLayer('pubDiv');
	contacts		= new DynLayer('contactsDiv');
	sponsors		= new DynLayer('sponsorsDiv');
	lieux				= new DynLayer('lieuxDiv');
	liens				= new DynLayer('liensDiv');
	mobile			= new DynLayer('mobileDiv');
	chat				= new DynLayer('chatDiv');
	forum				= new DynLayer('forumDiv');
	archives		= new DynLayer('archivesDiv');
	soussites		= new DynLayer('soussitesDiv');
	start();
}

function start(){
	scr = new screenInfo();
	x = scr.width
	y = (x-620)/2 // table size
	divAll.moveTo(y,60);
	divAll.show();*/
}

function resizeIt() {
	document.location = document.location;
}

function subItems(item){
	fig.hide();
	impro.hide();
	pub.hide();
	debutant.hide();
	contacts.hide();
	sponsors.hide();
	lieux.hide();
	liens.hide();
	mobile.hide();
	chat.hide();
	forum.hide();
	archives.hide();
	soussites.hide();
	if(item){
		eval(item).show();
		timerOn()
	}
}

function timerOn(){
	clearTimeout(hideTimer);
	hideTimer = setTimeout('subItems()',3000);
}

function openFiche(fichenb) { 
	thefiche = (tree + 'saison/fiche.php?ID=' + fichenb)
	var newWindow = window.open(thefiche,'fiche','scrollbars=yes,width=580,height=600');
	newWindow.focus();
}

function openFicheTheme(fichenb) { 
	thetheme = (tree + 'saison/theme.php?ID=' + fichenb)
	var newWindow = window.open(thetheme,'theme','scrollbars=yes,width=580,height=600');
	newWindow.focus();
}

function openMailing() { 
	var newWindow = window.open('mailing','mailing','scrollbars=no,width=335,height=120');
	newWindow.focus();
}