function popup_themalis()
{
newWin = window.open('http://www.themalis.fr','','resizable=1,scrollbars=1,toolbar=1,location=1,height=630,width=810,top=10,left=10');
}

var a=0;
var x=0;
var y=0;
function popup_image(a,x,y)
{
newWin = window.open('zoom.php?img='+a,'','resizable=1,scrollbars=1,toolbar=0,location=0,height='+y+',width='+x+',top=10,left=10');
}

var x=0;
function popup_visu_doc(x)
{
var popdoc = window.open(x,'','resizable=1,scrollbars=1,toolbar=0,location=0,menubar=1,height=600,width=890,top=10,left=10');
popdoc.focus();
}

var z=0;
function popup_fixe(z)
{
newWin = window.open(z,'','resizable=0,scrollbars=1,toolbar=0,location=0,height=500,width=500,top=10,left=10');
}

function ami_box()
{
newWin = window.open('ami.php','','resizable=0,scrollbars=1,toolbar=0,location=0,height=200,width=600,top=10,left=10');
}

function favoris()
{
window.external.Addfavorite('http://www.auberge-pont-st-pierre.fr','AUBERGE DU PONT ST PIERRE');
}

function rec() 
{
	document.recherche.rec.value='1';
	document.recherche.submit();
}

psuivant=0;
function suivant(psuivant) 
{
	document.recherche.rec.value='1';
	document.recherche.page.value=psuivant;
	document.recherche.submit();
}

pprofil=0;
function profil(pprofil) 
{
	var popprofil = window.open('profil_fiche.php?ref='+pprofil,'','resizable=1,scrollbars=1,toolbar=0,location=0,menubar=1,height=680,width=490,top=10,left=10');
	popprofil.focus();
}

function infolegale() 
{
	window.open('info_legale.php','','resizable=1,scrollbars=1,toolbar=0,location=0,menubar=1,height=680,width=490,top=10,left=10');
}

function valider_contact() 
{
	document.contact.valider.value='Validation';
	document.contact.ecrire.value='1';
	document.contact.submit();
}

function valider_ami() 
{
	document.ami.valider.value='Validation';
	document.ami.submit();
}

function resa() 
{
	document.reservation.valider.value='Validation';
	document.reservation.submit();
}

function decnx() 
{
	document.ident.deconnecter.value='1';
	document.ident.submit();
}

function Is() {
   var agent = navigator.userAgent.toLowerCase();
   this.major = parseInt(navigator.appVersion);
   this.minor = parseFloat(navigator.appVersion);
   this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
   this.ns4 = (this.ns && (this.major >= 4));
   this.ns6 = (this.ns && (this.major >= 5));
   this.ie = (agent.indexOf("msie") != -1);
   this.ie4 = (this.ie && (this.major >= 4));
   this.ie5  = (this.ie && (agent.indexOf("msie 5")!=-1));
   this.op3 = (agent.indexOf("opera") != -1);
   this.win = (agent.indexOf("win")!=-1);
   this.mac = (agent.indexOf("mac")!=-1);
   this.unix = (agent.indexOf("x11")!=-1);
}

var is = new Is();
function addBookmark() {
   var titre = "AUBERGE DU PONT ST PIERRE";
   var url   = "http://www.auberge-pont-st-pierre.fr/";
   if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) {
      window.sidebar.addPanel(titre, url, "");
   } else if (is.ie) {
      window.external.AddFavorite(url, titre);
   } else {
      alert("Pour ajouter 'titre' à  vos farovis, utilisez <CTRL>+D.");
   }
}
