/******************************************************************************
» Projet:	ElasticJump
» Version:	3
» Créateur:	Nicolas TEODORI
» Fichier:	scripts/javascript.js
******************************************************************************/

function annonceClignotante(annonce)
{
	var a = document.getElementById("texte_annonce");
	if(a.innerHTML == "" || !a)
	{
		a.innerHTML = annonce;
	}
	else
	{
		a.innerHTML = "";
	}
}

function apercuGrandeTaille(photo)
{
	window.open(""+photo+"", "apercu", "width=800,height=800");
}

function miniatureOn(id)
{
	var photo = document.getElementById(id);
	photo.style.cursor='pointer';
	photo.style.border='1px #0000ff solid';
}

function miniatureOff(id)
{
	var photo = document.getElementById(id);
	photo.style.cursor='default';
	photo.style.border='1px #000 solid';
}

function texteGras()
{
	var desc = document.forms[0].elements["description"];
	desc.value += "[gras]<-- Mettez le texte entre ces 2 blocs -->[/gras]";
}

function texteItalique()
{
	var desc = document.forms[0].elements["description"];
	desc.value += "[italique]<-- Mettez le texte entre ces 2 blocs -->[/italique]";
}

function texteSouligne()
{
	var desc = document.forms[0].elements["description"];
	desc.value += "[souligne]<-- Mettez le texte entre ces 2 blocs -->[/souligne]";
}

function texteAlignGauche()
{
	var desc = document.forms[0].elements["description"];
	desc.value += "[gauche]<-- Mettez le texte entre ces 2 blocs -->[/gauche]";
}

function texteCentre()
{
	var desc = document.forms[0].elements["description"];
	desc.value += "[centre]<-- Mettez le texte entre ces 2 blocs -->[/centre]";
}

function texteAlignDroite()
{
	var desc = document.forms[0].elements["description"];
	desc.value += "[droite]<-- Mettez le texte entre ces 2 blocs -->[/droite]";
}

function texteJustifie()
{
	var desc = document.forms[0].elements["description"];
	desc.value += "[justifie]<-- Mettez le texte entre ces 2 blocs -->[/justifie]";
}