jQuery.comingsoon = {
	films : [
		
		{
			id : 1,
			starts : false,
			startDate : "Opens December 25",
			poster : "lehavre.jpg",
			title : "Le Havre",
			blurb : "In this warmhearted portrait of the French harbor city that gives the film its name, fate throws young African refugee Idrissa (Blondin Miguel) into the path of Marcel Marx (André Wilms), a well-spoken bohemian who works as a shoeshiner...",
			rtLink : "http://www.rottentomatoes.com/m/le_havre_2011/",
			trailerLink : "http://www.youtube.com/watch?v=BpAFPgNyxmc"
		},
		{
			id : 2,
			starts : false,
			startDate : "Opens December 25",
			poster : "separation.jpg",
			title : "A Separation",
			blurb : "Set in contemporary Iran, A Separation is a compelling drama about the dissolution of a marriage...",
			rtLink : "http://www.rottentomatoes.com/m/a_separation_2011/",
			trailerLink : "http://www.youtube.com/watch?v=B2Sswx_vrWk"
		},
		{
			id : 2,
			starts : true,
			startDate : "Opens February 17",
			poster : "arretty.jpg",
			title : "The Secret World of Arrietty",
			blurb : "Arrietty (Bridgit Mendler), a tiny, but tenacious 14-year-old, lives with her parents (Will Arnett and Amy Poehler) in the recesses of a suburban garden home, unbeknownst to the homeowner and her housekeeper (Carol Burnett)....",
			rtLink : "http://www.rottentomatoes.com/m/the_secret_world_of_arrietty/",
			trailerLink : "http://www.youtube.com/watch?v=VlMe7PavaRQ"
		}
	
	],
	
	
	loadComingSoonData : function() {
		$.each(this.films, function(i, film) {
			var f = $('#coming-soon-template > div').clone();
			$('#coming-soon').append(f);
			$(f).attr('id', 'soon-' + film.id);
			$(f).find('img.poster').attr('src','images/films/' + film.poster);
			//$(f).find('div.soon-poster').html('<img class="poster" src="images/films/' + film.poster + '" />');
			$(f).find('h3.soon-title').html(film.title);
			
			if(film.starts == true)
			{
				$(f).find('.soon-starts').show();
				$(f).find('.soon-starts').html(film.startDate);
			}
			else
			{
				$(f).find('.soon-starts').hide();
			}
			
			$(f).find('p.soon-blurb').html(film.blurb);
			$(f).find('a.cs-trailer-btn').attr('href', film.trailerLink);
			$(f).find('a.soon-rtlink').attr('href', film.rtLink);
		});
		
		$('#coming-soon').append('<div class="clearer"></div>');
	}
};
