
var DaysList = new Array("Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche");
var MonthsList = new Array("Janvier", "F&#233;vrier", "Mars", "Avril", "Mai", "Juin", "Juillet", "Ao&#251;t", "Septembre", "Octobre", "Novembre", "D&#233;cembre");
var DetailsURL = "/actualite/calendrier/calendar.xhtml"
var Content = new Array();
var Seasons = new Array();
var Disneyland_Park_Content = {"Class" : "Park", "Name" : "Disneyland Park" ,"01032010" : "10:00-19:00","02032010" : "10:00-19:00","03032010" : "10:00-19:00","04032010" : "10:00-19:00","05032010" : "10:00-19:00","06032010" : "10:00-22:00","07032010" : "10:00-21:00","08032010" : "10:00-19:00","09032010" : "10:00-19:00","10032010" : "10:00-19:00","11032010" : "10:00-19:00","12032010" : "10:00-19:00","13032010" : "10:00-22:00","14032010" : "10:00-22:00","15032010" : "10:00-19:00","16032010" : "10:00-19:00","17032010" : "10:00-20:00","18032010" : "10:00-19:00","19032010" : "10:00-19:00","20032010" : "9:30-22:00","21032010" : "9:30-22:00","22032010" : "10:00-19:00","23032010" : "10:00-19:00","24032010" : "10:00-19:00","25032010" : "10:00-19:00","26032010" : "10:00-19:00","27032010" : "9:30-22:00","28032010" : "9:30-22:00","29032010" : "10:00-20:00","30032010" : "10:00-20:00","31032010" : "10:00-20:00","01042010" : "10:00-20:00","02042010" : "10:00-20:00","03042010" : "10:00-22:00","04042010" : "10:00-22:00","05042010" : "10:00-21:00","06042010" : "10:00-20:00","07042010" : "10:00-20:00","08042010" : "10:00-20:00","09042010" : "10:00-20:00","10042010" : "10:00-22:00","11042010" : "10:00-21:00","12042010" : "10:00-20:00","13042010" : "10:00-20:00","14042010" : "10:00-20:00","15042010" : "10:00-20:00","16042010" : "10:00-20:00","17042010" : "10:00-22:00","18042010" : "10:00-21:00","19042010" : "10:00-20:00","20042010" : "10:00-20:00","21042010" : "10:00-20:00","22042010" : "10:00-20:00","23042010" : "10:00-20:00","24042010" : "10:00-22:00","25042010" : "10:00-21:00","26042010" : "10:00-20:00","27042010" : "10:00-20:00","28042010" : "10:00-20:00","29042010" : "10:00-20:00","30042010" : "10:00-20:00","01052010" : "10:00-22:00","02052010" : "10:00-21:00","03052010" : "10:00-19:00","04052010" : "10:00-19:00","05052010" : "10:00-19:00","06052010" : "10:00-19:00","07052010" : "10:00-19:00","08052010" : "10:00-22:00","09052010" : "10:00-21:00","10052010" : "10:00-19:00","11052010" : "10:00-19:00","12052010" : "10:00-19:00","13052010" : "10:00-22:00","14052010" : "10:00-22:00","15052010" : "10:00-22:00","16052010" : "10:00-21:00","17052010" : "10:00-19:00","18052010" : "10:00-19:00","19052010" : "10:00-19:00","20052010" : "10:00-19:00","21052010" : "10:00-19:00","22052010" : "10:00-22:00","23052010" : "10:00-22:00","24052010" : "10:00-21:00","25052010" : "10:00-19:00","26052010" : "10:00-19:00","27052010" : "10:00-19:00","28052010" : "10:00-19:00","29052010" : "09:30-22:00","30052010" : "09:30-22:00","31052010" : "10:00-19:00","01062010" : "10:00-19:00","02062010" : "10:00-19:00","03062010" : "10:00-19:00","04062010" : "10:00-19:00","05062010" : "09:30-22:00","06062010" : "09:30-22:00","07062010" : "10:00-19:00","08062010" : "10:00-19:00","09062010" : "10:00-19:00","10062010" : "10:00-19:00","11062010" : "10:00-19:00","12062010" : "09:30-22:00","13062010" : "09:30-22:00","14062010" : "10:00-19:00","15062010" : "10:00-19:00","16062010" : "10:00-19:00","17062010" : "10:00-19:00","18062010" : "10:00-19:00","19062010" : "09:30-22:00","20062010" : "09:30-22:00","21062010" : "10:00-20:00","22062010" : "10:00-20:00","23062010" : "10:00-20:00","24062010" : "10:00-20:00","25062010" : "10:00-20:00","26062010" : "09:30-22:00","27062010" : "09:30-22:00","28062010" : "10:00-21:00","29062010" : "10:00-21:00","30062010" : "10:00-21:00","01072010" : "10:00-21:00","02072010" : "10:00-21:00","03072010" : "10:00-23:00","04072010" : "10:00-23:00","05072010" : "10:00-23:00","06072010" : "10:00-23:00","07072010" : "10:00-23:00","08072010" : "10:00-23:00","09072010" : "10:00-23:00","10072010" : "10:00-23:00","11072010" : "10:00-23:00","12072010" : "10:00-23:00","13072010" : "10:00-23:00","14072010" : "10:00-23:00","15072010" : "10:00-23:00","16072010" : "10:00-23:00","17072010" : "10:00-23:00","18072010" : "10:00-23:00","19072010" : "10:00-23:00","20072010" : "10:00-23:00","21072010" : "10:00-23:00","22072010" : "10:00-23:00","23072010" : "10:00-23:00","24072010" : "10:00-23:00","25072010" : "10:00-23:00","26072010" : "10:00-23:00","27072010" : "10:00-23:00","28072010" : "10:00-23:00","29072010" : "10:00-23:00","30072010" : "10:00-23:00","31072010" : "10:00-23:00","01082010" : "10:00-23:00","02082010" : "10:00-23:00","03082010" : "10:00-23:00","04082010" : "10:00-23:00","05082010" : "10:00-23:00","06082010" : "10:00-23:00","07082010" : "10:00-23:00","08082010" : "10:00-23:00","09082010" : "10:00-23:00","10082010" : "10:00-23:00","11082010" : "10:00-23:00","12082010" : "10:00-23:00","13082010" : "10:00-23:00","14082010" : "10:00-23:00","15082010" : "10:00-23:00","16082010" : "10:00-23:00","17082010" : "10:00-23:00","18082010" : "10:00-23:00","19082010" : "10:00-23:00","20082010" : "10:00-23:00","21082010" : "10:00-23:00","22082010" : "10:00-23:00","23082010" : "10:00-23:00","24082010" : "10:00-23:00","25082010" : "10:00-23:00","26082010" : "10:00-23:00","27082010" : "10:00-23:00","28082010" : "10:00-23:00","29082010" : "10:00-23:00","30082010" : "10:00-19:00","31082010" : "10:00-19:00","01092010" : "10:00-19:00","02092010" : "10:00-19:00","03092010" : "10:00-19:00","04092010" : "10:00-21:00","05092010" : "10:00-21:00","06092010" : "10:00-18:00","07092010" : "10:00-18:00","08092010" : "10:00-18:00","09092010" : "10:00-18:00","10092010" : "10:00-18:00","11092010" : "10:00-22:00","12092010" : "10:00-21:00","13092010" : "10:00-18:00","14092010" : "10:00-18:00","15092010" : "10:00-18:00","16092010" : "10:00-18:00","17092010" : "10:00-18:00","18092010" : "10:00-22:00","19092010" : "10:00-21:00","20092010" : "10:00-18:00","21092010" : "10:00-18:00","22092010" : "10:00-18:00","23092010" : "10:00-18:00","24092010" : "10:00-18:00","25092010" : "10:00-22:00","26092010" : "10:00-21:00","27092010" : "10:00-18:00","28092010" : "10:00-18:00","29092010" : "10:00-18:00","30092010" : "10:00-18:00","01102010" : "10:00-18:00","02102010" : "10:00-20:00","03102010" : "10:00-20:00","04102010" : "10:00-18:00","05102010" : "10:00-18:00","06102010" : "10:00-18:00","07102010" : "10:00-18:00","08102010" : "10:00-18:00","09102010" : "10:00-22:00","10102010" : "10:00-21:00","11102010" : "10:00-19:00","12102010" : "10:00-19:00","13102010" : "10:00-19:00","14102010" : "10:00-19:00","15102010" : "10:00-19:00","16102010" : "10:00-22:00","17102010" : "10:00-21:00","18102010" : "10:00-19:00","19102010" : "10:00-19:00","20102010" : "10:00-19:00","21102010" : "10:00-19:00","22102010" : "10:00-19:00","23102010" : "10:00-22:00","24102010" : "10:00-22:00","25102010" : "10:00-22:00","26102010" : "09:30-19:00","27102010" : "10:00-22:00","28102010" : "10:00-22:00","29102010" : "10:00-22:00","30102010" : "10:00-22:00","31102010" : "09:30-20:00","01112010" : "10:00-20:00","02112010" : "10:00-19:00","03112010" : "10:00-19:00","04112010" : "10:00-19:00","05112010" : "10:00-19:00","06112010" : "09:00-19:00","07112010" : "10:00-20:00","08112010" : "10:00-19:00","09112010" : "10:00-19:00","10112010" : "10:00-19:00","11112010" : "10:00-21:00","12112010" : "10:00-21:00","13112010" : "09:00-21:00","14112010" : "10:00-21:00","15112010" : "10:00-19:00","16112010" : "10:00-19:00","17112010" : "10:00-19:00","18112010" : "10:00-19:00","19112010" : "10:00-19:00","20112010" : "09:00-22:00","21112010" : "09:00-22:00","22112010" : "10:00-19:00","23112010" : "10:00-19:00","24112010" : "10:00-19:00","25112010" : "10:00-19:00","26112010" : "10:00-19:00","27112010" : "09:00-22:00","28112010" : "09:00-22:00","29112010" : "10:00-19:00","30112010" : "10:00-19:00","01122010" : "10:00-19:00","02122010" : "10:00-19:00","03122010" : "10:00-19:00","04122010" : "09:00-22:00","05122010" : "09:00-22:00","06122010" : "10:00-19:00","07122010" : "10:00-19:00","08122010" : "10:00-19:00","09122010" : "10:00-19:00","10122010" : "10:00-19:00","11122010" : "09:00-22:00","12122010" : "09:00-22:00","13122010" : "10:00-19:00","14122010" : "10:00-19:00","15122010" : "10:00-19:00","16122010" : "10:00-19:00","17122010" : "10:00-19:00","18122010" : "09:30-22:00","19122010" : "09:30-22:00","20122010" : "09:30-22:00","21122010" : "09:30-22:00","22122010" : "09:30-22:00","23122010" : "09:30-22:00","24122010" : "09:30-22:00","25122010" : "09:30-22:00","26122010" : "09:30-22:00","27122010" : "09:30-22:00","28122010" : "09:30-22:00","29122010" : "09:30-22:00","30122010" : "09:30-22:00","31122010" : "10:00-01:00","01012011" : "10:00-22:00","02012011" : "10:00-21:00","03012011" : "10:00-19:00","04012011" : "10:00-19:00","05012011" : "10:00-19:00","06012011" : "10:00-19:00","07012011" : "10:00-19:00","08012011" : "10:00-21:00","09012011" : "10:00-20:00","10012011" : "10:00-18:00","11012011" : "10:00-18:00","12012011" : "10:00-18:00","13012011" : "10:00-18:00","14012011" : "10:00-18:00","15012011" : "10:00-21:00","16012011" : "10:00-20:00","17012011" : "10:00-18:00","18012011" : "10:00-18:00","19012011" : "10:00-18:00","20012011" : "10:00-18:00","21012011" : "10:00-18:00","22012011" : "10:00-21:00","23012011" : "10:00-20:00","24012011" : "10:00-18:00","25012011" : "10:00-18:00","26012011" : "10:00-18:00","27012011" : "10:00-18:00","28012011" : "10:00-18:00","29012011" : "10:00-21:00","30012011" : "10:00-20:00","31012011" : "10:00-18:00","01022011" : "10:00-18:00","02022011" : "10:00-18:00","03022011" : "10:00-18:00","04022011" : "10:00-18:00","05022011" : "10:00-21:00","06022011" : "10:00-20:00","07022011" : "10:00-18:00","08022011" : "10:00-18:00","09022011" : "10:00-18:00","10022011" : "10:00-18:00","11022011" : "10:00-18:00","12022011" : "10:00-21:00","13022011" : "10:00-20:00","14022011" : "10:00-19:00","15022011" : "10:00-19:00","16022011" : "10:00-19:00","17022011" : "10:00-19:00","18022011" : "10:00-19:00","19022011" : "10:00-21:00","20022011" : "10:00-20:00","21022011" : "10:00-20:00","22022011" : "10:00-20:00","23022011" : "10:00-20:00","24022011" : "10:00-20:00","25022011" : "10:00-20:00","26022011" : "10:00-21:00","27022011" : "10:00-20:00","28022011" : "10:00-20:00"};
Content.push(Disneyland_Park_Content);
var Walt_Disney_Studios_Content = {"Class" : "Studios", "Name" : "Walt Disney Studios" ,"01032010" : "10:00-18:00","02032010" : "10:00-18:00","03032010" : "10:00-18:00","04032010" : "10:00-18:00","05032010" : "10:00-18:00","06032010" : "10:00-19:00","07032010" : "10:00-19:00","08032010" : "10:00-18:00","09032010" : "10:00-18:00","10032010" : "10:00-18:00","11032010" : "10:00-18:00","12032010" : "10:00-18:00","13032010" : "10:00-19:00","14032010" : "10:00-19:00","15032010" : "10:00-18:00","16032010" : "10:00-18:00","17032010" : "10:00-18:00","18032010" : "10:00-18:00","19032010" : "10:00-18:00","20032010" : "10:00-19:00","21032010" : "10:00-19:00","22032010" : "10:00-18:00","23032010" : "10:00-18:00","24032010" : "10:00-18:00","25032010" : "10:00-18:00","26032010" : "10:00-18:00","27032010" : "10:00-19:00","28032010" : "10:00-19:00","29032010" : "10:00-19:00","30032010" : "10:00-19:00","31032010" : "10:00-19:00","01042010" : "10:00-19:00","02042010" : "10:00-19:00","03042010" : "10:00-19:00","04042010" : "10:00-19:00","05042010" : "10:00-19:00","06042010" : "10:00-19:00","07042010" : "10:00-19:00","08042010" : "10:00-19:00","09042010" : "10:00-19:00","10042010" : "10:00-19:00","11042010" : "10:00-19:00","12042010" : "10:00-19:00","13042010" : "10:00-19:00","14042010" : "10:00-19:00","15042010" : "10:00-19:00","16042010" : "10:00-19:00","17042010" : "10:00-19:00","18042010" : "10:00-19:00","19042010" : "10:00-19:00","20042010" : "10:00-19:00","21042010" : "10:00-19:00","22042010" : "10:00-19:00","23042010" : "10:00-19:00","24042010" : "10:00-19:00","25042010" : "10:00-19:00","26042010" : "10:00-19:00","27042010" : "10:00-19:00","28042010" : "10:00-19:00","29042010" : "10:00-19:00","30042010" : "10:00-19:00","01052010" : "10:00-19:00","02052010" : "10:00-19:00","03052010" : "10:00-18:00","04052010" : "10:00-18:00","05052010" : "10:00-18:00","06052010" : "10:00-18:00","07052010" : "10:00-18:00","08052010" : "10:00-19:00","09052010" : "10:00-19:00","10052010" : "10:00-18:00","11052010" : "10:00-18:00","12052010" : "10:00-18:00","13052010" : "10:00-19:00","14052010" : "10:00-19:00","15052010" : "10:00-19:00","16052010" : "10:00-19:00","17052010" : "10:00-18:00","18052010" : "10:00-18:00","19052010" : "10:00-18:00","20052010" : "10:00-18:00","21052010" : "10:00-18:00","22052010" : "10:00-19:00","23052010" : "10:00-19:00","24052010" : "10:00-19:00","25052010" : "10:00-18:00","26052010" : "10:00-18:00","27052010" : "10:00-18:00","28052010" : "10:00-18:00","29052010" : "10:00-19:00","30052010" : "10:00-19:00","31052010" : "10:00-19:00","01062010" : "10:00-19:00","02062010" : "10:00-19:00","03062010" : "10:00-19:00","04062010" : "10:00-19:00","05062010" : "10:00-19:00","06062010" : "10:00-19:00","07062010" : "10:00-19:00","08062010" : "10:00-19:00","09062010" : "10:00-19:00","10062010" : "10:00-19:00","11062010" : "10:00-19:00","12062010" : "10:00-19:00","13062010" : "10:00-19:00","14062010" : "10:00-19:00","15062010" : "10:00-19:00","16062010" : "10:00-19:00","17062010" : "10:00-19:00","18062010" : "10:00-19:00","19062010" : "10:00-19:00","20062010" : "10:00-19:00","21062010" : "10:00-19:00","22062010" : "10:00-19:00","23062010" : "10:00-19:00","24062010" : "10:00-19:00","25062010" : "10:00-19:00","26062010" : "10:00-19:00","27062010" : "10:00-19:00","28062010" : "10:00-19:00","29062010" : "10:00-19:00","30062010" : "10:00-19:00","01072010" : "10:00-19:00","02072010" : "10:00-19:00","03072010" : "10:00-19:00","04072010" : "10:00-19:00","05072010" : "10:00-19:00","06072010" : "10:00-19:00","07072010" : "10:00-19:00","08072010" : "10:00-19:00","09072010" : "10:00-19:00","10072010" : "10:00-19:00","11072010" : "10:00-19:00","12072010" : "10:00-19:00","13072010" : "10:00-19:00","14072010" : "10:00-19:00","15072010" : "10:00-19:00","16072010" : "10:00-19:00","17072010" : "10:00-19:00","18072010" : "10:00-19:00","19072010" : "10:00-19:00","20072010" : "10:00-19:00","21072010" : "10:00-19:00","22072010" : "10:00-19:00","23072010" : "10:00-19:00","24072010" : "10:00-19:00","25072010" : "10:00-19:00","26072010" : "10:00-19:00","27072010" : "10:00-19:00","28072010" : "10:00-19:00","29072010" : "10:00-19:00","30072010" : "10:00-19:00","31072010" : "10:00-19:00","01082010" : "10:00-19:00","02082010" : "10:00-19:00","03082010" : "10:00-19:00","04082010" : "10:00-19:00","05082010" : "10:00-19:00","06082010" : "10:00-19:00","07082010" : "10:00-19:00","08082010" : "10:00-19:00","09082010" : "10:00-19:00","10082010" : "10:00-19:00","11082010" : "10:00-19:00","12082010" : "10:00-19:00","13082010" : "10:00-19:00","14082010" : "10:00-19:00","15082010" : "10:00-19:00","16082010" : "10:00-19:00","17082010" : "10:00-19:00","18082010" : "10:00-19:00","19082010" : "10:00-19:00","20082010" : "10:00-19:00","21082010" : "10:00-21:00","22082010" : "10:00-19:00","23082010" : "10:00-19:00","24082010" : "10:00-19:00","25082010" : "10:00-19:00","26082010" : "10:00-19:00","27082010" : "10:00-19:00","28082010" : "10:00-21:00","29082010" : "10:00-19:00","30082010" : "10:00-19:00","31082010" : "10:00-19:00","01092010" : "10:00-19:00","02092010" : "10:00-19:00","03092010" : "10:00-19:00","04092010" : "10:00-19:00","05092010" : "10:00-19:00","06092010" : "10:00-18:00","07092010" : "10:00-18:00","08092010" : "10:00-18:00","09092010" : "10:00-18:00","10092010" : "10:00-18:00","11092010" : "10:00-19:00","12092010" : "10:00-19:00","13092010" : "10:00-18:00","14092010" : "10:00-18:00","15092010" : "10:00-18:00","16092010" : "10:00-18:00","17092010" : "10:00-18:00","18092010" : "10:00-19:00","19092010" : "10:00-19:00","20092010" : "10:00-18:00","21092010" : "10:00-18:00","22092010" : "10:00-18:00","23092010" : "10:00-18:00","24092010" : "10:00-18:00","25092010" : "10:00-19:00","26092010" : "10:00-19:00","27092010" : "10:00-18:00","28092010" : "10:00-18:00","29092010" : "10:00-18:00","30092010" : "10:00-18:00","01102010" : "10:00-18:00","02102010" : "10:00-19:00","03102010" : "10:00-19:00","04102010" : "10:00-18:00","05102010" : "10:00-18:00","06102010" : "10:00-18:00","07102010" : "10:00-18:00","08102010" : "10:00-18:00","09102010" : "10:00-19:00","10102010" : "10:00-19:00","11102010" : "10:00-18:00","12102010" : "10:00-18:00","13102010" : "10:00-18:00","14102010" : "10:00-18:00","15102010" : "10:00-18:00","16102010" : "10:00-19:00","17102010" : "10:00-19:00","18102010" : "10:00-18:00","19102010" : "10:00-18:00","20102010" : "10:00-18:00","21102010" : "10:00-18:00","22102010" : "10:00-18:00","23102010" : "10:00-19:00","24102010" : "10:00-19:00","25102010" : "10:00-19:00","26102010" : "10:00-19:00","27102010" : "10:00-19:00","28102010" : "10:00-19:00","29102010" : "10:00-19:00","30102010" : "10:00-19:00","31102010" : "10:00-19:00","01112010" : "10:00-19:00","02112010" : "10:00-19:00","03112010" : "10:00-18:00","04112010" : "10:00-18:00","05112010" : "10:00-18:00","06112010" : "10:00-19:00","07112010" : "10:00-19:00","08112010" : "10:00-18:00","09112010" : "10:00-18:00","10112010" : "10:00-18:00","11112010" : "10:00-19:00","12112010" : "10:00-19:00","13112010" : "09:00-19:00","14112010" : "10:00-19:00","15112010" : "10:00-18:00","16112010" : "10:00-18:00","17112010" : "10:00-18:00","18112010" : "10:00-18:00","19112010" : "10:00-18:00","20112010" : "09:00-19:00","21112010" : "09:00-19:00","22112010" : "10:00-18:00","23112010" : "10:00-18:00","24112010" : "10:00-18:00","25112010" : "10:00-18:00","26112010" : "10:00-18:00","27112010" : "09:00-19:00","28112010" : "09:00-19:00","29112010" : "10:00-18:00","30112010" : "10:00-18:00","01122010" : "10:00-18:00","02122010" : "10:00-18:00","03122010" : "10:00-18:00","04122010" : "09:00-19:00","05122010" : "09:00-19:00","06122010" : "10:00-18:00","07122010" : "10:00-18:00","08122010" : "10:00-18:00","09122010" : "10:00-18:00","10122010" : "10:00-18:00","11122010" : "09:00-19:00","12122010" : "09:00-19:00","13122010" : "10:00-18:00","14122010" : "10:00-18:00","15122010" : "10:00-18:00","16122010" : "10:00-18:00","17122010" : "10:00-18:00","18122010" : "10:00-19:00","19122010" : "10:00-19:00","20122010" : "10:00-19:00","21122010" : "10:00-19:00","22122010" : "10:00-19:00","23122010" : "10:00-19:00","24122010" : "10:00-19:00","25122010" : "10:00-19:00","26122010" : "10:00-19:00","27122010" : "10:00-19:00","28122010" : "10:00-19:00","29122010" : "10:00-19:00","30122010" : "10:00-19:00","31122010" : "10:00-01:00","01012011" : "10:00-19:00","02012011" : "10:00-19:00","03012011" : "10:00-18:00","04012011" : "10:00-18:00","05012011" : "10:00-18:00","06012011" : "10:00-18:00","07012011" : "10:00-18:00","08012011" : "10:00-19:00","09012011" : "10:00-19:00","10012011" : "10:00-18:00","11012011" : "10:00-18:00","12012011" : "10:00-18:00","13012011" : "10:00-18:00","14012011" : "10:00-18:00","15012011" : "10:00-19:00","16012011" : "10:00-19:00","17012011" : "10:00-18:00","18012011" : "10:00-18:00","19012011" : "10:00-18:00","20012011" : "10:00-18:00","21012011" : "10:00-18:00","22012011" : "10:00-19:00","23012011" : "10:00-19:00","24012011" : "10:00-18:00","25012011" : "10:00-18:00","26012011" : "10:00-18:00","27012011" : "10:00-18:00","28012011" : "10:00-18:00","29012011" : "10:00-19:00","30012011" : "10:00-19:00","31012011" : "10:00-18:00","01022011" : "10:00-18:00","02022011" : "10:00-18:00","03022011" : "10:00-18:00","04022011" : "10:00-18:00","05022011" : "10:00-19:00","06022011" : "10:00-19:00","07022011" : "10:00-18:00","08022011" : "10:00-18:00","09022011" : "10:00-18:00","10022011" : "10:00-18:00","11022011" : "10:00-18:00","12022011" : "10:00-19:00","13022011" : "10:00-19:00","14022011" : "10:00-19:00","15022011" : "10:00-19:00","16022011" : "10:00-19:00","17022011" : "10:00-19:00","18022011" : "10:00-19:00","19022011" : "10:00-19:00","20022011" : "10:00-19:00","21022011" : "10:00-19:00","22022011" : "10:00-19:00","23022011" : "10:00-19:00","24022011" : "10:00-19:00","25022011" : "10:00-19:00","26022011" : "10:00-19:00","27022011" : "10:00-19:00","28022011" : "10:00-18:00"};
Content.push(Walt_Disney_Studios_Content);
var A_Fairytale_Christmas_Content = {"Class" : "Christmas", "Name" : "A Fairytale Christmas" };
var A_Fairytale_Christmas_Seasons = {"Title" : "A Fairytale Christmas","Link" : "tcm:120-10568","Image" : "","ImageDisabled" : "","ImageLegend" : "","Park" : "Seasons","Location" : "Seasons details","Hours" : A_Fairytale_Christmas_Content}
Seasons.push(A_Fairytale_Christmas_Seasons);
var Disneys_Bonfire_Spectacular_Content = {"Class" : "Spectacular", "Name" : "Disney's Bonfire Spectacular" };
var Disneys_Bonfire_Spectacular_Seasons = {"Title" : "Disneys Bonfire Spectacular","Link" : "tcm:120-10583","Image" : "","ImageDisabled" : "","ImageLegend" : "","Park" : "Seasons","Location" : "Seasons details","Hours" : Disneys_Bonfire_Spectacular_Content}
Seasons.push(Disneys_Bonfire_Spectacular_Seasons);
var Disneys_Halloween_Festival_Content = {"Class" : "Festival", "Name" : "Disney's Halloween Festival" };
var Disneys_Halloween_Festival_Seasons = {"Title" : "Disneys Halloween Festival","Link" : "tcm:120-10580","Image" : "","ImageDisabled" : "","ImageLegend" : "","Park" : "Seasons","Location" : "Seasons details","Hours" : Disneys_Halloween_Festival_Content}
Seasons.push(Disneys_Halloween_Festival_Seasons);
var Kids_Go_Free_Content = {"Class" : "Free", "Name" : "Kids Go Free" };
var Always_Something_New_Seasons = {"Title" : "Always Something New","Link" : "tcm:120-9098","Image" : "","ImageDisabled" : "","ImageLegend" : "","Park" : "Content","Location" : "What's new","Hours" : Kids_Go_Free_Content}
Seasons.push(Always_Something_New_Seasons);

// Fr_ : Begining global params for translation

var DaysList = new Array("Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche");
var MonthsList = new Array("Janvier", "F&#233;vrier", "Mars", "Avril", "Mai", "Juin", "Juillet", "Ao&#251;t", "Septembre", "Octobre", "Novembre", "D&#233;cembre");
var previousNextMonth = new Array("mois pr&eacute;c&eacute;dent","mois suivant");
var dayToDisplay = new Array("Lun","Mar","Mer","Jeu","Ven","Sam","Dim");
var emh = "Extra Magic Hours : horaires des r&eacute;sidents hotels Resort&reg;";
// End params
var Seasons = new Array();


var Today = new Date();
// Get the year (YYYY)
var CurrentYear = Today.getFullYear();
var TodaysYear = CurrentYear;
// Get the month (0..11)
var CurrentMonth = Today.getMonth();
var TodaysMonth = CurrentMonth;
// Get the day in the month (1..31)
var CurrentDay = Today.getDate();
var TodaysDate = CurrentDay;
// Get the day in the week for the current date (0..6, 0=>Sunday, ...)
var TodaysDay = GetDayNumber(Today.getDay());
// Get the day in the week for the first day of the month
Today = new Date(TodaysYear,TodaysMonth,1);
var TodaysFirstDay = GetDayNumber(Today.getDay());
var MonthLength = new Array(31,GetFebruaryNbDays(TodaysYear),31,30,31,30,31,31,30,31,30,31);



var isClickNextMonth = false;
var isClickPreviewMonth = false;
var isContentDisplayed = false;





function clickObserver() {   
    Event.observe($("CalendarMounthR"), 'click', IsClicked);
}


function IsClicked(event) {
    if (Event.findElement(event,"DIV")) {       
        node = Event.findElement(event,"DIV");
        var nodeId = node.id;        
        if (nodeId.toString() == "nextMonth") {            
            isClickNextMonth = true;
            isClickPreviewMonth = false;
        }else if (nodeId.toString() == "previousMonth") {            
            isClickPreviewMonth = true;
            isClickNextMonth = false;
        } else  {           
            isClickPreviewMonth = false;
            isClickNextMonth = false;
        }
       
    }
}



function trim (myString) {
    return myString.replace(/^\s+/g,'').replace(/\s+$/g,'')
}

function getMyXmlFile() {  
    var xml = "";  
    if (isClickNextMonth || isClickPreviewMonth) {
        if (isClickNextMonth && !isClickPreviewMonth) {
            if (TodaysMonth == 10) {
                xml = "parkHours_"+(TodaysMonth+2) + "-" + TodaysYear +".xml";
            } else if (TodaysMonth == 11) {
                xml = "parkHours_01-" + (TodaysYear+1) +".xml";
            }
            else {
                if (TodaysMonth<8) {
                    xml = "parkHours_"+"0"+(TodaysMonth+2) + "-" + TodaysYear +".xml";
                } else {
                    xml = "parkHours_"+(TodaysMonth+2) + "-" + TodaysYear +".xml";
                }
            }
        } else if (isClickPreviewMonth && !isClickNextMonth) {
            if (TodaysMonth == 0) {
                xml = "parkHours_12-" + (TodaysYear-1) +".xml";
            }
            else {
                if (TodaysMonth<10) {
                    xml = "parkHours_"+"0"+(TodaysMonth) + "-" + TodaysYear +".xml";
                } else {
                    xml = "parkHours_"+(TodaysMonth) + "-" + TodaysYear +".xml";
                }
            }
        }
    }
    else if (!isClickNextMonth && !isClickPreviewMonth) {       
        if (TodaysMonth<9) {
            xml = "parkHours_0"+(TodaysMonth+1) + "-" + TodaysYear +".xml";
        } else {
            xml = "parkHours_"+(TodaysMonth+1) + "-" + TodaysYear +".xml";
        }
        
    }
     return "/UK/EN/Neutral/system/XML/calendar/"+xml;

}




var getXmlRequest = function () {
    var myAjax = new Ajax.Request(
        getMyXmlFile(),
        {
            parameters: {},
            method: 'get',           
            onSuccess : displayXmlStandard,
            onFailure : displayXmlEmpty,
            onComplete : displayXml
            
        }
        );
};



displayXmlEmpty = function(xhr) {    
    isContentDisplayed = false;
    
}

displayXmlStandard = function(xhr) {
    isContentDisplayed = true;

}


displayXml = function(xhr)  {   
    var response = xhr.responseXML;    
    var Content = new Array();
    var contentParkDisney = {
        Class : 'Park',
        Name : 'Disneyland Park'
    };
    var contentParkDisneyEmh = {
        Class : 'ParkEmh',
        Name : 'Disneyland Park Emh'
    };
    var contentStudioDisney = {
        Class : 'Studios',
        Name : 'Walt Disney Studios'
    };
    var contentStudioDisneyEmh = {
        Class : 'StudioEmh',
        Name : 'Disneyland Park Emh'
    };

    //alert(isContentDisplayed);
    if (isContentDisplayed) {
        var nodeDate ;
        var nodeOpen ;
        var nodeOpenEmh ;
        var nodecloseEmh;
        var nodeClose ;
        var i = 0;
        var nodesPark = response.getElementsByTagName('park');       
        if (nodesPark[0].getAttribute('id') == 1) {
            nodeDate = nodesPark[0].getElementsByTagName("date");
            nodeOpen = nodesPark[0].getElementsByTagName("open");
            nodeOpenEmh = nodesPark[0].getElementsByTagName("openEmh");
            nodeClose = nodesPark[0].getElementsByTagName("close");
            nodecloseEmh = nodesPark[0].getElementsByTagName("closeEmh");
            for (i=0 ; i<nodeDate.length ; i++) {
                contentParkDisney[nodeDate[i].firstChild.nodeValue]= nodeOpen[i].firstChild.nodeValue +'-'+ nodeClose[i].firstChild.nodeValue;
                contentParkDisneyEmh[nodeDate[i].firstChild.nodeValue]= nodeOpenEmh[i].firstChild.nodeValue +'-'+ nodecloseEmh[i].firstChild.nodeValue;
            }
        }
        if (nodesPark[1].getAttribute('id') == 2) {
            nodeDate = nodesPark[1].getElementsByTagName("date");
            nodeOpen = nodesPark[1].getElementsByTagName("open");
            nodeOpenEmh = nodesPark[1].getElementsByTagName("openEmh");
            nodeClose = nodesPark[1].getElementsByTagName("close");
            nodecloseEmh = nodesPark[1].getElementsByTagName("closeEmh");
            for (i=0 ; i<nodeDate.length ; i++) {
                contentStudioDisney[nodeDate[i].firstChild.nodeValue]= nodeOpen[i].firstChild.nodeValue +'-'+ nodeClose[i].firstChild.nodeValue;
                contentStudioDisneyEmh[nodeDate[i].firstChild.nodeValue]= nodeOpenEmh[i].firstChild.nodeValue +'-'+ nodecloseEmh[i].firstChild.nodeValue;
            }

        }
    }
     
    Content.push(contentParkDisney);
    Content.push(contentParkDisneyEmh);
    Content.push(contentStudioDisney);
    Content.push(contentStudioDisneyEmh);
 
    if (!isClickNextMonth && !isClickPreviewMonth) {
        ConstructCalendar(Content);
        
    } else if (isClickNextMonth && !isClickPreviewMonth) {
        GoToMonthNext(Content);
        if (!isContentDisplayed) {            
            $("nextMonth").style.visibility = "hidden";           
        }
        $("previousMonth").style.visibility = "visible";
        isClickNextMonth = false;
    } else if (isClickPreviewMonth && !isClickNextMonth) {
        GoToMonthPrevious(Content);
        if (!isContentDisplayed) {
            $("previousMonth").style.visibility = "hidden";            
        }
        $("nextMonth").style.visibility = "visible";
        isClickPreviewMonth = false;
    }

}


function ConstructCalendar(Content){

    // Change the label (Month + Year) of the calendar
    document.getElementById("labelMonthYear").innerHTML = MonthsList[TodaysMonth] + " " + TodaysYear;    
    $('previous').innerHTML = previousNextMonth[0];
    $('next').innerHTML = previousNextMonth[1];
    var ch = document.getElementById('CalendarHeadDetail');
    var divs = ch.getElementsByTagName("div");
    for (var i = 0; i<divs.length; i++) {
        divs[i].innerHTML = dayToDisplay[i];
    }
    var calendarContent = "";
    var numDay;
    var numDayNextMonth = 0;
    var seasonLegend = "";

    // Calculate the number of line in the calendar (possibility : 4, 5 or 6)
    var nbLine = 4;
    for(i=4 ; i<=6 ; i++){
        if( i*7 >= (TodaysFirstDay - 1 + GetMonthLength(TodaysMonth))){
            nbLine = i;
            break;
        }
    }
    for(i=0 ; i<nbLine ; i++){
        calendarContent += "<div class=\"CalendarDetailR\">";

        for(j=1 ; j<=7 ; j++){
            if(((i * 7) + j) < TodaysFirstDay){
                // Day of the previous month
                numDay = GetMonthLength(TodaysMonth-1) - TodaysFirstDay + j + 1
                //alert(GetDisabledSeasonImage(numDay,TodaysMonth-1,TodaysYear));
                seasonLegend  += GetAllSeason(numDay,TodaysMonth-1,TodaysYear,seasonLegend);
                if(j == 1){
                    // First cell in the calendar => special style
                    calendarContent += "<div class=\"CalendarDetailC1\">";
                    calendarContent += "  <div class=\"DayR\" "+GetDisabledSeasonImage(numDay,TodaysMonth-1,TodaysYear)+">";
                    calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                    calendarContent += "    <div class=\"clear\"></div>";
                    calendarContent += "  </div>";
                    calendarContent += "</div>";
                }
                else{
                    calendarContent += "<div class=\"CalendarDetailC2\">";
                    calendarContent += "  <div class=\"DayR\" "+GetDisabledSeasonImage(numDay,TodaysMonth-1,TodaysYear)+">";
                    calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                    calendarContent += "    <div class=\"clear\"></div>";
                    calendarContent += "  </div>";
                    calendarContent += "</div>";
                }
            }
            else if(((i * 7) + j - TodaysFirstDay + 1) > GetMonthLength(TodaysMonth)){
                // Day of the next month
                numDayNextMonth++;
                if(i == (nbLine-1) && j == 7){
                    // Cell at the bottom right corner of the calendar
                    calendarContent += "<div class=\"CalendarDetailC5\">";
                    calendarContent += "  <div class=\"DayR\" "+GetDisabledSeasonImage(numDayNextMonth,TodaysMonth+1,TodaysYear)+">";
                    calendarContent += "    <div class=\"NumDay\">"+numDayNextMonth+"</div>";
                    calendarContent += "    <div class=\"clear\"></div>";
                    calendarContent += "  </div>";
                    calendarContent += "</div>";
                }
                else{
                    // Cell at the bottom of the calendar
                    calendarContent += "<div class=\"CalendarDetailC4\">";
                    calendarContent += "  <div class=\"DayR\" "+GetDisabledSeasonImage(numDayNextMonth,TodaysMonth+1,TodaysYear)+">";
                    calendarContent += "    <div class=\"NumDay\">"+numDayNextMonth+"</div>";
                    calendarContent += "    <div class=\"clear\"></div>";
                    calendarContent += "  </div>";
                    calendarContent += "</div>";
                }
            }
            else{
                // Day of the current month
                numDay = (i * 7) + j - TodaysFirstDay + 1
                if(i == (nbLine-1)){
                    // Cell at the bottom of the calendar
                    if(j == 1){
                        // Cell at the bottom left corner
                        if(numDay == CurrentDay && TodaysMonth == CurrentMonth && TodaysYear == CurrentYear){
                            // Day of today
                            calendarContent += "<div class=\"CalendarDetailC3Tdy\">";
                            calendarContent += "  <div class=\"DayR\" "+GetSeasonImage(numDay,TodaysMonth,TodaysYear)+">";
                            calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                            calendarContent += "    <div class=\"clear\"></div>";
                            calendarContent += "  </div>";
                            calendarContent += GetCellContent(numDay,Content);
                            calendarContent += "</div>";
                        }
                        else{
                            calendarContent += "<div class=\"CalendarDetailC3\">";
                            calendarContent += "  <div class=\"DayR\" "+GetSeasonImage(numDay,TodaysMonth,TodaysYear)+">";
                            calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                            calendarContent += "    <div class=\"clear\"></div>";
                            calendarContent += "  </div>";
                            calendarContent += GetCellContent(numDay,Content);
                            calendarContent += "</div>";
                        }
                    }
                    else if(j == 6){
                        // Cell just before the bottom right corner
                        if(numDay == CurrentDay && TodaysMonth == CurrentMonth && TodaysYear == CurrentYear){
                            // Day of today
                            calendarContent += "<div class=\"CalendarDetailC7Tdy\">";
                            calendarContent += "  <div class=\"DayR\" "+GetSeasonImage(numDay,TodaysMonth,TodaysYear)+">";
                            calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                            calendarContent += "    <div class=\"clear\"></div>";
                            calendarContent += "  </div>";
                            calendarContent += GetCellContent(numDay,Content);
                            calendarContent += "</div>";
                        }
                        else{
                            calendarContent += "<div class=\"CalendarDetailC7\">";
                            calendarContent += "  <div class=\"DayR\" "+GetSeasonImage(numDay,TodaysMonth,TodaysYear)+">";
                            calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                            calendarContent += "    <div class=\"clear\"></div>";
                            calendarContent += "  </div>";
                            calendarContent += GetCellContent(numDay,Content);
                            calendarContent += "</div>";
                        }

                    }
                    else if(j == 7){
                        // Cell at the bottom right corner
                        if(numDay == CurrentDay && TodaysMonth == CurrentMonth && TodaysYear == CurrentYear){
                            // Day of today
                            calendarContent += "<div class=\"CalendarDetailC8Tdy\">";
                            calendarContent += "  <div class=\"DayR\" "+GetSeasonImage(numDay,TodaysMonth,TodaysYear)+">";
                            calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                            calendarContent += "    <div class=\"clear\"></div>";
                            calendarContent += "  </div>";
                            calendarContent += GetCellContent(numDay,Content);
                            calendarContent += "</div>";
                        }
                        else{
                            calendarContent += "<div class=\"CalendarDetailC8\">";
                            calendarContent += "  <div class=\"DayR\" "+GetSeasonImage(numDay,TodaysMonth,TodaysYear)+">";
                            calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                            calendarContent += "    <div class=\"clear\"></div>";
                            calendarContent += "  </div>";
                            calendarContent += GetCellContent(numDay,Content);
                            calendarContent += "</div>";
                        }
                    }
                    else{
                        // Cell at the bottom in the middle
                        if(numDay == CurrentDay && TodaysMonth == CurrentMonth && TodaysYear == CurrentYear){
                            // Day of today
                            calendarContent += "<div class=\"CalendarDetailC6Tdy\">";
                            calendarContent += "  <div class=\"DayR\" "+GetSeasonImage(numDay,TodaysMonth,TodaysYear)+">";
                            calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                            calendarContent += "    <div class=\"clear\"></div>";
                            calendarContent += "  </div>";
                            calendarContent += GetCellContent(numDay,Content);
                            calendarContent += "</div>";
                        }
                        else{
                            calendarContent += "<div class=\"CalendarDetailC6\">";
                            calendarContent += "  <div class=\"DayR\" "+GetSeasonImage(numDay,TodaysMonth,TodaysYear)+">";
                            calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                            calendarContent += "    <div class=\"clear\"></div>";
                            calendarContent += "  </div>";
                            calendarContent += GetCellContent(numDay,Content);
                            calendarContent += "</div>";
                        }
                    }
                }
                else{
                    // Other cell of the calendar for the current month
                    if(j == 1){
                        // cell on the left
                        if(numDay == CurrentDay && TodaysMonth == CurrentMonth && TodaysYear == CurrentYear){
                            // Day of today
                            calendarContent += "<div class=\"CalendarDetailToday1\">";
                            calendarContent += "  <div class=\"DayR\" "+GetSeasonImage(numDay,TodaysMonth,TodaysYear)+">";
                            calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                            calendarContent += "    <div class=\"clear\"></div>";
                            calendarContent += "  </div>";
                            calendarContent += GetCellContent(numDay,Content);
                            calendarContent += "</div>";
                        }
                        else{
                            // Other day of the current month
                            calendarContent += "<div class=\"CalendarDetailC\">";
                            calendarContent += "  <div class=\"DayR\" "+GetSeasonImage(numDay,TodaysMonth,TodaysYear)+">";
                            calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                            calendarContent += "    <div class=\"clear\"></div>";
                            calendarContent += "  </div>";
                            calendarContent += GetCellContent(numDay,Content);
                            calendarContent += "</div>";
                        }
                    }
                    else{
                        // other cell
                        if(numDay == CurrentDay && TodaysMonth == CurrentMonth && TodaysYear == CurrentYear){
                            // Day of today
                            calendarContent += "<div class=\"CalendarDetailToday\">";
                            calendarContent += "  <div class=\"DayR\" "+GetSeasonImage(numDay,TodaysMonth,TodaysYear)+">";
                            calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                            calendarContent += "    <div class=\"clear\"></div>";
                            calendarContent += "  </div>";
                            calendarContent += GetCellContent(numDay,Content);
                            calendarContent += "</div>";
                        }
                        else{
                            // Other day of the current month
                            calendarContent += "<div class=\"CalendarDetailC\">";
                            calendarContent += "  <div class=\"DayR\" "+GetSeasonImage(numDay,TodaysMonth,TodaysYear)+">";
                            calendarContent += "    <div class=\"NumDay\">"+numDay+"</div>";
                            calendarContent += "    <div class=\"clear\"></div>";
                            calendarContent += "  </div>";
                            calendarContent += GetCellContent(numDay,Content);
                            calendarContent += "</div>";
                        }
                    }
                }
            }
        }
        calendarContent += "</div>";
    }
    $("calendarContent").innerHTML = calendarContent;
    $('legendTxtEmh').innerHTML = emh;
   

}


function GetAllSeason(day, month, year,content){

    var theDay;
    var result = "";
    if(day < 10){
        theDay = "0"+day.toString();
    }
    else{
        theDay = day.toString();
    }
    var theMonth;
    var theYear = year;
    if(month < 0){
        theMonth = 12;
        theYear -= 1;
    }
    else if((month+1) < 10){
        theMonth = "0"+(month+1);
    }
    else{
        theMonth = month+1;
    }
    theMonth = theMonth.toString();
    var key;
    key = theDay+theMonth+theYear.toString();
    key = key.toString();
    for(var i=0 ; i<Seasons.length ; i++){
        if(Seasons[i]["Hours"][key]){
            if(content.indexOf(Seasons[i]["Title"],0)>-1){
                result = result +     "<div class=\"legendC\"><img src=\""+Seasons[i]["ImageLegend"]+"\" class=\"ftLeft\" alt=\"\" width=\"13\" heigth=\"14\"/>";
                result = result +  "<div class=\"legendTxt\">"+Seasons[i]["Title"]+"</div>";
                result = result +  "</div>";
            }
        }
    }
    return result;
}


/*
             ** Get the content of a cell of the calendar
             */
function GetCellContent(day,Content){

    var theDay;
    var theMonth;
    var key;
    var result = "";
    var htmlTagStart = "";
    var htmlTagEnd = "";    
    var contentHtml = "";
    
    if(day < 10){
        theDay = "0"+day.toString();
    }
    else{
        theDay = day.toString();
    }
    
    if((TodaysMonth+1) < 10){
        theMonth = "0"+(TodaysMonth+1);
    }
    else{
        theMonth = TodaysMonth+1;

    }

    theMonth = theMonth.toString();
    key = theDay+theMonth+TodaysYear.toString();
    key = key.toString();
    

    for(var i=0 ; i<Content.length ; i++){

        if(Content[i][key]){
            
            if (Content[i]["Class"] =="ParkEmh" || Content[i]["Class"] == "DayStudioEmh") {
                htmlTagStart = 'span';
                htmlTagEnd ='/span';
            } else {
                htmlTagStart = 'div';
                htmlTagEnd ='/div'
            }
            if (Content[i][key] == '00:00-00:00')  {
                contentHtml = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
            }
            else {
                contentHtml = Content[i][key];
            }
            result += "\n<"+htmlTagStart+" class='Day"+Content[i]["Class"]+"'>" + contentHtml + "<"+htmlTagEnd+">\n";

        }
        else{
            result += "<div class='DayOff"+Content[i]["Class"]+"'></div>\n";
        }
    }
    result += "<div class=\"DayR2\"><a href=\""+DetailsURL+"?day="+day+"&month="+TodaysMonth+"&year="+TodaysYear+"\">More</a></div>"
    return result;
}
/*
             ** Get the image of the season for the date in parameter
             */
function GetSeasonImage(day, month, year){
    var theDay;
    if(day < 10){
        theDay = "0"+day.toString();
    }
    else{
        theDay = day.toString();
    }
    var theMonth;
    var theYear = year;
    if(month < 0){
        theMonth = 12;
        theYear -= 1;
    }
    else if((month+1) < 10){
        theMonth = "0"+(month+1);
    }
    else{
        theMonth = month+1;
    }
    theMonth = theMonth.toString();
    var key;
    key = theDay+theMonth+theYear.toString();
    key = key.toString();
    for(var i=0 ; i<Seasons.length ; i++){
        if(Seasons[i]["Hours"][key]){
            return "style=\"background-image:url("+Seasons[i]["Image"]+");background-position: 82px 3px;background-repeat: no-repeat;\"";

        }
    }
    return "";
}
function GetDisabledSeasonImage(day, month, year){
    var theDay;
    if(day < 10){
        theDay = "0"+day.toString();
    }
    else{
        theDay = day.toString();
    }
    var theMonth;
    var theYear = year;
    if(month < 0){
        theMonth = 12;
        theYear -= 1;
    }
    else if((month+1) < 10){
        theMonth = "0"+(month+1);
    }
    else{
        theMonth = month+1;
    }
    theMonth = theMonth.toString();
    var key;
    key = theDay+theMonth+theYear.toString();
    key = key.toString();
    for(var i=0 ; i<Seasons.length ; i++){
        if(Seasons[i]["Hours"][key]){
            return "style=\"background-image:url("+Seasons[i]["ImageDisabled"]+");background-position: 82px 3px;background-repeat: no-repeat;\"";

        }
    }
    return "";
}
/*
             ** Get the day number in a week (1=>Monday, ..., 7=>Sunday)
             */
function GetDayNumber(day){
    if(day == 0){
        return 7;
    }
    else{
        return day;
    }
}
/*
             ** Get the number of days in the month in parameter
             */
function GetMonthLength(month){
    if(month == -1){
        return MonthLength[11];
    }
    else if(month == 12){
        return MonthLength[0];
    }
    else{
        return MonthLength[month];
    }
}
/*
             ** Get the number of days of the february month for the year in parameter
             */
function GetFebruaryNbDays(yy){
    if ((yy % 100 != 0 && yy % 4 == 0) || (yy % 400 == 0)){
        return 29;
    }
    else{
        return 28;
    }
}
/*
             ** Get the value of a variable in current page URL
             */
function getURLVariable(strVarNameToSearch){
    if(location.search.substring(1)){
        // Get all the argument in the URL in a table
        tbVar = location.search.substring(1).split('&');

        for(i=0 ; i<tbVar.length ; i++){
            // Look for equal character
            intPosEgal = (tbVar[i].indexOf("=",0));

            // Get the name of the variable
            strVarName = tbVar[i].substring(0,intPosEgal);

            if(strVarNameToSearch == strVarName){
                // Return the variable value
                return tbVar[i].substring(intPosEgal+1,tbVar[i].length);
            }
        }
    }
    // variable not found
    return ""
}



function GoToMonthPrevious(Content){
    TodaysMonth -= 1;
    if(TodaysMonth<0){
        TodaysMonth = 11;
        TodaysYear -= 1;
        // reCalculate the number of days for the month of february (in case of a bissextile year)
        MonthLength[1] = GetFebruaryNbDays(TodaysYear)
    }
    Today = new Date(TodaysYear,TodaysMonth,1);
    TodaysFirstDay = GetDayNumber(Today.getDay());
    ConstructCalendar(Content);
}
/*
             ** Construct the calendar for the next month
             */
function GoToMonthNext(Content){
    TodaysMonth += 1;
    if(TodaysMonth>11){
        TodaysMonth = 0;
        TodaysYear += 1;
        // reCalculate the number of days for the month of february (in case of a bissextile year)
        MonthLength[1] = GetFebruaryNbDays(TodaysYear);
    }
    Today = new Date(TodaysYear,TodaysMonth,1);
    TodaysFirstDay = GetDayNumber(Today.getDay());
    ConstructCalendar(Content);
}



function writeXmlCalendar() {    
    Event.observe(window, 'load', getXmlRequest);
}

function getNextMonth() {        
    Event.observe($("nextMonth"), 'click', IsClicked);
    Event.observe($("nextMonth"), 'click', getMyXmlFile);
    Event.observe($("nextMonth"), 'click', function () {
        setTimeout(getXmlRequest, 100);
    });
}

function getPreviousMonth() {   
    Event.observe($("previousMonth"), 'click', IsClicked);
    Event.observe($("previousMonth"), 'click', getMyXmlFile);
    Event.observe($("previousMonth"), 'click', function () {
        setTimeout(getXmlRequest, 100);
    } );
}

