if(typeof Kodu==="undefined")Kodu={};
Kodu.lightbox_images=Kodu.country=="uk"||Kodu.country=="ie"?{beautiful:{iphone:[["iphone-movies-list-uk.jpg","List of all the movies playing in cinemas"],["iphone-movie-info.jpg",""]],ipad:[["ipad-poster-view.jpg",""],["ipad-movie-info.jpg",""]]},"movie-times":{iphone:[["iphone-cinema-list-uk.jpg",""],["iphone-cinema-info-uk.jpg",""]],ipad:[["ipad-movie-times.jpg",""],["ipad-tickets-step2.jpg",""],["ipad-tickets-step3.jpg",""]]}}:{beautiful:{iphone:[["iphone-movies-list.jpg","List of all the movies playing in cinemas"],
["iphone-movie-info.jpg",""]],ipad:[["ipad-poster-view.jpg",""],["ipad-movie-info.jpg",""]]},"movie-times":{iphone:[["iphone-movie-showtimes.jpg",""],["iphone-cinema-info.jpg",""]],ipad:[["ipad-movie-times.jpg",""],["ipad-tickets-step2.jpg",""],["ipad-tickets-step3.jpg",""]]}};
Kodu.reviews=[["&ldquo;This is hands down the best looking movie app I&rsquo;ve found. I&rsquo;d been through about 5 of them and then found this gem.  It&rsquo;s faster than the other apps I&rsquo;ve used, offers plenty of features without bogging the app down, and the interface is beautiful.  Well done.&rdquo;","Pixel8ed"],["&ldquo;Ever need to know when that new blockbuster is showing and if it's appropriate for the kids? Movies Now has compelete listings by theater along with reviews and ratings of each movie. You can even recommend the movie to other parents using Facebook Connect.&rdquo;",
"Yeisley Burback"],["&ldquo;Running late and worried there won't be any tickets left for the movie. Movies Now's simple to use format lets you find your movie by showtimes and buy tickets before you get there so you are guaranteed a seat.&rdquo;","It Figures&hellip;"]];Kodu.review_index=0;Cufon.replace("#content .features .feature h3",{fontFamily:"GothamMedium"});
$(document).ready(function(){Cufon.now();$("#content .header .features").css("background-image","none");(function(a){$("#content .header .features").css("background-image","url(img/bg-index-"+a+"-over.png)")})($.inArray(Kodu.country,["us","ca"])!=-1?"us":"uk");Kodu.switch_active="iphone";var b=$(".feature.shots .switch");b.find("a").click(function(){if(!$(this).hasClass("active")){Kodu.switch_active=this.className;$("#shot-iphone, #shot-ipad").animate({opacity:0},800,function(){$("#shot-"+Kodu.switch_active).show().animate({opacity:1},
1200)});b.find("a").removeClass("active");$(this).addClass("active")}return false});$(".bottomFeatures .reviews").click(function(){$("#overlay").show().animate({opacity:0.92},800,function(){$(".quoteBrowser p").html(Kodu.reviews[Kodu.review_index][0]);$(".quoteBrowser .by").html("by "+Kodu.reviews[Kodu.review_index][1]);$(".quoteBrowser").css({visibility:"visible",opacity:0,top:$(window).scrollTop()+$(window).height()/2-280}).animate({opacity:1},1200)});return false});$(".quoteBrowser .close").click(function(){$(".quoteBrowser").animate({opacity:0},
800,function(){$("#overlay").animate({opacity:0},1200,function(){$("#overlay").hide()})});return false});var c=function(a){Kodu.review_index+=a;Kodu.review_index%=Kodu.reviews.length;if(Kodu.review_index<0)Kodu.review_index+=Kodu.reviews.length;$(".quoteBrowser").find("p, .by").animate({opacity:0},600,function(){$(".quoteBrowser p").html(Kodu.reviews[Kodu.review_index][0]);$(".quoteBrowser .by").html("by "+Kodu.reviews[Kodu.review_index][1]);$(".quoteBrowser").find("p, .by").animate({opacity:1},600)})};
$(".quoteBrowser .arrowLeft").click(function(){c(-1);return false});$(".quoteBrowser .arrowRight").click(function(){c(1);return false});$("#content .header").localScroll({offset:{top:-48}});$("input:text[data-placeholder]").val(function(){return $(this).attr("data-placeholder")}).focus(function(){$(this).val()==$(this).attr("data-placeholder")&&$(this).val("")}).blur(function(){$(this).val()==""&&$(this).val($(this).attr("data-placeholder"))});$(".header a.cta span").css({opacity:0,display:"block"});
$(".header a.cta span").mouseover(function(){$(this).animate({opacity:1},200)}).mouseout(function(){$(this).animate({opacity:0},200)});$("<div />").attr("id","overlay").css({background:"#000",opacity:0,position:"fixed",top:0,right:0,bottom:0,left:0,"z-index":3}).hide().appendTo(document.body);$(".header .play-demo").click(function(){$("#overlay").show().css("opacity",0).animate({opacity:0.92},800,function(){$(".video-lightbox").show().css({visibility:"visible",opacity:0,top:$(window).scrollTop()+
Math.max($(window).height()/2-$(".video-lightbox").height()/2-40,0)}).animate({opacity:1},1200)});return false});$(".video-lightbox .close").click(function(){$(".video-lightbox").fadeOut(800,function(){$("#overlay").fadeOut(1200)});return false});var d=function(a,f){$("#overlay").show().css("opacity",0).animate({opacity:0.92},800,function(){$(".lightbox").show().css({visibility:"visible",opacity:0,top:$(window).scrollTop()+Math.max($(window).height()/2-$(".lightbox").height()/2-40,0)}).animate({opacity:1},
1200)});Kodu.current_images=Kodu.lightbox_images[a][f];Kodu.lightbox_index=0;$(".lightbox img").attr("src","img/lightbox/"+Kodu.current_images[0][0]);$(".lightbox .caption").html(Kodu.current_images[0][1])},e=function(a){Kodu.lightbox_index+=a;Kodu.lightbox_index%=Kodu.current_images.length;if(Kodu.lightbox_index<0)Kodu.lightbox_index+=Kodu.current_images.length;$(".lightbox img, .lightbox .caption").animate({opacity:0},600,function(){$(".lightbox img").replaceWith($('<img width="520" height="667">').hide().attr("src",
"img/lightbox/"+Kodu.current_images[Kodu.lightbox_index][0]));$(".lightbox .caption").html(Kodu.current_images[Kodu.lightbox_index][1]);$(".lightbox img, .lightbox .caption").fadeIn(600)})};$(".feature.showtimes .float").click(function(){d("movie-times",Kodu.switch_active);return false});$(".feature.beautiful .float").click(function(){d("beautiful",Kodu.switch_active);return false});$(".lightbox .arrowLeft").click(function(){e(-1);return false});$(".lightbox .arrowRight").click(function(){e(1);return false});
$(".lightbox .close").click(function(){$(".lightbox").fadeOut(800,function(){$("#overlay").fadeOut(1200)});return false})});