////////////////////////////////////////////////////////////////////////////////
// =============================================
// début du Script du module média
// =============================================
////////////////////////////////////////////////////////////////////////////////

// =============================================
// declaration des variables du module media
// =============================================

var photos=new Array()
//var imagesLink=new Array()
var videosLink=new Array()
var internetsLink=new Array()
var flashsLink=new Array()
var evenementielLink=new Array()
var which=0

// Définition du chemin de l'image. Vous pouvez en mettre aurant que vous le désirez

photos[0]="image00.jpg"
photos[1]="image01.jpg"
photos[2]="image02.jpg"
photos[3]="image03.jpg"
photos[4]="image04.jpg"
photos[5]="image05.jpg"
photos[6]="image06.jpg"
photos[7]="image07.jpg"
photos[8]="image08.jpg"
photos[9]="image09.jpg"
photos[10]="image10.jpg"
photos[11]="image11.jpg"
photos[12]="image12.jpg"
photos[13]="image13.jpg"
photos[14]="image14.jpg"
photos[15]="image15.jpg"
photos[16]="image16.jpg"
photos[17]="image17.jpg"
photos[18]="image18.jpg"
photos[19]="image19.jpg"
photos[20]="image20.jpg"
photos[21]="image21.jpg"
photos[22]="image22.jpg"
photos[23]="image23.jpg"
photos[24]="image24.jpg"
photos[25]="image25.jpg"
photos[26]="image26.jpg"
photos[27]="image27.jpg"
photos[28]="image28.jpg"
photos[29]="image29.jpg"
photos[30]="image30.jpg"
photos[31]="image31.jpg"
photos[32]="image32.jpg"
photos[33]="image33.jpg"
photos[34]="image34.jpg"
photos[35]="image35.jpg"
photos[36]="image36.jpg"
photos[37]="image37.jpg"
photos[38]="image38.jpg"
photos[39]="image39.jpg"
photos[40]="image40.jpg"
photos[41]="image41.jpg"
photos[42]="image42.jpg"
photos[43]="image43.jpg"
photos[44]="image44.jpg"
photos[45]="image45.jpg"
photos[46]="image46.jpg"
photos[47]="image47.jpg"
photos[48]="image48.jpg"
photos[49]="image49.jpg"
photos[50]="image50.jpg"
photos[51]="image51.jpg"
photos[52]="image52.jpg"
photos[53]="image53.jpg"
photos[54]="image54.jpg"
photos[55]="image55.jpg"
photos[56]="image56.jpg"
photos[57]="image57.jpg"
photos[58]="image58.jpg"
photos[59]="image59.jpg"
photos[60]="image60.jpg"
photos[61]="image61.jpg"
photos[62]="image62.jpg"
photos[63]="image63.jpg"
photos[64]="image64.jpg"
photos[65]="image65.jpg"
photos[66]="image66.jpg"
photos[67]="image67.jpg"
photos[68]="image68.jpg"
photos[69]="image69.jpg"
photos[70]="image70.jpg"
photos[71]="image71.jpg"
photos[72]="image72.jpg"
photos[73]="image73.jpg"
photos[74]="image74.jpg"
photos[75]="image75.jpg"
photos[76]="image76.jpg"
photos[77]="image77.jpg"
photos[78]="image78.jpg"
photos[79]="image79.jpg"
photos[80]="image80.jpg"
photos[81]="image81.jpg"
photos[82]="image82.jpg"
photos[83]="image83.jpg"
photos[84]="image84.jpg"
photos[85]="image85.jpg"
photos[86]="image86.jpg"
photos[87]="image87.jpg"
photos[88]="image88.jpg"
photos[89]="image89.jpg"
photos[90]="image90.jpg"
photos[91]="image91.jpg"
photos[92]="image92.jpg"
photos[93]="image93.jpg"
photos[94]="image94.jpg"
photos[95]="image95.jpg"
photos[96]="image96.jpg"
photos[97]="image97.jpg"
photos[98]="image98.jpg"
photos[99]="image99.jpg"
photos[100]="image100.jpg"
photos[101]="image101.jpg"
photos[102]="image102.jpg"
photos[103]="image103.jpg"
photos[104]="image104.jpg"
photos[105]="image105.jpg"
photos[106]="image106.jpg"
photos[107]="image107.jpg"
photos[108]="image108.jpg"
photos[109]="image109.jpg"
photos[110]="image110.jpg"
photos[111]="image111.jpg"
photos[112]="image112.jpg"
photos[113]="image113.jpg"
photos[114]="image114.jpg"
photos[115]="image115.jpg"
photos[116]="image116.jpg"
photos[117]="image117.jpg"
photos[118]="image118.jpg"
photos[119]="image119.jpg"
photos[120]="image120.jpg"
photos[121]="image121.jpg"
photos[122]="image122.jpg"
photos[123]="image123.jpg"
photos[124]="image124.jpg"
photos[125]="image125.jpg"
photos[126]="image126.jpg"
photos[127]="image127.jpg"
photos[128]="image128.jpg"
photos[129]="image129.jpg"
photos[130]="image130.jpg"
photos[131]="image131.jpg"
photos[132]="image132.jpg"
photos[133]="image133.jpg"
photos[134]="image134.jpg"
photos[135]="image135.jpg"
photos[136]="image136.jpg"
photos[137]="image137.jpg"
photos[138]="image138.jpg"
photos[139]="image139.jpg"
photos[140]="image140.jpg"
photos[141]="image141.jpg"
photos[142]="image142.jpg"
photos[143]="image143.jpg"
photos[144]="image144.jpg"
photos[145]="image145.jpg"
photos[146]="image146.jpg"
photos[147]="image147.jpg"
photos[148]="image148.jpg"
photos[149]="image149.jpg"
photos[150]="image150.jpg"
photos[151]="image151.jpg"
photos[152]="image152.jpg"
photos[153]="image153.jpg"
photos[154]="image154.jpg"
photos[155]="image155.jpg"
photos[156]="image156.jpg"
photos[157]="image157.jpg"
photos[158]="image158.jpg"
photos[159]="image159.jpg"
photos[160]="image160.jpg"
photos[161]="image161.jpg"
photos[162]="image162.jpg"
photos[163]="image163.jpg"
photos[164]="image164.jpg"
photos[165]="image165.jpg"
photos[166]="image166.jpg"
photos[167]="image167.jpg"
photos[168]="image168.jpg"
photos[169]="image169.jpg"
photos[170]="image170.jpg"
photos[171]="image171.jpg"
photos[172]="image172.jpg"
photos[173]="image173.jpg"
photos[174]="image174.jpg"
photos[175]="image175.jpg"
photos[176]="image176.jpg"
photos[177]="image177.jpg"
photos[178]="image178.jpg"
photos[179]="image179.jpg"
photos[180]="image180.jpg"
photos[181]="image181.jpg"
photos[182]="image182.jpg"
photos[183]="image183.jpg"
photos[184]="image184.jpg"
photos[185]="image185.jpg"
photos[186]="image186.jpg"
photos[187]="image187.jpg"
photos[188]="image188.jpg"
photos[189]="image189.jpg"
photos[190]="image190.jpg"
photos[191]="image191.jpg"
photos[192]="image192.jpg"
photos[193]="image193.jpg"
photos[194]="image194.jpg"
photos[195]="image195.jpg"
photos[196]="image196.jpg"
photos[197]="image197.jpg"
photos[198]="image198.jpg"
photos[199]="image199.jpg"
photos[200]="image200.jpg"

// Spécifiez si l'image doit être cliquable ou pas : 0 = non - 1 = oui

//var linkornot=1
// Section Tv-Video; Inscrivez l'URL de chaque video entre les "". Ne le faire que si la variable "linkornot==1"

videosLink[0]="vogue.html"
videosLink[1]="maCuisinePlaisir.html"
videosLink[2]="spotTvHoLa.html"
videosLink[3]="airFranceMadame.html"
videosLink[4]="DecauxSenior.html"
videosLink[5]="SpotTVNotreTemps.html"
videosLink[6]="Numero.html"
videosLink[7]="Premiere.html"
videosLink[8]="DecauxAirport.html"
videosLink[9]="CoteFemme.html"
videosLink[10]="Numero2.html"
videosLink[11]="poucette.html"
videosLink[12]="expressStyles.html"
videosLink[13]="bayard.html"

// Section Internet; Inscrivez l'URL de la section "internet" entre les "". Ne le faire que si la variable "linkornot==2"

internetsLink[0]="http://www.johngallianoparfums.com/"
internetsLink[1]="http://www.numero-magazine.com/"
internetsLink[2]="http://www.restaurantpassiflore.com/"
internetsLink[3]="http://www.decoclico.fr"
internetsLink[4]="http://www.voguepub.com"
internetsLink[5]="http://www.cavesteve.com"
internetsLink[6]="http://www.nabu.fr"
internetsLink[7]="http://www.abaca-home.com"
internetsLink[8]="webSite/cosmopub/index.html"
internetsLink[9]="webSite/elleaparispub/index.html"
internetsLink[10]="http://www.fritz-associes.com"
internetsLink[11]="images/internet/phosphore/index.html"
internetsLink[12]="http://www.ma-dc.com"
internetsLink[13]="http://www.numeropub.com"
internetsLink[14]="http://www.pack3.fr"
internetsLink[15]="http://www.aucoeurdesecoles.com/"
internetsLink[16]="http://www.thestylepress.com"
internetsLink[17]="http://www.winaretta.com"
internetsLink[18]="http://www.zstyledeco.com"
internetsLink[19]="http://www.dhpregie.com/"
internetsLink[20]="http://www.autover.fr"
internetsLink[21]="emailling/Vogue/supplementEnfants/juillet_2008/index.html"
internetsLink[22]="emailling/cosmopolitan/supplementSexe/index.html"
internetsLink[23]="emailling/ELLE/EapRegions/EapRegions.html"
internetsLink[24]="emailling/Equipe/equipe/index.html"
internetsLink[25]="emailling/cosmopolitan/septSpecialMode/index.html"
internetsLink[26]="emailling/Figaro/ParoleDeVendeurs/index.html"
internetsLink[27]="emailling/LeMonde/index.html"
internetsLink[28]="emailling/marieFrance/lesQuarantenairesRugissantes/index.html"
internetsLink[29]="emailling/numero/index.html"
internetsLink[30]="emailling/muse/index.html"
internetsLink[31]="emailling/distrb-info/index.html"
internetsLink[32]="emailling/cosmopolitan/VotreBeaute/index.html"
internetsLink[33]="emailling/airFrance/index.html"
internetsLink[34]="http://www.telegenik.fr"
internetsLink[35]="http://www.macuisineplaisir.fr"
internetsLink[36]="http://www.collectionnerlafrance.fr"
internetsLink[37]="http://www.volaudessusdelafrance.com"
internetsLink[38]="http://www.englishtoday.fr/"
internetsLink[39]="emailling/Vogue/supplementEnfants/avril_2008/emailingHtml/emailingFr.html"
internetsLink[40]="http://www.zstyledeco.com/"
internetsLink[41]="http://www.agencete.com/saintgermainexecutive/index.html"
internetsLink[42]=""
internetsLink[43]=""
internetsLink[44]=""
internetsLink[45]=""
internetsLink[46]=""
internetsLink[47]=""
internetsLink[48]=""
internetsLink[49]=""
internetsLink[50]=""
internetsLink[51]=""
internetsLink[52]=""
internetsLink[53]=""
internetsLink[54]=""
internetsLink[55]=""
internetsLink[56]=""
internetsLink[57]=""
internetsLink[58]=""
internetsLink[59]=""
internetsLink[60]=""
internetsLink[61]=""
internetsLink[62]=""
internetsLink[63]=""
internetsLink[64]=""
internetsLink[65]=""
internetsLink[66]=""
internetsLink[67]=""
internetsLink[68]=""
internetsLink[69]=""
internetsLink[70]=""
internetsLink[71]=""
internetsLink[72]=""
internetsLink[73]=""
internetsLink[74]=""
internetsLink[75]=""
internetsLink[76]=""
internetsLink[77]=""
internetsLink[78]=""
internetsLink[79]=""
internetsLink[80]=""
internetsLink[81]=""
internetsLink[82]=""
internetsLink[83]=""
internetsLink[84]=""
internetsLink[85]=""
internetsLink[86]=""
internetsLink[87]=""
internetsLink[88]=""
internetsLink[89]=""
internetsLink[90]=""
internetsLink[91]=""
internetsLink[92]=""
internetsLink[93]=""
internetsLink[94]=""
internetsLink[95]=""
internetsLink[96]=""
internetsLink[97]=""
internetsLink[98]=""
internetsLink[99]=""



// Section Flash;Inscrivez l'URL de chaque flash entre les "". Ne le faire que si la variable "linkornot==3"

flashsLink[0]="elleATable_vin.html"
flashsLink[1]=""
flashsLink[2]=""
flashsLink[3]=""
flashsLink[4]=""
flashsLink[5]=""

// Section Evenementiel; Inscrivez l'URL de chaque video entre les "". Ne le faire que si la variable "linkornot==4"

evenementielLink[0]="undefined"
evenementielLink[1]="undefined"
evenementielLink[2]="undefined"
evenementielLink[3]="undefined"
evenementielLink[4]="undefined"
evenementielLink[5]="undefined"
evenementielLink[6]="undefined"
evenementielLink[7]="undefined"
evenementielLink[8]="undefined"
evenementielLink[9]="undefined"
evenementielLink[10]="undefined"
evenementielLink[11]="undefined"
evenementielLink[12]="complex.html"

// NE RIEN EDITER AU-DESSOUS DE CETTE LIGNE.

/*
function applyeffect(){
if (document.all && photoslider.filters){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}

function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.revealTrans.play()
}

function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}
*/

// =====================================================
// fonctions des boutons de navigation du module media
// =====================================================

function backward(){
if (which>0){
which--
//applyeffect()
document.images.photoslider.src=directoryImages+photos[which]
//playeffect()
//keeptrack()
}
}

function forward(){
if (which<nbrImages-1){
which++
//applyeffect()
document.images.photoslider.src=directoryImages+photos[which]
//playeffect()
//keeptrack()
}
}

//function transport(){
//MM_openBrWindow(directoryMedia+imagesLink[which],'','_blank')
//}


function transportVideo(){
MM_openBrWindowMedia(directoryMedia+videosLink[which],'','width=640,height=480,menubar=no,scrollbars=no,statusbar=no')
}

function transportInternet(){
MM_openBrWindowMedia(internetsLink[which],'','height=1280,width=1024,resizable=yes,menubar=yes,toolbar=yes,location=yes,status=yes,scrollbars=yes')
}

function transportflash(){
MM_openBrWindowMedia(directoryMedia+flashsLink[which],'','width=640,height=480,menubar=no,scrollbars=no,statusbar=no')
}

function transportEvenementiel(){
	if (evenementielLink[which]=="undefined") { 
}else{ 
MM_openBrWindowMedia(directoryMedia+evenementielLink[which],'','width=640,height=480,menubar=no,scrollbars=no,statusbar=no')
}
}

/*function transportEvenementiel(){
MM_openBrWindowMedia(directoryMedia+evenementielLink[which],'','width=640,height=480,menubar=no,scrollbars=no,statusbar=no')
}*/

//function mainPage(){
//window.location=directoryVideo+internetsLink[which]
//}

// =================================================
// script pour le preload des images du module media
// =================================================

var preloadedimages=new Array()
for (i=1;i<directoryImages+photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=directoryImages+photos[i]
}

function MM_openBrWindowMedia(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}