// JavaScript Document

if (document.images) {
	d0 = new Image();
	d0.src = 'images/maps/maps00.gif';
	var d0title = '  ';
	var d0text = ' ';

	d1 = new Image();
	d1.src = 'images/maps/maps01.gif';
	var d1title = 'District 1: Central Richmond, Inner Richmond, Jordan Park, Lake, Outer Richmond, Sea Cliff, Lone Mountain';
	var d1text = 'Framed by the Pacific Ocean, the Golden Gate Bridge, and Golden Gate Park, District 1 encompasses the northwest corner of San Francisco. From the Mediterranean villas of Sea Cliff to the great restaurants of Clement Street, these neighborhoods present a dazzling array of architectural styles, stunning views, eclectic services, coastal diversions, unique shops, and unparalleled recreational opportunities.';

	d2 = new Image();
	d2.src = 'images/maps/maps02.gif';
	var d2title = 'District 2: Golden Gate Heights, Outer Sunset, Inner Sunset, Inner Parkside, Central Sunset, Parkside, Outer Parkside';
	var d2text = 'Bordered by the zoo, Ocean Beach, the Great Highway, and Golden Gate Park, District 2 features many residential options. The dense eastern end of the region, known as the Sunset, gives way to residential areas and beach culture as one approaches the western border at Ocean Beach. Although largely comprised of single family homes, District 2 has ample shopping, services, and restaurants.';

	d3 = new Image();
	d3.src = 'images/maps/maps03.gif';
	var d3title = 'District 3: Lake Shore, Merced Heights, Pine Lake Park, Stonestown, Lakeside, Merced Manor, Ingleside, Ingleside Heights, Oceanview';
	var d3text = 'A delightfully broad spectrum of residential neighborhoods, District 3 includes San Francisco’s most suburban-style areas. From cute starter homes in Oceanview to elegant villas in Lakeside and Merced Manor, this district appeals to a wide variety of people. Home to San Francisco State University, District 3 also provides great recreational opportunities, world renowned golf courses, the San Francisco Zoo, and Stonestown mall.';

	d4 = new Image();
	d4.src = 'images/maps/maps04.gif';
	var d4title = 'District 4: St Francis Wood, Forest Hill, Monterey Heights, Ingleside Terrace, Balboa Terrace, West Portal, Westwood Highlands, Westwood Park, Miraloma Park, Sunnyside, Diamond Heights, Midtown Terrace, Forest Knolls, Forest Hill Extension, Sherwood Forest, Mount Davidson Manor';
	var d4text = 'Some of the City’s most classic and exclusive residential neighborhoods are found in District 4 where the meticulously manicured lawns and lavishly landscaped yards compliment the variety of Tudor, Mediterranean and Italianate mansions. With condominiums and starter homes, bustling commercial zones, great transit lines reaching throughout San Francisco, international restaurants, unique shops and services, this district has much to offer young families as well.';

	d5 = new Image();
	d5.src = 'images/maps/maps05.gif';
	var d5title = 'District 5: Noe Valley, Twin Peaks, Clarendon Heights, Parnassus / Ashbury Heights, Corona Heights, Buena Vista Park, Glen Park, Haight Ashbury, Duboce Triangle, Mission Dolores';
	var d5text = 'Beginning on the Eastern slope of Twin Peaks and gradually ending in the Mission District, this is one of the more popular districts in San Francisco. Charming Victorian and Edwardian homes, great weather, and spectacular views of downtown and the Bay are just some of the reasons why. Locals frequent the popular 24th Street commercial district, unique Castro Village shops, as well as great access to celebrated Mission district restaurants and bars.';

	d6 = new Image();
	d6.src = 'images/maps/maps06.gif';
	var d6title = 'District 6: Hayes Valley, Alamo Square, North Pan Handle, Anza Vista, Lower Pacific Heights, Western Addition';
	var d6text = 'From the apartment complexes of the Western Addition to the classic Victorian architecture of Alamo Square and Hayes Valley, locals can walk to Davies Hall, downtown, and the City’s amazing main library. Still the most affordable of the central districts, the neighborhoods of this district feature eccentric galleries, blocks and blocks of mouthwatering Japanese food, delightful boutiques, and both historic and contemporary homes and condominiums with great views.';

	d7 = new Image();
	d7.src = 'images/maps/maps07.gif';
	var d7title = 'District 7: Presidio Heights, Pacific Heights, Cow Hollow, Marina, Presidio';
	var d7text = 'Fly your kite at Crissy Field. Take your dog for a run along through the lush forests and beachfront trails of the Presidio. And enjoy the great bars, restaurants, boutiques, and shops that this vibrant district has to offer. With a fantastic mix of architectures, District 7 features historic Victorians, Chateaus, Mediterraneans, and mansions as well as more contemporary designs ­ and some of the most electrifying views to be found anywhere on Earth.';

	d8 = new Image();
	d8.src = 'images/maps/maps08.gif';
	var d8title = 'District 8: North Waterfront, Russian Hill, North Beach, Telegraph Hill, Nob Hill Downtown, Financial District, Van Ness/ Civic Center';
	var d8text = 'In this dense urban setting, condominiums, co-ops, and luxury penthouses are the norm. Home to famous China Town and the historically Italian North Beach, this district also contains the architecturally acclaimed Civic Center, the San Francisco Opera House, Davies Symphony Hall, Opera House, and Asian Art Museum. Postcard perfect, Russian Hill is where you’ll find world-famous Lombard Street, as well as outstanding view of downtown and the Bay.';

	d9 = new Image();
	d9.src = 'images/maps/maps09.gif';
	var d9title = 'District 9: Inner Mission, South of market, South Beach, Mission Bay, Potrero Hill, Central Waterfront, Bernal Heights';
	var d9text = 'The neighborhoods in this area offer some of San Francisco’s best weather. From the new South Beach developments to Bernal Heights’ hilltop homes, this district’s architectural offerings are diverse. Its feel decidedly urban. And its weather among San Francisco’s best. Here you’ll find contemporary condos, stately historic residences, and elegant live/work loft developments ­ all just minutes from SBC Park, the Museum of Modern Art, the Moscone Center, and the thriving South of Market (SOMA) cultural community. Other characteristics of this district include quaint streets, tucked away alleys, and a down-to-earth farmer’s market.';

	d10 = new Image();
	d10.src = 'images/maps/maps10.gif';
	var d10title = 'District 10: Silver Terrace, Bayview, Hunters Point, Bayview Heights, Portola, Visitation Valley, Excelsior, Mission Terrace, Outer Mission, Crocker Amazon';
	var d10text = 'A mix of industrial and residential neighborhoods, this district offers some of the most affordable housing in the city. Here, quaint cottages, stucco homes, and multi-unit properties combine with friendly coffee shops and restaurants, close proximity to BART, easy freeway access, and some of the City’s best weather.';

	d11 = new Image();
	d11.src = 'images/maps/maps11.gif';
	var d11title = 'District 11: Lorem Ipsum Dolor Set';
	var d11text = 'Salve regina mater misericordae. Vita dulcedo et spes nostra. Ad te clemamus exuules filii ad te suspiramos gementes et flentes o clemens o pia.';
}

//rollover and caption swap for overview pages
function showDistrict(whichMap,whichTitle,whichText) {
if (document.getElementById) {
	document.getElementById('dmap').src = eval(whichMap + ".src");
	document.getElementById('dtitle').childNodes[0].nodeValue = whichTitle;
	document.getElementById('dtext').childNodes[0].nodeValue = whichText;
	}
else {
	return true;
	}
}

