
/*---------------------------------------------------------------------------------------------------------------------*/
/* CONSTANTES GLOBALES : PHOTOS																	    */
/*---------------------------------------------------------------------------------------------------------------------*/
	gPhoto		= new Array() ;
/*---------------------------------------------------------------------------------------------------------------------*/
	gPhoto[0]		= new Array() ;
	gPhoto[0][ 0]	= {
					directory: 'divers',
					credit:    'Pierre-Louis Fournel',
					website:   ''
				  } ;
	gPhoto[0][ 1]	= { x: 2047, y: 1468 } ;
	gPhoto[0][ 2]	= { x: 2592, y: 1952 } ;
	gPhoto[0][ 3]	= { x: 2048, y: 1536 } ;
	gPhoto[0][ 4]	= { x: 2592, y: 1952 } ;
/*---------------------------------------------------------------------------------------------------------------------*/
	gPhoto[1]		= new Array() ;
	gPhoto[1][ 0]	= {
					directory: 'puylaurens',
					credit:    'Hugo Vandeputte',
					website:   'http://www.bleu-pastel.org/galerie/main.php'
				  } ;
	gPhoto[1][ 1]	= { x: 3008, y: 2000 } ;
	gPhoto[1][ 2]	= { x: 3008, y: 2000 } ;
	gPhoto[1][ 3]	= { x: 3008, y: 2000 } ;
	gPhoto[1][ 4]	= { x: 3008, y: 2000 } ;
	gPhoto[1][ 5]	= { x: 3008, y: 2000 } ;
	gPhoto[1][ 6]	= { x: 3008, y: 2000 } ;
/*---------------------------------------------------------------------------------------------------------------------*/
	gPhoto[2]		= new Array() ;
	gPhoto[2][ 0]	= {
					directory: 'caussade_1',
					credit:    'Marie Gillon',
					website:   ''
				  } ;
	gPhoto[2][ 1]	= { x: 2048, y: 3072 } ;
	gPhoto[2][ 2]	= { x: 2048, y: 3072 } ;
	gPhoto[2][ 3]	= { x: 2048, y: 3072 } ;
	gPhoto[2][ 4]	= { x: 2048, y: 3072 } ;
	gPhoto[2][ 5]	= { x: 2048, y: 3072 } ;
	gPhoto[2][ 6]	= { x: 2048, y: 3072 } ;
	gPhoto[2][ 7]	= { x: 3072, y: 2048 } ;
	gPhoto[2][ 8]	= { x: 3072, y: 2048 } ;
	gPhoto[2][ 9]	= { x: 3072, y: 2048 } ;
	gPhoto[2][10]	= { x: 3072, y: 2048 } ;
	gPhoto[2][11]	= { x: 3072, y: 2048 } ;
	gPhoto[2][12]	= { x: 3072, y: 2048 } ;
/*---------------------------------------------------------------------------------------------------------------------*/
	gPhoto[3]		= new Array() ;
	gPhoto[3][ 0]	= {
					directory: 'caussade_2',
					credit:    'Hugo Vandeputte',
					website:   'http://www.bleu-pastel.org/galerie/main.php'
			 	 } ;
	gPhoto[3][ 1]	= { x: 3008, y: 2000 } ;
	gPhoto[3][ 2]	= { x: 3008, y: 2000 } ;
	gPhoto[3][ 3]	= { x: 3008, y: 2000 } ;
	gPhoto[3][ 4]	= { x: 3008, y: 2000 } ;
	gPhoto[3][ 5]	= { x: 3008, y: 2000 } ;
	gPhoto[3][ 6]	= { x: 3008, y: 2000 } ;
	gPhoto[3][ 7]	= { x: 3008, y: 2000 } ;
	gPhoto[3][ 8]	= { x: 3008, y: 2000 } ;
	gPhoto[3][ 9]	= { x: 3008, y: 2000 } ;
/*---------------------------------------------------------------------------------------------------------------------*/
	gPhoto[4]		= new Array() ;
	gPhoto[4][ 0]	= {
					directory: 'colomiers',
					credit:    'Hugo Vandeputte',
					website:   'http://www.bleu-pastel.org/galerie/main.php'
				  } ;
	gPhoto[4][ 1]	= { x: 800, y: 529 } ;
	gPhoto[4][ 2]	= { x: 800, y: 529 } ;
	gPhoto[4][ 3]	= { x: 800, y: 529 } ;
	gPhoto[4][ 4]	= { x: 800, y: 529 } ;
	gPhoto[4][ 5]	= { x: 800, y: 529 } ;
	gPhoto[4][ 6]	= { x: 800, y: 529 } ;
	gPhoto[4][ 7]	= { x: 800, y: 529 } ;
	gPhoto[4][ 8]	= { x: 800, y: 529 } ;
	gPhoto[4][ 9]	= { x: 800, y: 529 } ;
	gPhoto[4][10]	= { x: 800, y: 529 } ;
	gPhoto[4][11]	= { x: 800, y: 529 } ;
	gPhoto[4][12]	= { x: 800, y: 529 } ;
	gPhoto[4][13]	= { x: 800, y: 529 } ;
	gPhoto[4][14]	= { x: 800, y: 529 } ;
	gPhoto[4][15]	= { x: 800, y: 529 } ;
	gPhoto[4][16]	= { x: 800, y: 529 } ;
/*---------------------------------------------------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------------------------------------------------*/
/* CONSTANTES GLOBALES : VIDEOS																	    */
/*---------------------------------------------------------------------------------------------------------------------*/
	gVideo		= new Array() ;
/*---------------------------------------------------------------------------------------------------------------------*/
	gVideo[0]		= {
					file:    'carmaux',
					credit:  'Pierre-Louis Fournel',
					website: ''
				} ;
/*---------------------------------------------------------------------------------------------------------------------*/
	gVideo[1]		= {
					file:    'bijou',
					credit:  'Pierre-Louis Fournel',
					website: ''
				} ;
/*---------------------------------------------------------------------------------------------------------------------*/

function EcritPageMedia(pMedia,pString,pNumber,pContent)
{
	if (pContent)
	{
		var iHTML = '' ;
		var iM ;
		iHTML += HTMLBlock('span','','font_jaune_2',glMenuMarkup[3][pNumber],true) ;
		iHTML += HTMLBlock('div','margin: 0px; margin-top: 10px; font-style: normal;','','',false) ;
		for (iM = (pMedia.length - 1) ; iM >= 0 ; iM--)
		{
			iHTML += '&#149;&nbsp;' ;
			iHTML += pMedia[iM].link('javascript: OpenList' + pString + '(' + iM + ');') ;
			iHTML += (iM > 0) ? HTMLBR : '' ;
		}
		iHTML += HTMLCloseDiv ;
		document.write(iHTML) ;
	}
	else
	{
		var iMedia = pString.toUpperCase() ;
		document.getElementById('ID_' + iMedia + '_MENU').style.display = 'block' ;
		document.getElementById('ID_' + iMedia          ).style.display = 'none' ;
	}
}

function OpenListPhotos(pNumber)
{
	var iHTML  = '' ;
	var iBlock = '' ;
	var iLink  = HTMLBouton('back','javascript: EcritPageMedia(glPhoto,\'Photos\',0,false);',0) ;
	var iPhoto ;
	var iWidth ;
	var iHeight ;
	var iDiapoX ;
	var iDiapoY ;
	var iP ;
//	--------------------------------------------------------
//	Définition du contenu de bloc (crédit photo et site Web)
//	--------------------------------------------------------
	iBlock += glCreditPhoto + gl2p ;
	iBlock += gPhoto[pNumber][0].credit ;
	if (gPhoto[pNumber][0].website != '')
	{
		iBlock += HTMLBR ;
		iBlock += glWebsite + gl2p ;
		iBlock += HTMLLink(gPhoto[pNumber][0].website,gPhoto[pNumber][0].website,'','','_blank') ;
	}
//	--------------------------------------------------------
	iHTML += HTMLBlock('span','','font_jaune_2','',false) ;
	iHTML += glMenuMarkup[3][0].link('javascript: EcritPageMedia(glPhoto,\'Photos\',0,false);') ;
	iHTML += HTMLCloseSpan ;
	iHTML += HTMLBlock('div','margin: 0px; margin-top: 10px;','','',false) ;
	iHTML += HTMLBlock('span','','font_jaune_2',glPhoto[pNumber],true) ;
	iHTML += HTMLBR + iBlock ;
	iHTML += HTMLCloseDiv ;
	for (iP = (gPhoto[pNumber].length - 1) ; iP > 0 ; iP--)
	{
		iWidth  = gPhoto[pNumber][iP].x ;
		iHeight = gPhoto[pNumber][iP].y ;
		iDiapoX = (iWidth > iHeight) ? 200 : 100 ;
		iDiapoY = 140 ;
		iPhoto  = (iP < 10) ? ('0' + iP) : iP ;
		iHTML  += HTMLPhotoGallery(iPhoto,gPhoto[pNumber][0].directory,iDiapoX,iDiapoY,'484048') ;
	}
	iHTML += HTMLOpenTable(480,0,'','font_jaune_2') ;
	iHTML += HTMLCellule(0,0,1,'padding-top: 10px;','',iLink,true) ;
	iHTML += HTMLCloseTable ;
	document.getElementById('ID_PHOTOS').innerHTML          = iHTML ;
	document.getElementById('ID_PHOTOS').style.display      = 'block' ;
	document.getElementById('ID_PHOTOS_MENU').style.display = 'none' ;
}

function OpenListVideos(pNumber)
{
	var iHTML      = '' ;
	var iBlock     = '' ;
	var iLink      = HTMLBouton('back','javascript: EcritPageMedia(glVideo,\'Videos\',0,false);',0) ;
	var iUrlPlayer = 'http://www.creationdesitesweb-webartmedia.com/ressources/swf/flvplayer.swf' ;
	var iUrlFile   = 'http://www.' + glDomaine + '/data/flv/bonus_' + gVideo[pNumber].file + '.flv' ;
	var iFlash     = (gl == 'fr') ? 'Adobe&reg; ' + HTMLImage('logo_flash',false,18,18,'0px;','vertical-align: middle;','','','') + ' Flash Player&reg; n&eacute;cessaire (1,136 Ko)' :
							  'Adobe&reg; ' + HTMLImage('logo_flash',false,18,18,'0px;','vertical-align: middle;','','','') + ' Flash Player&reg; required (1.136 KB)';
//	--------------------------------------------------------
//	Définition du contenu de bloc (crédit photo et site Web)
//	--------------------------------------------------------
	iBlock += glCreditVideo + gl2p ;
	iBlock += gVideo[pNumber].credit ;
	if (gVideo[pNumber].website != '')
	{
		iBlock += HTMLBR ;
		iBlock += glWebsite + gl2p ;
		iBlock += HTMLLink(gVideo[pNumber].website,gVideo[pNumber].website,'','','_blank') ;
	}
//	--------------------------------------------------------
	iHTML += HTMLBlock('span','','font_jaune_2','',false) ;
	iHTML += glMenuMarkup[3][1].link('javascript: EcritPageMedia(glVideo,\'Videos\',0,false);') ;
	iHTML += HTMLCloseSpan ;
	iHTML += HTMLBlock('div','margin: 0px; margin-top: 10px;','','',false) ;
	iHTML += HTMLBlock('span','','font_jaune_2',glVideo[pNumber],true) ;
	iHTML += HTMLBR + iBlock ;
	iHTML += HTMLCloseDiv ;
	iHTML += HTMLFlvplayer(iUrlFile,240,180,'ffffff','D8952C','6D8DC4','cadre',false,true) ;
	iHTML += HTMLBR ;
	iHTML += HTMLBlock('span','font-size: 11px;','','',false) ;
	iHTML += (gl == 'fr' ) ? 'Lecteur video sous licence&nbsp;' : 'Video player licensed under&nbsp;' ;
	iHTML += HTMLLink('Creative Commons','http://creativecommons.org/licenses/by-nd/2.0/fr/','','','_blank') ;
	iHTML += HTMLBR ;
	iHTML += HTMLLink(iFlash,'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','','','_blank') ;
	iHTML += HTMLCloseSpan ;
	iHTML += HTMLOpenTable(480,0,'','font_jaune_2') ;
	iHTML += HTMLCellule(0,0,1,'padding-top: 20px;','',iLink,true) ;
	iHTML += HTMLCloseTable ;
	document.getElementById('ID_VIDEOS').innerHTML          = iHTML ;
	document.getElementById('ID_VIDEOS').style.display      = 'block' ;
	document.getElementById('ID_VIDEOS_MENU').style.display = 'none' ;
}

