function accesKeys(e)
{
	var touche = e.which ;
	if(!touche) touche = e.keyCode ;
	
	if(!e.ctrlKey) return ;
	
	var pages = [] ;
	// Home
	pages[38] = 'http://www.auvergne.org/index.html' ;
	pages[49] = 'http://www.auvergne.org/index.html' ;
	// Plan
	pages[34] = 'http://www.auvergne.org/plan.html' ;
	pages[51] = 'http://www.auvergne.org/plan.html' ;
	// Contacts
	pages[232] = 'http://www.auvergne.org/contacts.html' ;
	pages[55] = 'http://www.auvergne.org/contacts.html' ;
	// Moteur
	pages[39] = 'http://www.auvergne.org/resultats.html' ;
	pages[52] = 'http://www.auvergne.org/resultats.html' ;
	// Aides
	//	pages[0] = 'http://www.auvergne.org/mentions.html' ;
	// Mentions
	pages[95] = 'http://www.auvergne.org/mentions.html' ;
	pages[56] = 'http://www.auvergne.org/mentions.html' ;
	
	pages[115] = document.location + "#acontenu" ;
	
	var url = pages[touche] ;
	if(url)	window.location = url ;
}

function setBulleHeight(h)
{
	$('bulle').style.height = Math.round(h) + "px";
}

function setProchainDossierHeight(h)
{
	$('prochain_dossierswf').style.height = Math.round(h) + "px";
}

function displayTab(t)
{
	
   var tab = 'ajaxcontent_' + t;
	if ($('ajaxcontent_info') &&  ( $('ajaxcontent_info').style.display == 'block' || $('ajaxcontent_info').style.display == '' )  && 'ajaxcontent_info' != tab)
	{
	  Element.removeClassName($('en_ligne_info').parentNode, "selected");
	  new Effect.BlindUp('ajaxcontent_info', { duration: .4 });
	}
	if ($('ajaxcontent_fr') &&  ( $('ajaxcontent_fr').style.display == 'block' || $('ajaxcontent_fr').style.display == '' )  && 'ajaxcontent_fr' != tab)
	{
	  Element.removeClassName($('en_ligne_fr').parentNode, "selected");
	  new Effect.BlindUp('ajaxcontent_fr', { duration: .4 });
	}
	if ($('ajaxcontent_eu') &&  ( $('ajaxcontent_eu').style.display == 'block' || $('ajaxcontent_eu').style.display == '' )  && 'ajaxcontent_eu' != tab)
	{
	  Element.removeClassName($('en_ligne_eu').parentNode, "selected");
	  new Effect.BlindUp('ajaxcontent_eu', { duration: .4 });
	}
	if ($('ajaxcontent_org') &&  ( $('ajaxcontent_org').style.display == 'block' || $('ajaxcontent_org').style.display === '' )  && 'ajaxcontent_org' != tab)
	{
	  Element.removeClassName($('en_ligne_org').parentNode, "selected");
	  new Effect.BlindUp('ajaxcontent_org', { duration: .4 });
	}
	if ($('ajaxcontent_' + t) && $(tab).style.display != '' )
	{		
	  Element.addClassName($('en_ligne_' + t).parentNode, "selected");
	  new Effect.BlindDown(tab, { duration: .8 });
	}
}


function setDivVideoSize (w,h)
{
  //alert( Window.ModalBox + "   " + parent.ModalBox + "  ");
  //window.ModalBox.resize( 500,400 );
  //alert( "SET DIV VIDEO SIZE OK "  +w +"  " + h + "  " +$('MB_wrapper').style.width + "  " + $('MB_wrapper').style.height+ $('MB_wrapper').style.left  ) ;
  var newLeft = parseInt($('MB_wrapper').style.left) +  (parseInt(parseInt($('MB_wrapper').style.width) - parseInt(w))/2) ;
  $('MB_wrapper').style.left =  parseInt(newLeft) +"px";
  
  scalewidth = 100 * (parseInt(w) + 30) / parseInt($('MB_wrapper').style.width);  
  scaleheight = ( 100 * (parseInt(h) + 50) / parseInt($('MB_wrapper').style.height) ) ;
  
  new Effect.Scale('MB_window', scalewidth,{ duration: .5,scaleY:false, scaleContent:false});
  new Effect.Scale('MB_window', scaleheight,{ duration: .5,scaleX:false, scaleContent:false});
 
  
  $('MB_wrapper').style.top = '10px';
  //$('MB_window').style.top = '50px';
  $('MB_wrapper').style.width = w  +"px";
  $('MB_wrapper').style.height = h +"px";
  
  $('video').style.width = w+"px";
  $('video').style.height = h+"px";
  
  setFooter();
  //alert( "SET DIV VIDEO SIZE OK "  +w +"  " + h + "  " +$('MB_wrapper').style.width + "  " + $('MB_wrapper').style.height + $('MB_wrapper').style.left ) ;
}



