// Copyright 2005 MapBuilder.net // You can't use this script or parts of this script without written permission from MapBuilder.net or Andrew Bidochko. // This script is a part of free service provided by MapBuilder.net and the script can be used from MapBuilder.net server only. function include(script_filename) { document.write('<' + 'script'); document.write(' language="javascript"'); document.write(' type="text/javascript"'); document.write(' src="' + script_filename + '">'); document.write(''); } include("http://www.mapbuilder.net/js/direction.php"); // Global Variables // set map variable var map = ""; //set up array of locations var aLocations = new Array; // Storage for sidebar list var listNodeContent = ""; // Create MabBuilder's "tiny" red marker icon var iconsm = new GIcon(); iconsm.image = "http://labs.google.com/ridefinder/images/mm_20_red.png"; iconsm.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; iconsm.iconSize = new GSize(12, 20); iconsm.shadowSize = new GSize(22, 25); iconsm.iconAnchor = new GPoint(6, 20); iconsm.infoWindowAnchor = new GPoint(5, 1); // Create MabBuilder's "big" marker icon var iconbig = new GIcon(); iconbig.image = "http://www.google.com/mapfiles/marker.png"; iconbig.shadow = "http://www.google.com/mapfiles/shadow50.png"; iconbig.iconSize = new GSize(20, 34); iconbig.shadowSize = new GSize(37, 34); iconbig.iconAnchor = new GPoint(6, 34); iconbig.infoWindowAnchor = new GPoint(5, 1); // Custom Icon var iconcustom = new GIcon(iconbig); iconcustom.shadow = ''; /* * Copyright (c) 2005 Andriy Bidochko. * http://www.mapbuilder.net * * The script has been generated by MapBuilder.net service and released to the customer under * The GNU General Public License (GPL), which can be found at: http://www.opensource.org/licenses/gpl-license.php * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU General Public License as published by the Free Software Foundation; * either version 2 of the License, or any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. */ MapBuilder.prototype.GetGoogleMapsAPIVersion = function() { var v = 0; var scripts = document.getElementsByTagName("SCRIPT") for (var i=0; iPowered By MapBuilder.net v1.0, GMap v'+v+''; try { if (v > 2) { oMap.getContainer().appendChild(info); } else { oMap.div.parentNode.appendChild(info); } } catch (e) { // do nothing } } GMap.prototype.addMapBuilder=function(oMap){ oMap.initialize(this); } MapBuilder.prototype.registerMBEvent=function(oMap){ GEvent.addListener(oMap, "maptypechanged", function() { setCreatedColor(oMap); }); } GMap.prototype.addMapBuilder=function(oMap){ oMap.initialize(this); } //Set "Created By Mapbuilder" color based on map type function setCreatedColor(oMap) { // v1 return ; var info=oMap.ownerDocument.getElementById('CreatedByMapBuilder'); currmaptype = getCurrentMapTypeNumber(oMap); // Regular map if (currmaptype == 0) info.style.color='#000000'; else info.style.color='#FFFFFF'; } //That function will return the element of the array returned by map.getMapTypes() that identifies the current map function getCurrentMapTypeNumber(oMap){ var type=-1; for(var ix=0;ix 7) ? 7 : ((currentZoom == 0) ? 0 : (currentZoom - 1)); map.centerAndZoom(aLocations[num][3], newzoom); } // Function is called when sidebar item is clicked or we are dealing with group boxes. function myInfoWindowHtml(num) { // Map rendering with open info window is very slow. Lets center map first. map.centerAtLatLng(aLocations[num][3]); // Use markeropenInfoWindowHtml(html) aLocations[num][0].openInfoWindowHtml(aLocations[num][2]); // Move focus to the map // Depricated //window.scrollTo(10, 10); } // Creates a locations list and put it into side bar function createSideBar() { // write links into document. for (var i=0; i" + GetDirectionForm(0); + ""; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Despina & Jogi's German Rest.

56 Airport Blvd. Suite 2 
304-284-0139
http://www.morgantown-wv.worldweb.com/RestaurantsBars/German/
Traditional German Music evenings.

" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[0] = new Array(marker, "Despina & Jogi's German Rest.", InfoHTML, point); point = new GPoint(-79.96653199195862, 40.42829625377347); footerHtml = "
" + GetDirectionForm(1); + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Hofbräuhaus Pittsburgh
\"\"
Coming Spring 2006 to the Southside Works!
http://www.thesouthsideworks.com/
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[1] = new Array(marker, "Hofbräuhaus Pittsburgh", InfoHTML, point); point = new GPoint(-79.7823, 40.541237); footerHtml = "
" + GetDirectionForm(2); + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Kleiner Deutschmann

Kleiner Deutschmann
643 Pittsburgh St
Springdale, PA 15144
724-274-5022
German food in nice atmosphere.  Look for the pink building! Order the veal shank and they’ll ring the bell for you!
www.pittsburghlive.com/x/style/fooddrink/homeplate/s_279586


\"\"

" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[2] = new Array(marker, "Kleiner Deutschmann", InfoHTML, point); point = new GPoint(-80.000483, 40.455089); footerHtml = "
" + GetDirectionForm(3); + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Max’s Allegheny Tavern

537 Suisman Street, North Side
412-231-1899
German food, kid’s menu
http://www.maxsalleghenytavern.com/


\"\"

" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[3] = new Array(marker, "Max’s Allegheny Tavern", InfoHTML, point); point = new GPoint(-79.713463, 40.44168); footerHtml = "
" + GetDirectionForm(4); + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
McDades Garden Cafe
McDades Garden Cafe

www.pittsburghlive.com/x/style/fooddrink/homeplate/s_279586
some German food items on menu


" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[4] = new Array(marker, "McDades Garden Cafe", InfoHTML, point); point = new GPoint(-79.991441, 40.456893); footerHtml = "
" + GetDirectionForm(5); + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Penn Brewery

800 Vinial Street, North Side
412-237-9400
http://www.pennbrew.com/
German food, beer produced onsite in the German tradition, often has German oompah bands, tours available


\"\"

" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[5] = new Array(marker, "Penn Brewery", InfoHTML, point); point = new GPoint(-80.254378, 40.174336); footerHtml = "
" + GetDirectionForm(6); + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Pizza with a German Twist
308 Jefferson Ave
Washington PA
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[6] = new Array(marker, "Pizza with a German Twist", InfoHTML, point); point = new GPoint(-79.547497, 40.304282); footerHtml = "
" + GetDirectionForm(7); + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Red Star BRewery
German style beers, a few \'German\' style food items, and regular festivals.
http://www.redstarbrewery.com/index.php
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[7] = new Array(marker, "Red Star BRewery", InfoHTML, point); // And finnaly create sidebar createSideBar(); // Store sidebar listNodeContent = document.getElementById("LocationList").innerHTML; }