$(document).ready(function () {

  //window.onresize = resizeFlash;

  

  resizeFlash();



});


function Set_Cookie( name, value, expires, path, domain, secure ){
// set time, it's in milliseconds
var today = new Date();
today.setTime( today.getTime() );

/*
if the expires variable is set, make the correct
expires time, the current script below will set
it for x number of days, to make it for hours,
delete * 24, for minutes, delete * 60 * 24
*/
if ( expires ){
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );
document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
( ( path ) ? ";path=" + path : "" ) +
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}
function popup(type,adr,X,Y) {
	/*switch(type){
		case 'FULL':
			window.open(adr,'skiplan','width='+X+',height='+Y+',directories = yes,location = yes,menubar = yes,resizable = yes,scrollbars = yes,status = yes,toolbar = yes');
			break;

		case 'LIGHT':
			window.open(adr,'skiplan','width='+X+',height='+Y+',directories = no,location = no,menubar = no,resizable = yes,scrollbars = yes,status = no,toolbar = no');
			break;

	}*/
}
function cacheMessage()
{
  $("#encart_flash").css("display","none");
}

function resizeFlash() {



    /*



      var hauteur=document.body.clientHeight - 20;



      var largeur=document.body.clientWidth;



      hauteur=(hauteur<650)?650:hauteur;



      largeur=(largeur<900)?900:largeur;



      $("#container").css("height",hauteur+"px");



      $("#container").css("width",largeur+"px");

      

      

      



      if(hauteur<=650) {



        $("#footerNavigation").css("top","650px");



      }  else {



        $("#footerNavigation").css("top","100%");



      }  

    */

}


