//<head>
//<script language="JavaScript" src="../js/footer.js"></script>
//</head>

var Copyright0 = "Copyright Pierre LANG &copy; ";
var Copyright1 = "Copyright Pierre LANG &copy; 2007-2012.";
var Copyright2 = "Tous droits réservés (textes et photographies).";

function write_press_link(intro, url, title, target)
{
if (is_menu_cdrom == 1)
{
document.write(intro);
document.write(title);
}
else
{
document.write(intro);
document.write("<A HREF=");
document.write(url);
document.write(">");
document.write(title);
document.write("</A>");
}
}

function write_press_article(intro, url, title)
{
// CD-ROM
// N°905, 11-2009 : Energie électrique 4. <A TARGET=_blank HREF="../presse/ys-905-2009-11.pdf"    >Vivre en fonction de ses moyens</A>
// Site
// N°905, 11-2009 : Energie électrique 4. Vivre en fonction de ses moyens
if (is_menu_cdrom == 1)
{
document.write("<LI>");
document.write(intro);
document.write("<A TARGET=_blank HREF=");
document.write(url);
document.write(">");
document.write(title);
document.write("</A>");
}
else
{
document.write("<LI>");
document.write(intro);
document.write(title);
}
}

function write_history_back(arg)
{
document.write("<A HREF=javascript:history.back()><IMG SRC=../img/bback.gif BORDER=0 ALIGN=middle>" +  arg + "</A>");
}

function no_right_click()
{
}

function write_footer_url()
{
document.write("<A TARGET=_parent HREF=http://www.plang.be>www.plang.be</A> - ");
document.write("<A TARGET=_parent HREF=http://www.thoe.be >www.thoe.be</A> - ");
document.write("<A TARGET=_parent HREF=http://www.irisoft-yacht.com>www.irisoft-yacht.com</A>");
}

function write_footer_close_window(page)
{
document.write("<FORM><INPUT type=\"Button\" name=submit Value=\" Fermer la fenêtre \" onClick=\"javascript:window.close();\"></FORM>");
document.write("<A HREF=#TOP>                      <IMG CLASS=button SRC=../img/btop.gif  BORDER=0 ALIGN=middle ALT=\"Aller en haut de la page...\"> Top</A>");

document.write("<HR _WIDTH=50% ALIGN=left>");
document.write(Copyright1 + "<BR>");
document.write(Copyright2 + "<BR>");
write_footer_url();
document.write("</DIV>&nbsp;");
}

function write_back_home(page)
{
document.write("<DIV CLASS=footer>");
document.write("<A TARGET=_parent HREF=../index.htm><IMG _CLASS=button SRC=../img/bhome.gif BORDER=0 ALIGN=middle ALT=\"Page d'accueil\"> Accueil</A>");
}

function write_footer(page)
{
document.write("<DIV CLASS=footer>");
document.write("<A TARGET=_parent HREF=../index.htm><IMG _CLASS=button SRC=../img/bhome.gif BORDER=0 ALIGN=middle ALT=\"Page d'accueil\"> Accueil</A>");
document.write("&nbsp; &nbsp; ");
document.write("<A HREF=javascript:history.back()>  <IMG _CLASS=button SRC=../img/bback.gif BORDER=0 ALIGN=middle ALT=Retour> Retour</A>");
document.write("&nbsp; &nbsp; ");
document.write("<A HREF=#TOP>                       <IMG _CLASS=button SRC=../img/btop.gif  BORDER=0 ALIGN=middle ALT=\"Début de page\"> Top</A>");

document.write("<HR _WIDTH=50% ALIGN=left>");
document.write(Copyright1 + "<BR>");
document.write(Copyright2 + "<BR>");
//document.write("<A TARGET=_parent HREF=http://www.plang.be>www.plang.be</A>");
write_footer_url();
write_page_ref(page);
document.write("</DIV>&nbsp;");
}

function write_footer_root(page)
{
document.write("<DIV CLASS=footer>");
document.write("<A TARGET=_parent HREF=./index.htm><IMG CLASS=button SRC=./img/bhome.gif BORDER=0 ALIGN=middle ALT=\"Retour à la page d'accueil...\"> Accueil...</A>");
document.write("&nbsp; &nbsp; ");
document.write("<A HREF=#TOP>                      <IMG CLASS=button SRC=./img/btop.gif  BORDER=1 ALIGN=middle ALT=\"Aller en haut de la page...\"> Top</A>");

document.write("<HR _WIDTH=50% ALIGN=left>");
document.write(Copyright1 + "<BR>");
document.write(Copyright2 + "<BR>");
write_footer_url();
document.write("</DIV>&nbsp;");
}

function write_footer_home(page)
{

document.write("<DIV CLASS=footer>");
//document.write("<A TARGET=_parent HREF=./index.htm><IMG CLASS=button SRC=./img/bhome.gif BORDER=0 ALIGN=middle ALT=\"Retour à la page d'accueil...\"> Accueil...</A>");
//document.write("&nbsp; &nbsp; ");
document.write("<A HREF=#TOP>                      <IMG CLASS=button SRC=./img/btop.gif    BORDER=1 ALIGN=middle ALT=\"Aller en haut de la page...\"> Top</A>");

document.write("<HR _WIDTH=50% ALIGN=left>");
document.write(Copyright1 + "<BR>");
document.write(Copyright2 + "<BR>");
write_footer_url();
document.write("</DIV>&nbsp;");
}

function write_page_ref(page)
{
var res = "";
var str;
var ref = "";

str = page;
//document.write("<P><div ALIGN=right>url: " + page);

//return;

str = page;

//document.write("<div ALIGN=right>" + page + "</div>");
return;

document.write("<BS>" + str + "<BS>");

res = str.split("/");
document.write("<BR>split");

ref = "";
if (res[0] != null)
   ref = res[0];
document.write("<BR>0=["+ ref + "]");
if (res[1] != null)
   ref = res[1];
document.write("<BR>1=["+ ref + "]");
if (res[2] != null)
   ref = res[2];
document.write("<BR>2=["+ ref + "]");
if (res[3] != null)
   ref = res[3];
document.write("<BR>3=["+ ref + "]");
if (res[4] != null)
   ref = res[4];
document.write("<BR>4=["+ ref + "]");
if (res[5] != null)
   ref = res[5];
document.write("<BR>5=["+ ref + "]");
if (res[6] != null)
   ref = res[6];
document.write("<BR>6=["+ ref + "]");
if (res[7] != null)
   ref = res[7];
document.write("<BR>7=["+ ref + "]");
if (res[8] != null)
   ref = res[8];
document.write("<BR>8=["+ ref + "]");

document.write("<div ALIGN=right>" + res[2] + "/" + res[3] + "/.../" + ref );
}

var HREF_SITE  = ""; //"http://www.thoe.be/index.htm";
var SITE_TITLE = ""; //"Naviguer avec Thoè";

function write_favorite_and_friend(url, title, prompt)
{
document.write("<DIV CLASS=text_left>");

document.write("<LI>");
if(url != "")
  SendURLtoAfriend(url, title);
else
if(HREF_SITE == "")
  SendURLtoAfriend(location.href, title);
else
  SendURLtoAfriend(HREF_SITE, title);

if (prompt == null || prompt == "")
   prompt = "Ajouter cette page à vos favoris";

document.write("<LI>");
if(url != "")
  AddToFavorites(url, title, prompt);
else
if(HREF_SITE == "")
  AddToFavorites(location.href, document.title, prompt);
else
  AddToFavorites(HREF_SITE, SITE_TITLE, prompt);

document.write("</DIV>");
}

function AddToFavorites(url, title, prompt) {

var isMinIE4 = (document.all) ? 1 : 0;

if (isMinIE4) {
document.write("<a href=\""+ "" + "?\" onClick=\"window.external.AddFavorite(");
//document.write(url + "," + title); // ne marche pas...
document.write("location.href,document.title");
document.write("); return false;\"");
document.write(">" + prompt + "</a><br>");
}
}

function SendURLtoAfriend(url, title, path) {

if (path == null)
   path = ".";
path = path + "/";

document.write("<A HREF=" + path + "contact/inform-friend.htm>" + title + "</A>");

return;

var isMinIE4 = (document.all) ? 1 : 0;
if (isMinIE4) {
        document.write("<a href=\"mailto:L'adresse e-mail de votre ami?subject=");
        document.write(url + " - " + title);
        document.write("\">Envoyez cette page à un ami</a>");
   }
}

