var map;
function removeCGCustomToolTip() {
if (document.getElementById("infodiv")) {
document.getElementById("infodiv").style.display = "none";
}
return false;
}
function displayCGCustomToolTip(headline,region,link,bewerbenlink,latlng) {
removeCGCustomToolTip();
if (document.getElementById("infodiv")) {
newdiv = document.getElementById("infodiv")
} else {
var newdiv = document.createElement("div");
var mapdiv = document.getElementById("map");
mapdiv.appendChild(newdiv);
newdiv.id = "infodiv";
}
latlng =latlng.toString();
latlng = latlng.split(",");
pixelX = latlng[0].split("(");
pixelX = pixelX[1];
pixelY = latlng[1].split(")");
pixelY = pixelY[0];
newdiv.style.top = pixelY - 128 + "px";
newdiv.style.left = pixelX - 327 + "px";
region = region.substr(0,100);
if (region.length == 100) {
region += "...";
}
if (bewerbenlink == "") {
//nojobs available
newdiv.innerHTML = "Agentur "+headline+"
Diese Vertriebsrepräsentanz betreut die Regionen um:
"+region+"
X";
} else {
newdiv.innerHTML = "Agentur "+headline+"
Diese Vertriebsrepräsentanz betreut die Regionen um:
"+region+"
X";
}
newdiv.style.display = "block";
}
function load() {
if (document.getElementById("map")) {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(51.10, 11.27), 6);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
GEvent.addListener(map,'dragstart', function() {
removeCGCustomToolTip();
});
var ewIcon = new GIcon(G_DEFAULT_ICON);
ewIcon.image = "http://www.euroweb-jobs.com/images/google/marker.png";
ewIcon.shadow = "http://www.euroweb-jobs.com/images/google/markerSchatten.png";
ewIcon.iconSize = new GSize(46, 43);
ewIcon.shadowSize = new GSize(46, 43);
ewIcon.iconAnchor = new GPoint(16, 41);
//ewIcon.imageMap = Array(0,0,34,0,34,43,0,43);
ewIcon.imageMap = Array(0,17,17,0,32,15,14,40);
// Set up our GMarkerOptions object
markerOptions = { icon:ewIcon };
marker0 = new GMarker( new GLatLng(53.8992100, 10.7916700), ewIcon);
GEvent.addListener(marker0, 'click', function(){
link = "/de/luebeck/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=luebeck";
var newLatLng = marker0.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Lübeck","Lübeck, Neumünster, Elmshorn, Bad Segeberg, Schwerin, Wismar, Travemünde, Reinbek und Bad Oldesloe",link,bewerbenlink,pixels)
});
map.addOverlay(marker0);
marker1 = new GMarker( new GLatLng(53.5798405, 10.0294627), ewIcon);
GEvent.addListener(marker1, 'click', function(){
link = "/de/hamburg/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=hamburg";
var newLatLng = marker1.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Hamburg","Hamburg, Cuxhaven, Lüneburg, Stade, Buxtehude, Bremervörde",link,bewerbenlink,pixels)
});
map.addOverlay(marker1);
marker2 = new GMarker( new GLatLng(52.4806900, 13.3292400), ewIcon);
GEvent.addListener(marker2, 'click', function(){
link = "/de/berlin/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=berlin";
var newLatLng = marker2.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Berlin","Berlin, Potsdam, Oranienburg, Falkensee, Frankfurt (Oder), Neuruppin, Eberswalde und Cottbus",link,bewerbenlink,pixels)
});
map.addOverlay(marker2);
marker3 = new GMarker( new GLatLng(52.0572000, 8.5516900), ewIcon);
GEvent.addListener(marker3, 'click', function(){
link = "/de/bielefeld/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=bielefeld";
var newLatLng = marker3.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Bielefeld","Bielefeld, Gütersloh, Herford, Detmold, Osnabrück, Paderborn und Minden",link,bewerbenlink,pixels)
});
map.addOverlay(marker3);
marker4 = new GMarker( new GLatLng(51.5029624, 7.4949569), ewIcon);
GEvent.addListener(marker4, 'click', function(){
link = "/de/dortmund/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=dortmund";
var newLatLng = marker4.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Dortmund","Dortmund, Castrop- Rauxel, Ruhrgebiet, Hamm, Iserlohn, Hagen, Münster und Arnsberg",link,bewerbenlink,pixels)
});
map.addOverlay(marker4);
marker5 = new GMarker( new GLatLng(51.4899300, 6.9974200), ewIcon);
GEvent.addListener(marker5, 'click', function(){
link = "/de/essen/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=essen";
var newLatLng = marker5.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Essen","Essen, Oberhausen, Mühlheim a.d.Ruhr, Duisburg, Krefeld, Niederrhein, Moers, Dinslaken, Bottrop, Gelsenkirchen",link,bewerbenlink,pixels)
});
map.addOverlay(marker5);
marker6 = new GMarker( new GLatLng(51.3598800, 12.3948900), ewIcon);
GEvent.addListener(marker6, 'click', function(){
link = "/de/halle-leipzig/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=halle-leipzig";
var newLatLng = marker6.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Halle/Leipzig","Merseburg, Leipzig, Jena, Lutherstadt/Eisleben, Gera, Eilenburg, Halle, Magdeburg, Dessau und Borna",link,bewerbenlink,pixels)
});
map.addOverlay(marker6);
marker7 = new GMarker( new GLatLng(50.9736930, 10.9605530), ewIcon);
GEvent.addListener(marker7, 'click', function(){
link = "/de/erfurt/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=erfurt";
var newLatLng = marker7.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Erfurt","Erfurt, Chemnitz, Bautzen, Hoyerswerda, Zschopau, Bischofswerda, Kamenz, Görlitz, Zwickau, Oelsnitz/ Vogtlandkreis, LK Stollberg und Annaberg",link,bewerbenlink,pixels)
});
map.addOverlay(marker7);
marker8 = new GMarker( new GLatLng(50.1233100, 8.5955900), ewIcon);
GEvent.addListener(marker8, 'click', function(){
link = "/de/frankfurt/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=frankfurt";
var newLatLng = marker8.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Frankfurt","Frankfurt a.M., Offenbach, Darmstadt, Wiesbaden, Mainz, Bad Homburg, Aschaffenburg, Koblenz und Bad Kreuznach",link,bewerbenlink,pixels)
});
map.addOverlay(marker8);
marker9 = new GMarker( new GLatLng(49.4094900, 11.0595100), ewIcon);
GEvent.addListener(marker9, 'click', function(){
link = "/de/nuernberg/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=nuernberg";
var newLatLng = marker9.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Nürnberg","Nürnberg, Würzburg, Ansbach, Bamberg, Bayreuth, Regensburg, Weiden, Schwandorf, Schweinfurt, Weißenburg, Schwabach, Fürth, Erlangen und Ingolstadt",link,bewerbenlink,pixels)
});
map.addOverlay(marker9);
marker10 = new GMarker( new GLatLng(48.6723800, 9.1778200), ewIcon);
GEvent.addListener(marker10, 'click', function(){
link = "/de/stuttgart/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=stuttgart";
var newLatLng = marker10.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Stuttgart","Stuttgart, Waiblingen, Göppingen, Heilbronn, Ludwigsburg, Balingen, Nagold, Backnang, Rottweil, Pforzheim, Reutlingen und Schwäbisch Hall",link,bewerbenlink,pixels)
});
map.addOverlay(marker10);
marker11 = new GMarker( new GLatLng(51.2628300, 6.3962100), ewIcon);
GEvent.addListener(marker11, 'click', function(){
link = "/de/viersen/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=viersen";
var newLatLng = marker11.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Viersen","Viersen",link,bewerbenlink,pixels)
});
map.addOverlay(marker11);
marker12 = new GMarker( new GLatLng(46.9458290, 7.4276649), ewIcon);
GEvent.addListener(marker12, 'click', function(){
link = "/ch/bern/index.php";
bewerbenlink = "/at/festanstellung-vertrieb-bewerbungsformular.php?agency=bern";
var newLatLng = marker12.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Bern","Bern",link,bewerbenlink,pixels)
});
map.addOverlay(marker12);
marker13 = new GMarker( new GLatLng(47.1036612, 15.4216237), ewIcon);
GEvent.addListener(marker13, 'click', function(){
link = "/at/graz/index.php";
bewerbenlink = "/at/festanstellung-vertrieb-bewerbungsformular.php?agency=graz";
var newLatLng = marker13.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Graz","Graz",link,bewerbenlink,pixels)
});
map.addOverlay(marker13);
marker14 = new GMarker( new GLatLng(51.0560900, 13.6866900), ewIcon);
GEvent.addListener(marker14, 'click', function(){
link = "/de/dresden/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=dresden";
var newLatLng = marker14.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Dresden","Dresden",link,bewerbenlink,pixels)
});
map.addOverlay(marker14);
marker15 = new GMarker( new GLatLng(48.2252508, 16.3535196), ewIcon);
GEvent.addListener(marker15, 'click', function(){
link = "/at/wien/index.php";
bewerbenlink = "/at/festanstellung-vertrieb-bewerbungsformular.php?agency=wien";
var newLatLng = marker15.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Wien","Wien",link,bewerbenlink,pixels)
});
map.addOverlay(marker15);
marker16 = new GMarker( new GLatLng(51.2755700, 9.5097100), ewIcon);
GEvent.addListener(marker16, 'click', function(){
link = "/de/kassel/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=kassel";
var newLatLng = marker16.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Kassel","Kassel, Göttingen, Warburg, Korbach, Waldeck, Marsberg, Bad Wildungen, Homberg, Beverungen, Eschwege, Rotenburg ",link,bewerbenlink,pixels)
});
map.addOverlay(marker16);
marker17 = new GMarker( new GLatLng(47.4034417, 8.5507966), ewIcon);
GEvent.addListener(marker17, 'click', function(){
link = "/ch/zuerich/index.php";
bewerbenlink = "/at/festanstellung-vertrieb-bewerbungsformular.php?agency=zuerich";
var newLatLng = marker17.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Zürich","Zürich",link,bewerbenlink,pixels)
});
map.addOverlay(marker17);
marker18 = new GMarker( new GLatLng(50.9255288, 6.8730638), ewIcon);
GEvent.addListener(marker18, 'click', function(){
link = "/de/koeln/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=koeln";
var newLatLng = marker18.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Köln","Köln",link,bewerbenlink,pixels)
});
map.addOverlay(marker18);
marker19 = new GMarker( new GLatLng(46.6213126, 14.3170472), ewIcon);
GEvent.addListener(marker19, 'click', function(){
link = "/at/klagenfurt/index.php";
bewerbenlink = "/at/festanstellung-vertrieb-bewerbungsformular.php?agency=klagenfurt";
var newLatLng = marker19.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("Klagenfurt","Klagenfurt",link,bewerbenlink,pixels)
});
map.addOverlay(marker19);
marker20 = new GMarker( new GLatLng(48.1621300, 11.3377400), ewIcon);
GEvent.addListener(marker20, 'click', function(){
link = "/de/muenchen/index.php";
bewerbenlink = "/de/festanstellung-vertrieb-bewerbungsformular.php?agency=muenchen";
var newLatLng = marker20.getLatLng();
var pixels = map.fromLatLngToContainerPixel(newLatLng);
displayCGCustomToolTip("München","München",link,bewerbenlink,pixels)
});
map.addOverlay(marker20);
}
}
}
window.onload = load;
window.onunload = GUnload;