/* AUTEUR: Claude Paulet */
/* Date de création: 16/05/2001 */
/* -----------------------------------------------------*/
/* -----------------------------------------------------*/
/* Variables             																				    							*/
/* -----------------------------------------------------*/
nom_proprietaire = "Bernard Loiseau";
email_proprietaire = "bernard.loiseau11@wanadoo.fr";
email_postmaster = "claude@paulet.net";
site_en_question = "http://www.camping-car-amateur.org/";
nom_site = "Camping-car-amateur, une cellule polyester d'amateur";
nom_developpeur = "1K-design";
// ----------------------------------------------------
// Variable d'affichage de la page d'accueil		 //
// ----------------------------------------------------
var page_accueil_aff = 0;
function AffAccueil(var_pageacc) {	
				page_accueil_aff = var_pageacc;
}
// ----------------------------------------------------
// Compteur de statistiques (XiTi)					 //
// ----------------------------------------------------
function stat(nom_feuille) {
	hsh = new Date();
	hsd = document;
	hsi = '<a href="http://www.xiti.com/xiti.asp?s=208641" TARGET="_top">';
	hsi += '<IMG WIDTH="39" HEIGHT="25" BORDER=0 src="http://logv2.xiti.com/hit.xiti?s=208641';
	hsi += '&p=' + nom_feuille + '&hl=' + hsh.getHours() + 'x' + hsh.getMinutes() + 'x' + hsh.getSeconds();
	if(parseFloat(navigator.appVersion)>=4){
					s=screen;hsi += '&r=' + s.WIDTH + 'x' + s.HEIGHT + 'x' + s.pixelDepth + 'x' + s.colorDepth;
	}
	hsd.writeln(hsi + '&ref=' + hsd.referrer.replace('&', '$') + '" ALT="Mesurez votre audience"></A>');
}

// ----------------------------------------------------
// Scroller une page                     			 //
// ----------------------------------------------------
/*
Top-Down scrolling window Script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, visit http://www.dynamicdrive.com
This notice MUST stay intact for use
*/
// ----------------------------------------------------
// Pour la variable "vitesse_defilt" changer 1 par une autre valeur pour altérer la vitesse de 
// défilement, plus la valeur est grande plus la vitesse est rapide.
// Attention : cette variable est modifiée par la valeur définie dans le module "cp_menu_dyn.js"
// 
//change 1 to another integer to alter the scroll speed. Greater is faster
var speed=1;
var currentpos=0,alt=1,curpos1=0,curpos2=-1;
function initialize(){
	startit();
}

function iecompattest(){
	return (document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function scrollwindow(){
	if (document.all)
					temp=iecompattest().scrollTop;
	else
					temp=window.pageYOffset;
	if (alt==0)
					alt=1;
	else
					alt=0;
	if (alt==0)
					curpos1=temp;
	else
					curpos2=temp;
	if (curpos1!=curpos2){
					if (document.all)
									currentpos=iecompattest().scrollTop+speed;
					else
									currentpos=window.pageYOffset+speed;
									window.scroll(0,currentpos);
	}
	else{
					currentpos=0;
					window.scroll(0,currentpos);
	}
	}
	function startit(){
					setInterval("scrollwindow()",50);
}
//window.onload=initialize;
// ----------------------------------------------------
// Message au quitté de l'application				 //
// ----------------------------------------------------
// JavaScript pris sur le site: http://www.scripts-france.net -->
locnm = location.href;
pos = locnm.indexOf("bandeau_titre.html");
locnm1 = locnm.substring(0,pos);
function au_revoir() {
				//page_accueil_aff = 0;
				fenprops = "top=50,left=10,width=340,height=230,scrollbars=no,toolbar=0,status=0";
				fenetre1 = window.open('au_revoir.html','Au_revoir',fenprops);
}
// ----------------------------------------------------
// Date de Modif en Français                         //
// ----------------------------------------------------
// JavaScript pris sur le site: http://www.scripts-france.net
/* Dans le corps
   <SCRIPT LANGUAGE="javascript">
   <!--
   document.writeln("Dernière mise à jour : " + FormatDate(new Date(document.lastModified)));
   // -->
   </SCRIPT> 
*/

function MakeArray(n) {
				this.length = n;
				return this;
}
function FormatDate(ltime) {
				var lm = ltime.getMinutes();
				nomJour = new MakeArray(7);
				nomJour[1] = "Dimanche" ; nomJour[2] = "Lundi" ; nomJour[3] = "Mardi"; nomJour[4] = "Mercredi";
				nomJour[5] = "Jeudi" ; nomJour[6] = "Vendredi" ; nomJour[7] = "Samedi";
				nomMois = new MakeArray(12);
				nomMois[1] = "Janvier" ; nomMois[2] = "Fév." ; nomMois[3] = "Mars" ; nomMois[4] = "Avril";
				nomMois[5] = "Mai" ; nomMois[6] = "Juin" ; nomMois[7] = "Juil." ; nomMois[8] = "Août";
				nomMois[9] = "Sept." ; nomMois[10] = "Oct." ; nomMois[11] = "Nov." ; nomMois[12] ="Déc.";
				// ---------------------------------------------------
				// Affichage complet avec nom du jour et heure.
				//var ltext = nomJour[ltime.getDay()+1]+" "+ltime.getDate()+" "+nomMois[ltime.getMonth()+1]+" "+ltime.getYear()+" à "+ltime.getHours()+"h";
				//ltext += ((lm < 10) ? "0" : "")+lm;
				// ---------------------------------------------------
				// Affichage partiel (sans nom du jour et sans heure).
				var ltext = ltime.getDate()+" "+nomMois[ltime.getMonth()+1]+" "+ltime.getFullYear();
				//ltext += ((lm < 10) ? "0" : "");
				return ltext;
}
// ----------------------------------------------------
// Bloquer le clic droit de la souris                //
// ----------------------------------------------------
function yaunclick(){
				message = 'Le contenu de ce site est garanti par un copyright '+ nom_modele +',\n';
				message += 'sa reproduction totale ou partielle apr tout moyen\n';
				message += 'doit être soumise à son approbation.\n';
				message += 'The content of this WEB site is protected by a copyright '+ nom_modele +',\n';
				message += 'its partial or total reproduction by all medium\n';
				message += 'must be submit at her agrement.';
				alert(message);
}
function noclick(scx){
				if (navigator.appName == "Netscape" && scx.which == 3){
								yaunclick();
								return false; 
				}
				if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2){
								yaunclick();
								return false; 
				}
}
document.onmousedown = noclick;
/* -----------------------------------------------------*/
/* Fermer la fenêtre ouverte   						    */
/* -----------------------------------------------------*/
function ferme_fenetre() {
				this.window.close();
}
// ----------------------------------------------------
// ajouter aux Favoris								 //
// ----------------------------------------------------
// JavaScript pris sur le site: "http://www.toutjavascript.com"
function AjoutFavo() {
				if ((navigator.appName.indexOf("Microsoft",0)>=0) && (parseInt(navigator.appVersion)>=4)) {
								window.external.AddFavorite(site_en_question,nom_site);
				} 
				else {
								alert("Cette fonction n'est proposée que par Internet Explorer 4+");
				}
}
// ----------------------------------------------------
// Faire de ce site la Page de démarrage     		 //
// ----------------------------------------------------
versionNav = navigator.appVersion;
placeMSIE = versionNav.indexOf("MSIE");

function HomePage(obj){
				if (placeMSIE > -1) {
								obj.style.behavior='url(#default#homepage)';
								obj.setHomePage(''+ site_en_question +'');
				}
}
// ----------------------------------------------------
// Afficher le Navigateur, la compatibilité Java et les plugs-in.
// ----------------------------------------------------
// JavaScript trouvé sur le site: http://www.scripts-france.net -->
function votre_configuration() {
    
				var taille_ecran = screen.width + "x" + screen.height;
				var color_prf = screen.colorDepth;
				var color_txt = "#FFFFFF";
				var color_fond = "#000000";
				color_nb = Math.pow(2,color_prf);
				if (java_en == true) {
								(java_en = "compatible");
				}
				if (java_en==false) {
								(java_en = "non compatible");
				}
				texte = '<HTML>\n';
				texte += '<HEAD>\n';
				texte += '<META http-equiv="Content-Type" content="text/html\; charset=iso-8859-1">\n';
				texte += '<TITLE>Votre navigateur</TITLE>\n';
				texte += '<META NAME="Description" CONTENT="">\n';
				texte += '<META NAME="Keywords" CONTENT="">\n';
				texte += '<META NAME="Author" CONTENT="'+nom_developpeur+'">\n';
				texte += '<SCRIPT>function ferme_fenetre() {window.close();}</SCRIPT>';
				texte += '</HEAD>\n';
				texte += '<BODY BGCOLOR="'+color_fond+'">\n';
				texte += '<CENTER>';
				texte += '<FONT FACE="arial" SIZE="2" COLOR="'+color_txt+'">\n';
				texte += 'Vous utilisez en ce moment le navigateur :<BR>\n';
				texte += '<FONT COLOR="#FF0000"><B>' + name + '</B><BR>';
				texte += 'agent : ' + agt + '</FONT><BR>';
				texte += 'version : <B>' + version + '<BR>'; 
				texte += '' + java_en + '</B> Java,<BR>';
				texte += 'qui dispose de <B>' + navigator.plugins.length + '</B> Plug-in(s) installé(s) ';
				texte += 'sur plateforme <B>' + plateforme + '</B>';
				texte += '<BR>votre résolution d\'écran est de <B>' + taille_ecran + '</B>,<BR>';
				texte += 'avec un affichage couleur codé sur <B>' + color_prf + ' bits</B>,<BR>';
				texte += 'permettant d\'afficher <B>' + color_nb + '</B> couleurs différentes.<BR>';
				texte += '------------------------------------------------------<BR>';
				texte += 'Your navigator as this time is :<BR>\n';
				texte += '<FONT COLOR="#FF0000"><B>' + name + '</B><BR>';
				texte += 'agent : ' + agt + '</FONT><BR>';
				texte += 'version : <B>' + version + '<BR>'; 
				texte += 'Java ' + java_en + '</B>,<BR>';
				texte += 'wich dispose of <B>' + navigator.plugins.length + '</B> installed Plug-in(s) ';
				texte += 'on <B>' + plateforme + ' platform </B>';
				texte += '<BR>your screen resolution is <B>' + taille_ecran + '</B>,<BR>';
				texte += 'with color screen display encoded on <B>' + color_prf + ' bits</B>,<BR>';
				texte += 'which allow to affich <B>' + color_nb + '</B> differents colors.<BR>';
				texte += '</FONT></CENTER><BR>';
				texte += '<FONT FACE="arial" SIZE="2" COLOR="#000000">\n';
				texte += '<CENTER><INPUT TYPE=button value=Fermer onClick=ferme_fenetre()></CENTER><BR>';
				texte += '</BODY>\n</HTML>\n';
				
				fenprops = "top=100,left=180,width=480,height=380,scrollbars=no,toolbar=0,status=0";
				fenetre3 = window.open("",'Votre_navigateur',fenprops);
				fenetre3.document.write("");
				setTimeout("fenetre3.document.write(texte);",1);

}
// -------------------------------------------------------
// affichage d'une fenêtre 
// -------------------------------------------------------
function OuvrirFenetre(fic,txt) {
    fenprops ="top=100,left=200,width=300,height=200,scrollbars=no,toolbar=0,status=0";
    fen = window.open(fic,txt,fenprops);
}
// -------------------------------------------------------
// Test pour ne pas permettre un affichage dans une autre trame
// -------------------------------------------------------
function exframes(){
				if (parent.frames[1]){
								parent.location.href = self.location.href;
				}
				if (parent.frames[2]){
								parent.location.href = self.location.href;
				}
				if (parent.frames[3]){
								parent.location.href = self.location.href;
				}
}
// ----------------------------------------------------
// Affichage "Fenêtre Plein écran"  						 //
// ----------------------------------------------------
function resized () {
		window.parent.moveTo(0,0);
		window.parent.resizeTo(screen.availWidth,screen.availHeight);
}

