/*=============================================================================
						* OPEN POPUP *
=============================================================================*/
function openPopup(url, title, parameters)
{
	var opp = window.open(url, "Document","toolbar=no,width=900,height=640,menubar=yes,status=no,scrollbars=yes,resizable=yes");
	opp.moveTo(((screen.width/2)-405),((screen.height/2)-350));
}
/*=============================================================================
						* MGA CLIENT *
=============================================================================*/
function mgaClient_goToDoc(domain, idDoc, translation)
{
	openPopup("http://www."+domain+"/mga_client/idoc/doc/doc"+idDoc+translation+".pdf");
}

function pleinecranfr()
{
window.open("html_fr/index.htm","beauregardfr",'toolbar=0,scrollbars=0,menubar=0,location=0,resizable=yes,directories=0,status=0,width='+(screen.width-10)+',height='+(screen.height-59)+',left=0,top=0')
}

function gdecranen()
{
window.open("html_en/index.htm","beauregarden",'toolbar=0,scrollbars=0,menubar=0,location=0,resizable=yes,directories=0,status=0,width='+(screen.width-10)+',height='+(screen.height-59)+',left=0,top=0')
}



function provisoire()
{
window.open("presentation/index.htm","beauregard",'toolbar=0,scrollbars=0,menubar=0,location=0,resizable=yes,directories=0,status=0,width='+(screen.width-10)+',height='+(screen.height-59)+',left=0,top=0')
}






function pleinecran() 
  { 
     window.resizeTo(screen.width+10,screen.height); //on agrandit la fenetre à la taille de l'écran 
     haut=screen.height-parent.document.body.clientHeight; //calcul de la hauteur des barres d'outils 
     window.moveTo (-5,-haut) ; //on place la fenetre pour ne plus voir les barres de l'explorer 
     window.resizeTo(screen.width+10,2000); //on agrandit la fenetre de façon à ne voir que la page 
      
       
    // if ((document.body.clientHeight > 768 && screen.height == 768) //Ce test sert dans le cas ou la fenetre ie etait en mode agrandie 
   //   || (document.body.clientHeight > 600 && screen.height == 600) ) 
   // { 
   // var eccart = parent.document.body.clientHeight - screen.height; 
   // window.moveTo (-5,-haut+27+eccart); 
   // Window.resizeTo(screen.width+10,screen.height+haut-eccart); 
//}


  } 
  


//------------------------------------------------------------------------------------------------


//-------------------FORMULAIRE DE PRE-RESERVATIONS   FRANCAIS-----------------------
function reservfr()
        {
                formfr =
window.open("reservations/formmil.php","beauregardreservation","toolbar=no,width=900,height=640,menubar=yes,status=no,scrollbars=yes,resizable=no");

        formfr.moveTo(((screen.width/2)-405),((screen.height/2)-350))
        }


function reserven()
        {
                formen =
window.open("reservations/formmil.php","beauregardreservation","toolbar=no,width=900,height=640,menubar=yes,status=no,scrollbars=yes,resizable=no");

        formen.moveTo(((screen.width/2)-405),((screen.height/2)-350))
        }



//-------------------NEWS ACTU-----------------------
function actufr()
        {
                actualitefr =
window.open("http://www.chateaubeauregard.net/news/fr/list.html","beauregard","toolbar=no,width=900,height=640,menubar=yes,status=no,scrollbars=yes,resizable=no");

        actualitefr.moveTo(((screen.width/2)-405),((screen.height/2)-350))
        }


function actuen()
        {
                actualiteen =
window.open("http://www.chateaubeauregard.net/news/en/list.html","beauregard","toolbar=no,width=900,height=640,menubar=yes,status=no,scrollbars=yes,resizable=no");

        actualiteen.moveTo(((screen.width/2)-405),((screen.height/2)-350))
        }


//-------------------CARTE RESTO-----------------------
function restofr()
        {
	cartefrr = 
	window.open("http://www.chateaubeauregard.net/mga_client/idoc/doc/doce18772dcf718011eea5b471aabbcf9f8fr.pdf","aubergecavaliere","toolbar=no,menubar=yes,status=no,scrollbars=yes,resizable=yes");
	}

function restoen()
        {
	carteenn =
	window.open("http://www.chateaubeauregard.net/mga_client/idoc/doc/doce18772dcf718011eea5b471aabbcf9f8en.pdf","aubergecavaliere","toolbar=no,menubar=yes,status=no,scrollbars=yes,resizable=yes");
	}







//-------------------MENTIONS LEGALES DANS SITE-----------------------
function legalesfr()
        {
                legalfr =
window.open("legales/index.htm","beauregard","toolbar=no,width=900,height=640,menubar=yes,status=no,scrollbars=yes,resizable=no");

        legalfr.moveTo(((screen.width/2)-405),((screen.height/2)-350))
        }

function legalesen()
        {
                legalen =
window.open("legales/index.htm","beauregard","toolbar=no,width=900,height=640,menubar=yes,status=no,scrollbars=yes,resizable=no");

        legalen.moveTo(((screen.width/2)-405),((screen.height/2)-350))
        }

//-------------------MENTIONS POUR L'INDEX-----------------------
function legalesind()
        {
                legalfr =
window.open("html_fr/legales/index.htm","beauregard","toolbar=no,width=900,height=640,menubar=yes,status=no,scrollbars=yes,resizable=no");

        legalfr.moveTo(((screen.width/2)-405),((screen.height/2)-350))
        }

//--------------------------------------------------------------------



function redir()
		{
			if (screen.width<800) {window.location="index_800.html";}
			if (screen.width==800) {window.location="index_800.html";}
			if (screen.width==1024) {window.location="#";}			
			if (screen.width==1152) {window.location="#";}			
			if (screen.width>1152) {window.location="#";}			
		}
