﻿//To change designation state popup col designations edit function _BACKSTAGE.getBACKSTAGEStores
//Setup Stores here
var stores = Array();
var states = Array();
states.push("Arizona");
states.push("California");
states.push("Colorado");
states.push("Delaware");
states.push("Florida");
states.push("Georgia");
states.push("Illinois");
states.push("Indiana");
states.push("Massachusetts");
states.push("Maryland");
states.push("Michigan");
states.push("Missouri");
states.push("Nevada");
states.push("New Jersey");
states.push("New York");
states.push("Ohio");
states.push("Oregon");
states.push("Pennsylvania");
states.push("Rhode Island");
states.push("Texas");
states.push("Virginia");
states.push("Washington");
states.push("Wisconsin");

for (var i in states)
{
	// initialize Array;6
	//stores[states[i]] = new Array();
}


	var temp = Array();
	temp["liststate"] = "Arizona"
	temp["name"] = "Fashion Square"
	temp["address"] = "7014-0552 East Camel Back Road."
	temp["city"] = "Scottsdale"
	temp["state"] = "AZ"
	temp["zip"] = "85251"
	temp["phone"] = "(480)947-2312"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun 11AM-6PM"
	temp["mall_location"] = "Outside the food court"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 82;
	stores.push(temp);


	var temp = Array();
	temp["liststate"] = "California"
	temp["name"] = "Topanga Plaza"
	temp["address"] = "6600 Topanga Canyon Boulevard"
	temp["city"] = "Canoga Park"
	temp["state"] = "CA"
	temp["zip"] = "91303"
	temp["phone"] = "(818)704-7387"
	temp["hours"] = "Mon-Fri 10:30AM-9PM<br>Sat 10AM-9PM<br>Sun 11AM-6PM"
	temp["mall_location"] = "1st floor across from Armani Exchange"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 86;
	stores.push(temp);

	var temp = Array();
	temp["liststate"] = "California"
	temp["name"] = "Camarillo Outlet"
	temp["address"] = "910 Camarillo Center Drive"
	temp["city"] = "Camarillo"
	temp["state"] = "CA"
	temp["zip"] = "93010"
	temp["phone"] = "(805)389-9592"
	temp["hours"] = "Mon-Sat 10AM-9PM, Sun 10AM-8PM"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 20;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "California"
	temp["name"] = "South Coast Plaza"
	temp["address"] = "3333 Bristol Avenue"
	temp["city"] = "Costa Mesa"
	temp["state"] = "CA"
	temp["zip"] = "92626"
	temp["phone"] = "(714)754-6302"
	temp["hours"] = "Mon-Fri 10-9PM<br>Sat 10AM-8PM<br>Sun 11AM-6:30PM"
	temp["mall_location"] = "Next to Gucci"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 51;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "California"
	temp["name"] = "Gilroy Outlet"
	temp["address"] = "681 Leavesley Road"
	temp["city"] = "Gilroy"
	temp["state"] = "CA"
	temp["zip"] = "95020"
	temp["phone"] = "(408)847-3316"
	temp["hours"] = "Mon-Sat 10AM-9PM<Br>Sun 10AM-6PM"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 19;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "California"
	temp["name"] = "The Americana at Brand"
	temp["address"] = "837 Americana Way"
	temp["city"] = "Glendale"
	temp["state"] = "CA"
	temp["zip"] = "91210"
	temp["phone"] = "(818)547-4610"
	temp["hours"] = "Mon-Thurs 10AM-9PM<br>Fri-Sat 10am - 10pm<br/>Sun 11AM-8PM"
	temp["mall_location"] = "Located at the corner of Brand Blvd. and Harvard Street, across from Ed Hardy"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 115;
	stores.push(temp);
	
	
	var temp = Array();
	temp["liststate"] = "California"
	temp["name"] = "Beverly Center Mall"
	temp["address"] = "8500 Beverly Boulevard"
	temp["city"] = "Los Angeles"
	temp["state"] = "CA"
	temp["zip"] = "90048"
	temp["phone"] = "(310)657-4428"
	temp["hours"] = "Mon-Fri 10AM-9PM<br> Sat 10AM-8PM<br>Sun 11AM-6PM"
	temp["mall_location"] = "6th Level next to Dolce & Gabbana "
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 52;
	stores.push(temp);



	
	var temp = Array();
	temp["liststate"] = "California"
	temp["name"] = "Stanford Shopping Center"
	temp["address"] = "359 Stanford Shopping Center"
	temp["city"] = "Palo Alto"
	temp["state"] = "CA"
	temp["zip"] = "94304"
	temp["phone"] = "(650)322-6170"
	temp["hours"] = "Mon-Fri 10AM-9PM<br>Sat 10AM-7PM<br>Sun 11AM-6PM"
	temp["mall_location"] = "Next to COACH"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 56;
	stores.push(temp);

	var temp = Array();
	temp["liststate"] = "California"
	temp["name"] = "Las Americas Premium Outlet"
	temp["address"] = "4051 Camino De La Plaza Sp. 94"
	temp["city"] = "San Diego"
	temp["state"] = "CA"
	temp["zip"] = "92173"
	temp["phone"] = "(619) 662-2343"
	temp["hours"] = "Mon - Sat 10AM to 9PM, Sun 10AM - 7PM"
	temp["mall_location"] = ""
	temp["backstage"] = false
	temp["outlet"] = true
	temp["OLED"] = false;
	temp["id"] = 102;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "California"
	temp["name"] = "Fashion Valley"
	temp["address"] = "7007 Friars Road"
	temp["city"] = "San Diego"
	temp["state"] = "CA"
	temp["zip"] = "92108"
	temp["phone"] = "(619)220-7482"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun 11AM-7PM"
	temp["mall_location"] = "Upper level across from The Limited"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 62;
	stores.push(temp);
	
	/*var temp = Array();
	temp["liststate"] = "California"
	temp["name"] = "Metreon"
	temp["address"] = ""
	temp["city"] = "(Closed) San Francisco"
	temp["state"] = "CA"
	temp["zip"] = "94103"
	temp["phone"] = ""
	temp["hours"] = ""
	temp["mall_location"] = ""
	temp["comments"] = "<span class='callout'>The Sony Style store in Metreon has closed. Please visit another one of our Sony Style stores, such as our locations in the Stanford Shopping Center and Valley Fair.</span>";
	temp["backstage"] = false
	temp["outlet"] = false
	temp["id"] = 50;
	stores.push(temp);*/
	// Removed 20090602
	
	var temp = Array();
	temp["liststate"] = "California"
	temp["name"] = "Valley Fair"
	temp["address"] = "2855 Stevens Creek Boulevard"
	temp["city"] = "Santa Clara"
	temp["state"] = "CA"
	temp["zip"] = "95050"
	temp["phone"] = "(408)246-9151"
	temp["hours"] = "Mon-Fri 10:30AM-9PM<br>Sat 10AM-9PM<br>Sun 11AM-6PM"
	temp["mall_location"] = "1st floor across Banana Republic"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 63;
	stores.push(temp);	
	
	var temp = Array();
	temp["liststate"] = "Colorado"
	temp["name"] = "Cherry Creek Mall"
	temp["address"] = "3000 East First Avenue"
	temp["city"] = "Denver"
	temp["state"] = "CO"
	temp["zip"] = "80206"
	temp["phone"] = "(303)322-7669"
	temp["hours"] = "Mon-Fri 10AM-9PM<Br>Sat 10AM-9PM<Br>Sun 11AM-6PM"
	temp["mall_location"] = "1st level near Tiffany & Co.";
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 59;
	stores.push(temp);

	var temp = Array();
	temp["liststate"] = "Delaware"
	temp["name"] = "Rehoboth Outlet"
	temp["address"] = "34986 Midway Outlet Drive"
	temp["city"] = "Rehoboth Beach"
	temp["state"] = "DE"
	temp["zip"] = "19971"
	temp["phone"] = "(302)644-8605"
	temp["hours"] = "January 1-March 9<br>Mon-Thurs 9AM-7PM<br>Fri-Sat 9AM-8PM<Br>Sun 11AM-7PM<br>March 10-December 31<br>Mon-Sat 9AM-9PM<br>Sun 11AM-7PM"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 23;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Florida"
	temp["name"] = "Town Center at Boca Raton"
	temp["address"] = "6000 West Glades Road"
	temp["city"] = "Boca Raton"
	temp["state"] = "FL"
	temp["zip"] = "33431"
	temp["phone"] = "(561)338-9260"
	temp["hours"] = "Mon-Sat 10AM-9PM<Br>Sat 12PM-6PM"
	temp["mall_location"]="Near Grand Lux Cafe"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 77;
	stores.push(temp);	

	var temp = Array();
	temp["liststate"] = "Florida"
	temp["name"] = "Silver Sands Outlet"
	temp["address"] = "10562 Emerald Coast Parkway"
	temp["city"] = "Destin"
	temp["state"] = "FL"
	temp["zip"] = "32550"
	temp["phone"] = "(850)654-4013"
	temp["hours"] = "March-December<Br>Mon-Sat 10AM-9PM<Br>Sun 10AM-6PM<Br>January-Februrary<Br>Mon-Sat 10AM-7PM<Br>Sun 12PM-6PM"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 25;
	stores.push(temp);	
	
	var temp = Array();
	temp["liststate"] = "Florida"
	temp["name"] = "Aventura Mall"
	temp["address"] = "19501 Biscayne Boulevard"
	temp["city"] = "Miami"
	temp["state"] = "FL"
	temp["zip"] = "33180"
	temp["phone"] = "(305)932-4078"
	temp["mall_location"] = "Next to Pottery Barn"
	temp["hours"] = "Mon-Sat 10AM-9:30PM<br>Sun 12PM-8PM"
	temp["backstage"] = false
	temp["outlet"] = false
	temp["id"] = 101;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Florida"
	temp["name"] = "Dolphin Mall Outlet"
	temp["address"] = "11401 NW 12th Street"
	temp["city"] = "Miami"
	temp["state"] = "FL"
	temp["zip"] = "33172"
	temp["phone"] = "(305)477-5293"
	temp["hours"] = "Sun 11AM-7PM<Br>Mon-Sat 10AM-9:30PM"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 24;
	stores.push(temp);	

	var temp = Array();
	temp["liststate"] = "Florida"
	temp["name"] = "The Gardens of the Palm Beaches"
	temp["address"] = "3101 PGA Boulevard"
	temp["city"] = "Palm Beach Gardens"
	temp["state"] = "FL"
	temp["zip"] = "33410"
	temp["phone"] = "(561)776-0514"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun 12PM-6PM"
	temp["mall_location"] = "Lower level near Nordstrom"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 72;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Florida"
	temp["name"] = "Mall at Millenia"
	temp["address"] = "4200 Conroy Road"
	temp["city"] = "Orlando"
	temp["state"] = "FL"
	temp["zip"] = "32839"
	temp["phone"] = "(407)248-2096"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun Noon-7PM"
	temp["mall_location"] = "Across from Burberry"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 58;
	stores.push(temp);

	var temp = Array();
	temp["liststate"] = "Florida"
	temp["name"] = "International Plaza '&' Bay Street"
	temp["address"] = "2223 N West Shore Boulevard"
	temp["city"] = "Tampa"
	temp["state"] = "FL"
	temp["zip"] = "33607"
	temp["phone"] = "(813)874-6458"
	temp["hours"] = "Mon-Sat 10AM-9PM<Br>Sun 11AM-7PM"
	temp["mall_location"] = "Lower level next to Neiman Marcus"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 78;
	stores.push(temp);
	



	var temp = Array();
	temp["liststate"] = "Georgia"
	temp["name"] = "Lenox Square"
	temp["address"] = "3393 Peachtree NE"
	temp["city"] = "Atlanta"
	temp["state"] = "GA"
	temp["zip"] = "30326"
	temp["phone"] = "(404)869-6761"
	temp["mall_location"] = "Mall level across from Bloomingdale's";
	temp["hours"] = "Mon-Sat 10:00AM-9:00 PM Sun 12 noon-6:00 PM"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 87;
	stores.push(temp);
	

	var temp = Array();
	temp["liststate"] = "Illinois"
	temp["name"] = "Aurora Outlet"
	temp["address"] = "1650 Premium Outlets Boulevard"
	temp["city"] = "Aurora"
	temp["state"] = "IL"
	temp["zip"] = "60502"
	temp["phone"] = "(630)236-9807"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun 10AM-6PM"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 18;
	stores.push(temp);	
	
	var temp = Array();
	temp["liststate"] = "Illinois"
	temp["name"] = "Woodfield Mall"
	temp["address"] = "5 Woodfield Shopping Center"
	temp["city"] = "Schaumburg"
	temp["state"] = "IL"
	temp["zip"] = "60173"
	temp["phone"] = "(847)969-0685"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun 11AM-6PM"
	temp["mall_location"] = "2nd Level Near Lord & Taylor"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 64;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Illinois"
	temp["name"] = "Old Orchard"
	temp["address"] = "4999 Old Orchard Center Suite #C32"
	temp["city"] = "Skokie"
	temp["state"] = "IL"
	temp["zip"] = "60077"
	temp["phone"] = "(847)568-1802"
	temp["hours"] = "Mon-Fri 10:30AM-8:30PM<br/>Sat 10AM-9PM<br/>Sun 11AM-6PM"
	// "Mon-sat 10AM-9PM<br>Sun 11AM-6PM" old hours
	temp["mall_location"] = "Across from Macy's "
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 74;
	stores.push(temp);
	
	
	var temp = Array();
	temp["liststate"] = "Indiana"
	temp["name"] = "Fashion Mall at Keystone"
	temp["address"] = "8702 Keystone Crossing"
	temp["city"] = "Indianapolis"
	temp["state"] = "IN"
	temp["zip"] = "46240"
	temp["phone"] = "(317)816-2240"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun Noon-6PM"
	temp["mall_location"] = "2nd level across from Victoria¡¦s Secret"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 70;
	stores.push(temp);
	
	/* MQC 8132 - Changed closing hour on Mon-Sat to 8pm rather than 9pm. */
	var temp = Array();
	temp["liststate"] = "Massachusetts"
	temp["name"] = "Copley Place"
	temp["address"] = "100 Huntington Avenue"
	temp["city"] = "Boston"
	temp["state"] = "MA"
	temp["zip"] = "02116"
	temp["phone"] = "(617)859-1407"
	temp["hours"] = "Mon-Sat 10AM-8PM<br>Sun 12PM-6PM"
	temp["mall_location"] ="1st level near Tiffany & Co. ";
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 53;
	stores.push(temp);

	var temp = Array();
	temp["liststate"] = "Massachusetts"
	temp["name"] = "Burlington Mall"
	temp["address"] = "75 Middlesex Turnpike"
	temp["city"] = "Burlington"
	temp["state"] = "MA"
	temp["zip"] = ""
	temp["phone"] = "(781)273-2012"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun 12PM-6PM"
	temp["mall_location"] = "2nd level near Banana Republic";
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 99;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Massachusetts"
	temp["name"] = "Wrentham Outlet"
	temp["address"] = "400 Premium Outlets Blvd"
	temp["city"] = "Wrentham"
	temp["state"] = "MA"
	temp["zip"] = "02093"
	temp["phone"] = "(508)384-1175"
	temp["hours"] = "January 2-February 28<br>Sun-Wed 10AM-6PM<br>Thurs-Sat 10AM-9PM<br>March 1 - December 31<br>Mon-Sat 10AM-9PM<br>Sun 10AM-6PM<br>"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 10;
	stores.push(temp);	
	
	
	var temp = Array();
	temp["liststate"] = "Maryland"
	temp["name"] = "Annapolis Westfield Mall"
	temp["address"] = "2002 Annapolis Mall"
	temp["city"] = "Annapolis"
	temp["state"] = "MD"
	temp["zip"] = "21401"
	temp["phone"] = "410-224-4971"
	temp["hours"] = "Mon-Fri 10:30AM-9PM<br/>Sat 10AM-9PM<br/>Sun 11AM-6PM"
	temp["mall_location"] = "Near Nordstrom"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 105;
	stores.push(temp)

	var temp = Array();
	temp["liststate"] = "Michigan"
	temp["name"] = "Somerset Collection"
	temp["address"] = "2800 West Big Beaver Road"
	temp["city"] = "Troy"
	temp["state"] = "MI"
	temp["zip"] = "48084"
	temp["phone"] = "(248)816-7078"
	temp["hours"] = "Mon-Sat 10AM-9PM<Br>Sun 12PM-6PM"
	temp["mall_location"] = "Next to BCBG"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 57;
	stores.push(temp);

	var temp = Array();
	temp["liststate"] = "Missouri"
	temp["name"] = "Country Club Plaza"
	temp["address"] = "430 Nichols Road"
	temp["city"] = "Kansas City"
	temp["state"] = "MO"
	temp["zip"] = "64112"
	temp["phone"] = "(816)753-2989"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun Noon-6PM"
	temp["mall_location"] = "Near Burberry"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 85;
	stores.push(temp);
	
	/*var temp = Array();
	temp["liststate"] = "Missouri";
	temp["name"] = "West County Mall";
	temp["address"] = "";
	temp["city"] = "(Closed) St. Louis";
	temp["state"] = "MO";
	temp["zip"] = "63131";
	temp["phone"] = "";
	temp["hours"] = "";
	temp["mall_location"] = "";
	temp["comments"] = "<span class='callout'>The Sony Style store in the West County Mall has closed. Please visit another one of our Sony Style stores.</span>";
	temp["backstage"] = false;
	temp["outlet"] = false;
	temp["id"] = 61;
	stores.push(temp);*/ 
	// Removed 20090602
	
	var temp = Array();
	temp["liststate"] = "Nevada"
	temp["name"] = "Forum Shops"
	temp["address"] = "3500 Las Vegas Boulevard South"
	temp["city"] = "Las Vegas"
	temp["state"] = "NV"
	temp["zip"] = "89109"
	temp["phone"] = "(702)697-5420"
	temp["hours"] = "Sun-Thur 10AM-11PM<br>Fri-Sat 10AM-Midnight"
	temp["mall_location"] = "Near Harry Winston"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 65;
	stores.push(temp);

	var temp = Array();
	temp["liststate"] = "New Jersey"
	temp["name"] = "Menlo Park"
	temp["address"] = "100 Menlo Park"
	temp["city"] = "Edison"
	temp["state"] = "NJ"
	temp["zip"] = "08837"
	temp["phone"] = "(732)603-2130"
	temp["hours"] = "Mon-Sat 10AM-9:30PM<Br>Sun 11AM-7PM"
	temp["mall_location"] = "2nd level in the Nordstrom Wing"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 75;
	stores.push(temp);	
	
	var temp = Array();
	temp["liststate"] = "New Jersey"
	temp["name"] = "Garden State Plaza"
	temp["address"] = "1 Garden State Plaza"
	temp["city"] = "Paramus"
	temp["state"] = "NJ"
	temp["zip"] = "07652"
	temp["phone"] = "(201)843-3575"
	temp["hours"] = "Mon-Sat 10AM-9:30PM<br>Sun CLOSED"
	temp["mall_location"] = "1st level adjacent to Neiman Marcus";
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 60;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "New Jersey"
	temp["name"] = "Jersey Shore Outlet"
	temp["address"] = "1 Premium Boulevard - Suite 631"
	temp["city"] = "Tinton Falls"
	temp["state"] = "NJ"
	temp["zip"] = "07753"
	temp["phone"] = "732-493-4341<br/>Fax: 732-493-5985"
	temp["hours"] = "Mon-Sat 10am-9pm<br/>Sun 10am-7pm"
	temp["mall_location"] = "";
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 90;
	stores.push(temp)	

	var temp = Array();
	temp["liststate"] = "New York"
	temp["name"] = "Woodbury Outlet"
	temp["address"] = "147 Marigold Court"
	temp["city"] = "Central Valley"
	temp["state"] = "NY"
	temp["zip"] = "10917"
	temp["phone"] = "(845)928-5112"
	temp["hours"] = "January 2-February 28<br>Mon-Wed 10AM-6PM<br>Thurs-Sun 10AM-9PM<br>March 1-December 31<br>Mon-Sun 10AM-9PM"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 17;
	stores.push(temp);

	var temp = Array();
	temp["liststate"] = "New York"
	temp["name"] = "Roosevelt Field Mall"
	temp["address"] = "630 Old Country Road"
	temp["city"] = "Garden City"
	temp["state"] = "NY"
	temp["zip"] = "11530"
	temp["phone"] = "(516)248-2901"
	temp["hours"] = "Mon-Sat 10AM-9:30PM<br>Sun 11AM-7PM"
	temp["mall_location"] = "Level 1 next to Victoria's Secret"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 79;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "New York"
	temp["name"] = "Sony Plaza"
	temp["address"] = "550 Madison Avenue"
	temp["city"] = "New York"
	temp["state"] = "NY"
	temp["zip"] = "10022"
	temp["phone"] = "(212)833-8800"
	temp["hours"] = "<strong>North Store</strong><Br>Mon-Sat 10AM-7PM<br>Sun 11AM-6PM<br><strong>South Store</strong><Br>Mon-Fri 7AM-7PM<br>Sat 8AM-7PM<br>Sun 9AM-6PM"
	temp["mall_location"] = "Madison Avenue between 55th and 56th"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 49;
	stores.push(temp);


	var temp = Array();
	temp["liststate"] = "New York"
	temp["name"] = "Riverhead Outlet"
	temp["address"] = "Tanger Mall Drive"
	temp["city"] = "Riverhead"
	temp["state"] = "NY"
	temp["zip"] = "11901"
	temp["phone"] = "(631)208-8860"
	temp["hours"] = "January 2-March 8<br>Sun-Fri 10AM-7PM<br>Sat 9AM-9PM<br>March 9-December 31<br>Mon-Sat 9AM-9PM<br>Sun 10AM-8PM"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 22;
	stores.push(temp);	
	
	var temp = Array();
	temp["liststate"] = "New York"
	temp["name"] = "Westchester Mall"
	temp["address"] = "125 Westchester Avenue"
	temp["city"] = "White Plains"
	temp["state"] = "NY"
	temp["zip"] = "10601"
	temp["phone"] = "(914)289-2960"
	temp["hours"] = "Mon-Sat 10AM-9PM<Br>Sun 11AM-6PM"
	temp["mall_location"] = "1st level next to Tiffany & Co.";
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 69;
	stores.push(temp);
	
	

	var temp = Array();
	temp["liststate"] = "Ohio"
	temp["name"] = "Beachwood Place Mall"
	temp["address"] = "26300 Cedar Road"
	temp["city"] = "Beachwood"
	temp["state"] = "OH"
	temp["zip"] = "44122"
	temp["phone"] = "(216)514-4329"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun Noon-6PM"
	temp["mall_location"] = "2nd level near Saks Fifth Avenue"
	temp["backstage"] = true
	temp["outlet"] = false

	temp["id"] = 83;
	stores.push(temp);
	
	
	var temp = Array();
	temp["liststate"] = "Ohio"
	temp["name"] = "Kenwood Towne Centre"
	temp["address"] = "7875 Montgomery Road"
	temp["city"] = "Cincinnati"
	temp["state"] = "OH"
	temp["zip"] = "45236"
	temp["phone"] = "(513)793-0512"
	temp["hours"] = "Mon-Thurs 10AM-9PM<br>Fri-Sat 10A-9PM<br>Sun Noon-6PM"
	temp["mall_location"] = "1st level near Pottery Barn "
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 76;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Ohio"
	temp["name"] = "Easton Town Center"
	temp["address"] = "4055 The Strand West"
	temp["city"] = "Columbus"
	temp["state"] = "OH"
	temp["zip"] = "43219"
	temp["phone"] = "(614)473-3922"
	temp["hours"] = "Mon-Thurs 10am-9pm<br>Fri&Sat 10am-10pm<br>Sun 12pm-6pm"
	temp["mall_location"] = ""
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 89;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Oregon"
	temp["name"] = "Washington Square"
	temp["address"] = "9581 SW Washington Square Rd"
	temp["city"] = "Tigard"
	temp["state"] = "OR"
	temp["zip"] = "97223"
	temp["phone"] = "(503)968-5279"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun 10AM-7PM"
	temp["mall_location"] = "Next to Made in Oregon"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 73;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Pennsylvania"
	temp["name"] = "King of Prussia"
	temp["address"] = "160 N Gulph Road"
	temp["city"] = "King of Prussia"
	temp["state"] = "PA"
	temp["zip"] = "19406"
	temp["phone"] = "(610)783-1690"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun 11AM-6PM"
	temp["mall_location"] = "Upper level near Cafe Court"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 81;
	stores.push(temp);

	var temp = Array();
	temp["liststate"] = "Pennsylvania"
	temp["name"] = "Philadelphia Premium Outlets"
	temp["address"] = "18 Lightcap Road"
	temp["city"] = "Pottstown"
	temp["state"] = "PA"
	temp["zip"] = "19464"
	temp["phone"] = "(610)323-8650"
	temp["hours"] = "Mon-Sat 10AM-9PM<Br>Sun 10AM-7PM"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 98;
	stores.push(temp);
	
	// brt 2.26.09 - added in The Market at Comcast Center - MQC 7362
	// edited for MQC 7705 - Removed 'COMING SOON' from name, and added hours and phone number.
	// edited for MQC 8850 - Set "backstage" to true.
	var temp = Array();
	temp["liststate"] = "Pennsylvania";
	temp["name"] = "The Market at Comcast Center";
	temp["address"] = "1701 John F. Kennedy Boulevard";
	temp["city"] = "Philadelphia";
	temp["state"] = "PA";
	temp["zip"] = "19103";
	temp["phone"] = "(215)523-6241";
	temp["hours"] = "Mon-Fri 10AM-7PM<br>Sat 10AM-5PM<br>Sun Closed";
	temp["mall_location"] = "The Market at One Comcast Center";
	temp["backstage"] = true;
	temp["outlet"] = false;
	temp["id"] = 100;
	stores.push(temp);
	
	// brt 5.13.08 - removed Grove City Outlet Information - MQC 2925
	
	var temp = Array();
	temp["liststate"] = "Rhode Island"
	temp["name"] = "Providence"
	temp["address"] = "44 Providence Place"
	temp["city"] = "Providence"
	temp["state"] = "RI"
	temp["zip"] = "02903"
	temp["phone"] = "(401)369-7300"
	temp["hours"] = "Mon-Sat 10AM-9PM<Br>Sun 12PM-6PM"
	temp["mall_location"] = "Level 1 near Nordstrom"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 66;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Texas"
	temp["name"] = "The Domain"
	temp["address"] = "11501 Century Oaks Terrace"
	temp["city"] = "Austin"
	temp["state"] = "TX"
	temp["zip"] = "78758"
	temp["phone"] = "(512)821-3100"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun Noon-6PM"
	temp["mall_location"] = "Across from Starbucks"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 88;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Texas"
	temp["name"] = "Dallas Galleria"
	temp["address"] = "13350 Dallas Parkway"
	temp["city"] = "Dallas"
	temp["state"] = "TX"
	temp["zip"] = "75240"
	temp["phone"] = "(972)661-1068"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun 12PM-6PM"
	temp["mall_location"] = "Next to Nordstrom"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 55;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Texas"
	temp["name"] = "Houston Galleria"
	temp["address"] = "5015 Westheimer Road"
	temp["city"] = "Houston"
	temp["state"] = "TX"
	temp["zip"] = "77056"
	temp["phone"] = "(713)439-7086"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun 11AM-7PM"
	temp["mall_location"] = "1st level adjacent to Louis Vuitton"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 54;
	stores.push(temp);
	
	
	var temp = Array();
	temp["liststate"] = "Texas"
	temp["name"] = "Rio Grande Outlet"
	temp["address"] = "5001 East Expressway 83"
	temp["city"] = "Mercedes"
	temp["state"] = "TX"
	temp["zip"] = "78570"
	temp["phone"] = "(956)565-3236"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun 11AM-7PM"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 26;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Texas"
	temp["name"] = "The Shops at LaCantera"
	temp["address"] = "15900 LaCantera Parkway"
	temp["city"] = "San Antonio"
	temp["state"] = "TX"
	temp["zip"] = "78256"
	temp["phone"] = "(210)877-2254"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun Noon-6PM"
	temp["mall_location"] = "Mall level across from Bloomingdales"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true
	temp["id"] = 71;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Texas"
	temp["name"] = "San Marcos Outlet"
	temp["address"] = "3939 Interstate Highway 35 S"
	temp["city"] = "San Marcos"
	temp["state"] = "TX"
	temp["zip"] = "78666"
	temp["phone"] = "(512)396-1882"
	temp["hours"] = "Mon-Sat 10AM-9PM<Br>Sun 10AM-7PM<Br>June-August<Br>Mon-Thur 10AM-9PM<Br>Fri-Sat 10AM-10PM<Br>Sun 10AM-8PM"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 12;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Texas"
	temp["name"] = "The Woodlands Mall"
	temp["address"] = "1201 Lake Woodlands Drive"
	temp["city"] = "The Woodlands"
	temp["state"] = "TX"
	temp["zip"] = "77380"
	temp["phone"] = "(281)298-4606"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun 11AM-7PM"
	temp["mall_location"] = "Level 1 near Enchanted Woodlands play area"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 84;
	stores.push(temp);
	
	
	var temp = Array();
	temp["liststate"] = "Virginia"
	temp["name"] = "Fashion Center at Pentagon City"
	temp["address"] = "1100 South Hayes Street"
	temp["city"] = "Arlington"
	temp["state"] = "VA"
	temp["zip"] = "22202"
	temp["phone"] = "(703)416-5187"
	temp["hours"] = "Mon-Sat 10AM-9:30PM<br>Sun 11AM-6PM"
	temp["mall_location"] = "3rd level near Kenneth Cole"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 67;
	stores.push(temp);
	
	var temp = Array();
	temp["liststate"] = "Virginia"
	temp["name"] = "Tysons Corner"
	temp["address"] = "7864 Tysons Corner Center"
	temp["city"] = "McLean"
	temp["state"] = "VA"
	temp["zip"] = "22102"
	temp["phone"] = "(703)356-6396"
	temp["hours"] = "Mon-Sat 10AM-9:30PM<br>Sun 11AM-7PM"
	temp["mall_location"] = "2nd level near Barnes & Noble"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["id"] = 68;
	stores.push(temp);
	
	
	var temp = Array();
	temp["liststate"] = "Washington"
	temp["name"] = "University Village"
	temp["address"] = "4633 27th Avenue NE"
	temp["city"] = "Seattle"
	temp["state"] = "WA"
	temp["zip"] = "98105"
	temp["phone"] = "(206)525-1200"
	temp["hours"] = "Mon-Sat 9:30AM-9PM<br>Sun 11AM-6PM"
	temp["backstage"] = true
	temp["outlet"] = false
	temp["OLED"] = true;
	temp["id"] = 80;
	stores.push(temp);
	
	
	var temp = Array();
	temp["liststate"] = "Washington"
	temp["name"] = "Seattle Premium Outlet"
	temp["address"] = "10600 Quil Ceda Blvd."
	temp["city"] = "Tulalip"
	temp["state"] = "WA"
	temp["zip"] = "98271"
	temp["phone"] = "(360) 716-3700"
	temp["hours"] = "Mon-Sat 10AM-9PM<br>Sun 10AM-7PM"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 21;
	stores.push(temp);
	

	var temp = Array();
	temp["liststate"] = "Wisconsin"
	temp["name"] = "Pleasant Prairie Outlet"
	temp["address"] = "11601 108th Street"
	temp["city"] = "Pleasant Prairie"
	temp["state"] = "WI"
	temp["zip"] = "53158"
	temp["phone"] = "(262)857-9613"
	temp["hours"] = "Mon-Sat 10AM-9PM<Br>Sun 10AM-7PM"
	temp["backstage"] = false
	temp["outlet"] = true
	temp["id"] = 3;
	stores.push(temp);
	
	
	
	function Querystring(qs) { // optionally pass a querystring to parse
	this.params = new Object()
	this.get=Querystring_get
	
	if (qs == null)
		qs=location.search.substring(1,location.search.length)

	if (qs.length == 0) return

// Turn <plus> back to <space>
// See: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1
	qs = qs.replace(/\+/g, ' ')
	var args = qs.split('&') // parse out name/value pairs separated via &
	
// split out each name=value pair
	for (var i=0;i<args.length;i++) {
		var value;
		var pair = args[i].split('=')
		var name = unescape(pair[0])

		if (pair.length == 2)
			value = unescape(pair[1])
		else
			value = name
		
		this.params[name] = value
	}
}

function Querystring_get(key, default_) {
	// This silly looking line changes UNDEFINED to NULL
	if (default_ == null) default_ = null;
	
	var value=this.params[key]
	if (value==null) value=default_;
	
	return value
}

var storeNow;
var imagesPreload = new Array();

function preloadImage()
{
	for (var i; i < stores.length; i++)
	{
		var temp = new Image();
		temp.src=stores[i]["img"];
		imagesPreload.push(temp);
	}
}
 
 function openDirectionsWindow(id){
	var storeNow = getStoreById(id);
 	var destAddress = storeNow["address"] + ","+storeNow["city"]+","+ storeNow["state"]+ ","+storeNow["zip"];
	var startAddr = ''//document.getElementById("fromAddress").value;
 	window.open("http://maps.google.com/maps?saddr="+startAddr+"&daddr="+destAddress,'','status=1,resizable=yes, scrollbars=yes,width=900,height=600');
 	
 }
  function getArrayByState(state)
	 {
		var temp_array = new Array();
		for (var i =0; i <stores.length; i++)
		{
		if (stores[i]["liststate"] == state)
			temp_array.push(stores[i]);
		}
		return temp_array;
	 }
	function showListingsByState(state)
	{
		document.write("<option value=\"\">&nbsp;&nbsp;"+state+"</option>");
		var outputHTML="";
		
		var state_stores = getArrayByState(state);
		
		for(var i = 0; i < state_stores.length; i++)
		{
			//Mathcing State, we show results
			outputHTML += "<option ";
			if (state_stores[i]["outlet"] == true)
				outputHTML += "value=\"outlet\"";
			else
				outputHTML += "value=\""+state_stores[i]["id"];
				
			outputHTML += "\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+state_stores[i]["city"];
			if (state_stores[i]["outlet"] == true)
				outputHTML += " -- "+state_stores[i]["name"];
			else
				outputHTML += ", "+state_stores[i]["name"];
			outputHTML += "</option>";
		}
		document.write(outputHTML);
	}
	function selectStore(obj)
	{
		var Link = ""
		var value = obj.value;
	if (value !='')
	{
		if (value =='outlet')
			location.href="/webapp/wcs/stores/servlet/CategoryDisplay?catalogId=10551&storeId=10151&langId=-1&identifier=S_BrandShowcase_Retail_Outlet";
		else
			location.href="/webapp/wcs/stores/servlet/CategoryDisplay?catalogId=10551&storeId=10151&langId=-1&identifier=S_BrandShowcase_Retail_Locations_Stores&storeLocatorId="+value;
	}
	}

function showStore(id)
{
	storeNow = stores[id];
	document.getElementById('storeArea_name').innerHTML = storeNow["name"];
	setTimeout(function (){document.getElementById("storeArea_img").src = storeNow["img"]}, 100);
	document.getElementById('storeArea_address').innerHTML = storeNow["address"];
	document.getElementById('storeArea_city').innerHTML = storeNow["city"];
	document.getElementById('storeArea_state').innerHTML = storeNow["state"];
	document.getElementById('storeArea_zip').innerHTML = storeNow["zip"];
	document.getElementById('storeArea_phone').innerHTML = storeNow["phone"];
	if (storeNow["hours"] != "")
	{
		document.getElementById('storeArea_hours').innerHTML = "Store hours:<br>"+storeNow["hours"]+"<br/>";
	}
	
	
	if (storeNow["backstage"])
	{
		document.getElementById('backstageCMspot').style.display = "block";
	}else{
		document.getElementById('backstageCMspot').style.display = "none";
	}
	document.getElementById('mainArea').style.display = "none";
	document.getElementById('storeArea').style.display = "block";
}

function hideStore()
{
	document.getElementById('mainArea').style.display = "block";
	document.getElementById('storeArea').style.display = "none";
	document.getElementById('backstageCMspot').style.display = "block";
	document.getElementById("storeArea_img").src = null;
	storeNow = "";
}

var qs = new Querystring()
var stringId = qs.get('storeLocatorId');
if (stringId == '')
{
	location.href = "/";
}else {

	//location.href = "/";
}

function showContentById(id)
{
	var store = getStoreById(id);
	//alert(store["address"]);
	var output = '';
	output += '<h3>'+store.name+' </h3>';
	
	var addressExists = (store.address != '' && store.address != undefined && store.address != null);
	
	if (addressExists) {
		output += '<p><strong>Store address:</strong></p>';
		output += '<p>'+store.address+'<br>'+store.city+','+store.state+' '+store.zip+'';
	}
	if (store.phone != '' && store.phone != undefined && store.phone != null) {
		if (addressExists) {
			output += '<br>Phone '+store.phone+'</p>';
		} else {
			output += '<p>Phone '+store.phone+'</p>';
		}
	} else {
		if (addressExists) {
			output += '</p>';
		}
	}
	
	if (addressExists) {
		output += '<p><a href="javascript:openDirectionsWindow('+store.id+');">Driving Directions</a></p>';
	}
	
	if (store.hours != ''&& store.hours!= undefined && store.hours != null) {
		output += '<p><strong>Store hours:</strong></p>';
		output += '<p>'+store.hours+'</p>';
	}
	
	if (store.mall_location != '' && store.mall_location!= undefined && store.mall_location != null) {
		output += '<p><strong>Mall Location:</strong></p>';
		output += '<p>'+store.mall_location+'</p>';
	}
	
	if (store.comments != '' && store.comments!= undefined && store.comments != null) {
		output += '<p>' + store.comments + '</p>';
	}
	
	output += '<a href="/webapp/wcs/stores/servlet/CategoryDisplay?catalogId=10551&storeId=10151&langId=-1&identifier=S_BrandShowcase_Retail_Locations" class="arrow_link">Find another Sony Style retail store</a>';
	document.write(output);
}
function getStoreById(id)
{
	for (var i in stores)
	{
		if (stores[i].id == id)
		return stores[i];
	}
}

function showImage(id)
{
	document.write("<img src='/wcsstore/SonyStyleStorefrontAssetStore/img/storelocator/"+id+"_Retail_img.jpg' id='storeImage'>");
}

function showBackstageSpot(id)
{
	var thisstore = getStoreById(id)
	if (thisstore.backstage == true)
	{
	return '<a href="/webapp/wcs/stores/servlet/CategoryDisplay?catalogId=10551&storeId=10151&langId=-1&categoryId=8198552921644515820"><img src="/wcsstore/SonyStyleStorefrontAssetStore/img/statics/espots/Backstage_banner.jpg"/></a>'; 
	// removed forced width from img tag (4/20/09 jkranz)
	}else {
	return '';
	}
}

var _OLED = new Array();
_OLED.getOLEDStoresByState = function(state)
{
	var state_stores = getArrayByState(state);
	var htmlOutput = ''
		for (var i =0; i <state_stores.length; i++)
		{
			if (state_stores[i]["OLED"] == true)
			{
				htmlOutput += "<a href='/webapp/wcs/stores/servlet/CategoryDisplay?catalogId=10551&storeId=10151&langId=-1&identifier=S_BrandShowcase_Retail_Locations_Stores&storeLocatorId="+state_stores[i].id+"'><strong>"+state_stores[i].city+"</strong>, "+state_stores[i].name+"</a><Br>";
				
			}
		}
	return htmlOutput;
}
_OLED.showOLEDStoresByState = function(state)
{
	var htmlOutput = '';
	htmlOutput += '<ul class="associated_links">';
	htmlOutput +=  '<li><a onclick="more(this)" class="arrow_link down" href="javascript:void(0)">'+state+'</a>'
	htmlOutput += '		<ul class="more_details" style="">';
	htmlOutput += '				<li>'
	htmlOutput += '					<div class="states">'
	htmlOutput += '						<p>'+_OLED.getOLEDStoresByState(state)+'</p>';
	htmlOutput += '					</div>'
	htmlOutput += '				</li>';
//	htmlOutput += '				<li class="close_btn"><a name="close" onclick="more(this.parentNode.parentNode.parentNode.firstChild);" class="close">Close</a></li>';
	htmlOutput += ' 			</ul>';
	htmlOutput += '		</li>'
	htmlOutput += '	</ul>';
	return htmlOutput;
}

var _BACKSTAGE = new Array();
_BACKSTAGE.getBACKSTAGEStores = function()
{
	var htmlOutput = Array();
	var temp1 = '';
	var temp2 = '';
	var return_states = Array();
	var backStageArray = _BACKSTAGE.getBACKSTAGEStates();
	for (var k = 0; k < backStageArray.length; k++)
	{
		var state_stores = getArrayByState(backStageArray[k]);
		for (var i =0; i <state_stores.length; i++)
		{
			if (state_stores[i]["backstage"] == true)
			{
				if (k<(10))
				{
					temp1 += _BACKSTAGE.showBACKSTAGEStoresByStateInColumns(backStageArray[k]);
				}else{
					temp2 += _BACKSTAGE.showBACKSTAGEStoresByStateInColumns(backStageArray[k]);
				}
				break;
			}
		}
	}
	htmlOutput.push(temp1);
	htmlOutput.push(temp2);
	return htmlOutput;
}
_BACKSTAGE.getBACKSTAGEStates = function()
{
	var return_Array = new Array();
	for (var k = 0; k < states.length; k++)
	{
	var state_stores = getArrayByState(states[k]);
		for (var i =0; i <state_stores.length; i++)
		{
			if (state_stores[i]["backstage"] == true)
			{
				return_Array.push(states[k]);
				break;
			}
		}
	}
	return return_Array;
}
_BACKSTAGE.getBACKSTAGEStoresByState = function(state)
{
	var state_stores = getArrayByState(state);
	var htmlOutput = ''
		for (var i =0; i <state_stores.length; i++)
		{
			if (state_stores[i]["backstage"] == true)
			{
				htmlOutput += "<a href='/webapp/wcs/stores/servlet/CategoryDisplay?catalogId=10551&storeId=10151&langId=-1&identifier=S_BrandShowcase_Retail_Locations_Stores&storeLocatorId="+state_stores[i].id+"'><strong>"+state_stores[i].city+"</strong>, "+state_stores[i].name+"</a><Br>";
				
			}
		}
	return htmlOutput;
}
_BACKSTAGE.showBACKSTAGEStoresByState = function(state)
{
	var htmlOutput = '';
	htmlOutput += '<ul class="associated_links">';
	htmlOutput +=  '<li><a onclick="more(this)" class="arrow_link down" href="javascript:void(0)">'+state+'</a>'
	htmlOutput += '		<ul class="more_details" style="">';
	htmlOutput += '				<li>'
	htmlOutput += '					<div class="states">'
	htmlOutput += '						<p>'+_BACKSTAGE.getBACKSTAGEStoresByState(state)+'</p>';
	htmlOutput += '					</div>'
	htmlOutput += '				</li>';
//	htmlOutput += '				<li class="close_btn"><a name="close" onclick="more(this.parentNode.parentNode.parentNode.firstChild);" class="close">Close</a></li>';
	htmlOutput += ' 			</ul>';
	htmlOutput += '		</li>'
	htmlOutput += '	</ul>';
	return htmlOutput;
}

_BACKSTAGE.showBACKSTAGEStoresByStateInColumns = function(state)
{
	var htmlOutput = '';
	htmlOutput += '<ul class="associated_links">';
	htmlOutput +=  '<li><p class="arrow_link">'+state+'</p>'
	htmlOutput += '		<ul>';
	htmlOutput += '				<li>'
	htmlOutput += '					<div class="states">'
	htmlOutput += '						<p>'+_BACKSTAGE.getBACKSTAGEStoresByState(state)+'</p>';
	htmlOutput += '					</div>'
	htmlOutput += '				</li>';
	htmlOutput += ' 			</ul>';
	htmlOutput += '		</li>'
	htmlOutput += '	</ul>';
	return htmlOutput;
}


_OutletPage = new Array();
_OutletPage.showStoresByState = function (state)
{
	var htmlOutput = '';
	htmlOutput += '<h2>'+state+'</h2>';
	var state_stores = getArrayByState(state);
		for (var i =0; i <state_stores.length; i++)
		{
		if (state_stores[i].outlet == true)
		{
			htmlOutput += ' <p><strong>'+state_stores[i].name+'</strong><br>';
			htmlOutput += state_stores[i].address+'<br>';
			htmlOutput += ' '+state_stores[i].city+', '+state_stores[i].state+', '+state_stores[i].zip+'<br>'
			htmlOutput += ' '+state_stores[i].phone+'<br>';
			if (state_stores[i].hours != '')
				htmlOutput += 'Store hours: <br><span class="hours">'+state_stores[i].hours+'</span><br>';
			htmlOutput += '<a href="javascript:void(0)" onclick="javascript:openDirectionsWindow('+state_stores[i].id+');">Driving Directions & Map</a>'
			htmlOutput += '<br></p>';
		}
		}
	return htmlOutput;
}

//
//
//	The below has been added for the backstage locator.
//
//

function createStateOptionList() {
	var stateArray = new Array();

	var backstage_states = _BACKSTAGE.getBACKSTAGEStates();
	for (var i = 0; i < backstage_states.length; i++) {
		var currentStateOption = new Array();
		currentStateOption['name'] = backstage_states[i];
		currentStateOption['value'] = backstage_states[i];

		stateArray[i] = currentStateOption;
	}

	return stateArray;
}

function populateStoreSelect(state) {
	var state_stores = getArrayByState(state);
	var storeArray = new Array();
	
	for (var i =0; i <state_stores.length; i++)
	{
		if (state_stores[i]["backstage"] == true)
		{
			var currentStoreOption = new Array();
			currentStoreOption['name'] = state_stores[i].city + ': ' + state_stores[i].name;
			currentStoreOption['value'] = state_stores[i].id;
			
			storeArray[storeArray.length] = currentStoreOption;
		}
	}
	
	return storeArray;
}

function getStoreInfo(id) {
	if (id!='' && id!='--') {
		var store = getStoreById(id);
		
		var output = '';
		output += '<h4>'+store.name+' </h4>';
		
		if (store.hours != ''&& store.hours!= undefined && store.hours != null) {
			output += '<p><strong>Store hours:</strong></p>';
			output += '<p>'+store.hours+'</p>';
		}
		
		var addressExists = (store.address != '' && store.address != undefined && store.address != null);
		
		if (addressExists) {
			output += '<p><strong>Store address:</strong></p>';
			output += '<p>'+store.address+'<br>'+store.city+', '+store.state+' '+store.zip+'';
		}
		if (store.phone != '' && store.phone != undefined && store.phone != null) {
			if (addressExists) {
				output += '<br>Phone '+store.phone+'</p>';
			} else {
				output += '<p>Phone '+store.phone+'</p>';
			}
		} else {
			if (addressExists) {
				output += '</p>';
			}
		}
		
		if (addressExists) {
			output += '<p><a href="javascript:openDirectionsWindow('+store.id+');">Driving Directions</a></p>';
		}
		
		
		
		if (store.mall_location != '' && store.mall_location!= undefined && store.mall_location != null) {
			output += '<p><strong>Mall Location:</strong></p>';
			output += '<p>'+store.mall_location+'</p>';
		}
		
		if (store.comments != '' && store.comments!= undefined && store.comments != null) {
			output += '<p>' + store.comments + '</p>';
		}
		
		return output;
	}
}