temp="";



function change(monimage)

{



limage= new String(document.images[monimage].src);



		if(limage.lastIndexOf("_ina.") != -1)

		{

			document.images[monimage].src = "../images/pics/"+monimage+"_act.gif";

		}

		else

		{

			document.images[monimage].src = "../images/pics/"+monimage+"_ina.gif";

		}

}



function go(chemin)

{

var url="";

var cheminBase="http://www.beattitude.fr";



if (chemin == "INDEX.HTML")

{

	url= cheminBase;

}

else

{

	url= cheminBase  + "/" + chemin;	

}

window.location.href=url;

}



function setleftMargin()

{

var largeur =screen.width;

var margin = (largeur - 800)/2;

if (margin<0) margin = 0;

if (margin>25) margin = 25;

document.body.leftMargin = margin;

}



function setHeight()

{

var hauteur =screen.height;

alert(hauteur);

document.body.height = hauteur-50;

}



function bandeauOn(item)

{

	document.getElementById(item).className="bandeau_on";

	document.getElementById(item).style.cursor='hand';

}

function bandeauOff(item)

{

	document.getElementById(item).className="bandeau_off";

}



function integrationDuRappel_old(libRappel)

{

document.write(" <table border = \"0\" cellspacing=\"5\" cellpadding=\"0\" align=\"left\">");

document.write("          <tr> ");

document.write("			  <td width=\"50px\">&nbsp; ");

document.write("              </td>");

document.write("              <td class=\"texteRappel\" align=\"left\"> ");

document.write(libRappel);

document.write("              </td>");

document.write("          </tr>");

document.write("    </table>");

}



function integrationDuRappel(libRappel)

{

document.write(" <table cellspacing=\"5\" cellpadding=\"0\" align=\"left\">");

document.write("<tr><td width=\"120px\" id=\"tournoi\" ONCLICK=\"go(\'jorkyball/Championnat_2011-2012_Presentation.html\')\" ONMOUSEOVER=\"bandeauOn(\'tournoi\')\" ONMOUSEOUT=\"bandeauOff(\'tournoi\')\" class=\"bandeau_off\" title=\"Le championnat annuel de Jorkyball\">");

document.write("	Championnat<br>Annuel");

document.write("</td>");

document.write("<td width=\"120px\" id=\"videos\" ONCLICK=\"go(\'videos/Videos.html\')\" ONMOUSEOVER=\"bandeauOn(\'videos\')\" ONMOUSEOUT=\"bandeauOff(\'videos\')\" class=\"bandeau_off\" title=\"Consultez les vidéos tournées au Centre Be Attitude\">");

document.write("	Vidéos");

document.write("</td>");

document.write("<td width=\"120px\" id=\"tarifs\" ONCLICK=\"go(\'jorkyball/Tarif.html\')\" ONMOUSEOVER=\"bandeauOn(\'tarifs\')\" ONMOUSEOUT=\"bandeauOff(\'tarifs\')\" class=\"bandeau_off\" title=\"Les tarifs du foot à 2\">");

document.write("	Tarifs");

document.write("</td>");

document.write("<td width=\"120px\" id=\"horaires\" ONCLICK=\"go(\'centre/Horaires.html\')\" ONMOUSEOVER=\"bandeauOn(\'horaires\')\" ONMOUSEOUT=\"bandeauOff(\'horaires\')\" class=\"bandeau_off\" title=\"Les horaires du centre\">");

document.write("	Horaires");

document.write("</td>");

document.write("<td width=\"120px\" id=\"acces\" ONCLICK=\"go(\'centre/Acces.html\')\" ONMOUSEOVER=\"bandeauOn(\'acces\')\" ONMOUSEOUT=\"bandeauOff(\'acces\')\" class=\"bandeau_off\" title=\"Tout pour rejoindre notre centre\">");

document.write("	Plan d'accès");

document.write("</td>");

document.write("<td width=\"120px\" id=\"contact\" ONCLICK=\"go(\'centre/Contact.html\')\" ONMOUSEOVER=\"bandeauOn(\'contact\')\" ONMOUSEOUT=\"bandeauOff(\'contact\')\" class=\"bandeau_off\" title=\"Envoyer nous un mail\">");

document.write("	Contact");

document.write("</td>");

document.write("<td width=\"120px\" id=\"restaurant\" ONCLICK=\"go(\'clubHouse/CarteRestaurant.html\')\" ONMOUSEOVER=\"bandeauOn(\'restaurant\')\" ONMOUSEOUT=\"bandeauOff(\'restaurant\')\" class=\"bandeau_off\" title=\"Consultez la carte du restaurant\">");

document.write("	Carte du restaurant");

document.write("</td>");

document.write("<td width=\"120px\" id=\"presse\" ONCLICK=\"go(\'centre/Presse.html\')\" ONMOUSEOVER=\"bandeauOn(\'presse\')\" ONMOUSEOUT=\"bandeauOff(\'presse\')\" class=\"bandeau_off\" title=\"Consultez les articles de presse sur Be Attitude\">");

document.write("	Presse");

document.write("</td>");

document.write("</tr>");

document.write("          <tr> ");

document.write("              <td colspan=\"6\" class=\"texteRappel\" align=\"left\">&nbsp; ");

document.write(libRappel);

document.write("              </td>");

document.write("          </tr>");

document.write("    </table>");

}



function getLogoSRC()

{

var srcLogo = document.images("logo").src.toString();

var nomLogo="";

var tab=srcLogo.split("/");

var taille=tab.length;



nomLogo=tab[taille-1];

document.write(nomLogo);

}



function afficheVignette(cheminVignette,cheminMaxi,titre)

	{

	document.write('<A HREF="javascript:afficheMaxi(\''+cheminMaxi+'\', \'' + titre + '\')"><IMG SRC="'+cheminVignette+'" HSPACE=0 VSPACE=0 BORDER=0 ALT="Cliquez pour agrandir la photo"></A>');

	}

function afficheMaxi(chemin,titre)

	{

	i1 = new Image;

	i1.src = chemin;

	html = '<HTML><HEAD><TITLE>' + titre + '</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></CENTER></BODY></HTML>';

	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');

	popupImage.document.open();

	popupImage.document.write(html);

	popupImage.document.close()

	};



function addFav()

{

nav = navigator.appName.substring(0,3);

ver = navigator.appVersion.substring(0,1);



if (nav == "Mic" && ver >= 4)

	{

	url_site="http://www.beattitude.fr";

	titre_site = "Centre BE Attitude";

	window.external.AddFavorite(url_site, titre_site);return(false);

	}

else

	{

	document.write('Faites CTRL+D pour ajouter ce site &agrave; vos favoris!')

	}

	

}	


