// identification
function ident4(monpseudo,app,datetime,pageretour) {
var temp = "";

temp += "    <div id=\"inscription\" class=\"sideblock mlogin\" style=\"display:none\">";
temp += "    <form name=\"identification\" method=\"post\" action=\"/" + app + "/crebalinew.jsp\">";
temp += "    <input type=\"hidden\" name=\"h\" VALUE=\"" + datetime + "\" />";
temp += "    <input type=\"hidden\" name=\"MODE\" VALUE=\"RAPID\" />";
temp += "    	<h3>ma connection</h3>";
temp += "    	<p><input type=\"text\" size=\"15\" id=\"connection-login\" name=\"PSE\" value=\"mon pseudo\" onfocus=\"if(this.value==&quot;mon pseudo&quot;) this.value=&quot;&quot;\" /><br />";
temp += "    	<input type=\"password\" size=\"15\" id=\"connection-mdp\" name=\"MDP1\" value=\"mot de passe\"  onfocus=\"if(this.value==&quot;mot de passe&quot;) this.value=&quot;&quot;\" /><br />";
temp += "    	<input type=\"checkbox\" name=\"memo1\" value=\"1\" /> mémoriser<br /><input type=\"submit\" value=\"je me connecte\" /></p>";
temp += "    	<p><a href=\"/" + app + "/identnew.jsp\">devenir membre</a></p>";
temp += "    </form>";
temp += "    </div>";

temp += "    <div id=\"inscrit\" class=\"sideblock mlogin\" style=\"display:none\">";
temp += "    <form action=\"/" + app + "/" + pageretour + "\" method=\"post\" name=\"release\">";
temp += "    <input type=\"hidden\" name=\"mode\" value=\"release\" />";
temp += "    	<h3>ma connection</h3>";
temp += "    	<p>Bonjour&nbsp;" + monpseudo + "<br /><span id=\"minfos\"></span></p>";
temp += "    	<p align=\"center\"><input type=\"button\" value=\"me déconnecter\" onclick=\"javascript:document.release.submit();\" /></p>";
temp += "    </form>";
temp += "    </div>";

return temp;
}

function passe4(app,datetime) {
var temp = "";

temp += "    <form name=\"sendpass\" target=\"_blank\" method=\"post\" action=\"/" + app + "/passeperdu.jsp\">";
temp += "    <input type=\"hidden\" name=\"h\" value=\"" + datetime + "\" />";
temp += "    <input type=\"hidden\" name=\"produit2\" value=\"gayfrance.fr\" />";
temp += "       <p><input type=\"text\" name=\"email2\" value=\"mon email\" onfocus=\"if(this.value=='mon email') this.value=''\" /><br />";
temp += "       <input type=\"submit\" value=\"recevoir\" name=\"submit2\" /></p>";
temp += "    </form>";

return temp;
}

// newsletter
function nl4(app) {
var temp = "<br />";

temp += "    <div class=\"sideblock mnl\">";
temp += "    <form name=\"newsletter\" action=\"/" + app + "/newsletter.jsp\" id=\"fnews\" target=\"newsletter\">";
temp += "    <input type=\"hidden\" name=\"produit\" value=\"gayfrance.fr\" />";
temp += "    <input type=\"hidden\" name=\"inscription\" value=\"oui\" />";
temp += "    <input type=\"hidden\" name=\"choix\" value=\",1,2,3,4,5,6,\" />";
temp += "        <h3>ma newsletter</h3>";
temp += "        <p><input type=\"text\" size=\"15\" name=\"email\" id=\"connection-mdp\" value=\"mon email\" size=\"14\" onfocus=\"if(this.value==&quot;mon email&quot;) this.value=&quot;&quot;\" /><br /><input type=\"checkbox\" name=\"desinscription\" />me désinscrire</p>";
temp += "        <p><input type=\"submit\" value=\"inscription\" /></p>";
temp += "    </form>";
temp += "    </div>";

return temp;
}

// menu general
function gene4(lien,app,datetime,contexte,code) {
var temp = "<ul>";

temp += "    <li><a href=\"http://" + lien + ".gayfrance.fr/" + app + "/chat_gay.jsp\" title=\"gayfrance, le portail regional des gays de france et de la francophonie\">ACCUEIL</a>";
if (code!=""){
    temp += "    <li><a href=\"/" + app + "/o_als.jsp\" target=\"paiement\">ABONNEMENT</a></li>";
}
temp += "    <li><a href=\"javascript:Dia_Gayfrance('http://" + lien + ".gayfrance.fr/" + app + "/dialchoix.jsp?js=" + contexte + "&h=" + datetime + "','Dialogues')\">T'CHAT</a></li>";
temp += "    <li><a href=\"http://webmail.gayfrance.fr/\" target=\"webmail\">EMAIL@GAYFRANCE.FR</a></li>";
//temp += "    <li><a href=\"/" + app + "/mespics.jsp\" title=\"mon compte gay\">MON COMPTE</a></li>";
temp += "    <li><a href=\"/" + app + "/monabo.jsp\" title=\"mon compte gay\">MON COMPTE</a></li>";
temp += "    <li><a href=\"/" + app + "/indexrao.jsp?init=1\" title=\"les profils gay\">PROFILS</a></li>";
temp += "    <li><a href=\"/" + app + "/indexpa.jsp?init=1\" title=\"les petites annonces gay\">PETITES ANNONCES</a></li>";
temp += "    <li><a href=\"/" + app + "/indexbal.jsp?init=1\" title=\"les echanges gay\">MESSAGERIE/BALS</a></li>";
temp += "    <li><a href=\"/" + app + "/charte.jsp\" title=\"la charte d'utilisation Gayfrance\">CHARTE</a></li>";
temp += "    <li><a href=\"http://www.rencontregay.org/\" target=\"affiliation\" title=\"offrez-vous un chat gay sur votre site et gagnez de l'argent\">AFFILIATION</a></li>";
temp += "    <li><a href=\"http://www.gayplanet.com/demandez-le-programme.php\" target=\"videos\" title=\"videos pour grands garçons\">VIDEOS X</a></li>";
temp += "    <li><a href=\"http://www.boutikgay.com/?id_affilie=gayfrance\" target=\"boutique\" title=\"sex-toys dvd lingerie gay\">BOUTIQUE GAY</a></li>";
temp += "    <li><a href=\"/" + app + "/contact.jsp\" title=\"une question, une suggestion,un partenariat? contactez-nous\">CONTACT</a></li>";
temp += "</ul>";
return temp;
}

// profils
function menu4rao(lien,app,datetime) {
var temp = "<ul>";

temp += "<li><a href=\"/"+app+"/indexrao.jsp?init=1\">TOUS LES PROFILS</a><br></li>\n";
temp += "<li><a href=\"/"+app+"/raomaj.jsp\">CREER MON PROFIL</a><br></li>\n";
temp += "<li><a href=\"/"+app+"/raovisu.jsp\">VOIR MON PROFIL</a></li>\n";
temp += "<li><a href=\"/"+app+"/raomaj.jsp\">MODIFIER MON PROFIL</a></li>\n";
if (app=='DEV')
{
	temp += "    <li><a href=\"/" + app + "/mespics.jsp\" title=\"mon compte gay\">MES PHOTOS</a></li>";
} else {
	temp += "<li><a href=\"/"+app+"/raopics.jsp\">MES PHOTOS</a></li>\n";
}
temp += "<li><a href=\"/"+app+"/raomaselection.jsp\">MA&nbsp;SELECTION</a></li>\n";
temp += "<li><a href=\"/"+app+"/raotrombinoscope.jsp\">TROMBINOSCOPE</a></li>\n";
temp += "<li><a href=\"/"+app+"/raoselection.jsp\">RECHERCHE&nbsp;+</a></li>\n";
temp += "</ul>";
return temp;
}

// petites annonces
function menu4pa(lien,app,datetime) {
var temp = "<ul>";

temp += "<li><a href=\"/"+app+"/indexpa.jsp?init=1\">TOUTES LES&nbsp;ANNONCES</a></li>\n";
temp += "<li><a href=\"/"+app+"/pagestionliste.jsp\">MES&nbsp;ANNONCES</a></li>\n";
temp += "<li><a href=\"/"+app+"/pamaselection.jsp\">MA&nbsp;SELECTION</a></li>\n";
temp += "<li><a href=\"/"+app+"/patrombinoscope.jsp\">TROMBINOSCOPE</a></li>\n";
temp += "<li><a href=\"/"+app+"/paselection.jsp\">RECHERCHE&nbsp;+</a></li>\n";
temp += "<li><a href=\"/"+app+"/pasaisie.jsp\">PASSER&nbsp;UNE&nbsp;ANNONCE</a></li>\n";
temp += "</ul>";
return temp;
}

// compte
function menu4cpt_old(lien,app,datetime) {
var temp = "<ul>";
temp += "    <li><a href=\"/" + app + "/mespics.jsp\" title=\"mes photos gay\">MES PHOTOS</a></li>";
temp += "    <li><a href=\"/" + app + "#\" title=\"mes actus gay\">MES NEWSLETTERS</a></li>";
temp += "</ul>";
return temp;
}

// menu compte
function menu4cp(lien,app,datetime,contexte,code) {
var temp = "<ul>";
temp += "    <li><a href=\"/" + app + "/monabo.jsp\" title=\"mes photos gay\">MON&nbsp;ABONNEMENT</a></li>";
if (app=='DEV')
{
temp += "    <li><a href=\"/" + app + "/mesavantages.jsp\" title=\"mes avantages\">MES&nbsp;AVANTAGES</a></li>";
}
temp += "    <li><a href=\"/" + app + "/mespics.jsp\" title=\"mes photos gay\">MES&nbsp;PHOTOS</a></li>";
temp += "    <li><a href=\"/" + app + "/mesnews.jsp\" title=\"mes newsletter gay\">MES&nbsp;NEWS</a></li>";
temp += "    <li><a href=\"/" + app + "/monmdp.jsp\" title=\"mon mot de passe\">MES&nbsp;IDENTIFIANTS</a></li>";
temp += "</ul>";
return temp;
}

function menu4(lien,app,datetime) {
	return menu4pa(lien,app,datetime);
}

function menu4bal(lien,app,datetime) {
var temp = "<ul>";

temp += "<li><a href=\"/"+app+"/indexbal.jsp?init=1\" >TOUTES&nbsp;LES&nbsp;BALS</a></li>\n";
temp += "<li><a href=\"/"+app+"/ballirmes.jsp\" >LIRE&nbsp;MES&nbsp;MESSAGES</a></li>\n";
temp += "<li><a href=\"/"+app+"/indexbal.jsp?init=1\" >ECRIRE</a></li>\n";
temp += "<li><a href=\"/"+app+"/balmodrep.jsp\" >MON&nbsp;REPONDEUR</a></li>\n";
if (app=='DEV')
{
	temp += "    <li><a href=\"/" + app + "/mespics.jsp\" title=\"mon compte gay\">MES PHOTOS</a></li>";
} else {
	temp += "<li><a href=\"/"+app+"/balpics.jsp\" >MA&nbsp;PHOTO</a></li>\n";
}
temp += "</ul>";
return temp;
}

function menu4foot(lien,app,datetime) {
var temp = "<p>";
var tchat = "javascript:Dia_Gayfrance('http://"+lien+".gayfrance.fr/"+app+"/dialchoix.jsp','Dialogues')";
temp += "<a href=\"" + tchat + "\">t\'chat</a> | <a href=\"http://"+lien+".gayfrance.fr/"+app+"/indexpa.jsp?init=1\">petites annonces</a> | <a href=\"http://"+lien+".gayfrance.fr/"+app+"/indexrao.jsp?init=1\">profils</a> | <a href=\"http://"+lien+".gayfrance.fr/"+app+"/indexbal.jsp?init=1\">messagerie</a> | <a href=\"http://www.actugay.fr/\" target=\"_blank\">actualit&eacute; gay</a> | <a href=\"http://www.gayplanet.com/\" target=\"_blank\">moteur de recherche gay</a>";
temp += "<br />";
temp += "<span class=\"afooter\">";
temp += "<a href=\"/"+app+"/infoslegales.jsp\">infos légales</a> | <a href=\"#\">presse</a> | <a href=\"http://"+lien+".gayfrance.fr/"+app+"/contact.jsp\">contact</a> | nos partenaires :  <a href=\"http://www.boutikgay.com/?id_affilie=gayfrance\" target=\"_blank\">boutikgay</a> <a href=\"http://www.netgai.com/\" target=\"_blank\">netgai</a> <a href=\"http://www.starpass.fr/\" target=\"_blank\">starpass</a> <a href=\"http://www.grocado.com/\" target=\"_blank\">grocado</a>";
temp += "</span>";
temp += "</p>";
return temp;
}