﻿// JScript File

function showTheatreName ( obj, val ) {
    var theatrename = "";
    var showtime = ""; 
    var city = obj.innerHTML.toString(); 
  
    switch (obj.value.toLowerCase()) {
        case "olathe":
            theatrename = "Studio IMAX, " + city;
            showtime = "9:00pm";
            break;

        case "phoenix":
            theatrename = "Deer Valley IMAX, " + city;
            showtime = "9:00pm";
            break;

        case "san francisco":
            theatrename = "Metreon IMAX, " + city;
            showtime = "9:00pm";
            break;

        case "universal city":
            theatrename = "Universal IMAX, " + city;
            showtime = "9:00pm";
            break;

        case "las vegas":
            theatrename = "Palms IMAX, " + city;
            showtime = "9:30pm";
            break;

        case "st michael":
            theatrename = "Metropolitan IMAX, " + city;
            showtime = "9:30pm";
            break;

        case "dallas":
            theatrename = "Cinemark IMAX, " + city;
            showtime = "9:30pm";
            break;

        case "tarentum":
            theatrename = "Cinemark IMAX, " + city;
            showtime = "9:30pm";
            break;

        case "woodridge":
            theatrename = "Cinemark IMAX, " + city;
            showtime = "9:30pm";
            break;

        case "edmonton":
            theatrename = "Silver City IMAX, " + city;
            showtime = "9:30pm";
            break;

        case "toronto":
            theatrename = "Scotiabank IMAX, " + city;
            showtime = "9:30pm";
            break;

        case "sandy":
            theatrename = "Jordan Commons IMAX, " + city;
            showtime = "9:30pm";
            break;

        case "grand rapids":
            theatrename = "Celebration IMAX, " + city;
            showtime = "9:30pm";
            break;

        case "buford":
            theatrename = "Mall of GA IMAX, " + city;
            showtime = "9:45pm";
            break;

        case "denver":
            theatrename = "Colorado Center IMAX, " + city;
            showtime = "9:45pm";
            break;

        case "houston":
            theatrename = "Marque IMAX, " + city;
            showtime = "9:45pm";
            break;

        case "orlando":
            theatrename = "Pointe IMAX, " + city;
            showtime = "9:45pm";
            break;

        case "tigard":
            theatrename = "Bridgeport IMAX, " + city;
            showtime = "9:45pm";
            break;

        case "san diego":
            theatrename = "Mira Mesa IMAX, " + city;
            showtime = "9:45pm";
            break;

        case "council bluffs":
            theatrename = "Star IMAX, " + city;
            showtime = "9:30pm";
            break;

        case "indianapolis":
            theatrename = "Showplace IMAX, " + city;
            showtime = "9:30pm";
            break;

        case "west nyack":
            theatrename = "Palisades IMAX, " + city;
            showtime = "9:00pm";
            break;

        case "natick":
            theatrename = "Comcast IMAX, " + city;
            showtime = "7:00pm";
            break;

        case "seattle":
            theatrename = "Boeing IMAX, " + city;
            showtime = "7:30pm";
            break;

        default:
            theatrename = "";
            showtime = "";
            break;
    }
  
   
    if(theatrename != ""){
        city = val;
   }  
    
    $("theatrenameDiv").innerHTML = theatrename + " at " + showtime;
    $("theatreNameTB").value = theatrename; 
    $("theatreTB").value = val;        
    $("showtimeTB").value = showtime; 
}