
/*---------------------------------------------------------------------------------------------------------------------*/
/*	CONSTANTES GLOBALES																			    */
/*---------------------------------------------------------------------------------------------------------------------*/
	gDataPath		= '' ;
/*---------------------------------------------------------------------------------------------------------------------*/
	gDomaine		= 'anakronic.com' ;
/*---------------------------------------------------------------------------------------------------------------------*/
	gMp3File		= 'album_track' ;
	gMp3Max		= 11 ;
/*---------------------------------------------------------------------------------------------------------------------*/

function STRINGTrack(pTrack)
{
	return (pTrack < 10) ? ('0' + pTrack) : ('' + pTrack + '') ;
}

function HTMLPageMp3Player(pTrack)
{
	var iHTML      = '' ;
	var iUrlPlayer = 'http://www.creationdesitesweb-webartmedia.com/ressources/swf/dewplayer.swf?son=' ;
	var iUrlFile   = 'http://www.' + gDomaine + '/data/mp3/' + gMp3File + '_' + STRINGTrack(pTrack) + '.mp3' ;
	iHTML += '<object ' ;
	iHTML += 'type="application/x-shockwave-flash" ' ;
	iHTML += 'data="' + iUrlPlayer + iUrlFile +'" ' ;
	iHTML += 'style="margin-left: -3px; width: 200px; height: 20px; vertical-align: middle;"' ;
	iHTML += '>' ;
	iHTML += '<param name="movie" value="' + iUrlPlayer + iUrlFile +'" />' ;
	iHTML += '<param name="wmode" value="transparent" />' ;
	iHTML += '</object>' ;
	return iHTML ;
}

function PageMp3Player()
{
	var iHTML = '<div style="display: block; width: 200px; height: 1px;"></div>' ;
	var iI ;
	for (iI = 1 ; iI <= gMp3Max ; iI++)
	{
		iHTML += '<div style="display: block; width: 200px; height: 20px; overflow: hidden; vertical-align: middle;">' + HTMLPageMp3Player(iI) + '</div>' ;
		iHTML += (iI == 10) ? '<div style="display: block; width: 200px; height: 14px;"></div>' : '' ;
	}
	document.write(iHTML) ;
}

function PageLienOver(pLien)
{
	IDOpacity('LIEN_' + pLien,50) ;
}

function PageLienOut(pLien)
{
	IDOpacity('LIEN_' + pLien,100) ;
}

function PageLien(pLien,pUrl,pImage,pWidth,pHeight,pEspace)
{
	var iImage = HTMLPhoto('lien_' + pImage,false,pWidth,pHeight,'0px;','','','','') ;
	var iLien  = '<a id="ID_LIEN_' + pLien + '" target="_blank" href="' + pUrl + '" onmouseover="PageLienOver(' + pLien + ');" onmouseout="PageLienOut(' + pLien + ')">' + iImage + '</a>' ;
	if (pEspace)
	{
		iLien += (pEspace == '-') ? HTMLPhoto('texte_tiret',false,16,16,'0px;','','','','') : HTMLBlock('span','margin-left: ' + pEspace + 'px;','','',true) ;
	}
	document.write(iLien) ;
}

function PagePhoto(pLien,pUrl,pImage,pWidth,pHeight)
{
	var iImage = HTMLPhoto(pImage,false,pWidth,pHeight,'0px;','','','','') ;
	var iLien  = '<a id="ID_LIEN_' + pLien + '" href="' + pUrl + '" onmouseover="PageLienOver(' + pLien + ');" onmouseout="PageLienOut(' + pLien + ')">' + iImage + '</a>' ;
	document.write(iLien) ;
}

function PageAccess()
{
	var iId  = document.admin.identifiant.value ;
	var iMdp = document.admin.motdepasse.value ;
	if ((iId.length > 1) && (iMdp.length > 1))
	{
		document.admin.action = '../server/connexion.php' ;
		document.admin.submit() ;
	}
	else if (iId.length < 2)
	{
		alert('Veuillez saisir votre identifiant...') ;
	}
	else alert('Veuillez saisir votre mot de passe...') ;
}

function PageConcerts()
{
	var iFile = document.concerts.fichier.value ;
	if (iFile.indexOf('.txt') != -1)
	{
		document.concerts.action = '../server/concerts.php' ;
		document.concerts.submit() ;
	}
	else alert('Votre fichier doit être un fichier texte,\n et doit avoir pour extension ".txt"...') ;
}
