var locations = new Array(23);locations['161'] = new Array("161", "39.9639100", "-86.1365950", "", "", "", "", "", "Carmel Drive Self Storage", "Carmel", "550 W. Carmel Drive Carmel, IN 46032", "317-574-1700", "317-973-0402", "Take Meridian Street south to 126th Street/Carmel Drive (Turn left) to go east on Carmel Drive to 1/2 block past Guilford. Turn left into 550 West Carmel Drive on North side of street across from the Performing Arts Center.", "Take Meridian Street north to 126th Street/Carmel Drive (Turn right) to go east on Carmel Drive to 1/2 block past Guilford. Turn left into 550 West Carmel Drive on North side of street across from the Performing Arts Center.", "Take 116th Street west to Guilford (Turn Right) to go north to Carmel Drive. Turn right again at Carmel Drive &amp; Guilford to go east 1/2 block. Turn left into facility which is across the street from the Performing Arts Center.", "Take 116th Street east to Guilford (Turn Left) to go north to Carmel Drive. Turn right at Carmel Drive &amp; Guilford &amp; go east 1/2 block.Landmark: across the street from the Performing Arts Center.", "IN", "Indiana", "46032", "550", "W. Carmel Drive"); locations['193'] = new Array("193", "38.5670840", "-90.5236210", "", "", "", "", "", "Infinite Self-Storage", "Ballwin", "650 Big Bend Rd. Ballwin, MO 63021", "636-527-2130", "636-552-4478", "", "", "", "", "MO", "Missouri", "63021", "650", "Big Bend Rd."); locations['141'] = new Array("141", "41.7063720", "-88.1233370", "", "", "", "", "", "Infinite Self-Storage", "Bolingbrook", "296 North Weber Rd Bolingbrook, IL 60440", "630-679-1234", "630-914-9673", "State Road 53 to West Boughton Rd.Turn Right onto West Boughton Rd. to North Naperville Rd./South Washington St./North Weber Rd. Turn Right onto North Naperville Rd./South Washington St./North Weber Rd. We will be on the Left hand side of road across street from Hobby Lobby and Subway and just prior to Jewel-Osco enter.", "State Road 53 to Naperville Rd./West Normantown Rd. Take left at Naperville Rd./West Normantown Rd. and follow West Normantown Rd. to Luther Dr./Schmidt Rd. Turn right at Luther Dr./Schmidt Rd. to South Naperville Rd. Make Slight left at South Naperville Rd. to Joliet-Naperville Rd./S.Naperville-Romeo Rd./Veterans Parkway. Continue straight onto Joliet-Naperville Rd./S.Naperville-Romeo Rd./Veterans Parkway to South Weber Rd. Turn right onto South Weber Rd. Store is on right hand side for road just beyond Jewel-Osco Entrance.", "Take I-55 S to South Bolingbrook Dr.Turn right onto South Bolingbrook Dr. to East Boughton Rd.Turn left on East Boughton Rd. to North Weber Rd.Turn right onto North Weber Rd.Store will be on right hand side for road just beyond Jewel-Osco Entrance.", "U.S. 30 to to 111th St.Turn left onto 111th st. to Plainfield-Naperville Rd./CR. 14.Turn Left onto Plainfield-Naperville Rd./CR. 14. to West Boughton/CR 67EastTurn right onto West Boughton/CR 67 East to North Weber Rd.Turn left onto N. Weber Rd.We will be on the right hand side of the road just beyond Jewel-Osco Entrance.", "IL", "Illinois", "60440", "296", "North Weber Rd"); locations['160'] = new Array("160", "39.8213967", "-86.4010275", "", "", "", "", "", "Infinite Self-Storage", "Brownsburg", "1670 South Green Street Brownsburg, IN 46112", "317-852-6688", "317-456-7777", "I-74 head south 3 miles. Facility is just after the Village Pantry &amp; Airport Rd on the right hand side.", "From SR 36/Rockville Rd head north approximately 4 miles. Facility will be on your left as soon as you enter Brownsburg.", "SR 136: Head west to Green St/SR 267. Turn left and go approximately 2 miles south. Facility is just after the Village Pantry/Airport Rd on the right hand side.", "Head east to Green St/SR 267. Turn right and go approximately 2 miles south. Facility is just after the Village Pantry/Airport Rd on the right hand side.", "IN", "Indiana", "46112", "1670", "South Green Street"); locations['142'] = new Array("142", "41.6238888", "-87.5880863", "", "", "", "", "", "Infinite Self-Storage", "Dolton", "14900 Woodlawn Avenue Dolton, IL 60419", "708-841-0168", "708-487-4129", "Coming from north on Bishop Ford Freeway, exit on Sibley Blvd west, 1/4 of mile at the second light on your right, the store is directly behind Walgreens.", "Coming from south on I-57 Freeway, exit on Sibley Blvd East or 147th east, 10 miles, 5 blocks passed Chicago Road the store is directly behind Walgreens on the left side at Sibley and Woodlawn Ave.", "Coming from the east on Bishop Ford Freeway, exit on Sibley Blvd west, 1/4 of mile at the second light on your right, the store is directly behind Walgreens at Sibley and Woodlawn Ave.", "Coming from west on I-57 Freeway, exit Sibley Blvd East, or 147th East, continues 10 miles east, 5 blocks passed Chicago Road the store is directly behind Walgreens on the left side at Sibley and Woodlawn Ave.", "IL", "Illinois", "60419", "14900", "Woodlawn Avenue"); locations['156'] = new Array("156", "41.6732275", "-85.9928750", "", "", "", "", "", "Infinite Self-Storage", "Elkhart", "1665 West Franklin Street Elkhart, IN 46516", "574-295-3506", "574-584-3329", "", "", "", "", "IN", "Indiana", "46516", "1665", "West Franklin Street"); locations['157'] = new Array("157", "41.7188415", "-85.9726758", "", "", "", "", "", "Infinite Self-Storage", "Elkhart", "2421  Cassopolis St Elkhart, IN 46514", "574-262-4084", "574-206-4413", "Take US 131 S until you come to the MI-60W exit. Take the MI-60W Niles exit and get onto MI-60W and follow that for about 8 miles. Turn left onto MI-40. Follow MI-40 for about 7 miles and then turn right onto Old US-12/US-12 and follow US-12 for 8.5 miles until you come to MI-205. Turn left onto MI-205 and follow MI-205 for almost 5 miles. MI-205 turns into IN-19/Cassopolis St. After you enter Indiana you will go through several stop lights. The last stop light you will go through will be Cassopolis St./CR 6. After this stoplight you will go approximately &frac14; mile before you reach Infinite Self Storage. We will be on your right hand side in between Chicago Grill &amp; Bar and MSI Trailers and across the street from North End Cycle.", "Take 31 North to South Bend, IN. When you reach the exit ramp for US 20 take a slight right onto US 20. Follow US 20 until you reach the IN-19 N exit. Follow IN-19 until you hit Cassopolis St. You will see North Side Middle school on the right corner nearest you, Walgreens on the right corner farthest from you, a Shell gas station on the left corner farthest from you, and a closed Marathon gas station on the left corner nearest to you. Take a left on Cassopolis St. Follow Cassopolis St. approximately 1 mile. Infinite Self Storage will be on your left hand side. We are located in between the Chicago Grill &amp; Bar and MSI Trailers, and across the street from North End Cycle.", "Take the I 80/90E/ Indiana Toll Road towards Ohio. Follow 80/90 for 43 miles until you come to the IN-19 exit, exit 92 towards Elkhart. Make sure to take the second IN-19 exit, not the first one or you will be going the wrong way. Follow IN-19 until you reach Bristol St. At this stoplight you will see a Shell gas station on the left corner farthest from you, a closed Marathon gas station on the left corner nearest to you, North Side Middle School on the right corner nearest you, and a Walgreens on the right corner farthest from you. Take a left at this light onto Cassopolis St. Follow Cassopolis St. approximately 1 mile. Infinite Self Storage will be on your left hand side. We are located in between Chicago Grill &amp; Bar and MSI Trailers and across the street from North End Cycle.", "Take I 69/US 27-N Towards Lansing, MI for approximately 44 miles. Merge onto I 80/90 W/Indiana Toll Road via exit 56. Travel approximately 53 miles and take exit 92 toward Elkhart. Turn left at the stoplight after you pay your toll. You will go over a bridge and go through 2 stoplights. After the second stop light go about a quarter of a mile down and Infinite Self Storage will be on your right hand side in between Chicago Grill &amp; Bar and MSI Trailers and across the street from North End Cycle.", "IN", "Indiana", "46514", "2421 ", "Cassopolis St"); locations['159'] = new Array("159", "41.7384853", "-86.0211748", "", "", "", "", "", "Infinite Self-Storage", "Elkhart", "28874  County Road 4 Elkhart, IN 46514", "574-266-1394", "574-584-3310", "GO SOUTH ON SR 19 (CASSOPOLIS ST) TURN RIGHT ON CR 4 (WEST) BY WALGREENS. GO THRU TWO STOP SIGNS. WE ARE FIRST DRIVEWAY ON LEFT AFTER BENDERS 66 GAS STATION.", "GO NORTH ON SR 19 (CASSOPOLIS ST) TURN LEFT ON CR 4 (WEST) BY WALGREENS. GO THRU TWO STOP SIGNS. WE ARE FIRST DRIVEWAY ON LEFT AFTER BENDERS 66 GAS STATION.", "GO WEST ON CR 6 TURN RIGHT ON CR 5 (NORTH) BY MOOSE LODGE. TURN LEFT AT FIRST STOP SIGN. WE ARE FIRST DRIVEWAY ON LEFT AFTER BENDERS 66 GAS STATION.", "GO EAST ON CR 6 TURN LEFT ON CR 5 (NORTH) BY MOOSE LODGE. TURN LEFT AT FIRST STOP SIGN. WE ARE FIRST DRIVEWAY ON LEFT AFTER BENDERS 66 GAST STATION.", "IN", "Indiana", "46514", "28874 ", "County Road 4"); locations['154'] = new Array("154", "38.0058910", "-87.6125360", "", "", "", "", "", "Infinite Self-Storage", "Evansville", "2820 Mesker Park Drive Evansville, IN 47720", "812-422-2718", "812-618-1744", "41 South into Evansville, Turn right at East Diamond Ave. Follow Diamond Ave West (through several stop lights on Diamond approx. 4miles) turn right onto Mesker Park Drive. Infinite Self Storage is on left hand side", "North on 41 get off Lloyd Expressway West Exit, turn right (North) on St. Joseph Ave (Med Johnson is on your left hand side), turn left onto Mesker Park Drive.", " I64W to exit 18 for State Highway 65 toward Cynthiana/Evansville; Turn left.Go approx 11 miles you will be at stop light for Indiana 66-Diamond Ave., turn left go 2 miles and you will be at Mesker Park Drive and turn left.", "I64 get off on exit 18 for State Highway 65 toward Cynthiana/Evansville; Turn right.Go approx 11 miles you will be at stop light for Indiana 66-Diamond Ave. turn left. Go 2 miles and you will get to Mesker Park Drive and turn left.", "IN", "Indiana", "47720", "2820", "Mesker Park Drive"); locations['155'] = new Array("155", "37.9788170", "-87.4673040", "", "", "", "", "", "Infinite Self-Storage", "Evansville", "7100 East Indiana Ave. Evansville, IN 47715", "812-473-7955", "812-618-1770", "Take US 41 S to Interstate I-64E.Go 4.4 miles to exit 29A for I-164/State hwy 57 S toward Henderson KY./Evansville.Go 13 miles to exit 7B for State Hwy 66W/Lloyd Expressway.Go to next stop light and turn right onto Cross Pointe Blvd. (Drury Inn/Shell gas station on corner).Turn left immediately past Drury Inn onto Indiana St.Destination is on right side directly across from Chick-Fil-A.", "Take Interstate I-64 to exit 29A for I-164/State hwy 57 S toward Henderson KY./Evansville.Go 13 miles to exit 7B for State Hwy 66W/Lloyd Expressway.Go to next stop light and turn right onto Cross Pointe Blvd. (Drury Inn/Shell gas station on corner).Turn left immediately past Drury Inn onto Indiana St.Destination is on right side directly across from Chick-Fil-A.", "Take US-41N through Henderson, KY.Continue on US-41N across the Ohio River and into Indiana.Exit onto I-164E and go approximately 7.5 miles.Take exit 7B for State Hwy 66W/Lloyd Expressway.Go to next stop light and turn right onto Cross Pointe Blvd. (Drury Inn/Shell gas station on corner).Destination is on right side directly across from Chick-Fil-A.", "Take Interstate I-64 to exit 29A for I-164/State hwy 57 S toward Henderson KY./Evansville.Go 13 miles to exit 7B for State Hwy 66W/Lloyd Expressway.Go to next stop light and turn right onto Cross Pointe Blvd. (Drury Inn/Shell gas station on corner).Turn left immediately past Drury Inn onto Indiana St.Destination is on right side directly across from Chick-Fil-A.", "IN", "Indiana", "47715", "7100", "East Indiana Ave."); locations['153'] = new Array("153", "41.1622713", "-85.1654580", "", "", "", "", "", "Infinite Self-Storage", "Fort Wayne", "8938  Lima Rd Fort Wayne, IN 46818", "260-489-0202", "260-255-3591", "South on I-69 to exit 111 (Lima Rd North). North on Lima Rd for approx 2 miles. Property on right next to electric company power station.", "North on I-69 to exit 111 (Lima Rd North). North on Lima Rd for approx 2 miles. Property on right next to electric company power station.", "", "", "IN", "Indiana", "46818", "8938 ", "Lima Rd"); locations['152'] = new Array("152", "39.8097840", "-85.7740759", "", "", "", "", "", "Infinite Self-Storage", "Greenfield", "1794  Fields Blvd Greenfield, IN 46140", "317-462-3868", "317-468-9090", "1.) Start out going SOUTH on N MAIN ST/IN-9.2.) Go over I-70 overpass. You will pass Greenfield Banking on the right. Keep going till you see Applebees on right this is on Muskegon Dr.3.) Turn RIGHT onto W. MUSKEGON DR. Turn RIGHT onto W. MUSKEGON DR. (just before the APPLEBEE&#039;S ON RIGHT)Pass Aldi&#039;s and Rusty Lows Collision on left. The next road is Fields Blvd4.) Turn LEFT onto FIELDS BLVD.5.) End at 1794 Fields Blvd.", "1.) Start out going North on N MAIN ST/IN-9.2.) Pass thru McKENZIE RD. (There is a Walgreens on your right)Keep going straight down ST/IN-9 and pass McDonalds on Left. Keep going straight get into left hand lane and ready to turn left.3.) Turn LEFT ON MUSKEGON DR. (APPLEBEE&#039;S is on the left)Pass Aldi&#039;s and Rusty Lows Collision on left. The next road is Fields Blvd4.) Turn LEFT onto FIELDS BLVD.5.) End at 1794 Fields Blvd.", "1.) Take I-70 W. toward GREENFIELD.2.) Take the IN-9 exit, EXIT 104, toward MAXWELL/GREENFIELD.3.) Merge onto N STATE ST/IN-9 S toward GREENFIELD. You will pass Greenfield Banking on the right. The next road is Muskegon Dr.4.) Turn RIGHT onto W. MUSKEGON DR. (APPLEBEE&#039;S ON RIGHT) Turn RIGHT onto W. MUSKEGON DR. (just before the APPLEBEE&#039;S ON RIGHT)Pass Aldi&#039;s and Rusty Lows Collision on left. The next road is Fields Blvd5.) Turn LEFT onto FIELDS BLVD.6.) End at 1794 Fields Blvd.Landmark: 2 blocks west of WalMart on Rt 9", "1.) Take I-70 E. toward GREENFIELD.2.) Take the IN-9 exit, EXIT 104, toward MAXWELL/GREENFIELD.3.) Merge onto N STATE ST/IN-9 S toward GREENFIELD.(You will pass Greenfield Banking on your right.)4.) Turn RIGHT onto W. MUSKEGON DR. (just before the APPLEBEE&#039;S ON RIGHT) Pass Aldi&#039;s and Rusty Lows Collision on left. The next road is Fields Blvd.5.) Turn LEFT onto FIELDS BLVD.6.) End at 1794 Fields Blvd.", "IN", "Indiana", "46140", "1794 ", "Fields Blvd"); locations['150'] = new Array("150", "39.9164240", "-86.1399550", "", "", "", "", "", "Infinite Self-Storage", "Indianapolis", "8802 Evergreen Ave Indianapolis, IN 46240", "317-566-9000", "317-973-0549", " From 96th and Meridian St. take Meridian St. South to 86th Street. Go East on 86th Street to Evergreen Ave. go North on Evergreen Ave. to the property. (Right behind Target).", " From 75th and Meridian St. take Meridian St. North to 86th Street. Go East on 86th Street to Evergreen Ave. go North on Evergreen Ave. to the property. (Right behind Target).", "From 86th and Keystone go West on 86th Street to Evergreen Ave. Go North on Evergreen Ave. to the property. (Right behind Target", " From 86th and Michigan go north on Michigan road to I-465. Go East on 465 to Meridian Street. Go south on Meridian Street to 86th Street. Go East on 86th Street to Evergreen Ave. go North on Evergreen Ave. to the property (right behind Target).Landmark: Target at Nora Plaza and US Post Office (Nora Branch)", "IN", "Indiana", "46240", "8802", "Evergreen Ave"); locations['151'] = new Array("151", "39.8470429", "-86.1402317", "", "", "", "", "", "Infinite Self-Storage", "Indianapolis", "1102  East 52nd Street Indianapolis, IN 46205", "317-466-1707", "317-644-1006", "South on College,turn left on 52nd St", "North on College, turn right on 52nd St", "Off Keystone head wsrt on 52nd St", "Off College head east on 52nd StLandmark: By Monon Trail, next to Bee Windows, and Hubbard &amp; Cravens Coffee Co.", "IN", "Indiana", "46205", "1102 ", "East 52nd Street"); locations['143'] = new Array("143", "41.5459867", "-88.1256273", "", "", "", "", "", "Infinite Self-Storage", "Joliet", "1397 N. Larkin Ave Joliet, IL 60435", "815-725-1799", "815-768-1823", "Take I-355 south to I -80Go west on I-80 to the Larkin St. (Rt. 7) exitProceed north on Larkin to Infinite S.S.- will be on the west side of Larkin directly behind the Bank Financial Building", "Take I - 55 north to I-80Go east on I-80 to the Larkin St. (Rt. 7) exitProceed north on Larkin to Infinite S.S.-will be on the west side of Larkin directly behind the Bank Financial Bldg.", "Take I-80 west to the Larkin St. (Rt. 7) exitGo north on Larkin St. to Infinite S.S.-will be on the west side of Larkin directly behind the Bank Financial Building", "Take I-80 east to the Larkin St. (Rt. 7) exitProceed north on Larkin to Infinite S.S.-will be on the west side of Larkin Directly behind the Bank Financial Building", "IL", "Illinois", "60435", "1397", "N. Larkin Ave"); locations['149'] = new Array("149", "41.5909392", "-86.7339277", "", "", "", "", "", "Infinite Self-Storage", "LaPorte", "1310  West 18th Street LaPorte, IN 46350", "219-324-7867", "219-369-4480", "New Buffalo, MI.....Hwy.12 West to Hwy. 212....At Hwy. 20 Interechange go east to Hwy. 39 (trafficlight &amp; Speedway Fuel Stop on corner)...turn right...Stay on 39 to a 3 way intersection (Pine Lake is straightahead)...turn left...Hwy. 39 turns into Pine Lake Ave.....Stay on Pine Lake Ave. going past KFC, Taco Bell &amp;McDonalds. You will approach a railroad bridge (get in right lane)..go over bridge &amp; at traffic light (Lincolnway,Courthouse on corner) turn right....Stay on Lincolnway thru 5 traffic lights...The 5th light is Andrew Avenue(Walgreen&#039;s on corner)...turn left... Stay on Andrew to 18th St. (2nd Stop sign)...turn right &amp; proceedapproximately 1 block...Infinite Self Storage units are on the left....Our office is located just ahead on theright in the Maple Tree Apartments Club House.", "Hwy. 30 West to Hwy. 421 North....proceed north on 421crossing over 4 sets of railroad tracks...Go past Nash Finch, Oasis Truck Stop and thru the Town of Westvilleand the traffic light...go past McDonalds to the traffic light (Hwy. 2 East) (BP Service Station on corner)...Stay on Hwy. 2 East past LaPorte County Fairgrounds to Hwy. 39 (1st Source Bank &amp; Christo&#039;s on the corner)turn right &amp; proceed to 18th Street (blinking light &amp; Maple Tree Apartments)...turn left...Our office is locatedin Maple Trees&#039; Clubhouse &amp; the storage units are across the street on the right.", "Hwy. 20 West to intersection of Hwy. 20 &amp; Hwy.2 (traffic lightand Junction City Truckstop on corner)...turn left...Hwy.20 turns into Lincolnway...Stay on Lincolnway pastWalmart &amp; Al&#039;s...continue west past Courthouse (corner of Pine Lake &amp; Lincolnway)...past Post Office &amp;Family Express to Andrew Avenue (traffic light &amp; Walgreen&#039;s)..turn left &amp; proceed to 18th Street (2nd StopSign)...turn right &amp; go approximately 1 block...Infinite Self Storage Units are on the left...Our office islocated in the Maple Tree Apartments&#039; Clubhouse across the street on the right.", ".Hwy. 2 East to Hwy. 421 (traffic light &amp; McDonald&#039;s)...turn left &amp; proceed to Hwy. 2East (traffic light &amp; BP Service Station)...turn right...Continue on Hwy.2 past LaPorte County Fairgrounds toHwy.39 (1st Source Bank &amp; Christo&#039;s on the corner)...turn right...Proceed to 18th Street (blinker light &amp;Maple Tree Apartments)....turn left....Our office is located in the Maple Tree Apartments&#039; Clubhouse &amp; the storage units are across the street on the right.", "IN", "Indiana", "46350", "1310 ", "West 18th Street"); locations['145'] = new Array("145", "39.2537340", "-84.2933490", "", "", "", "", "", "Infinite Self-Storage", "Loveland", "10686 Loveland Madeira Road Loveland, OH 45140", "513-697-7407", "513-334-2313", "I-275 South to Exit 52 Loveland/Indian Hill. Turn left onto Loveland Madeira Road. Infinite Self Storage is located one mile on the right behind Fifth Third Bank and across the street from Arby&#039;s.", "I-275 North to Exit 52 Loveland/Indian Hill. Turn left onto Loveland Madeira Road. Infinite Self Storage is located one mile on the right behind Fifth Third Bank and across the street from Arby&#039;s.", "I-275 West to Exit 52 Loveland/Indian Hill. Turn left onto Loveland Madeira Road. Infinite Self Storage is located one mile on the right.Landmark: behind Fifth Third Bank and across the street from Arby&#039;s.", "I-275 East to Exit 52 Loveland/Indian Hill. Turn left onto Loveland Madeira Road. Infinite Self Storage is located one mile on the right behind Fifth Third Bank and across the street from Arby&#039;s.", "OH", "Ohio", "45140", "10686", "Loveland Madeira Road"); locations['148'] = new Array("148", "41.4988887", "-87.3360175", "", "", "", "", "", "Infinite Self-Storage", "Merrillville", "6590  Broadway Merrillville, IN 46410", "219-756-3930", "219-306-4586", "Take I-65 south to 61st. St. go west to Broadway turn south by Shell Station, Store is 1/2 mile south on west side.", "Rt. 30 to Broadway, turn north by Walter E. Smith Furniture, Store is 2 miles north on west side. OR same as above except you would be going north.", "RT.30 to Broadway, turn north by Walter E. Smith Furniture, Store is 2 miles north on west side.", "Rt. 30 to Broadway, turn north by Walter E. Smith Furniture, Store is 2 miles north on west side.", "IN", "Indiana", "46410", "6590 ", "Broadway"); locations['144'] = new Array("144", "41.4918770", "-87.9247600", "", "", "", "", "", "Infinite Self-Storage", "New Lenox", "21827 South Schoolhouse Road New Lenox, IL 60451", "815-462-4100", "708-390-0050", "Take 355 Veterans Memorial Hwy to US-6 Southwest Hwy, make a slight left on ramp to New Lenox. Turn right on Maple Road take that down to Francis Road turn left and that runs you into Schoolhouse Road, turn right on Schoolhouse.", "Come up on Hwy 57 to Saulk Trail exit take a left heading west, that will run into Laraway Road; take that down to Schoolhouse and take a right.", "80 West to 45 LaGrange Rd exit 145 turn left on LaGrange to Laraway turn right, go down to Schoolhouse Road, turn right.", "Take Route 30 east to Schoolhouse Road, turn right and go down Schoolhouse.", "IL", "Illinois", "60451", "21827", "South Schoolhouse Road"); locations['147'] = new Array("147", "39.8671608", "-86.4679270", "", "", "", "", "", "Infinite Self-Storage", "Pittsboro", "302 North Meridian Avenue Pittsboro, IN 46167", "317-892-5625", "317-451-5161", "From I-74 get off on the Jeff Gordon Blvd and head south. Turn right on Meridian St. and facility is on your right hand side across from the gas station.", "Head north on S Maple St to SR 136 and turn left. Then turn right on Meridian St and facility is on the left hand side just over the railroad tracks", "From Brownsburg head west on SR 136 to Meridian St and turn right. Property on left hand side just after railroad tracks.", "From Lizton head east on SR 136 to Meridian St and turn left. Property on left hand side just after railroad tracks.", "IN", "Indiana", "46167", "302", "North Meridian Avenue"); locations['146'] = new Array("146", "39.7070115", "-86.3570496", "", "", "", "", "", "Infinite Self-Storage", "Plainfield", "2176 Metropolis Parkway Plainfield, IN 46168", "317-837-4283", "317-210-1220", "Take 465 W. to exit 12B (W.Washington St.), Follow W.Washington St. (US 40 W.) just past the Walmart Supercenter. Make a left turn onto Clarks Creek Road. Follow and Take a left at the next light (Metropolis Pkwy). We are the 2nd building on the left.", "Take SR 267 into Plainfield; (SR 267 is Quaker Blvd.) drive 5 intersection lights. (Plainfield water tower on left). Turn right at 5th light onto Metropolis Pkwy. Go through the next light (Clarks Creek Rd). We are the 2nd building on your left.", "Take interstate 70 E. to exit 66 (Plainfield/Mooresville). Turn left onto SR 267 (Quaker Blvd.) Drive 5 intersection lights,(Plainfield Water Tower on right) Turn right at 5th light onto Metropolis Pkwy. go through the next light (Clarks Creek Rd). We are the 2nd building on your left.", "Take interstate 70 W. to exit 66 (Plainfield/Mooresville). Turn right onto SR 267 (Quaker Blvd). Drive 5 intersection lights, (Plainfield Water Tower on right) Turn right at 5th light onto Metropolis Pkwy. go through the next light (Clarks Creek RD). We are the 2nd building on your left.", "IN", "Indiana", "46168", "2176", "Metropolis Parkway"); locations['158'] = new Array("158", "41.4826170", "-87.6143460", "", "", "", "", "", "Infinite Self-Storage", "South Chicago Heights", "434 East Sauk Trail South Chicago Heights, IL 60411", "708-753-0300", "708-279-4145", "Take 394 South to Sauk Trail and turn west approx. 1 mile. Go past Cottage Grove Ave, site is on left side of road. (Blue fence ).", "Take 394 North to Sauk Trail and turn west approx 1 mile. Go past Cottage Grove Ave, site is on left side of road. (Blue fence).", "Take Sauk Trail west through Sauk Village past 394. Continue past Cottage Grove Ave, site is on the left side of the road. (Blue fence).", "Take Sauk Trail east through S. Chicago Heights, continue past State St. Site is on the right side of the road. (Blue fence).", "IL", "Illinois", "60411", "434", "East Sauk Trail"); locations['195'] = new Array("195", "41.1275796", "-85.1699780", "", "", "", "", "", "Self Storage", "Fort Wayne", "2130 Research Road Fort Wayne, IN 46808", "260-471-8800", "260-255-3487", "", "", "", "", "IN", "Indiana", "46808", "2130", "Research Road"); 

var facilities = new Array(161,193,141,160,142,156,157,159,154,155,153,152,150,151,143,149,145,148,144,147,146,158,195) 

function array_search (needle, haystack, argStrict) {
    // Searches the array for a given value and returns the corresponding key if successful  
    // 
    // version: 1008.1718
    // discuss at: http://phpjs.org/functions/array_search    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +      input by: Brett Zamir (http://brett-zamir.me)
    // +   bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // *     example 1: array_search('zonneveld', {firstname: 'kevin', middle: 'van', surname: 'zonneveld'});
    // *     returns 1: 'surname' 
    var strict = !!argStrict;
    var key = '';
 
    for (key in haystack) {        if ((strict && haystack[key] === needle) || (!strict && haystack[key] == needle)) {
            return key;
        }
    }
     return false;
}

function ConvertPlatformID(id) {

	var arrConvertID =  {
		1595 : '141',
		1603 : '142',
		2123 : '143',
		1596 : '158',
		1607 : '160',
		1611 : '161',
		2131 : '153',
		1606 : '152',
		1599 : '149',
		1598 : '148',
		1608 : '147',
		1609 : '146',
		1613 : '145',
		1597 : '144',
		1600 : '159',
		1601 : '156',
		1602 : '157',
		1605 : '155',
		1604 : '154',
		1610 : '151',
		1612 : '150',
		193  : '193'}
	
	
	var NewID = arrConvertID[id];
	
	if (NewID)
		return NewID;
	else
		return array_search(id, arrConvertID);
		
} 


//MAP//////////////

var directionDisplay;
  var directionsService = new google.maps.DirectionsService();
  var markersArray = [];
  var latlng; 
  var map;
  var trafficLayer;
  var bounds = new google.maps.LatLngBounds();
  var infowindow = new google.maps.InfoWindow();
  
  function createMarker(page, id) {
  
  	var contentString = "<h3>"+ locations[id][8] +" - "+ locations[id][9] +"</h3>";
	contentString += '';
	contentString += locations[id][20] +' '+locations[id][21]+'<br/>'+locations[id][9]+', '+locations[id][17]+'<br/>';
	contentString += ((locations[id][12] !== "--" ) ? locations[id][12] : locations[id][11]) +'<br/>'
	
	contentString += '<a href="/'+locations[id][9].replace(" ", "-")+'_'+locations[id][17]+'/zip_'+locations[id][19]+'/infinite-self-storage/'+ConvertPlatformID(locations[id][0])+'">More Information</a>';
	


	var position = new google.maps.LatLng(locations[id][1], locations[id][2])
    var marker = new google.maps.Marker({
        position: position,
        map: map,
        title: locations[id][8],
		icon: 'http://chart.apis.google.com/chart?chst=d_map_pin_letter_withshadow&chld=I|d0aa7b|000'
    }); //
	
	/*var infowindow = new google.maps.InfoWindow({
        content: contentString
    });*/
    if (page != 'facility') { google.maps.event.addListener(marker, 'click', function() {
        infowindow.close()
		infowindow.setContent(contentString);
		infowindow.open(map, marker);

    }); }
	markersArray.push(marker);
	bounds.extend(position)
	//alert (id + locations[id])
}
  
  
  function initialize(page, id, state, city) {
  
    if (id) { latlng = new google.maps.LatLng(locations[id][1], locations[id][2]); }
	else { latlng = new google.maps.LatLng(0,0) } 
    var myOptions = {
      zoom: 15,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    map = new google.maps.Map(document.getElementById("flashmap"), myOptions);
	
	directionsDisplay = new google.maps.DirectionsRenderer();
	directionsDisplay.setMap(map);
    directionsDisplay.setPanel(document.getElementById("directionsPanel"));
	
	if (id) {
		createMarker(page, id)
	} else {
		if (page == 'region') {
			if (city == 'hendricks_county') {
				createMarker(page, 147)
				createMarker(page, 146)
				createMarker(page, 160)
			}
			if (city == 'indianapolis') {
				createMarker(page, 147)
				createMarker(page, 146)
				createMarker(page, 160)
				createMarker(page, 152)
				createMarker(page, 151)
				createMarker(page, 150)
				createMarker(page, 161)
			}
		} else {
			for (var i=0; i<facilities.length; i++) {
				
				if (state == locations[facilities[i]][18]) {
					createMarker(page, facilities[i])
				}
				if (city == locations[facilities[i]][9]) {
					createMarker(page, facilities[i])
				}
				if (page == 'all_locations') {
					createMarker(page, facilities[i])
				}
				
			}
		}
		map.fitBounds(bounds);
	}

	

	if (id) {
	 // We get the map's default panorama and set up some defaults.
    // Note that we don't yet set it visible.
    panorama = map.getStreetView();
    panorama.setPosition(((locations[id][6]) ? new google.maps.LatLng(locations[id][6], locations[id][7]) : latlng));
	

    panorama.setPov({
      heading: ((locations[id][3]) ? parseFloat(locations[id][3]) : 16.5), 
      zoom: ((locations[id][5]) ? parseFloat(locations[id][5]) : 0),
      pitch: ((locations[id][4]) ? parseFloat(locations[id][4]) : 7.658284707444938)} //
    );
	
	}
	
   trafficLayer = new google.maps.TrafficLayer();
  
	/*
	google.maps.event.addListener(panorama, 'pov_changed', function() {
	document.getElementById("directionsPanel").innerHTML =  panorama.getPosition()+' '+panorama.getPov().heading +' '+ panorama.getPov().pitch
	
    }); */
	
	
if (page == 'state_locations' || page == 'all_locations' || page == 'city') {} else {
// Create the DIV to hold the control and
  // call the HomeControl() constructor passing
  // in this DIV.
  var streetControlDiv = document.createElement('DIV');
  var streetControl = new StreetControl(streetControlDiv, map);

  streetControlDiv.index = 1;
  map.controls[google.maps.ControlPosition.TOP_RIGHT].push(streetControlDiv);
  
  }
		if (page != 'facility') {
	// Create the DIV to hold the control and
  // call the HomeControl() constructor passing
  // in this DIV.
  var trafficControlDiv = document.createElement('DIV');
  var trafficControl = new TrafficControl(trafficControlDiv, map);

  trafficControlDiv.index = 1;
  map.controls[google.maps.ControlPosition.TOP_RIGHT].push(trafficControlDiv);
	
  
	
	// Create the DIV to hold the control and
  // call the HomeControl() constructor passing
  // in this DIV.
  var homeControlDiv = document.createElement('DIV');
  var homeControl = new HomeControl(homeControlDiv, map);

  homeControlDiv.index = 1;
  map.controls[google.maps.ControlPosition.TOP_RIGHT].push(homeControlDiv);
	
	}


  
  }
  var traffic_state = 0;
  
  function toggleTraffic() {
	if (traffic_state == 0) {
		trafficLayer.setMap(map);
		traffic_state = 1;
	} else {
		trafficLayer.setMap(null);
		traffic_state = 0;
	}
  }
  
   function toggleStreetView() {
    var toggle = panorama.getVisible();
    if (toggle == false) {
      panorama.setVisible(true);
    } else {
      panorama.setVisible(false);
    }
  }
  
  function calcRoute(start, id) {
    var end = locations[id][10];
    var start = start;
    var request = {
        origin:start, 
        destination:end,
        travelMode: google.maps.DirectionsTravelMode.DRIVING
    };
    directionsService.route(request, function(response, status) {
      if (status == google.maps.DirectionsStatus.OK) {
	    document.getElementById("directionsPanel").innerHTML = '';
        directionsDisplay.setDirections(response);
		 directionsDisplay.setMap(map);
		 if (markersArray) {
			/*for(i in markersArray) {
				markersArray[i].setMap(null);
			}*/
			for ( var r = 0; r < markersArray.length; r++) {
				markersArray[r].setMap(null)
			}
		 }
      }
    });
  return false;
  }
  
  function clearDirections(id) { 
	directionsDisplay.setMap(null);
	
	if (markersArray) {
		for ( var r = 0; r < markersArray.length; r++) {
				markersArray[r].setMap(map)
			}
	}
	document.getElementById("directionsPanel").innerHTML = '';
	document.getElementById("directionsPanel").innerHTML = 
	
	// 13 14 15 16
		
	((locations[id][13]) ? '<p><strong>From the From the North:</strong><br/>'+ locations[id][13] +'</p>' : '') +
	((locations[id][14]) ? '<p><strong>From the From the South:</strong><br/>'+ locations[id][14] +'</p>' : '') +
	((locations[id][15]) ? '<p><strong>From the rom the East:</strong><br/>'+ locations[id][15] +'</p>' : '') +
	((locations[id][16]) ? '<p><strong>From the From the West:</strong><br/>'+ locations[id][16] +'</p>' : '');
	map.setZoom(15)
	map.panTo(latlng)
	
	
	}
  
function HomeControl(controlDiv, map) {

  // Set CSS styles for the DIV containing the control
  // Setting padding to 5 px will offset the control
  // from the edge of the map
  controlDiv.style.padding = '5px';

  // Set CSS for the control border
  var controlUI = document.createElement('DIV');
  controlUI.style.backgroundColor = 'white';
  controlUI.style.borderStyle = 'solid';
  controlUI.style.borderWidth = '2px';
  controlUI.style.cursor = 'pointer';
  controlUI.style.textAlign = 'center';
  controlUI.title = 'Reset Map';
  controlDiv.appendChild(controlUI);

  // Set CSS for the control interior
  var controlText = document.createElement('DIV');
  controlText.style.fontFamily = 'Arial,sans-serif';
  controlText.style.fontSize = '12px';
  controlText.style.paddingLeft = '4px';
  controlText.style.paddingRight = '4px';
  controlText.innerHTML = 'Reset';
  controlUI.appendChild(controlText);

  // Setup the click event listeners: simply set the map to

  google.maps.event.addDomListener(controlUI, 'click', function() { map.setCenter(latlng); map.setZoom(15) } );
}
  
  function StreetControl(controlDiv, map) {

  // Set CSS styles for the DIV containing the control
  // Setting padding to 5 px will offset the control
  // from the edge of the map
  controlDiv.style.padding = '5px';

  // Set CSS for the control border
  var controlUI = document.createElement('DIV');
  controlUI.style.backgroundColor = 'white';
  controlUI.style.borderStyle = 'solid';
  controlUI.style.borderWidth = '2px';
  controlUI.style.cursor = 'pointer';
  controlUI.style.textAlign = 'center';
  controlUI.title = 'Street View';
  controlDiv.appendChild(controlUI);

  // Set CSS for the control interior
  var controlText = document.createElement('DIV');
  controlText.style.fontFamily = 'Arial,sans-serif';
  controlText.style.fontSize = '12px';
  controlText.style.paddingLeft = '4px';
  controlText.style.paddingRight = '4px';
  controlText.innerHTML = 'Street View';
  controlUI.appendChild(controlText);

  // Setup the click event listeners: simply set the map to

  google.maps.event.addDomListener(controlUI, 'click', function() { toggleStreetView(); } );
}
  
function TrafficControl(controlDiv, map) {

  // Set CSS styles for the DIV containing the control
  // Setting padding to 5 px will offset the control
  // from the edge of the map
  controlDiv.style.padding = '5px';

  // Set CSS for the control border
  var controlUI = document.createElement('DIV');
  controlUI.style.backgroundColor = 'white';
  controlUI.style.borderStyle = 'solid';
  controlUI.style.borderWidth = '2px';
  controlUI.style.cursor = 'pointer';
  controlUI.style.textAlign = 'center';
  controlUI.title = 'Traffic';
  controlDiv.appendChild(controlUI);

  // Set CSS for the control interior
  var controlText = document.createElement('DIV');
  controlText.style.fontFamily = 'Arial,sans-serif';
  controlText.style.fontSize = '12px';
  controlText.style.paddingLeft = '4px';
  controlText.style.paddingRight = '4px';
  controlText.innerHTML = 'Traffic';
  controlUI.appendChild(controlText);

  // Setup the click event listeners: simply set the map to

  google.maps.event.addDomListener(controlUI, 'click', function() { toggleTraffic() } );
}

function myclick(i) {
	
		google.maps.event.trigger(markersArray[i], "click");
	
}


