Session problem loading external map page

Discussion forum for MOD Writers regarding MOD Development.
Locked
orre
Registered User
Posts: 22
Joined: Fri Feb 25, 2011 8:19 pm
Name: Jan Orre

Session problem loading external map page

Post by orre » Mon Jun 15, 2015 9:04 pm

Support Request Template
What version of phpBB are you using? phpBB 3.0.13-PL1
What is your board's URL? http://www.vtxriders.se/forum
Who do you host your board with? http://www.oderland.se
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? Yes
Do you have any MODs installed? Yes
Do you have any extensions installed? Yes
What version of phpBB3 did you update from? phpBB 3.0.12-RC3
What MODs do you have installed? No answer given
What extensions do you have installed? No answer given
What styles do you currently have installed? subsilver2Clean
What language(s) is your board currently using? Swedish
Which database type/version are you using? MySQL 5
What is your level of experience? New to PHP but not phpBB
What username can be used to view this issue? No answer given
What password can be used to view this issue? No answer given
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? No answer given
Please describe your problem. External Google API based "Members-map" wont load properly when calling the .html page with phpBB session.
Generated by SRT Generator

Hi.

Reading many posts in this eminent forum, I finally managed to implement a session .php to allow only a specific user group to see an external html page with a Google based map “Membersmap” (Medlemskarta).

The “map.html” is placed together with some icon.png’s and a “markers.js” file in template folder (forum/styles/subsilver2Clean/template/karta/)

The “map.php” is placed in forum root and look like this:

Code: Select all

<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();

// The ids of the allowed groups
$allowed = array(55);

// See whether the user is member of one of these groups
$sql = 'SELECT user_id
    FROM ' . USER_GROUP_TABLE . '
    WHERE ' . $db->sql_in_set('group_id', $allowed) . '
          AND user_id = '  . $user->data['user_id'];
$result = $db->sql_query_limit($sql, 1, 0);
if (!$data = $db->sql_fetchfield('user_id', false, $result))
{
    if ($user->data['user_id'] != ANONYMOUS)
    {
        trigger_error('NOT_AUTHORISED');
    }

    login_box('', $user->lang['NO_ACCESS']);
} 


// The user can see this page!    
	
page_header('Medlemskarta');

$template->set_filenames(array(
    'body' => 'map.html',
));

make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>
It seem to be working just fine restricting user access!
However, it suddenly seem to prevent the html-page to display correctly. -That is, the markers of the map is not showing?.. (I believe its the .js part of the map that is not working?..)

Strangely, it did work perfectly for a while, but now It doesen’t?..
Direct-link to the map.html works fine though.

My external page is to be viewed at: http://www.vtxriders.se/medlemskarta.htm
Direct link to session at: http:removed
Direct link to html page at: http:removed
(I set user group to "guests" to let you view what I mean)removed

I certainly lack the knowledge to debug, and have been banging my head against this for a couple of days now… :roll:
Really, appreciate any help on solving the issue! :)

Sincerely
/orre
Last edited by orre on Wed Jun 17, 2015 6:28 pm, edited 2 times in total.

orre
Registered User
Posts: 22
Joined: Fri Feb 25, 2011 8:19 pm
Name: Jan Orre

Re: Session problem loading external map page

Post by orre » Tue Jun 16, 2015 7:29 pm

Sorry for posting in wrong forum..

Still no luck..
I don't know if this is a .js issue.
Nevertheless, it only appears when calling the .html file with session!?..

Had it working though!?
Has purged cache with no luck..
Same story if I remove the access part.

Anyone have any ideas please?

/orre

User avatar
AmigoJack
Registered User
Posts: 5599
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Session problem loading external map page

Post by AmigoJack » Wed Jun 17, 2015 5:41 am

Well, http://www.vtxriders.se/forum/styles/su ... markers.js exists, but http://www.vtxriders.se/forum/markers.js doesn't. You're using hardcoded locations, i.e.:

Code: Select all

var _markersLoaderUrl='markers.js';
instead of prepending them with the correct location that's substituted by the template system, i.e.:

Code: Select all

var _markersLoaderUrl='{T_SUPER_TEMPLATE_PATH}/karta/markers.js';
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

orre
Registered User
Posts: 22
Joined: Fri Feb 25, 2011 8:19 pm
Name: Jan Orre

Re: Session problem loading external map page

Post by orre » Wed Jun 17, 2015 6:25 pm

Thanks’ a million AmigoJack! :D

Putting my .js files together with “map.php” instead of together with the “map.html” solves the issue just fine!

I have read several places that the “session.php” HAS to be in forum root, and the “body.html” HAS to be in style folder, and kind of got stuck there…
(Neither do I understand that the .js and files doesn’t have to be in same folder as the .html that is carrying the hard coded path?…) :oops:

Anyway..
Now I have my “map.php” together with all .js files in their own folder.
I put the map.html file in the template folder.
Updated path’s in “map.php” accordingly.
This way the .js markers is not visible even if someone should use direct-path to the map.html file.

(I built the map with a third party software, and will have to update it regularly. Therefor it’s not practical to change all those .html paths…)

I have no idea if this will create any other problems?..
Seem to work just fine though!

Thanks again!! :!:
/orre

Ps.
I removed direct path's in my original post.

User avatar
AmigoJack
Registered User
Posts: 5599
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Session problem loading external map page

Post by AmigoJack » Wed Jun 17, 2015 9:17 pm

No, put all JS files into the template folder and use the template variable to prepend a path to them. Just as I showed in my example. Filling your root folder with output related files breaks consistency.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

orre
Registered User
Posts: 22
Joined: Fri Feb 25, 2011 8:19 pm
Name: Jan Orre

Re: Session problem loading external map page

Post by orre » Thu Jun 18, 2015 4:35 am

Sorry. Can't make that work?...
Do I have to update all paths at the .html page?
(My whole life seem to break consistency by the way..) :P

User avatar
AmigoJack
Registered User
Posts: 5599
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Session problem loading external map page

Post by AmigoJack » Thu Jun 18, 2015 6:22 am

Yes. Simply CTRL+F for .js and you should catch everything. If you still have problems I'll do that.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

orre
Registered User
Posts: 22
Joined: Fri Feb 25, 2011 8:19 pm
Name: Jan Orre

Re: Session problem loading external map page

Post by orre » Thu Jun 18, 2015 1:32 pm

Yes I've done that, but no difference.
(Only have 2 .js paths in that document. But loads of markers etc...)

Glad if you could show me!

Otheriwise, I have no problem with broken consistens if it's not ruining anything!... :roll:

User avatar
AmigoJack
Registered User
Posts: 5599
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Session problem loading external map page

Post by AmigoJack » Thu Jun 18, 2015 4:50 pm

Did you also clear that template's cache in the /cache folder? Otherwise it would be this (only changed two occurances):

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>VTX Riders Sweden - Medlemskarta</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8" /><script type="text/javascript">window.NREUM||(NREUM={}),__nr_require=function(e,n,t){function r(t){if(!n[t]){var o=n[t]={exports:{}};e[t][0].call(o.exports,function(n){var o=e[t][1][n];return r(o?o:n)},o,o.exports)}return n[t].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<t.length;o++)r(t[o]);return r}({QJf3ax:[function(e,n){function t(e){function n(n,t,a){e&&e(n,t,a),a||(a={});for(var u=c(n),f=u.length,s=i(a,o,r),p=0;f>p;p++)u[p].apply(s,t);return s}function a(e,n){f[e]=c(e).concat(n)}function c(e){return f[e]||[]}function u(){return t(n)}var f={};return{on:a,emit:n,create:u,listeners:c,_events:f}}function r(){return{}}var o="nr@context",i=e("gos");n.exports=t()},{gos:"7eSDFh"}],ee:[function(e,n){n.exports=e("QJf3ax")},{}],3:[function(e,n){function t(e){return function(){r(e,[(new Date).getTime()].concat(i(arguments)))}}var r=e("handle"),o=e(1),i=e(2);"undefined"==typeof window.newrelic&&(newrelic=window.NREUM);var a=["setPageViewName","addPageAction","setCustomAttribute","finished","addToTrace","inlineHit","noticeError"];o(a,function(e,n){window.NREUM[n]=t("api-"+n)}),n.exports=window.NREUM},{1:12,2:13,handle:"D5DuLP"}],"7eSDFh":[function(e,n){function t(e,n,t){if(r.call(e,n))return e[n];var o=t();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,n,{value:o,writable:!0,enumerable:!1}),o}catch(i){}return e[n]=o,o}var r=Object.prototype.hasOwnProperty;n.exports=t},{}],gos:[function(e,n){n.exports=e("7eSDFh")},{}],handle:[function(e,n){n.exports=e("D5DuLP")},{}],D5DuLP:[function(e,n){function t(e,n,t){return r.listeners(e).length?r.emit(e,n,t):(o[e]||(o[e]=[]),void o[e].push(n))}var r=e("ee").create(),o={};n.exports=t,t.ee=r,r.q=o},{ee:"QJf3ax"}],id:[function(e,n){n.exports=e("XL7HBI")},{}],XL7HBI:[function(e,n){function t(e){var n=typeof e;return!e||"object"!==n&&"function"!==n?-1:e===window?0:i(e,o,function(){return r++})}var r=1,o="nr@id",i=e("gos");n.exports=t},{gos:"7eSDFh"}],G9z0Bl:[function(e,n){function t(){var e=d.info=NREUM.info,n=f.getElementsByTagName("script")[0];if(e&&e.licenseKey&&e.applicationID&&n){c(p,function(n,t){n in e||(e[n]=t)});var t="https"===s.split(":")[0]||e.sslForHttp;d.proto=t?"https://":"http://",a("mark",["onload",i()]);var r=f.createElement("script");r.src=d.proto+e.agent,n.parentNode.insertBefore(r,n)}}function r(){"complete"===f.readyState&&o()}function o(){a("mark",["domContent",i()])}function i(){return(new Date).getTime()}var a=e("handle"),c=e(1),u=(e(2),window),f=u.document,s=(""+location).split("?")[0],p={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",agent:"js-agent.newrelic.com/nr-632.min.js"},d=n.exports={offset:i(),origin:s,features:{}};f.addEventListener?(f.addEventListener("DOMContentLoaded",o,!1),u.addEventListener("load",t,!1)):(f.attachEvent("onreadystatechange",r),u.attachEvent("onload",t)),a("mark",["firstbyte",i()])},{1:12,2:3,handle:"D5DuLP"}],loader:[function(e,n){n.exports=e("G9z0Bl")},{}],12:[function(e,n){function t(e,n){var t=[],o="",i=0;for(o in e)r.call(e,o)&&(t[i]=n(o,e[o]),i+=1);return t}var r=Object.prototype.hasOwnProperty;n.exports=t},{}],13:[function(e,n){function t(e,n,t){n||(n=0),"undefined"==typeof t&&(t=e?e.length:0);for(var r=-1,o=t-n||0,i=Array(0>o?0:o);++r<o;)i[r]=e[n+r];return i}n.exports=t},{}]},{},["G9z0Bl"]);</script>
<meta name="description" content="" />
<link rel="shortcut icon" href="./favicon.ico" />
<link rel="alternate" type="application/rss+xml" title="VTX Riders Sweden - Medlemskarta GeoRSS Feed" href="georss.xml" />
<style type="text/css">
html, body {
margin: 0;
padding: 0;
overflow: hidden;
font-family: Tahoma;
font-size: 9pt;
}
#body { 
background-color:#000000;
}
#header {
overflow: hidden;
}
#header-content {
padding-left: 8px;
padding-top: 5px;
padding-bottom: 5px;
}
#title {
margin:0;
font-weight: bold;
font-size:19px;
font-family:"Tahoma", "Tahoma";
color:#ffffff;
}
#mapDescription-content {
padding:2px 8px 4px 8px;
font-size:13px;
font-family:"Tahoma", "Tahoma";
color:#ffffff;
}
#ad {
height: 100px;
overflow: hidden;
}
#ad-content {
padding-left: 8px;
padding-top: 5px;
}
#main {
overflow: hidden;
}
#main-content {
}
ul#tabnav {
text-align: left;
margin: 0;
border-bottom: 1px solid #800000;
list-style-type: none;
padding: 3px 0px 3px 0px;
}
ul#tabnav li {
display: inline;
width: 175;
}
li.tabSelected {
background-color: #f39400;
}
li.tab a {
padding: 2px 4px 3px 4px;
border: 1px solid #800000;
background-color: #DEDBCF;
color: #800000;
margin-right: 0px;
text-decoration: none;
border-bottom: none;
}
li.tabSelected a {
background-color: #f39400;
color:#800000;
position: relative;
top: 1px;
padding-top: 4px;
}
li.tab a:hover {
}
#content {
overflow: hidden;
}
#sidebar {
float: left;
width: 220px;
overflow: hidden;
}
#sidebar-content {
font-size:12px;
font-family:"Arial", "Arial";
color:#000000;
}
#tab-content {
border-left:1px solid #800000;
border-bottom:1px solid #800000;
border-right:1px solid #800000;
overflow:auto;
background-color:#f39400;
}
#toggle {
float:left;
width: 8px;
cursor: pointer;
}
#toggle.hide_sidebar_left {
background: url(./aright.gif) no-repeat scroll center;
}
#toggle.show_sidebar_left {
background: url(./aleft.gif) no-repeat scroll center;
}
#toggle.hide_sidebar_right {
background: url(./aleft.gif) no-repeat scroll center;
}
#toggle.show_sidebar_right {
background: url(./aright.gif) no-repeat scroll center;
}
#toggle img {
cursor: pointer;
}
#map {
float: left;
}
#map-content {
margin: 0px;
border-top: 1px solid #800000;
border-left: 1px solid #800000;
border-right: 1px solid #800000;
border-bottom: 1px solid #800000;
}
#footer {
clear: both;
overflow: hidden;
}
#footer-content {
padding-left: 8px;
padding-top: 4px;
padding-bottom:2px;
font-size:12px;
font-family:"Tahoma", "Tahoma";
color:#ffffff;
}
#directions_tab_content {
padding-left:5px;
padding-top:5px;
}
#search_tab_content {
padding-left:5px;
padding-top:5px;
}
.drawing_infowindow {
}
.drawing_infowindow hr{
border: 1px solid #C0C0C0;
}
.drawing_title {
font: bold 14px Arial, sans-serif;
border-bottom: 2px solid black;
}
.drawing_description {
font: normal 12px Arial, sans-serif;
height: 130px;
overflow: auto;
}
#trafficButton {
padding:2px 8px;
color:#000;
text-decoration:none;
font-size:8pt;
line-height:20px;
}
.traffic_on {
background-color:#D5C7BF;
border-width:1px;
border-style:solid;
border-color:#000 #708A89 #708A89 #000;
font-weight:normal;
}
.traffic_off {
background-color:#FFF;
border-width:1px;
border-style:solid;
border-color:#708A89 #000 #000 #708A89;
font-weight:normal;
}
.link_markername {
color: #0000FF;
}
.link_groupname {
color: #0000FF;
}
.markertitlecell a {
text-decoration: none;
font-weight: normal;
}
.groupnamecell {
}
.groupnamecell a, .groupnamecell span{
text-decoration: none;
font-weight: bold;
}
#goToAddress {
margin-top:5px;
padding:5px;
border: 1px solid #800000;
background-color: #f39400;
}
.inputbutton {
padding:3px 10px 2px 10px;
border-width:1px;
border-style:solid;
border-color:#800000 #0B1A03 #0B1A03 #800000;
background-color: #DEDBCF;
color: #800000;
}
.inputtext{
border: 1px solid #800000;
}
.marker_zoom {
background: url(./zoom_in.gif) no-repeat top left;
margin:4px 0px 0px 0px;
padding:2px 0px 2px 18px;
}
body.loading #alert {display: block}
#alert {
position: absolute;
top: 50%;
left: 0;
width: 100%;
text-align: center;
z-index: 1000;
display: none;
}
#alert p {
font: normal 12px Tahoma, sans-serif;
color: #fff;
width: 240px;
margin: 0 auto 0 auto;
padding: 10px;
background: #333;
border: 1px solid #888;
}
#progressBar {
position: absolute;
top: 5px;
right: 5px;
width: 110px;
height: 16px;
font: normal 12px Arial, sans-serif;
color: #FFFFFF;
text-align: center;
background-color: darkgreen;
border: 1px solid #000;
z-index: 1000;
display: none;
}
#progressBar.show {display: block}
#mapLoadBar {
position: absolute;
top: 5px;
z-index: 1001;
}
#mapLoadBar.hide {
display: none;
}
#loadingBox {
position: absolute;
top: 50%;
text-align: center;
z-index: 1000;
display: none;
}
#loadingBox.show {
display: block;
}
#loadingBox p {
font: normal 12px Tahoma, sans-serif;
color: #fff;
width: 250px;
margin: 0 auto 0 auto;
padding: 10px;
background: #333;
border: 1px solid #888;
}
#traffic {
position: absolute;
top: 5px;
text-align: center;
z-index: 1000;
}
.markerlist {
border-collapse: collapse;
}
.markertitlecell {
}
.markertitlecell a:hover {
text-decoration: underline;
}
.markerdescriptioncell {
font: normal 11px Arial, sans-serif;
}
.markericoncell  {
text-align: center;
width: 20px;
}
.groupiconcell  {
text-align: center;
width: 20px;
}
.groupcheckcell  {
text-align: center;
}
.groupnamecell a:hover {
text-decoration: underline;
}
.linkmarker_disabled {
color: #CCC;
}
.info_window {}
.info_window hr {
border: 1px solid #C0C0C0;
}
.infowindow_title {
font: bold 14px Arial, sans-serif;
border-bottom: 2px solid black;
}
.info_window_description {
font: normal 12px Arial, sans-serif;
height: 130px;
overflow: auto;
z-index: 0;
}
.info_window_text_text {
font: normal 12px Arial, sans-serif;
height: 250px;
overflow: auto;
}
.info_window_address {
font: normal 12px Arial, sans-serif;
padding: 2px;
}
.info_window_coordinates table {
font: normal 10px Arial, sans-serif;
}
.info_window_weblink {
font: normal 12px Arial, sans-serif;
padding: 2px;
}
.info_window_emaillink {
font: normal 12px Arial, sans-serif;
padding: 2px;
}
.info_window_photo_img {
text-align:center;
}
.info_window_photo_legend {
font: normal 12px Arial, sans-serif;
height: 50px;
overflow: auto;
padding: 2px;
text-align: center;
}
.info_window_code {
font: normal 12px Arial, sans-serif;
height: 250px;
overflow: auto;
}
.info_window_directions {
font: normal 12px Arial, sans-serif;
padding: 2px;
}
.info_window_directions_hide {
display:none;
}
.markerLabelShort {
width:30px;
color:#FFF;
font-size:14px;
font-weight:bold;
text-align:center;
}
.markerLabelLong {
width:30px;
color:#FFF;
font-size:11px;
font-weight:bold;
text-align:center;
}
td.markertitlecell br + p {
margin-top:0;
margin-bottom:4px;
}
.clustered_mk {
margin:0;
padding:0;
}        </style>
<script type="text/javascript" src="http://www.google.com/jsapi?key=AIzaSyDIm2wquXi6Yt7yoryON2cRx2i2ndo30xQ"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDIm2wquXi6Yt7yoryON2cRx2i2ndo30xQ&v=3.19&sensor=false&libraries=geometry,drawing,places"></script>
<script type="text/javascript">

google.maps.visualRefresh=false;var geocoder=new google.maps.Geocoder();var G_NORMAL_MAP=google.maps.MapTypeId.ROADMAP;var G_SATELLITE_MAP=google.maps.MapTypeId.SATELLITE;var G_HYBRID_MAP=google.maps.MapTypeId.HYBRID;var G_PHYSICAL_MAP=google.maps.MapTypeId.TERRAIN;var G_SATELLITE_3D_MAP=google.maps.MapTypeId.G_SATELLITE_MAP;function GMap2(elem){google.maps.visualRefresh=false;var self=this;this._overlays=[];this.fireOnNextIdle=[];this._zoom=this._oldZoom=13;this._center=new google.maps.LatLng(0,0);this._bounds=this._oldBounds=null;var styles=[{"featureType":"poi","stylers":[{"visibility":"off"}]}];this.map=new google.maps.Map(elem,{"disableDefaultUI":true,"panControl":true,"disableDoubleClickZoom":false,"center":this._center,"zoom":this._zoom,"mapTypeId":google.maps.MapTypeId.ROADMAP,"styles":styles});google.maps.event.addListener(this.map,'rightclick',function(e){self.map.set('disableDoubleClickZoom',true);});google.maps.event.addListener(this.map,'click',function(e){self.map.set('disableDoubleClickZoom',false);});google.maps.event.addListener(this.map,"zoom_changed",function(e){self._oldZoom=self._zoom;if(self.map.getZoom())self._zoom=self.map.getZoom();});google.maps.event.addListener(this.map,"center_changed",function(){if(self.map.getCenter())self._center=self.map.getCenter();});google.maps.event.addListener(this.map,"bounds_changed",function(){self._oldBounds=self._bounds;if(self.map.getBounds())self._bounds=self.map.getBounds();});this.drawingManager=new google.maps.drawing.DrawingManager({drawingControl:false,map:this.map,polylineOptions:{strokeColor:"#0000FF",strokeWeight:4,strokeOpacity:0.7},polygonOptions:{strokeColor:"#0000FF",strokeWeight:4,strokeOpacity:0.7,fillColor:"#0033FF",fillOpacity:0.45}});this.fakeMapType=new FakeMapType(this.map);var self=this;google.maps.event.addListener(this.map,'idle',function(){var fireListCount=self.fireOnNextIdle.length;if(fireListCount>0){var fireList=self.fireOnNextIdle.splice(0,fireListCount);var handler;while((handler=fireList.shift())){handler();}}});}
GMap2.prototype.addOverlay=function(overlay){this._overlays.push(overlay);overlay._map=this.map;if(overlay instanceof GMarker){overlay.marker.setMap(this.map);}else if(overlay instanceof GPolyline){overlay.polyline.setMap(this.map);}else if(overlay instanceof GPolygon){overlay.polygon.setMap(this.map);}else if(overlay instanceof LabeledMarker){overlay.marker.setMap(this.map);}else if(overlay instanceof GTrafficOverlay){overlay.traffic.setMap(this.map);}}
GMap2.prototype.removeOverlay=function(overlay){var goverlay=null;if((overlay instanceof GMarker)||(overlay instanceof LabeledMarker)){for(var i=0;i<this._overlays.length;i++){if((this._overlays[i]instanceof GMarker)||(this._overlays[i]instanceof LabeledMarker)&&this._overlays[i].c2m_id==overlay.c2m_id){goverlay=this._overlays[i];break;}}}else if((overlay instanceof GPolyline)||(overlay instanceof GPolygon)){for(var i=0;i<this._overlays.length;i++){if(((this._overlays[i]instanceof GPolyline)||(this._overlays[i]instanceof GPolygon))&&this._overlays[i]._drawing&&this._overlays[i]._drawing.id==overlay._drawing.id){goverlay=this._overlays[i];break;}}}else if(overlay instanceof GTrafficOverlay){for(var i=0;i<this._overlays.length;i++){if(this._overlays[i]instanceof GTrafficOverlay){goverlay=this._overlays[i];break;}}}
if(goverlay){if(overlay instanceof GMarker){goverlay.marker.setMap(null);}else if(overlay instanceof LabeledMarker){goverlay.marker.setMap(null);}else if(overlay instanceof GPolyline){goverlay.polyline.setMap(null);}else if(overlay instanceof GPolygon){goverlay.polygon.setMap(null);}else if(overlay instanceof GTrafficOverlay){goverlay.traffic.setMap(null);}
this._overlays.splice(i,1);}}
GMap2.prototype.setCenter=function(latlng,zoom){if(typeof(zoom)=="undefined")zoom=this.map.getZoom();this._center=latlng;this._zoom=zoom;this.map.setCenter(latlng);this.map.setZoom(zoom);}
GMap2.prototype.getCenter=function(){return this._center;}
GMap2.prototype.setZoom=function(zoom){this._oldZoom=this._zoom;this._zoom=zoom;this.map.setZoom(zoom);}
GMap2.prototype.getZoom=function(){return this._zoom}
GMap2.prototype.enableContinuousZoom=function(v){}
GMap2.prototype.disableContinuousZoom=function(){}
GMap2.prototype.enableDoubleClickZoom=function(){this.map.setOptions({"disableDoubleClickZoom":false});}
GMap2.prototype.disableDoubleClickZoom=function(){this.map.setOptions({"disableDoubleClickZoom":true});}
GMap2.prototype.enableScrollWheelZoom=function(){this.map.setOptions({"scrollwheel":true});}
GMap2.prototype.disableScrollWheelZoom=function(){this.map.setOptions({"scrollwheel":false});}
GMap2.prototype.enableDragging=function(){this.map.setOptions({"draggable":true});}
GMap2.prototype.disableDragging=function(){this.map.setOptions({"draggable":false});}
GMap2.prototype.enableInfoWindow=function(){}
GMap2.prototype.disableInfoWindow=function(){}
GMap2.prototype.addControl=function(c){if(c instanceof GLargeMapControl3D||c instanceof GLargeMapControl){this.map.setOptions({"zoomControl":true,"zoomControlOptions":{"style":google.maps.ZoomControlStyle.LARGE},"panControl":true});}else if(c instanceof GSmallZoomControl3D||c instanceof GSmallZoomControl){this.map.setOptions({"zoomControl":true,"zoomControlOptions":{"style":google.maps.ZoomControlStyle.SMALL},"panControl":false});}else if(c instanceof GSmallMapControl){this.map.setOptions({"zoomControl":true,"zoomControlOptions":{"style":google.maps.ZoomControlStyle.SMALL},"panControl":false});}else if(c instanceof GOverviewMapControl){this.map.setOptions({"overviewMapControl":true,"overviewMapControlOptions":{"opened":true}});}else if(c instanceof GScaleControl){this.map.setOptions({"scaleControl":true});}else if(c instanceof GMenuMapTypeControl){this.map.setOptions({"mapTypeControl":true,"mapTypeControlOptions":{"style":google.maps.MapTypeControlStyle.DROPDOWN_MENU}});}else if(c instanceof GMapTypeControl){this.map.setOptions({"mapTypeControl":true,"mapTypeControlOptions":{"style":google.maps.MapTypeControlStyle.DEFAULT}});}}
GMap2.prototype.removeControl=function(c){if(c instanceof GLargeMapControl3D||c instanceof GLargeMapControl){this.map.setOptions({"zoomControl":false,"panControl":false});}else if(c instanceof GSmallZoomControl3D||c instanceof GSmallZoomControl){this.map.setOptions({"zoomControl":false,"panControl":false});}else if(c instanceof GSmallMapControl){this.map.setOptions({"zoomControl":false,"panControl":false});}else if(c instanceof GOverviewMapControl){this.map.setOptions({"overviewMapControl":false});}else if(c instanceof GScaleControl){this.map.setOptions({"scaleControl":false});}else if(c instanceof GMenuMapTypeControl||c instanceof GMapTypeControl){this.map.setOptions({"mapTypeControl":false});}}
GMap2.prototype.getBounds=function(){return this._bounds;}
GMap2.prototype.getZoom=function(){return this.map.getZoom();}
GMap2.prototype.getCurrentMapType=function(){return this.fakeMapType;}
GMap2.prototype.getProjection=function(){return this.map.getProjection();}
GMap2.prototype.clearOverlays=function(){var overlaysCount=this._overlays.length;if(overlaysCount>0){var overlayList=this._overlays.splice(0,overlaysCount);var overlay;while((overlay=overlayList.shift())){if(overlay instanceof GMarker){overlay.marker.setMap(null);}else if(overlay instanceof LabeledMarker){overlay.marker.setMap(null);}else if(overlay instanceof GPolyline){overlay.polyline.setMap(null);}else if(overlay instanceof GPolygon){overlay.polygon.setMap(null);}else if(overlay instanceof GTrafficOverlay){overlay.traffic.setMap(null);}}}}
GMap2.prototype.setMapType=function(mapTypeId){if(mapTypeId==null){this.map.setMapTypeId(google.maps.MapTypeId.ROADMAP);}else{this.map.setMapTypeId(mapTypeId);}}
GMap2.prototype.addMapType=function(mapTypeId){}
GMap2.lastInfoWindow=null;GMap2._INFOWINDOW_PADDING=10;GMap2._INFOWINDOW_MIN_WIDTH=300;GMap2.infoWindowStyle={shadowStyle:0,padding:GMap2._INFOWINDOW_PADDING,tabPadding:12,backgroundColor:'#fff',borderRadius:0,arrowSize:15,borderWidth:1,borderColor:'#ccc',disableAutoPan:false,hideCloseButton:false,arrowPosition:50,arrowStyle:0};GMap2.prototype.openInfoWindowHtml=function(pt,html){this.closeInfoWindow();GMap2.lastInfoWindow=new InfoBubble(GMap2.infoWindowStyle);GMap2.lastInfoWindow.setMinWidth(GMap2._INFOWINDOW_MIN_WIDTH+(GMap2._INFOWINDOW_PADDING*2));GMap2.lastInfoWindow.setMinWidth(GMap2._INFOWINDOW_MIN_HEIGHT+(GMap2._INFOWINDOW_PADDING*2));GMap2.lastInfoWindow.setContent(html);var m=new google.maps.Marker({position:pt});GMap2.lastInfoWindow.open(this.map,m);}
GMap2.prototype.closeInfoWindow=function(){if(GMap2.lastInfoWindow){GMap2.lastInfoWindow.close();GMap2.lastInfoWindow=null;}
if(GMarker.lastInfoWindow){GMarker.lastInfoWindow.close();GMarker.lastInfoWindow=null;}}
GMap2.prototype.panTo=function(latlng){this.map.panTo(latlng);}
GMap2.prototype.fitBounds=function(bounds,zoom,point){var oldZoom=this.getZoom();this.map.fitBounds(bounds);var newZoom=this.getZoom();if(newZoom!=oldZoom){if(typeof(zoom)!="undefined"&&typeof(point)!="undefined"){if(zoom!=0){this.map.panTo(point);this.setZoom(this.getZoom()+zoom);}}}}
GMap2.prototype.isLoaded=function(){return true;}
GMap2.prototype.checkResize=function(){google.maps.event.trigger(this.map,'resize');}
GMap2.prototype.showMapBlowup=function(latlng){var opts={zoomLevel:16};this.map.showMapBlowup(latlng,opts);}
GMap2.prototype.fromContainerPixelToLatLng=function(point){var overlay=new google.maps.OverlayView();overlay.draw=function(){};overlay.setMap(this.map);return overlay.getProjection().fromContainerPixelToLatLng(point.pixel);}
function FakeMapType(map){this.map=map;this.projection=new FakeProjection(map);}
FakeMapType.prototype.getProjection=function(){return this.projection;}
FakeMapType.prototype.getMinimumResolution=function(){return 1;}
FakeMapType.prototype.getMaximumResolution=function(){return 23;}
function FakeProjection(map){this.map=map;}
FakeProjection.prototype.fromLatLngToPixel=function(latlng,zoom){var normalizedPoint=this.map.getProjection().fromLatLngToPoint(latlng);var scale=Math.pow(2,zoom);var pixelCoordinate=new google.maps.Point(normalizedPoint.x*scale,normalizedPoint.y*scale);return pixelCoordinate;}
FakeProjection.prototype.fromPixelToLatLng=function(pt,zoom,nowrap){var scale=Math.pow(2,zoom);var normalizedPoint=new google.maps.Point(pt.x/scale,pt.y/scale);var latlng=this.map.getProjection().fromPointToLatLng(normalizedPoint);return latlng;}
function GPoint(x,y){return new google.maps.Point(x,y);}
function GLatLngBounds(sw,ne){this.b=new google.maps.LatLngBounds(sw,ne);return this.b;}
GLatLngBounds.prototype.containsBounds=function(latlng){return this.b.contains(latlng);}
google.maps.LatLngBounds.prototype.containsLatLng=function(latlng){return this.contains(latlng);}
google.maps.LatLngBounds.prototype.containsBounds=function(bounds){return this.contains(bounds.getNorthEast())&&this.contains(bounds.getSouthWest());}
function GSmallZoomControl(){}
function GSmallMapControl(){}
function GLargeMapControl(){}
function GSmallZoomControl3D(){}
function GLargeMapControl3D(){}
function GOverviewMapControl(){}
function GScaleControl(){}
function GMenuMapTypeControl(){}
function GMapOptions(){return new google.map.MapOptions();}
function GMarker(latlng,options){this.marker=new google.maps.Marker({zIndex:5,optimized:false,position:latlng,draggable:(options?options.draggable:false),title:(options?options.title:""),icon:(options&&options.icon?options.icon.getImage():null),shadow:(options&&options.icon?options.icon.getShadow():null)});}
GMarker.prototype.getIcon=function(){return{image:this.marker.getIcon().url};}
GMarker.prototype.getTitle=function(){return this.marker.getTitle();}
GMarker.lastInfoWindow=null;GMarker.prototype.getPoint=function(){return this.marker.getPosition();}
GMarker.prototype.getLatLng=function(){return this.marker.getPosition();}
GMarker.prototype.setLatLng=function(latlng){return this.marker.setPosition(latlng);}
GMarker.prototype.isHidden=function(){return!this.marker.getVisible();}
GMarker.prototype.hide=function(){return this.marker.setVisible(false);}
GMarker.prototype.show=function(){return this.marker.setVisible(true);}
GMarker._INFOWINDOW_PADDING=10;GMarker._INFOWINDOW_MIN_WIDTH=300;GMarker.infoWindowStyle={shadowStyle:0,padding:GMarker._INFOWINDOW_PADDING,tabPadding:12,backgroundColor:'#fff',borderRadius:0,arrowSize:15,borderWidth:1,borderColor:'#ccc',disableAutoPan:false,hideCloseButton:false,arrowPosition:50,arrowStyle:0};GMarker.prototype.openInfoWindowHtml=function(html){if(GMarker.lastInfoWindow){GMarker.lastInfoWindow.close();GMarker.lastInfoWindow=null;}
GMarker.lastInfoWindow=new InfoBubble(GMarker.infoWindowStyle);GMarker.lastInfoWindow.setMinWidth(GMarker._INFOWINDOW_MIN_WIDTH+(GMarker._INFOWINDOW_PADDING*2));GMarker.lastInfoWindow.setContent(html);GMarker.lastInfoWindow.open(this.marker.getMap(),this.marker);}
GMarker.prototype.openInfoWindowTabsHtml=function(tabs){if(tabs.length==1){this.openInfoWindowHtml(tabs[0].content);return;}
if(GMarker.lastInfoWindow){GMarker.lastInfoWindow.close();GMarker.lastInfoWindow=null;}
GMarker.lastInfoWindow=new InfoBubble(GMarker.infoWindowStyle);var width=GMarker._INFOWINDOW_MIN_WIDTH;if(tabs.length>2){width=tabs.length*100;}
width=width+(2*GMarker._INFOWINDOW_PADDING);GMarker.lastInfoWindow.setMinWidth(width);for(var i=0;i<tabs.length;i++){GMarker.lastInfoWindow.addTab(tabs[i].caption,tabs[i].content);}
GMarker.lastInfoWindow.open(this.marker.getMap(),this.marker);}
GMarker.prototype.redraw=function(){}
GMarker.prototype.remove=function(){this.marker.setMap(null)}
function LabeledMarker(latlng,options){this.marker=new MarkerWithLabel({position:latlng,draggable:false,raiseOnDrag:false,labelContent:options.labelText,labelAnchor:new google.maps.Point(15,26),labelClass:options.labelClass,labelInBackground:false,icon:(options&&options.icon?options.icon.getImage():null),shadow:(options&&options.icon?options.icon.getShadow():null)});}
LabeledMarker.prototype.redraw=function(){}
LabeledMarker.prototype.openInfoWindowHtml=function(html){if(GMarker.lastInfoWindow){GMarker.lastInfoWindow.close();GMarker.lastInfoWindow.setMap(null);GMarker.lastInfoWindow=null;}
GMarker.lastInfoWindow=new InfoBubble(GMarker.infoWindowStyle);GMarker.lastInfoWindow.setMinWidth(GMarker._INFOWINDOW_MIN_WIDTH+(GMarker._INFOWINDOW_PADDING*2));GMarker.lastInfoWindow.setContent(html);GMarker.lastInfoWindow.open(this.marker.getMap(),this.marker);}
LabeledMarker.prototype.openInfoWindowTabsHtml=function(tabs){if(tabs.length==1){this.openInfoWindowHtml(tabs[0].content);return;}
if(GMarker.lastInfoWindow){GMarker.lastInfoWindow.close();GMarker.lastInfoWindow.setMap(null);GMarker.lastInfoWindow=null;}
GMarker.lastInfoWindow=new InfoBubble(GMarker.infoWindowStyle);var width=GMarker._INFOWINDOW_MIN_WIDTH;if(tabs.length>2){width=tabs.length*100;}
width=width+(2*GMarker._INFOWINDOW_PADDING);GMarker.lastInfoWindow.setMinWidth(width);for(var i=0;i<tabs.length;i++){GMarker.lastInfoWindow.addTab(tabs[i].caption,tabs[i].content);}
GMarker.lastInfoWindow.open(this.marker.getMap(),this.marker);}
LabeledMarker.prototype.getPoint=function(){return this.marker.getPosition();}
LabeledMarker.prototype.getLatLng=function(){return this.marker.getPosition();}
LabeledMarker.prototype.remove=function(){this.marker.setMap(null)}
function LabeledCluster(latlng,options){return new LabeledMarker(latlng,options);}
function GPolyline(points,lineColor,lineWeight,lineOpacity){if(points instanceof google.maps.Polyline){this.polyline=points;}else{var options={path:points,strokeColor:lineColor,strokeOpacity:lineOpacity,strokeWeight:lineWeight,geodesic:false};this.polyline=new google.maps.Polyline(options);}}
GPolyline.prototype.enableDrawing=function(){var path=this.polyline.getPath();this._insert_at_event=google.maps.event.addListener(path,'insert_at',function(){});this.polyline.setEditable(true);}
GPolyline.prototype.getPath=function(){return this.polyline.getPath();}
GPolyline.prototype.disableEditing=function(){this.polyline.setEditable(false);if(this._insert_at_event){google.maps.event.removeListener(this._insert_at_event);}}
GPolyline.prototype.getBounds=function(){var bounds=new google.maps.LatLngBounds();this.polyline.getPath().forEach(function(e){bounds.extend(e);});return bounds;}
GPolyline.prototype.isHidden=function(){return!this.polyline.getVisible();}
GPolyline.prototype.hide=function(){return this.polyline.setVisible(false);}
GPolyline.prototype.show=function(){return this.polyline.setVisible(true);}
function GPolygon(points,lineColor,lineWeight,lineOpacity,fillColor,fillOpacity){if(points instanceof google.maps.Polygon){this.polygon=points;}else{var options={path:points,strokeColor:lineColor,strokeOpacity:lineOpacity,strokeWeight:lineWeight,fillColor:fillColor,fillOpacity:fillOpacity,geodesic:false};this.polygon=new google.maps.Polygon(options);}}
GPolygon.prototype.getPath=function(){return this.polygon.getPath();}
GPolygon.prototype.enableDrawing=function(){var path=this.polygon.getPath();this._insert_at_event=google.maps.event.addListener(path,'insert_at',function(){});this.polygon.setEditable(true);}
GPolygon.prototype.disableEditing=function(){this.polygon.setEditable(false);if(this._insert_at_event){google.maps.event.removeListener(this._insert_at_event);}}
GPolygon.prototype.getBounds=function(){var bounds=new google.maps.LatLngBounds();this.polygon.getPath().forEach(function(e){bounds.extend(e);});return bounds;}
GPolygon.prototype.isHidden=function(){return!this.polygon.getVisible();}
GPolygon.prototype.hide=function(){return this.polygon.setVisible(false);}
GPolygon.prototype.show=function(){return this.polygon.setVisible(true);}
function GLatLng(lat,lng){return new google.maps.LatLng(lat,lng);}
function GInfoWindow(){return new google.maps.InfoWindow();}
function GInfoWindowTab(caption,content){this.caption=caption;this.content=content;}
function GIcon(){this._image=null;this._shadow=null;}
GIcon.prototype.getImage=function(){if(this._image==null){this._image=new google.maps.MarkerImage(this.image,this.iconSize,new google.maps.Point(0,0));}
return this._image;}
GIcon.prototype.getShadow=function(){if(this._shadow==null&&this.shadow){this._shadow=new google.maps.MarkerImage(this.shadow,this.shadowSize,new google.maps.Point(0,0),this.iconAnchor);}
return this._shadow;}
function GSize(w,h){return new google.maps.Size(w,h);}
function G_API_VERSION(){return google.maps.version;}
function GPolyStyleOptions(){return new google.maps.PolygonOptions();}
function GEvent(){}
GEvent.addListener=function(instance,eventName,handler){if(instance instanceof GMap2){return google.maps.event.addListener(instance.map,eventName,handler);}else if(instance instanceof GMarker){return google.maps.event.addListener(instance.marker,eventName,handler);}else if(instance instanceof LabeledMarker){return google.maps.event.addListener(instance.marker,eventName,handler);}else if(instance instanceof GPolyline){return google.maps.event.addListener(instance.polyline,eventName,handler);}else if(instance instanceof GPolygon){return google.maps.event.addListener(instance.polygon,eventName,handler);}else{return google.maps.event.addListener(instance,eventName,handler);}}
GEvent.removeListener=function(listener){google.maps.event.removeListener(listener);}
GEvent.bind=function(instance,eventName,object,handler){var en=eventName;var i=instance;if(instance instanceof GMap2){switch(eventName){case'load':i=instance.map;en='tilesloaded';break;case'moveend':i=instance.map;en='bounds_changed';break;case'zoomend':i=instance.map;en='zoom_changed';break;case'singlerightclick':i=instance.map;en='rightclick';break;case'click':i=instance.map;break;}
switch(en){case'tilesloaded':var loadListener=google.maps.event.addListener(i,'tilesloaded',function(e){handler.call(object,e);google.maps.event.removeListener(loadListener);});break;case'zoom_changed':google.maps.event.addListener(i,'zoom_changed',function(e){instance.fireOnNextIdle.push(function(){handler.call(object,instance._oldZoom,instance.getZoom());});});break;default:google.maps.event.addListener(i,en,function(e){handler.call(object,e);});}}else if(instance instanceof GMarker){google.maps.event.addListener(i,en,function(e){handler.call(object,e);});}else if(instance instanceof GDirections){if(en=='load'){google.maps.event.addListener(i.renderer,'directions_changed',function(){handler.call(object);});}}else{google.maps.event.addListener(i,en,function(e){handler.call(object,e);});}}
function GDirections(m2){this.map=m2.map;this.service=new google.maps.DirectionsService();this.renderer=new google.maps.DirectionsRenderer();this.last_result=null;}
GDirections.prototype.clear=function(){this.last_result=null;this.renderer.setMap(null);}
GDirections.prototype.load=function(query,options){var request={origin:query.origin,destination:query.destination,travelMode:google.maps.TravelMode.DRIVING};var self=this;this.service.route(request,function(result,status){if(status=='OK'){self.last_result=result;self.renderer.setDirections(result);self.renderer.setMap(self.map);}});}
GDirections.prototype.getNumRoutes=function(){if(this.last_result==null)return 0;return this.last_result.routes.length;}
GDirections.prototype.getDistance=function(){if(this.last_result==null){html:''};var route=this.last_result.routes[0];var leg=route.legs[0];return{html:leg.distance.text};}
GDirections.prototype.getDuration=function(){if(this.last_result==null){html:''};var route=this.last_result.routes[0];var leg=route.legs[0];return{html:leg.duration.text};}
GDirections.prototype.getRoute=function(index){var route=this.last_result.routes[index];var leg=route.legs[0];return{getNumSteps:function(){return leg.steps.length;},getStep:function(s){var step=leg.steps[s];return{getDescriptionHtml:function(){return step.instructions;},getDistance:function(){return{html:step.distance.text};},getLatLng:function(){return step.start_location;}};}};}
function GTrafficOverlay(){this.traffic=new google.maps.TrafficLayer();}
GTrafficOverlay.prototype.show=function(){if(this._map)this.traffic.setMap(this._map);}
GTrafficOverlay.prototype.hide=function(){this.traffic.setMap(null);}
function GUnload(){}
function LocalSearch(){}
google.search={};google.search.LocalSearch=LocalSearch;LocalSearch.prototype.setSearchCompleteCallback=function(notused,fn){this.onComplete=fn;}
LocalSearch.prototype.execute=function(query){this.results=[];var self=this;geocoder.geocode({'address':query},function(results,status){if(status==google.maps.GeocoderStatus.OK){self.results.push({'lat':results[0].geometry.location.lat(),'lng':results[0].geometry.location.lng()});}
self.onComplete();});}
function showMapBlowup_(position,map,opt_opts){var opts=opt_opts||{};var container=document.createElement('div');container.className='mapBlowup';var size=opts['size']||new google.maps.Size(219,202);if(typeof size['width']=='number'){container.style.width=size['width']+'px';}else{container.style.width=size['width'];}
if(typeof size['height']=='number'){container.style.height=size['height']+'px';}else{container.style.height=size['height'];}
delete opts['size'];var miniMapOptions={zoom:opts['zoomLevel']||(map.getZoom()+2),center:position,mapTypeId:opts['mapType']||map.getMapTypeId(),draggable:false};delete opts['zoomLevel'];delete opts['mapType'];var miniMap=new google.maps.Map(container,miniMapOptions);var infoWindowOptions=opts;infoWindowOptions['position']=position;infoWindowOptions['content']=container;var infoWindow=new google.maps.InfoWindow(infoWindowOptions);var domreadyHandler=function(){google.maps.event.trigger(miniMap,'resize');miniMap.setCenter(position);};google.maps.event.addListener(infoWindow,'domready',domreadyHandler);infoWindow.open(map);}
google.maps.Map.prototype.showMapBlowup=function(position,opt_opts){showMapBlowup_(position,this,opt_opts);};google.maps.Marker.prototype.showMapBlowup=function(opt_opts){var map=this.getMap();var position=this.getPosition();showMapBlowup_(position,map,opt_opts);};function inherits(childCtor,parentCtor){function tempCtor(){}
tempCtor.prototype=parentCtor.prototype;childCtor.superClass_=parentCtor.prototype;childCtor.prototype=new tempCtor();childCtor.prototype.constructor=childCtor;}
function MarkerLabel_(marker,crossURL,handCursorURL){this.marker_=marker;this.handCursorURL_=marker.handCursorURL;this.labelDiv_=document.createElement("div");this.labelDiv_.style.cssText="position: absolute; overflow: hidden;";this.eventDiv_=document.createElement("div");this.eventDiv_.style.cssText=this.labelDiv_.style.cssText;this.eventDiv_.setAttribute("onselectstart","return false;");this.eventDiv_.setAttribute("ondragstart","return false;");this.crossDiv_=MarkerLabel_.getSharedCross(crossURL);}
inherits(MarkerLabel_,google.maps.OverlayView);MarkerLabel_.getSharedCross=function(crossURL){var div;if(typeof MarkerLabel_.getSharedCross.crossDiv==="undefined"){div=document.createElement("img");div.style.cssText="position: absolute; z-index: 1000002; display: none;";div.style.marginLeft="-8px";div.style.marginTop="-9px";div.src=crossURL;MarkerLabel_.getSharedCross.crossDiv=div;}
return MarkerLabel_.getSharedCross.crossDiv;};MarkerLabel_.prototype.onAdd=function(){var me=this;var cMouseIsDown=false;var cDraggingLabel=false;var cSavedZIndex;var cLatOffset,cLngOffset;var cIgnoreClick;var cRaiseEnabled;var cStartPosition;var cStartCenter;var cRaiseOffset=20;var cDraggingCursor="url("+this.handCursorURL_+")";var cAbortEvent=function(e){if(e.preventDefault){e.preventDefault();}
e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation();}};var cStopBounce=function(){me.marker_.setAnimation(null);};this.getPanes().overlayImage.appendChild(this.labelDiv_);this.getPanes().overlayMouseTarget.appendChild(this.eventDiv_);if(typeof MarkerLabel_.getSharedCross.processed==="undefined"){this.getPanes().overlayImage.appendChild(this.crossDiv_);MarkerLabel_.getSharedCross.processed=true;}
this.listeners_=[google.maps.event.addDomListener(this.eventDiv_,"mouseover",function(e){if(me.marker_.getDraggable()||me.marker_.getClickable()){this.style.cursor="pointer";google.maps.event.trigger(me.marker_,"mouseover",e);}}),google.maps.event.addDomListener(this.eventDiv_,"mouseout",function(e){if((me.marker_.getDraggable()||me.marker_.getClickable())&&!cDraggingLabel){this.style.cursor=me.marker_.getCursor();google.maps.event.trigger(me.marker_,"mouseout",e);}}),google.maps.event.addDomListener(this.eventDiv_,"mousedown",function(e){cDraggingLabel=false;if(me.marker_.getDraggable()){cMouseIsDown=true;this.style.cursor=cDraggingCursor;}
if(me.marker_.getDraggable()||me.marker_.getClickable()){google.maps.event.trigger(me.marker_,"mousedown",e);cAbortEvent(e);}}),google.maps.event.addDomListener(document,"mouseup",function(mEvent){var position;if(cMouseIsDown){cMouseIsDown=false;me.eventDiv_.style.cursor="pointer";google.maps.event.trigger(me.marker_,"mouseup",mEvent);}
if(cDraggingLabel){if(cRaiseEnabled){position=me.getProjection().fromLatLngToDivPixel(me.marker_.getPosition());position.y+=cRaiseOffset;me.marker_.setPosition(me.getProjection().fromDivPixelToLatLng(position));try{me.marker_.setAnimation(google.maps.Animation.BOUNCE);setTimeout(cStopBounce,1406);}catch(e){}}
me.crossDiv_.style.display="none";me.marker_.setZIndex(cSavedZIndex);cIgnoreClick=true;cDraggingLabel=false;mEvent.latLng=me.marker_.getPosition();google.maps.event.trigger(me.marker_,"dragend",mEvent);}}),google.maps.event.addListener(me.marker_.getMap(),"mousemove",function(mEvent){var position;if(cMouseIsDown){if(cDraggingLabel){mEvent.latLng=new google.maps.LatLng(mEvent.latLng.lat()-cLatOffset,mEvent.latLng.lng()-cLngOffset);position=me.getProjection().fromLatLngToDivPixel(mEvent.latLng);if(cRaiseEnabled){me.crossDiv_.style.left=position.x+"px";me.crossDiv_.style.top=position.y+"px";me.crossDiv_.style.display="";position.y-=cRaiseOffset;}
me.marker_.setPosition(me.getProjection().fromDivPixelToLatLng(position));if(cRaiseEnabled){me.eventDiv_.style.top=(position.y+cRaiseOffset)+"px";}
google.maps.event.trigger(me.marker_,"drag",mEvent);}else{cLatOffset=mEvent.latLng.lat()-me.marker_.getPosition().lat();cLngOffset=mEvent.latLng.lng()-me.marker_.getPosition().lng();cSavedZIndex=me.marker_.getZIndex();cStartPosition=me.marker_.getPosition();cStartCenter=me.marker_.getMap().getCenter();cRaiseEnabled=me.marker_.get("raiseOnDrag");cDraggingLabel=true;me.marker_.setZIndex(1000000);mEvent.latLng=me.marker_.getPosition();google.maps.event.trigger(me.marker_,"dragstart",mEvent);}}}),google.maps.event.addDomListener(document,"keydown",function(e){if(cDraggingLabel){if(e.keyCode===27){cRaiseEnabled=false;me.marker_.setPosition(cStartPosition);me.marker_.getMap().setCenter(cStartCenter);google.maps.event.trigger(document,"mouseup",e);}}}),google.maps.event.addDomListener(this.eventDiv_,"click",function(e){if(me.marker_.getDraggable()||me.marker_.getClickable()){if(cIgnoreClick){cIgnoreClick=false;}else{google.maps.event.trigger(me.marker_,"click",e);cAbortEvent(e);}}}),google.maps.event.addDomListener(this.eventDiv_,"dblclick",function(e){if(me.marker_.getDraggable()||me.marker_.getClickable()){google.maps.event.trigger(me.marker_,"dblclick",e);cAbortEvent(e);}}),google.maps.event.addListener(this.marker_,"dragstart",function(mEvent){if(!cDraggingLabel){cRaiseEnabled=this.get("raiseOnDrag");}}),google.maps.event.addListener(this.marker_,"drag",function(mEvent){if(!cDraggingLabel){if(cRaiseEnabled){me.setPosition(cRaiseOffset);me.labelDiv_.style.zIndex=1000000+(this.get("labelInBackground")?-1:+1);}}}),google.maps.event.addListener(this.marker_,"dragend",function(mEvent){if(!cDraggingLabel){if(cRaiseEnabled){me.setPosition(0);}}}),google.maps.event.addListener(this.marker_,"position_changed",function(){me.setPosition();}),google.maps.event.addListener(this.marker_,"zindex_changed",function(){me.setZIndex();}),google.maps.event.addListener(this.marker_,"visible_changed",function(){me.setVisible();}),google.maps.event.addListener(this.marker_,"labelvisible_changed",function(){me.setVisible();}),google.maps.event.addListener(this.marker_,"title_changed",function(){me.setTitle();}),google.maps.event.addListener(this.marker_,"labelcontent_changed",function(){me.setContent();}),google.maps.event.addListener(this.marker_,"labelanchor_changed",function(){me.setAnchor();}),google.maps.event.addListener(this.marker_,"labelclass_changed",function(){me.setStyles();}),google.maps.event.addListener(this.marker_,"labelstyle_changed",function(){me.setStyles();})];};MarkerLabel_.prototype.onRemove=function(){var i;this.labelDiv_.parentNode.removeChild(this.labelDiv_);this.eventDiv_.parentNode.removeChild(this.eventDiv_);for(i=0;i<this.listeners_.length;i++){google.maps.event.removeListener(this.listeners_[i]);}};MarkerLabel_.prototype.draw=function(){this.setContent();this.setTitle();this.setStyles();};MarkerLabel_.prototype.setContent=function(){var content=this.marker_.get("labelContent");if(typeof content.nodeType==="undefined"){this.labelDiv_.innerHTML=content;this.eventDiv_.innerHTML=this.labelDiv_.innerHTML;}else{this.labelDiv_.innerHTML="";this.labelDiv_.appendChild(content);content=content.cloneNode(true);this.eventDiv_.appendChild(content);}};MarkerLabel_.prototype.setTitle=function(){this.eventDiv_.title=this.marker_.getTitle()||"";};MarkerLabel_.prototype.setStyles=function(){var i,labelStyle;this.labelDiv_.className=this.marker_.get("labelClass");this.eventDiv_.className=this.labelDiv_.className;this.labelDiv_.style.cssText="";this.eventDiv_.style.cssText="";labelStyle=this.marker_.get("labelStyle");for(i in labelStyle){if(labelStyle.hasOwnProperty(i)){this.labelDiv_.style[i]=labelStyle[i];this.eventDiv_.style[i]=labelStyle[i];}}
this.setMandatoryStyles();};MarkerLabel_.prototype.setMandatoryStyles=function(){this.labelDiv_.style.position="absolute";this.labelDiv_.style.overflow="hidden";if(typeof this.labelDiv_.style.opacity!=="undefined"&&this.labelDiv_.style.opacity!==""){this.labelDiv_.style.MsFilter="\"progid:DXImageTransform.Microsoft.Alpha(opacity="+(this.labelDiv_.style.opacity*100)+")\"";this.labelDiv_.style.filter="alpha(opacity="+(this.labelDiv_.style.opacity*100)+")";}
this.eventDiv_.style.position=this.labelDiv_.style.position;this.eventDiv_.style.overflow=this.labelDiv_.style.overflow;this.eventDiv_.style.opacity=0.01;this.eventDiv_.style.MsFilter="\"progid:DXImageTransform.Microsoft.Alpha(opacity=1)\"";this.eventDiv_.style.filter="alpha(opacity=1)";this.setAnchor();this.setPosition();this.setVisible();};MarkerLabel_.prototype.setAnchor=function(){var anchor=this.marker_.get("labelAnchor");this.labelDiv_.style.marginLeft=-anchor.x+"px";this.labelDiv_.style.marginTop=-anchor.y+"px";this.eventDiv_.style.marginLeft=-anchor.x+"px";this.eventDiv_.style.marginTop=-anchor.y+"px";};MarkerLabel_.prototype.setPosition=function(yOffset){var position=this.getProjection().fromLatLngToDivPixel(this.marker_.getPosition());if(typeof yOffset==="undefined"){yOffset=0;}
this.labelDiv_.style.left=Math.round(position.x)+"px";this.labelDiv_.style.top=Math.round(position.y-yOffset)+"px";this.eventDiv_.style.left=this.labelDiv_.style.left;this.eventDiv_.style.top=this.labelDiv_.style.top;this.setZIndex();};MarkerLabel_.prototype.setZIndex=function(){var zAdjust=(this.marker_.get("labelInBackground")?-1:+1);if(typeof this.marker_.getZIndex()==="undefined"){this.labelDiv_.style.zIndex=parseInt(this.labelDiv_.style.top,10)+zAdjust;this.eventDiv_.style.zIndex=this.labelDiv_.style.zIndex;}else{this.labelDiv_.style.zIndex=this.marker_.getZIndex()+zAdjust;this.eventDiv_.style.zIndex=this.labelDiv_.style.zIndex;}};MarkerLabel_.prototype.setVisible=function(){if(this.marker_.get("labelVisible")){this.labelDiv_.style.display=this.marker_.getVisible()?"block":"none";}else{this.labelDiv_.style.display="none";}
this.eventDiv_.style.display=this.labelDiv_.style.display;};function MarkerWithLabel(opt_options){opt_options=opt_options||{};opt_options.labelContent=opt_options.labelContent||"";opt_options.labelAnchor=opt_options.labelAnchor||new google.maps.Point(0,0);opt_options.labelClass=opt_options.labelClass||"markerLabels";opt_options.labelStyle=opt_options.labelStyle||{};opt_options.labelInBackground=opt_options.labelInBackground||false;if(typeof opt_options.labelVisible==="undefined"){opt_options.labelVisible=true;}
if(typeof opt_options.raiseOnDrag==="undefined"){opt_options.raiseOnDrag=true;}
if(typeof opt_options.clickable==="undefined"){opt_options.clickable=true;}
if(typeof opt_options.draggable==="undefined"){opt_options.draggable=false;}
if(typeof opt_options.optimized==="undefined"){opt_options.optimized=false;}
opt_options.crossImage=opt_options.crossImage||"http"+(document.location.protocol==="https:"?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/drag_cross_67_16.png";opt_options.handCursor=opt_options.handCursor||"http"+(document.location.protocol==="https:"?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/closedhand_8_8.cur";opt_options.optimized=false;this.label=new MarkerLabel_(this,opt_options.crossImage,opt_options.handCursor);google.maps.Marker.apply(this,arguments);}
inherits(MarkerWithLabel,google.maps.Marker);MarkerWithLabel.prototype.setMap=function(theMap){google.maps.Marker.prototype.setMap.apply(this,arguments);this.label.setMap(theMap);};
</script>
</head>
<body id="body" class="loading">
<div id="app" style="display:none;">
<div id="main">
<div id="main-content">
<div id="map">
<div id="progressBar"></div>
<div id="mapLoadBar" class="hide"><img src="./map_loadbar.gif" alt="Loading" /></div>
<div id="map-content"></div>
</div>
<div id="toggle" class="show_sidebar_right" ></div>
<div id="sidebar" >
<div id="sidebar-content" style="margin-right:8px;margin-top:1px">
<div id="tabs">
<ul id="tabnav" >
<li id="markers_tab" class="tab tabSelected" ><a  href="javascript:void(C2MEngine.instance.selectTab('markers_tab'));">All Markers</a></li>
<li id="directions_tab" class="tab" ><a  href="javascript:void(C2MEngine.instance.selectTab('directions_tab'));">Directions</a></li>
</ul>
</div>
<div id="tab-content" >
<div id="markers_tab_content" class="current_tab" style="margin-top:3px;">
<table class="markerlist"><tr class="grouprow"><td class="groupiconcell"><div style="height:20px;"><a href="javascript:void(C2MEngine.instance.showHideGroup(327511));" title=""><img id="groupIcon327511" src="./folder_closed_16.png" style="border:0;z-index:8;" alt="" class="png" /><img src="sejdel.png" style="border:0; margin-left:7px; margin-top:-16px;z-index:10;display:block;height:16px;" alt="" class="png" /></a></div></td><td class="groupnamecell"><input id="groupcheck327511" type="checkbox" checked="checked" onclick="C2MEngine.instance.filterByGroup(327511)" /><a href="javascript:void(C2MEngine.instance.showHideGroup(327511));" title="" class="link_groupname">.Årsträffar</a></td></tr><tr><td></td><td colspan="2"><table id="group327511" class="group markerlist" style="display:none;"><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809076,60.60551,15.63457));" title=""><img src="sejdel.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809076" href="javascript:void(C2MEngine.instance.openMarker(40809076,60.60551,15.63457));" title="" class="link_markername" group="327511">.Årsträff 2006 - Falun</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809077,59.33746,14.93877));" title=""><img src="sejdel.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809077" href="javascript:void(C2MEngine.instance.openMarker(40809077,59.33746,14.93877));" title="" class="link_markername" group="327511">.Årsträff 2007 - Ånnaboda</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809078,62.38941,17.31033));" title=""><img src="sejdel.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809078" href="javascript:void(C2MEngine.instance.openMarker(40809078,62.38941,17.31033));" title="" class="link_markername" group="327511">.Årsträff 2008 - Sundsvall</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809079,58.05777,11.7708));" title=""><img src="sejdel.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809079" href="javascript:void(C2MEngine.instance.openMarker(40809079,58.05777,11.7708));" title="" class="link_markername" group="327511">.Årsträff 2009 - Tjörn</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809080,59.23022,17.88484));" title=""><img src="sejdel.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809080" href="javascript:void(C2MEngine.instance.openMarker(40809080,59.23022,17.88484));" title="" class="link_markername" group="327511">.Årsträff 2010 - Flottsbro</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809081,59.27311,10.4926));" title=""><img src="sejdel.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809081" href="javascript:void(C2MEngine.instance.openMarker(40809081,59.27311,10.4926));" title="" class="link_markername" group="327511">.Årsträff 2011 - Tønsberg</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809082,60.66913,16.80651));" title=""><img src="sejdel.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809082" href="javascript:void(C2MEngine.instance.openMarker(40809082,60.66913,16.80651));" title="" class="link_markername" group="327511">.Årsträff 2012 - Högbo</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809083,55.41343,14.20082));" title=""><img src="sejdel.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809083" href="javascript:void(C2MEngine.instance.openMarker(40809083,55.41343,14.20082));" title="" class="link_markername" group="327511">.Årsträff 2013 - Österlen</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809084,59.83807,17.87707));" title=""><img src="sejdel.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809084" href="javascript:void(C2MEngine.instance.openMarker(40809084,59.83807,17.87707));" title="" class="link_markername" group="327511">.Årsträff 2014 - Uppsala</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809085,60.15775,15.51049));" title=""><img src="sejdel.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809085" href="javascript:void(C2MEngine.instance.openMarker(40809085,60.15775,15.51049));" title="" class="link_markername" group="327511">.Årsträff 2015 - Smedjebacken</a></td></tr></table></td></tr><tr class="grouprow"><td class="groupiconcell"><div style="height:20px;"><a href="javascript:void(C2MEngine.instance.showHideGroup(324425));" title=""><img id="groupIcon324425" src="./folder_closed_16.png" style="border:0;z-index:8;" alt="" class="png" /><img src="vtx-icon-red.png" style="border:0; margin-left:7px; margin-top:-16px;z-index:10;display:block;height:16px;" alt="" class="png" /></a></div></td><td class="groupnamecell"><input id="groupcheck324425" type="checkbox" checked="checked" onclick="C2MEngine.instance.filterByGroup(324425)" /><a href="javascript:void(C2MEngine.instance.showHideGroup(324425));" title="" class="link_groupname">Styrelsemedlemmar</a></td></tr><tr><td></td><td colspan="2"><table id="group324425" class="group markerlist" style="display:none;"><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809088,62.388691,17.310551));" title=""><img src="vtx-icon-red.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809088" href="javascript:void(C2MEngine.instance.openMarker(40809088,62.388691,17.310551));" title="" class="link_markername" group="324425">Ryssen</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809094,60.145618,15.18947));" title=""><img src="vtx-icon-red.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809094" href="javascript:void(C2MEngine.instance.openMarker(40809094,60.145618,15.18947));" title="" class="link_markername" group="324425">Gusten</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809097,60.67366,17.14558));" title=""><img src="vtx-icon-red.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809097" href="javascript:void(C2MEngine.instance.openMarker(40809097,60.67366,17.14558));" title="" class="link_markername" group="324425">Skalman</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809100,58.239281,11.67226));" title=""><img src="vtx-icon-red.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809100" href="javascript:void(C2MEngine.instance.openMarker(40809100,58.239281,11.67226));" title="" class="link_markername" group="324425">Geronimo</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809110,59.392651,15.24536));" title=""><img src="vtx-icon-red.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809110" href="javascript:void(C2MEngine.instance.openMarker(40809110,59.392651,15.24536));" title="" class="link_markername" group="324425">Cadde</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809121,59.213089,10.42524));" title=""><img src="vtx-icon-red.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809121" href="javascript:void(C2MEngine.instance.openMarker(40809121,59.213089,10.42524));" title="" class="link_markername" group="324425">Orre</a></td></tr></table></td></tr><tr class="grouprow"><td class="groupiconcell"><div style="height:20px;"><a href="javascript:void(C2MEngine.instance.showHideGroup(324424));" title=""><img id="groupIcon324424" src="./folder_closed_16.png" style="border:0;z-index:8;" alt="" class="png" /><img src="vtx-icon-green.png" style="border:0; margin-left:7px; margin-top:-16px;z-index:10;display:block;height:16px;" alt="" class="png" /></a></div></td><td class="groupnamecell"><input id="groupcheck324424" type="checkbox" checked="checked" onclick="C2MEngine.instance.filterByGroup(324424)" /><a href="javascript:void(C2MEngine.instance.showHideGroup(324424));" title="" class="link_groupname">Regionsansvariga</a></td></tr><tr><td></td><td colspan="2"><table id="group324424" class="group markerlist" style="display:none;"><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809087,59.29036,15.21969));" title=""><img src="vtx-icon-green.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809087" href="javascript:void(C2MEngine.instance.openMarker(40809087,59.29036,15.21969));" title="" class="link_markername" group="324424">Nesse</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809098,59.371738,16.523199));" title=""><img src="vtx-icon-green.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809098" href="javascript:void(C2MEngine.instance.openMarker(40809098,59.371738,16.523199));" title="" class="link_markername" group="324424">MC</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809102,59.287922,18.071951));" title=""><img src="vtx-icon-green.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809102" href="javascript:void(C2MEngine.instance.openMarker(40809102,59.287922,18.071951));" title="" class="link_markername" group="324424">Peo</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809107,60.67366,17.14558));" title=""><img src="vtx-icon-green.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809107" href="javascript:void(C2MEngine.instance.openMarker(40809107,60.67366,17.14558));" title="" class="link_markername" group="324424">Tiger</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809108,57.70068,11.96823));" title=""><img src="vtx-icon-green.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809108" href="javascript:void(C2MEngine.instance.openMarker(40809108,57.70068,11.96823));" title="" class="link_markername" group="324424">mattin</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809117,59.949444,17.858611));" title=""><img src="vtx-icon-green.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809117" href="javascript:void(C2MEngine.instance.openMarker(40809117,59.949444,17.858611));" title="" class="link_markername" group="324424">Leffe</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809118,60.141979,15.19163));" title=""><img src="vtx-icon-green.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809118" href="javascript:void(C2MEngine.instance.openMarker(40809118,60.141979,15.19163));" title="" class="link_markername" group="324424">Totte</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809131,55.8514,13.66138));" title=""><img src="vtx-icon-green.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809131" href="javascript:void(C2MEngine.instance.openMarker(40809131,55.8514,13.66138));" title="" class="link_markername" group="324424">Linkan</a></td></tr></table></td></tr><tr class="grouprow"><td class="groupiconcell"><div style="height:20px;"><a href="javascript:void(C2MEngine.instance.showHideGroup(324423));" title=""><img id="groupIcon324423" src="./folder_closed_16.png" style="border:0;z-index:8;" alt="" class="png" /><img src="vtx-icon.png" style="border:0; margin-left:7px; margin-top:-16px;z-index:10;display:block;height:16px;" alt="" class="png" /></a></div></td><td class="groupnamecell"><input id="groupcheck324423" type="checkbox" checked="checked" onclick="C2MEngine.instance.filterByGroup(324423)" /><a href="javascript:void(C2MEngine.instance.showHideGroup(324423));" title="" class="link_groupname">Medlem</a></td></tr><tr><td></td><td colspan="2"><table id="group324423" class="group markerlist" style="display:none;"><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809086,59.33233,18.06293));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809086" href="javascript:void(C2MEngine.instance.openMarker(40809086,59.33233,18.06293));" title="" class="link_markername" group="324423">snake</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809089,57.85219,12.01713));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809089" href="javascript:void(C2MEngine.instance.openMarker(40809089,57.85219,12.01713));" title="" class="link_markername" group="324423">Knodden</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809090,59.85863,17.64374));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809090" href="javascript:void(C2MEngine.instance.openMarker(40809090,59.85863,17.64374));" title="" class="link_markername" group="324423">Sidewagon</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809091,60.59087,15.69967));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809091" href="javascript:void(C2MEngine.instance.openMarker(40809091,60.59087,15.69967));" title="" class="link_markername" group="324423">FALO</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809092,57.348598,12.11836));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809092" href="javascript:void(C2MEngine.instance.openMarker(40809092,57.348598,12.11836));" title="" class="link_markername" group="324423">kenta</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809093,58.036911,12.8146));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809093" href="javascript:void(C2MEngine.instance.openMarker(40809093,58.036911,12.8146));" title="" class="link_markername" group="324423">moberg</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809095,57.776218,14.15294));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809095" href="javascript:void(C2MEngine.instance.openMarker(40809095,57.776218,14.15294));" title="" class="link_markername" group="324423">birdie</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809096,60.67366,17.14558));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809096" href="javascript:void(C2MEngine.instance.openMarker(40809096,60.67366,17.14558));" title="" class="link_markername" group="324423">Göran</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809099,58.408939,13.84417));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809099" href="javascript:void(C2MEngine.instance.openMarker(40809099,58.408939,13.84417));" title="" class="lininstancek_markername" group="324423">Martin</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809101,59.51462,18.00833));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809101" href="javascript:void(C2MEngine.instance.openMarker(40809101,59.51462,18.00833));" title="" class="link_markername" group="324423">Mormor</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809103,59.392651,15.24536));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809103" href="javascript:void(C2MEngine.instance.openMarker(40809103,59.392651,15.24536));" title="" class="link_markername" group="324423">Toolbox</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809104,62.26978,17.37181));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809104" href="javascript:void(C2MEngine.instance.openMarker(40809104,62.26978,17.37181));" title="" class="link_markername" group="324423">Hsun</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809105,59.19939,17.837));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809105" href="javascript:void(C2MEngine.instance.openMarker(40809105,59.19939,17.837));" title="" class="link_markername" group="324423">XY</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809106,60.67366,17.14558));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809106" href="javascript:void(C2MEngine.instance.openMarker(40809106,60.67366,17.14558));" title="" class="link_markername" group="324423">hansa</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809109,57.348598,12.11836));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809109" href="javascript:void(C2MEngine.instance.openMarker(40809109,57.348598,12.11836));" title="" class="link_markername" group="324423">88:an</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809111,60.612419,16.73489));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809111" href="javascript:void(C2MEngine.instance.openMarker(40809111,60.612419,16.73489));" title="" class="link_markername" group="324423">Kulan</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809112,62.38889,17.30673));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809112" href="javascript:void(C2MEngine.instance.openMarker(40809112,62.38889,17.30673));" title="" class="link_markername" group="324423">Diesel</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809113,59.260471,15.20704));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809113" href="javascript:void(C2MEngine.instance.openMarker(40809113,59.260471,15.20704));" title="" class="link_markername" group="324423">Sudden</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809114,55.37867,13.14388));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809114" href="javascript:void(C2MEngine.instance.openMarker(40809114,55.37867,13.14388));" title="" class="link_markername" group="324423">Nizze.L</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809115,57.70068,11.96823));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809115" href="javascript:void(C2MEngine.instance.openMarker(40809115,57.70068,11.96823));" title="" class="link_markername" group="324423">Dansken</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809116,65.589851,22.2465));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809116" href="javascript:void(C2MEngine.instance.openMarker(40809116,65.589851,22.2465));" title="" class="link_markername" group="324423">jussi69</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809119,57.02154,14.89129));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809119" href="javascript:void(C2MEngine.instance.openMarker(40809119,57.02154,14.89129));" title="" class="link_markername" group="324423">Hasse-c</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809120,59.4687,18.344931));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809120" href="javascript:void(C2MEngine.instance.openMarker(40809120,59.4687,18.344931));" title="" class="link_markername" group="324423">Bobby</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809122,57.92266,12.03094));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809122" href="javascript:void(C2MEngine.instance.openMarker(40809122,57.92266,12.03094));" title="" class="link_markername" group="324423">jryngwe</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809123,58.090111,12.12151));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809123" href="javascript:void(C2MEngine.instance.openMarker(40809123,58.090111,12.12151));" title="" class="link_markername" group="324423">Västerlanda</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809124,59.14653,18.05977));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809124" href="javascript:void(C2MEngine.instance.openMarker(40809124,59.14653,18.05977));" title="" class="link_markername" group="324423">nalle</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809125,59.369869,17.01067));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809125" href="javascript:void(C2MEngine.instance.openMarker(40809125,59.369869,17.01067));" title="" class="link_markername" group="324423">kapten</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809126,57.7534,11.97669));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809126" href="javascript:void(C2MEngine.instance.openMarker(40809126,57.7534,11.97669));" title="" class="link_markername" group="324423">Raffe Gbg</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809127,59.35062,17.99653));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809127" href="javascript:void(C2MEngine.instance.openMarker(40809127,59.35062,17.99653));" title="" class="link_markername" group="324423">Klesell</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809128,58.98037,17.760889));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809128" href="javascript:void(C2MEngine.instance.openMarker(40809128,58.98037,17.760889));" title="" class="link_markername" group="324423">natural</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809129,58.52869,13.49263));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809129" href="javascript:void(C2MEngine.instance.openMarker(40809129,58.52869,13.49263));" title="" class="link_markername" group="324423">Kenneth</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809130,59.05935,16.59097));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809130" href="javascript:void(C2MEngine.instance.openMarker(40809130,59.05935,16.59097));" title="" class="link_markername" group="324423">Walis</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809132,60.61372,16.76474));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809132" href="javascript:void(C2MEngine.instance.openMarker(40809132,60.61372,16.76474));" title="" class="link_markername" group="324423">Larsa</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809133,55.65778,13.10646));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809133" href="javascript:void(C2MEngine.instance.openMarker(40809133,55.65778,13.10646));" title="" class="link_markername" group="324423">Boatman</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809134,57.62038,12.87309));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809134" href="javascript:void(C2MEngine.instance.openMarker(40809134,57.62038,12.87309));" title="" class="link_markername" group="324423">best</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809135,59.38932,15.24676));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809135" href="javascript:void(C2MEngine.instance.openMarker(40809135,59.38932,15.24676));" title="" class="link_markername" group="324423">Kråm Boy</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809136,58.50871,15.50192));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809136" href="javascript:void(C2MEngine.instance.openMarker(40809136,58.50871,15.50192));" title="" class="link_markername" group="324423">ozzy</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809137,56.90571,12.49041));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809137" href="javascript:void(C2MEngine.instance.openMarker(40809137,56.90571,12.49041));" title="" class="link_markername" group="324423">exvukanare</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809138,60.67366,17.14558));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809138" href="javascript:void(C2MEngine.instance.openMarker(40809138,60.67366,17.14558));" title="" class="link_markername" group="324423">kaj.edstrom</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809140,60.14952,15.1877));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809140" href="javascript:void(C2MEngine.instance.openMarker(40809140,60.14952,15.1877));" title="" class="link_markername" group="324423">Anne</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809146,58.088,12.05736));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809146" href="javascript:void(C2MEngine.instance.openMarker(40809146,58.088,12.05736));" title="" class="link_markername" group="324423">Airi</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809147,59.33233,18.06293));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809147" href="javascript:void(C2MEngine.instance.openMarker(40809147,59.33233,18.06293));" title="" class="link_markername" group="324423">djerfg</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809148,60.61972,16.77828));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809148" href="javascript:void(C2MEngine.instance.openMarker(40809148,60.61972,16.77828));" title="" class="link_markername" group="324423">Hippo</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809150,59.51462,18.00833));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809150" href="javascript:void(C2MEngine.instance.openMarker(40809150,59.51462,18.00833));" title="" class="link_markername" group="324423">slapso</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809151,59.260471,15.20704));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809151" href="javascript:void(C2MEngine.instance.openMarker(40809151,59.260471,15.20704));" title="" class="link_markername" group="324423">Ernie</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809152,63.399651,13.07866));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809152" href="javascript:void(C2MEngine.instance.openMarker(40809152,63.399651,13.07866));" title="" class="link_markername" group="324423">storm</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809153,57.75801,16.64009));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809153" href="javascript:void(C2MEngine.instance.openMarker(40809153,57.75801,16.64009));" title="" class="link_markername" group="324423">Huggarn</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809154,59.12769,15.14346));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809154" href="javascript:void(C2MEngine.instance.openMarker(40809154,59.12769,15.14346));" title="" class="link_markername" group="324423">Tångan</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809155,59.70589,14.53729));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809155" href="javascript:void(C2MEngine.instance.openMarker(40809155,59.70589,14.53729));" title="" class="link_markername" group="324423">Mathiesen</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809156,59.70589,14.53729));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809156" href="javascript:void(C2MEngine.instance.openMarker(40809156,59.70589,14.53729));" title="" class="link_markername" group="324423">tc56</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809157,57.77037,12.26885));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809157" href="javascript:void(C2MEngine.instance.openMarker(40809157,57.77037,12.26885));" title="" class="link_markername" group="324423">svintus99</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809158,58.17966,13.95773));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809158" href="javascript:void(C2MEngine.instance.openMarker(40809158,58.17966,13.95773));" title="" class="link_markername" group="324423">Ajje</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809159,60.659809,16.663389));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809159" href="javascript:void(C2MEngine.instance.openMarker(40809159,60.659809,16.663389));" title="" class="link_markername" group="324423">AntonW</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809161,63.950211,20.437811));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809161" href="javascript:void(C2MEngine.instance.openMarker(40809161,63.950211,20.437811));" title="" class="link_markername" group="324423">Wheeler</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809162,59.23912,18.1821));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809162" href="javascript:void(C2MEngine.instance.openMarker(40809162,59.23912,18.1821));" title="" class="link_markername" group="324423">Sohlis</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809164,59.270748,15.21751));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809164" href="javascript:void(C2MEngine.instance.openMarker(40809164,59.270748,15.21751));" title="" class="link_markername" group="324423">Johansson</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809167,59.270748,15.21751));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809167" href="javascript:void(C2MEngine.instance.openMarker(40809167,59.270748,15.21751));" title="" class="link_markername" group="324423">Lycklig Idiot</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809168,57.63459,12.85609));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809168" href="javascript:void(C2MEngine.instance.openMarker(40809168,57.63459,12.85609));" title="" class="link_markername" group="324423">Mekarn</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809169,59.37495,17.02676));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809169" href="javascript:void(C2MEngine.instance.openMarker(40809169,59.37495,17.02676));" title="" class="link_markername" group="324423">Lillebror</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809171,59.14653,18.05977));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809171" href="javascript:void(C2MEngine.instance.openMarker(40809171,59.14653,18.05977));" title="" class="link_markername" group="324423">Gustafsson</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809172,59.38932,15.24676));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809172" href="javascript:void(C2MEngine.instance.openMarker(40809172,59.38932,15.24676));" title="" class="link_markername" group="324423">Sussi</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809173,59.30475,14.95006));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809173" href="javascript:void(C2MEngine.instance.openMarker(40809173,59.30475,14.95006));" title="" class="link_markername" group="324423">Iceman</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809174,57.28141,13.62844));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809174" href="javascript:void(C2MEngine.instance.openMarker(40809174,57.28141,13.62844));" title="" class="link_markername" group="324423">Lejon61</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809175,56.07337,14.46771));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809175" href="javascript:void(C2MEngine.instance.openMarker(40809175,56.07337,14.46771));" title="" class="link_markername" group="324423">Lennart</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809176,59.270748,15.21751));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809176" href="javascript:void(C2MEngine.instance.openMarker(40809176,59.270748,15.21751));" title="" class="link_markername" group="324423">matte</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809178,59.966942,16.949659));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809178" href="javascript:void(C2MEngine.instance.openMarker(40809178,59.966942,16.949659));" title="" class="link_markername" group="324423">Bushman</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809179,57.92248,12.08174));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809179" href="javascript:void(C2MEngine.instance.openMarker(40809179,57.92248,12.08174));" title="" class="link_markername" group="324423">Bjurling</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809180,59.1792,17.43073));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809180" href="javascript:void(C2MEngine.instance.openMarker(40809180,59.1792,17.43073));" title="" class="link_markername" group="324423">zolvar</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809181,59.32662,14.52648));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809181" href="javascript:void(C2MEngine.instance.openMarker(40809181,59.32662,14.52648));" title="" class="link_markername" group="324423">tony</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809182,59.60435,13.46521));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809182" href="javascript:void(C2MEngine.instance.openMarker(40809182,59.60435,13.46521));" title="" class="link_markername" group="324423">huggasen</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809183,59.63726,17.07472));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809183" href="javascript:void(C2MEngine.instance.openMarker(40809183,59.63726,17.07472));" title="" class="link_markername" group="324423">SiSu_65</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809184,60.89021,16.71709));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809184" href="javascript:void(C2MEngine.instance.openMarker(40809184,60.89021,16.71709));" title="" class="link_markername" group="324423">kråkan</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809185,57.80619,12.36097));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809185" href="javascript:void(C2MEngine.instance.openMarker(40809185,57.80619,12.36097));" title="" class="link_markername" group="324423">stuven</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809186,60.21755,14.96026));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809186" href="javascript:void(C2MEngine.instance.openMarker(40809186,60.21755,14.96026));" title="" class="link_markername" group="324423">jacknero</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809187,60.88472,15.11899));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809187" href="javascript:void(C2MEngine.instance.openMarker(40809187,60.88472,15.11899));" title="" class="link_markername" group="324423">Rundown</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809188,58.41109,15.62565));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809188" href="javascript:void(C2MEngine.instance.openMarker(40809188,58.41109,15.62565));" title="" class="link_markername" group="324423">Kraxxa</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809189,63.591942,23.05496));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809189" href="javascript:void(C2MEngine.instance.openMarker(40809189,63.591942,23.05496));" title="" class="link_markername" group="324423">rissan72</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809190,59.19329,17.74649));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809190" href="javascript:void(C2MEngine.instance.openMarker(40809190,59.19329,17.74649));" title="" class="link_markername" group="324423">Wolves</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809191,60.73917,15.44307));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809191" href="javascript:void(C2MEngine.instance.openMarker(40809191,60.73917,15.44307));" title="" class="link_markername" group="324423">AngelVonHell</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809192,60.73917,15.44307));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809192" href="javascript:void(C2MEngine.instance.openMarker(40809192,60.73917,15.44307));" title="" class="link_markername" group="324423">Tommie</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809193,56.15729,13.76363));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809193" href="javascript:void(C2MEngine.instance.openMarker(40809193,56.15729,13.76363));" title="" class="link_markername" group="324423">Jonascar</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809194,57.98716,13.77024));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809194" href="javascript:void(C2MEngine.instance.openMarker(40809194,57.98716,13.77024));" title="" class="link_markername" group="324423">.öberg</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809195,59.37236,16.5164));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809195" href="javascript:void(C2MEngine.instance.openMarker(40809195,59.37236,16.5164));" title="" class="link_markername" group="324423">UFFE</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809196,56.05296,14.58357));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809196" href="javascript:void(C2MEngine.instance.openMarker(40809196,56.05296,14.58357));" title="" class="link_markername" group="324423">Stefan</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809197,60.68789,15.48403));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809197" href="javascript:void(C2MEngine.instance.openMarker(40809197,60.68789,15.48403));" title="" class="link_markername" group="324423">Gryxbo</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809199,59.47843,17.79047));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809199" href="javascript:void(C2MEngine.instance.openMarker(40809199,59.47843,17.79047));" title="" class="link_markername" group="324423">Hevvyone</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809200,56.25913,12.97023));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809200" href="javascript:void(C2MEngine.instance.openMarker(40809200,56.25913,12.97023));" title="" class="link_markername" group="324423">Brejen</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809201,58.03258,12.80856));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809201" href="javascript:void(C2MEngine.instance.openMarker(40809201,58.03258,12.80856));" title="" class="link_markername" group="324423">Jörgen</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809202,57.77976,14.17648));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809202" href="javascript:void(C2MEngine.instance.openMarker(40809202,57.77976,14.17648));" title="" class="link_markername" group="324423">DäckJanne</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809203,57.70068,11.96823));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809203" href="javascript:void(C2MEngine.instance.openMarker(40809203,57.70068,11.96823));" title="" class="link_markername" group="324423">Freddy</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809205,58.38169,15.43636));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809205" href="javascript:void(C2MEngine.instance.openMarker(40809205,58.38169,15.43636));" title="" class="link_markername" group="324423">Ubzter</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809206,65.829399,20.526541));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809206" href="javascript:void(C2MEngine.instance.openMarker(40809206,65.829399,20.526541));" title="" class="link_markername" group="324423">hi9008lux</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809207,55.66286,13.35192));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809207" href="javascript:void(C2MEngine.instance.openMarker(40809207,55.66286,13.35192));" title="" class="link_markername" group="324423">Hansson</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809208,56.256611,12.87031));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809208" href="javascript:void(C2MEngine.instance.openMarker(40809208,56.256611,12.87031));" title="" class="link_markername" group="324423">mr.g</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809209,58.99318,16.20668));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809209" href="javascript:void(C2MEngine.instance.openMarker(40809209,58.99318,16.20668));" title="" class="link_markername" group="324423">Fortis</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809210,56.07337,14.46771));" title=""><img src="vtx-icon.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809210" href="javascript:void(C2MEngine.instance.openMarker(40809210,56.07337,14.46771));" title="" class="link_markername" group="324423">Thomas Karlsson</a></td></tr></table></td></tr><tr class="grouprow"><td class="groupiconcell"><div style="height:20px;"><a href="javascript:void(C2MEngine.instance.showHideGroup(324426));" title=""><img id="groupIcon324426" src="./folder_closed_16.png" style="border:0;z-index:8;" alt="" class="png" /><img src="vtx-icon-yellow.png" style="border:0; margin-left:7px; margin-top:-16px;z-index:10;display:block;height:16px;" alt="" class="png" /></a></div></td><td class="groupnamecell"><input id="groupcheck324426" type="checkbox" checked="checked" onclick="C2MEngine.instance.filterByGroup(324426)" /><a href="javascript:void(C2MEngine.instance.showHideGroup(324426));" title="" class="link_groupname">Stödmedlem</a></td></tr><tr><td></td><td colspan="2"><table id="group324426" class="group markerlist" style="display:none;"><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809139,59.213089,10.42524));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809139" href="javascript:void(C2MEngine.instance.openMarker(40809139,59.213089,10.42524));" title="" class="link_markername" group="324426">Sissel</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809141,58.239281,11.67226));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809141" href="javascript:void(C2MEngine.instance.openMarker(40809141,58.239281,11.67226));" title="" class="link_markername" group="324426">Yvonne</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809142,55.3754,13.14742));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809142" href="javascript:void(C2MEngine.instance.openMarker(40809142,55.3754,13.14742));" title="" class="link_markername" group="324426">Agnetha</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809143,58.39142,13.84724));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809143" href="javascript:void(C2MEngine.instance.openMarker(40809143,58.39142,13.84724));" title="" class="link_markername" group="324426">Jane</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809144,57.70068,11.96823));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809144" href="javascript:void(C2MEngine.instance.openMarker(40809144,57.70068,11.96823));" title="" class="link_markername" group="324426">Pernilla</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809145,58.03258,12.80856));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809145" href="javascript:void(C2MEngine.instance.openMarker(40809145,58.03258,12.80856));" title="" class="link_markername" group="324426">Annci</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809149,59.36523,18.13287));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809149" href="javascript:void(C2MEngine.instance.openMarker(40809149,59.36523,18.13287));" title="" class="link_markername" group="324426">Ulli</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809160,59.37495,17.02676));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809160" href="javascript:void(C2MEngine.instance.openMarker(40809160,59.37495,17.02676));" title="" class="link_markername" group="324426">Mimmi</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809163,57.63459,12.85609));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809163" href="javascript:void(C2MEngine.instance.openMarker(40809163,57.63459,12.85609));" title="" class="link_markername" group="324426">maristen</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809165,59.39598,17.98286));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809165" href="javascript:void(C2MEngine.instance.openMarker(40809165,59.39598,17.98286));" title="" class="link_markername" group="324426">Kia</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809166,55.67269,13.13517));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809166" href="javascript:void(C2MEngine.instance.openMarker(40809166,55.67269,13.13517));" title="" class="link_markername" group="324426">Sterner67</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809170,59.37495,17.02676));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809170" href="javascript:void(C2MEngine.instance.openMarker(40809170,59.37495,17.02676));" title="" class="link_markername" group="324426">Lillastyster</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809177,60.61972,16.77828));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809177" href="javascript:void(C2MEngine.instance.openMarker(40809177,60.61972,16.77828));" title="" class="link_markername" group="324426">PiaW</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809198,59.33233,18.06293));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809198" href="javascript:void(C2MEngine.instance.openMarker(40809198,59.33233,18.06293));" title="" class="link_markername" group="324426">Barbro</a></td></tr><tr class="markerrow"><td class="markericoncell" valign="top"><a href="javascript:void(C2MEngine.instance.openMarker(40809204,59.270748,15.21751));" title=""><img src="vtx-icon-yellow.png" style="border:0;width:16px;height:16px;" class="png" alt="" /></a></td><td class="markertitlecell"><a id="linkmarker40809204" href="javascript:void(C2MEngine.instance.openMarker(40809204,59.270748,15.21751));" title="" class="link_markername" group="324426">Vickan</a></td></tr></table></td></tr></table>
</div>
<div id="directions_tab_content" style="display:none;">
<table id="directions_form" style="border-collapse:collapse;width:100%;">
<tr>
<td colspan="3"><b>From:</b></td>
</tr>
<tr>
<td colspan="3">
<input id="dir_from_addr" style="width:91%;" class="inputtext"/>
<a id="dir_from_addr_clear_link" style="width:16px;" href="javascript:void(C2MEngine.instance.directionsClearFrom());"><img src="./clear.gif" style="border:0" alt="Clear" title="Clear"/></a>
</td>
</tr>
<tr>
<td colspan="3"><span style="font-size:9px;">Click on a marker or enter an address</span></td>
</tr>
<tr>
<td colspan="3"><b>To:</b></td>
</tr>
<tr>
<td colspan="3">
<input id="dir_to_addr" style="width:91%;" class="inputtext"/>
<a id="dir_to_addr_clear_link" style="width:16px" href="javascript:void(C2MEngine.instance.directionsClearTo());"><img src="./clear.gif" style="border:0" alt="Clear" title="Clear"/></a>
</td>
</tr>
<tr>
<td colspan="3"><span style="font-size:9px;">Click on a marker or enter an address</span></td>
</tr>
<tr>
<td colspan="2" style="width:93%;text-align:right;padding-top:12px;padding-bottom:5px;line-height:24px;"><a  href="javascript:void(C2MEngine.instance.directionsFind());" class="inputbutton">Get Directions</a> <a  href="javascript:void(C2MEngine.instance.directionsReset());"  class="inputbutton">Reset</a></td>
<td>&nbsp;</td>
</tr>
</table>
<div id="directions_result"></div>
<div id="directions_result_footer"></div>
</div>
</div>
</div>
</div>
</div>
</div> 
<div id="footer" >
<div id="footer-content">
<div  style="float:left">
This map was built by Orre. <a href="http://www.click2map.com" title="Click to create your own map">Create a map</a> with Click2Map.
</div>
</div>
</div>
</div> 
<div id="alert"><p><img id="load_circle" src="./load_circle.gif" style="border:0;margin-right:15px;vertical-align:middle;" alt=""/><span id="alert_text">Loading map...</span></p></div>
<div id="loadingBox"><p><img id="load_circle_mks" src="./load_circle.gif" style="border:0;margin-right:12px;vertical-align:middle;" alt=""/><span id="alert_text_mks">Loading markers...</span></p></div>
<script type="text/javascript">
            //<![CDATA[
            

var HTTP={};HTTP._factories=[function(){return new XMLHttpRequest();},function(){return ("Msxml2.XMLHTTP");},function(){return ("Microsoft.XMLHTTP");}];HTTP._factory=null;HTTP.newRequest=function()
{if(HTTP._factory!=null)return HTTP._factory();for(var i=0;i<HTTP._factories.length;i++){try{var factory=HTTP._factories[i];var request=factory();if(request!=null){HTTP._factory=factory;return request;}}catch(e){continue;}}
HTTP._factory=function(){throw new Error("XMLHttpRequest not supported");}
HTTP._factory();};function loadScript(sScriptSrc,callbackfunction)
{var oHead=document.getElementsByTagName('head')[0];if(oHead)
{var oScript=document.createElement('script');oScript.setAttribute('src',sScriptSrc);oScript.setAttribute('type','text/javascript');var loadFunction=function()
{if(this.readyState=='complete'||this.readyState=='loaded')
{callbackfunction();}};oScript.onreadystatechange=loadFunction;oScript.onload=callbackfunction;oHead.appendChild(oScript);}};
var _iid=597036;var _isPreview=0;var _isWidget=0;var _mapElemId='map-content';var _widget=false;var _enableStat=0;var _generatorBaseUrl='.';var _generatorBaseImagesUrl='.';var _statEngineBaseUrl='';var _markersLoaderUrl='{T_SUPER_TEMPLATE_PATH}/karta/markers.js';var _markersInViewLoaderUrl='{T_SUPER_TEMPLATE_PATH}/karta/markers.js?v=1';var _markersInViewLoaderMarge=400;var _inViewLoading=0;var _searchUrl='';var _showHeader=0;var _showDescription=0;var _showFooter=1;var _showAds=0;var _adsenseCode='pub-6603054678213671';var _adHeight=100;var _adWidth=800;var _showSidebar=1;var _sidebarPos='right';var _sidebarWidth=220;var _showMarkerList=1;var _showDirections=1;var _showSearch=0;var _centerLat=62.1410736756;var _centerLng=13.2597226388;var _zoom=4;var _zoomOnOpenMarker=0;var _zoomControl='ddliLrg3D';var _openMarkerId=null;var _forceOpenMarker=false;var _enableHighlightMarkers=0;var _enableType=1;var _useMenuForMapType=true;var _enableScale=1;var _enableOverview=0;var _enableDragging=1;var _enableTraffic=0;var _trafficActive=false;var _enableDoubleclickZoom=1;var _enableContinuousZoom=1;var _enableInfowindow=1;var _enableMarkerDescription=0;var _enableDrawingsInList=0;var _enableMarkerZoomIn=0;var _enableToggle=1;var _defaultType='ddliTerrain';var _useTimerLoading=true;var _nMarkerPerTick=3;var _timerLoadingElapse=100;var _headerHeight=40;var _headerHeightWithDesc=32;var _footerHeight=25;var _sizerWidth=8;var _hideSidebarOnStartup=0;var _hideSideBarOnOpenMarker=0;var _showTabs=1;var _enableGotoAdress=0;var _localSearch=null;var _language="en";var _mapBorderWidth=1;var _mapMarginWidth=0;var _enableCustomStyle=1;var _mapStyleTabBorderColor='#800000';var _enable_cluster=1;var _enable_pub_cluster=1;var _clustSize=18;var _clustNbNeeded=2;var _clustType=0;var _clustDynZoom=5;var _clustMaxZoom=12;var _clustLowZoom=1;var _toggleCompatible=true;
var _ieFamily=false;var _tile_layers=[];var _s_loading_app="Loading map...";var _s_loading="Loading...";var _s_progress_loading="Loading";var _s_dir_from="from";var _s_dir_to="to";var _s_dir_unknown="Unknown";var _s_dir_about="about";var _s_no_dir_found="<p>Directions cannot be found.<\/p><p>Suggestions:<br\/><li style='list-style:inside square;'>Please check addresses spelling<\/li><li style='list-style:inside square;'>Please make sure that the address contains at least a City name<\/li><li style='list-style:inside square;'>Try to add a zip code<\/li><\/p>";var _gmap_version='2.x';var _logo_anchor='lb';var _logo_x=0;var _logo_y=38;
google.load("prototype","1");function main()
{if(typeof(C2MEngine)=='undefined')
C2MEngine={};C2MEngine=Class.create();


Object.extend(C2MEngine,{instance:null,currentTab:'markers_tab',sidebarIsOpened:true,apiLoaded:function()
{

function InfoBubble(opt_options){this.extend(InfoBubble,google.maps.OverlayView);this.tabs_=[];this.activeTab_=null;this.baseZIndex_=100;this.isOpen_=false;var options=opt_options||{};if(options['backgroundColor']==undefined){options['backgroundColor']=this.BACKGROUND_COLOR_;}
if(options['borderColor']==undefined){options['borderColor']=this.BORDER_COLOR_;}
if(options['borderRadius']==undefined){options['borderRadius']=this.BORDER_RADIUS_;}
if(options['borderWidth']==undefined){options['borderWidth']=this.BORDER_WIDTH_;}
if(options['padding']==undefined){options['padding']=this.PADDING_;}
if(options['arrowPosition']==undefined){options['arrowPosition']=this.ARROW_POSITION_;}
if(options['disableAutoPan']==undefined){options['disableAutoPan']=false;}
if(options['disableAnimation']==undefined){options['disableAnimation']=false;}
if(options['minWidth']==undefined){options['minWidth']=this.MIN_WIDTH_;}
if(options['shadowStyle']==undefined){options['shadowStyle']=this.SHADOW_STYLE_;}
if(options['arrowSize']==undefined){options['arrowSize']=this.ARROW_SIZE_;}
if(options['arrowStyle']==undefined){options['arrowStyle']=this.ARROW_STYLE_;}
this.buildDom_();this.setValues(options);}
window['InfoBubble']=InfoBubble;InfoBubble.prototype.ARROW_SIZE_=15;InfoBubble.prototype.ARROW_STYLE_=0;InfoBubble.prototype.SHADOW_STYLE_=1;InfoBubble.prototype.MIN_WIDTH_=50;InfoBubble.prototype.ARROW_POSITION_=50;InfoBubble.prototype.PADDING_=10;InfoBubble.prototype.BORDER_WIDTH_=1;InfoBubble.prototype.BORDER_COLOR_='#ccc';InfoBubble.prototype.BORDER_RADIUS_=10;InfoBubble.prototype.BACKGROUND_COLOR_='#fff';InfoBubble.prototype.extend=function(obj1,obj2){return(function(object){for(var property in object.prototype){this.prototype[property]=object.prototype[property];}
return this;}).apply(obj1,[obj2]);};InfoBubble.prototype.buildDom_=function(){var bubble=this.bubble_=document.createElement('DIV');bubble.style['position']='absolute';bubble.style['zIndex']=this.baseZIndex_;var tabsContainer=this.tabsContainer_=document.createElement('DIV');tabsContainer.style['position']='relative';var close=this.close_=document.createElement('IMG');close.style['position']='absolute';close.style['width']=this.px(12);close.style['height']=this.px(12);close.style['border']=0;close.style['zIndex']=this.baseZIndex_+1;close.style['cursor']='pointer';close.src='http://www.google.com/intl/en_us/mapfiles/close.gif';var that=this;google.maps.event.addDomListener(close,'click',function(){that.close();google.maps.event.trigger(that,'closeclick');});var contentContainer=this.contentContainer_=document.createElement('DIV');contentContainer.style['overflowX']='auto';contentContainer.style['overflowY']='auto';contentContainer.style['cursor']='default';contentContainer.style['clear']='both';contentContainer.style['position']='relative';var content=this.content_=document.createElement('DIV');contentContainer.appendChild(content);var arrow=this.arrow_=document.createElement('DIV');arrow.style['position']='relative';var arrowOuter=this.arrowOuter_=document.createElement('DIV');var arrowInner=this.arrowInner_=document.createElement('DIV');var arrowSize=this.getArrowSize_();arrowOuter.style['position']=arrowInner.style['position']='absolute';arrowOuter.style['left']=arrowInner.style['left']='50%';arrowOuter.style['height']=arrowInner.style['height']='0';arrowOuter.style['width']=arrowInner.style['width']='0';arrowOuter.style['marginLeft']=this.px(-arrowSize);arrowOuter.style['borderWidth']=this.px(arrowSize);arrowOuter.style['borderBottomWidth']=0;var bubbleShadow=this.bubbleShadow_=document.createElement('DIV');bubbleShadow.style['position']='absolute';bubble.style['display']=bubbleShadow.style['display']='none';bubble.appendChild(this.tabsContainer_);bubble.appendChild(close);bubble.appendChild(contentContainer);arrow.appendChild(arrowOuter);arrow.appendChild(arrowInner);bubble.appendChild(arrow);var stylesheet=document.createElement('style');stylesheet.setAttribute('type','text/css');this.animationName_='_ibani_'+Math.round(Math.random()*10000);var css='.'+this.animationName_+'{-webkit-animation-name:'+
this.animationName_+';-webkit-animation-duration:0.5s;'+'-webkit-animation-iteration-count:1;}'+'@-webkit-keyframes '+this.animationName_+' {from {'+'-webkit-transform: scale(0)}50% {-webkit-transform: scale(1.2)}90% '+'{-webkit-transform: scale(0.95)}to {-webkit-transform: scale(1)}}';stylesheet.textContent=css;document.getElementsByTagName('head')[0].appendChild(stylesheet);};InfoBubble.prototype.setBackgroundClassName=function(className){this.set('backgroundClassName',className);};InfoBubble.prototype['setBackgroundClassName']=InfoBubble.prototype.setBackgroundClassName;InfoBubble.prototype.backgroundClassName_changed=function(){this.content_.className=this.get('backgroundClassName');};InfoBubble.prototype['backgroundClassName_changed']=InfoBubble.prototype.backgroundClassName_changed;InfoBubble.prototype.setTabClassName=function(className){this.set('tabClassName',className);};InfoBubble.prototype['setTabClassName']=InfoBubble.prototype.setTabClassName;InfoBubble.prototype.tabClassName_changed=function(){this.updateTabStyles_();};InfoBubble.prototype['tabClassName_changed']=InfoBubble.prototype.tabClassName_changed;InfoBubble.prototype.getArrowStyle_=function(){return parseInt(this.get('arrowStyle'),10)||0;};InfoBubble.prototype.setArrowStyle=function(style){this.set('arrowStyle',style);};InfoBubble.prototype['setArrowStyle']=InfoBubble.prototype.setArrowStyle;InfoBubble.prototype.arrowStyle_changed=function(){this.arrowSize_changed();};InfoBubble.prototype['arrowStyle_changed']=InfoBubble.prototype.arrowStyle_changed;InfoBubble.prototype.getArrowSize_=function(){return parseInt(this.get('arrowSize'),10)||0;};InfoBubble.prototype.setArrowSize=function(size){this.set('arrowSize',size);};InfoBubble.prototype['setArrowSize']=InfoBubble.prototype.setArrowSize;InfoBubble.prototype.arrowSize_changed=function(){this.borderWidth_changed();};InfoBubble.prototype['arrowSize_changed']=InfoBubble.prototype.arrowSize_changed;InfoBubble.prototype.setArrowPosition=function(pos){this.set('arrowPosition',pos);};InfoBubble.prototype['setArrowPosition']=InfoBubble.prototype.setArrowPosition;InfoBubble.prototype.getArrowPosition_=function(){return parseInt(this.get('arrowPosition'),10)||0;};InfoBubble.prototype.arrowPosition_changed=function(){var pos=this.getArrowPosition_();this.arrowOuter_.style['left']=this.arrowInner_.style['left']=pos+'%';this.redraw_();};InfoBubble.prototype['arrowPosition_changed']=InfoBubble.prototype.arrowPosition_changed;InfoBubble.prototype.setZIndex=function(zIndex){this.set('zIndex',zIndex);};InfoBubble.prototype['setZIndex']=InfoBubble.prototype.setZIndex;InfoBubble.prototype.getZIndex=function(){return parseInt(this.get('zIndex'),10)||this.baseZIndex_;};InfoBubble.prototype.zIndex_changed=function(){var zIndex=this.getZIndex();this.bubble_.style['zIndex']=this.baseZIndex_=zIndex;this.close_.style['zIndex']=zIndex+1;};InfoBubble.prototype['zIndex_changed']=InfoBubble.prototype.zIndex_changed;InfoBubble.prototype.setShadowStyle=function(shadowStyle){this.set('shadowStyle',shadowStyle);};InfoBubble.prototype['setShadowStyle']=InfoBubble.prototype.setShadowStyle;InfoBubble.prototype.getShadowStyle_=function(){return parseInt(this.get('shadowStyle'),10)||0;};InfoBubble.prototype.shadowStyle_changed=function(){var shadowStyle=this.getShadowStyle_();var display='';var shadow='';var backgroundColor='';switch(shadowStyle){case 0:display='none';break;case 1:shadow='40px 15px 10px rgba(33,33,33,0.3)';backgroundColor='transparent';break;case 2:shadow='0 0 2px rgba(33,33,33,0.3)';backgroundColor='rgba(33,33,33,0.35)';break;}
this.bubbleShadow_.style['boxShadow']=this.bubbleShadow_.style['webkitBoxShadow']=this.bubbleShadow_.style['MozBoxShadow']=shadow;this.bubbleShadow_.style['backgroundColor']=backgroundColor;if(this.isOpen_){this.bubbleShadow_.style['display']=display;this.draw();}};InfoBubble.prototype['shadowStyle_changed']=InfoBubble.prototype.shadowStyle_changed;InfoBubble.prototype.showCloseButton=function(){this.set('hideCloseButton',false);};InfoBubble.prototype['showCloseButton']=InfoBubble.prototype.showCloseButton;InfoBubble.prototype.hideCloseButton=function(){this.set('hideCloseButton',true);};InfoBubble.prototype['hideCloseButton']=InfoBubble.prototype.hideCloseButton;InfoBubble.prototype.hideCloseButton_changed=function(){this.close_.style['display']=this.get('hideCloseButton')?'none':'';};InfoBubble.prototype['hideCloseButton_changed']=InfoBubble.prototype.hideCloseButton_changed;InfoBubble.prototype.setBackgroundColor=function(color){if(color){this.set('backgroundColor',color);}};InfoBubble.prototype['setBackgroundColor']=InfoBubble.prototype.setBackgroundColor;InfoBubble.prototype.backgroundColor_changed=function(){var backgroundColor=this.get('backgroundColor');this.contentContainer_.style['backgroundColor']=backgroundColor;this.arrowInner_.style['borderColor']=backgroundColor+' transparent transparent';this.updateTabStyles_();};InfoBubble.prototype['backgroundColor_changed']=InfoBubble.prototype.backgroundColor_changed;InfoBubble.prototype.setBorderColor=function(color){if(color){this.set('borderColor',color);}};InfoBubble.prototype['setBorderColor']=InfoBubble.prototype.setBorderColor;InfoBubble.prototype.borderColor_changed=function(){var borderColor=this.get('borderColor');var contentContainer=this.contentContainer_;var arrowOuter=this.arrowOuter_;contentContainer.style['borderColor']=borderColor;arrowOuter.style['borderColor']=borderColor+' transparent transparent';contentContainer.style['borderStyle']=arrowOuter.style['borderStyle']=this.arrowInner_.style['borderStyle']='solid';this.updateTabStyles_();};InfoBubble.prototype['borderColor_changed']=InfoBubble.prototype.borderColor_changed;InfoBubble.prototype.setBorderRadius=function(radius){this.set('borderRadius',radius);};InfoBubble.prototype['setBorderRadius']=InfoBubble.prototype.setBorderRadius;InfoBubble.prototype.getBorderRadius_=function(){return parseInt(this.get('borderRadius'),10)||0;};InfoBubble.prototype.borderRadius_changed=function(){var borderRadius=this.getBorderRadius_();var borderWidth=this.getBorderWidth_();this.contentContainer_.style['borderRadius']=this.contentContainer_.style['MozBorderRadius']=this.contentContainer_.style['webkitBorderRadius']=this.bubbleShadow_.style['borderRadius']=this.bubbleShadow_.style['MozBorderRadius']=this.bubbleShadow_.style['webkitBorderRadius']=this.px(borderRadius);this.tabsContainer_.style['paddingLeft']=this.tabsContainer_.style['paddingRight']=this.px(borderRadius+borderWidth);this.redraw_();};InfoBubble.prototype['borderRadius_changed']=InfoBubble.prototype.borderRadius_changed;InfoBubble.prototype.getBorderWidth_=function(){return parseInt(this.get('borderWidth'),10)||0;};InfoBubble.prototype.setBorderWidth=function(width){this.set('borderWidth',width);};InfoBubble.prototype['setBorderWidth']=InfoBubble.prototype.setBorderWidth;InfoBubble.prototype.borderWidth_changed=function(){var borderWidth=this.getBorderWidth_();this.contentContainer_.style['borderWidth']=this.px(borderWidth);this.tabsContainer_.style['top']=this.px(borderWidth);this.updateArrowStyle_();this.updateTabStyles_();this.borderRadius_changed();this.redraw_();};InfoBubble.prototype['borderWidth_changed']=InfoBubble.prototype.borderWidth_changed;InfoBubble.prototype.updateArrowStyle_=function(){var borderWidth=this.getBorderWidth_();var arrowSize=this.getArrowSize_();var arrowStyle=this.getArrowStyle_();var arrowOuterSizePx=this.px(arrowSize);var arrowInnerSizePx=this.px(Math.max(0,arrowSize-borderWidth));var outer=this.arrowOuter_;var inner=this.arrowInner_;this.arrow_.style['marginTop']=this.px(-borderWidth);outer.style['borderTopWidth']=arrowOuterSizePx;inner.style['borderTopWidth']=arrowInnerSizePx;if(arrowStyle==0||arrowStyle==1){outer.style['borderLeftWidth']=arrowOuterSizePx;inner.style['borderLeftWidth']=arrowInnerSizePx;}else{outer.style['borderLeftWidth']=inner.style['borderLeftWidth']=0;}
if(arrowStyle==0||arrowStyle==2){outer.style['borderRightWidth']=arrowOuterSizePx;inner.style['borderRightWidth']=arrowInnerSizePx;}else{outer.style['borderRightWidth']=inner.style['borderRightWidth']=0;}
if(arrowStyle<2){outer.style['marginLeft']=this.px(-(arrowSize));inner.style['marginLeft']=this.px(-(arrowSize-borderWidth));}else{outer.style['marginLeft']=inner.style['marginLeft']=0;}
if(borderWidth==0){outer.style['display']='none';}else{outer.style['display']='';}};InfoBubble.prototype.setPadding=function(padding){this.set('padding',padding);};InfoBubble.prototype['setPadding']=InfoBubble.prototype.setPadding;InfoBubble.prototype.getPadding_=function(){return parseInt(this.get('padding'),10)||0;};InfoBubble.prototype.padding_changed=function(){var padding=this.getPadding_();this.contentContainer_.style['padding']=this.px(padding);this.updateTabStyles_();this.redraw_();};InfoBubble.prototype['padding_changed']=InfoBubble.prototype.padding_changed;InfoBubble.prototype.px=function(num){if(num){return num+'px';}
return num;};InfoBubble.prototype.addEvents_=function(){var events=['mousedown','mousemove','mouseover','mouseout','mouseup','mousewheel','DOMMouseScroll','touchstart','touchend','touchmove','dblclick','contextmenu','click'];var bubble=this.bubble_;this.listeners_=[];for(var i=0,event;event=events[i];i++){this.listeners_.push(google.maps.event.addDomListener(bubble,event,function(e){e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation();}}));}};InfoBubble.prototype.onAdd=function(){if(!this.bubble_){this.buildDom_();}
this.addEvents_();var panes=this.getPanes();if(panes){panes.floatPane.appendChild(this.bubble_);panes.floatShadow.appendChild(this.bubbleShadow_);}};InfoBubble.prototype['onAdd']=InfoBubble.prototype.onAdd;InfoBubble.prototype.draw=function(){var projection=this.getProjection();if(!projection){return;}
var latLng=(this.get('position'));if(!latLng){this.close();return;}
var tabHeight=0;if(this.activeTab_){tabHeight=this.activeTab_.offsetHeight;}
var anchorHeight=this.getAnchorHeight_();var arrowSize=this.getArrowSize_();var arrowPosition=this.getArrowPosition_();arrowPosition=arrowPosition/100;var pos=projection.fromLatLngToDivPixel(latLng);var width=this.contentContainer_.offsetWidth;var height=this.bubble_.offsetHeight;if(!width){return;}
var top=pos.y-(height+arrowSize);if(anchorHeight){top-=anchorHeight;}
var left=pos.x-(width*arrowPosition);this.bubble_.style['top']=this.px(top);this.bubble_.style['left']=this.px(left);var shadowStyle=parseInt(this.get('shadowStyle'),10);switch(shadowStyle){case 1:this.bubbleShadow_.style['top']=this.px(top+tabHeight-1);this.bubbleShadow_.style['left']=this.px(left);this.bubbleShadow_.style['width']=this.px(width);this.bubbleShadow_.style['height']=this.px(this.contentContainer_.offsetHeight-arrowSize);break;case 2:width=width*0.8;if(anchorHeight){this.bubbleShadow_.style['top']=this.px(pos.y);}else{this.bubbleShadow_.style['top']=this.px(pos.y+arrowSize);}
this.bubbleShadow_.style['left']=this.px(pos.x-width*arrowPosition);this.bubbleShadow_.style['width']=this.px(width);this.bubbleShadow_.style['height']=this.px(2);break;}};InfoBubble.prototype['draw']=InfoBubble.prototype.draw;InfoBubble.prototype.onRemove=function(){if(this.bubble_&&this.bubble_.parentNode){this.bubble_.parentNode.removeChild(this.bubble_);}
if(this.bubbleShadow_&&this.bubbleShadow_.parentNode){this.bubbleShadow_.parentNode.removeChild(this.bubbleShadow_);}
for(var i=0,listener;listener=this.listeners_[i];i++){google.maps.event.removeListener(listener);}};InfoBubble.prototype['onRemove']=InfoBubble.prototype.onRemove;InfoBubble.prototype.isOpen=function(){return this.isOpen_;};InfoBubble.prototype['isOpen']=InfoBubble.prototype.isOpen;InfoBubble.prototype.close=function(){if(this.bubble_){this.bubble_.style['display']='none';this.bubble_.className=this.bubble_.className.replace(this.animationName_,'');}
if(this.bubbleShadow_){this.bubbleShadow_.style['display']='none';this.bubbleShadow_.className=this.bubbleShadow_.className.replace(this.animationName_,'');}
this.isOpen_=false;};InfoBubble.prototype['close']=InfoBubble.prototype.close;InfoBubble.prototype.open=function(opt_map,opt_anchor){var that=this;window.setTimeout(function(){that.open_(opt_map,opt_anchor);},0);};InfoBubble.prototype.open_=function(opt_map,opt_anchor){this.updateContent_();if(opt_map){this.setMap(opt_map);}
if(opt_anchor){this.set('anchor',opt_anchor);this.bindTo('anchorPoint',opt_anchor);this.bindTo('position',opt_anchor);}
this.bubble_.style['display']=this.bubbleShadow_.style['display']='';var animation=!this.get('disableAnimation');if(animation){this.bubble_.className+=' '+this.animationName_;this.bubbleShadow_.className+=' '+this.animationName_;}
this.redraw_();this.isOpen_=true;var pan=!this.get('disableAutoPan');if(pan){var that=this;window.setTimeout(function(){that.panToView();},200);}};InfoBubble.prototype['open']=InfoBubble.prototype.open;InfoBubble.prototype.setPosition=function(position){if(position){this.set('position',position);}};InfoBubble.prototype['setPosition']=InfoBubble.prototype.setPosition;InfoBubble.prototype.getPosition=function(){return(this.get('position'));};InfoBubble.prototype['getPosition']=InfoBubble.prototype.getPosition;InfoBubble.prototype.position_changed=function(){this.draw();};InfoBubble.prototype['position_changed']=InfoBubble.prototype.position_changed;InfoBubble.prototype.panToView=function(){var projection=this.getProjection();if(!projection){return;}
if(!this.bubble_){return;}
var anchorHeight=this.getAnchorHeight_();var height=this.bubble_.offsetHeight+anchorHeight;var map=this.get('map');var mapDiv=map.getDiv();var mapHeight=mapDiv.offsetHeight;var latLng=this.getPosition();var centerPos=projection.fromLatLngToContainerPixel(map.getCenter());var pos=projection.fromLatLngToContainerPixel(latLng);var spaceTop=centerPos.y-height;var spaceBottom=mapHeight-centerPos.y;var needsTop=spaceTop<0;var deltaY=0;if(needsTop){spaceTop*=-1;deltaY=(spaceTop+spaceBottom)/2;}
pos.y-=deltaY;latLng=projection.fromContainerPixelToLatLng(pos);if(map.getCenter()!=latLng){map.panTo(latLng);}};InfoBubble.prototype['panToView']=InfoBubble.prototype.panToView;InfoBubble.prototype.htmlToDocumentFragment_=function(htmlString){htmlString=htmlString.replace(/^\s*([\S\s]*)\b\s*$/,'$1');var tempDiv=document.createElement('DIV');tempDiv.innerHTML=htmlString;if(tempDiv.childNodes.length==1){return(tempDiv.removeChild(tempDiv.firstChild));}else{var fragment=document.createDocumentFragment();while(tempDiv.firstChild){fragment.appendChild(tempDiv.firstChild);}
return fragment;}};InfoBubble.prototype.removeChildren_=function(node){if(!node){return;}
var child;while(child=node.firstChild){node.removeChild(child);}};InfoBubble.prototype.setContent=function(content){this.set('content',content);};InfoBubble.prototype['setContent']=InfoBubble.prototype.setContent;InfoBubble.prototype.getContent=function(){return(this.get('content'));};InfoBubble.prototype['getContent']=InfoBubble.prototype.getContent;InfoBubble.prototype.updateContent_=function(){if(!this.content_){return;}
this.removeChildren_(this.content_);var content=this.getContent();if(content){if(typeof content=='string'){content=this.htmlToDocumentFragment_(content);}
this.content_.appendChild(content);var that=this;var images=this.content_.getElementsByTagName('IMG');for(var i=0,image;image=images[i];i++){google.maps.event.addDomListener(image,'load',function(){that.imageLoaded_();});}
google.maps.event.trigger(this,'domready');}
this.redraw_();};InfoBubble.prototype.imageLoaded_=function(){var pan=!this.get('disableAutoPan');this.redraw_();if(pan&&(this.tabs_.length==0||this.activeTab_.index==0)){this.panToView();}};InfoBubble.prototype.updateTabStyles_=function(){if(this.tabs_&&this.tabs_.length){for(var i=0,tab;tab=this.tabs_[i];i++){this.setTabStyle_(tab.tab);}
this.activeTab_.style['zIndex']=this.baseZIndex_;var borderWidth=this.getBorderWidth_();var padding=this.getPadding_()/2;this.activeTab_.style['borderBottomWidth']=0;this.activeTab_.style['paddingBottom']=this.px(padding+borderWidth);}};InfoBubble.prototype.setTabStyle_=function(tab){var backgroundColor=this.get('backgroundColor');var borderColor=this.get('borderColor');var borderRadius=this.getBorderRadius_();var borderWidth=this.getBorderWidth_();var padding=this.getPadding_();var marginRight=this.px(-(Math.max(padding,borderRadius)));var borderRadiusPx=this.px(borderRadius);var index=this.baseZIndex_;if(tab.index){index-=tab.index;}
var styles={'cssFloat':'left','position':'relative','cursor':'pointer','backgroundColor':backgroundColor,'border':this.px(borderWidth)+' solid '+borderColor,'padding':this.px(padding/2)+' '+this.px(padding+5),'marginRight':marginRight,'whiteSpace':'nowrap','borderRadiusTopLeft':borderRadiusPx,'MozBorderRadiusTopleft':borderRadiusPx,'webkitBorderTopLeftRadius':borderRadiusPx,'borderRadiusTopRight':borderRadiusPx,'MozBorderRadiusTopright':borderRadiusPx,'webkitBorderTopRightRadius':borderRadiusPx,'zIndex':index,'display':'inline'};for(var style in styles){tab.style[style]=styles[style];}
var className=this.get('tabClassName');if(className!=undefined){tab.className+=' '+className;}};InfoBubble.prototype.addTabActions_=function(tab){var that=this;tab.listener_=google.maps.event.addDomListener(tab,'click',function(){that.setTabActive_(this);});};InfoBubble.prototype.setTabActive=function(index){var tab=this.tabs_[index-1];if(tab){this.setTabActive_(tab.tab);}};InfoBubble.prototype['setTabActive']=InfoBubble.prototype.setTabActive;InfoBubble.prototype.setTabActive_=function(tab){if(!tab){this.setContent('');this.updateContent_();return;}
var padding=this.getPadding_()/2;var borderWidth=this.getBorderWidth_();if(this.activeTab_){var activeTab=this.activeTab_;activeTab.style['zIndex']=this.baseZIndex_-activeTab.index;activeTab.style['paddingBottom']=this.px(padding);activeTab.style['borderBottomWidth']=this.px(borderWidth);}
tab.style['zIndex']=this.baseZIndex_;tab.style['borderBottomWidth']=0;tab.style['marginBottomWidth']='-10px';tab.style['paddingBottom']=this.px(padding+borderWidth);this.setContent(this.tabs_[tab.index].content);this.updateContent_();this.activeTab_=tab;this.redraw_();};InfoBubble.prototype.setMaxWidth=function(width){this.set('maxWidth',width);};InfoBubble.prototype['setMaxWidth']=InfoBubble.prototype.setMaxWidth;InfoBubble.prototype.maxWidth_changed=function(){this.redraw_();};InfoBubble.prototype['maxWidth_changed']=InfoBubble.prototype.maxWidth_changed;InfoBubble.prototype.setMaxHeight=function(height){this.set('maxHeight',height);};InfoBubble.prototype['setMaxHeight']=InfoBubble.prototype.setMaxHeight;InfoBubble.prototype.maxHeight_changed=function(){this.redraw_();};InfoBubble.prototype['maxHeight_changed']=InfoBubble.prototype.maxHeight_changed;InfoBubble.prototype.setMinWidth=function(width){this.set('minWidth',width);};InfoBubble.prototype['setMinWidth']=InfoBubble.prototype.setMinWidth;InfoBubble.prototype.minWidth_changed=function(){this.redraw_();};InfoBubble.prototype['minWidth_changed']=InfoBubble.prototype.minWidth_changed;InfoBubble.prototype.setMinHeight=function(height){this.set('minHeight',height);};InfoBubble.prototype['setMinHeight']=InfoBubble.prototype.setMinHeight;InfoBubble.prototype.minHeight_changed=function(){this.redraw_();};InfoBubble.prototype['minHeight_changed']=InfoBubble.prototype.minHeight_changed;InfoBubble.prototype.addTab=function(label,content){var tab=document.createElement('DIV');tab.innerHTML=label;this.setTabStyle_(tab);this.addTabActions_(tab);this.tabsContainer_.appendChild(tab);this.tabs_.push({label:label,content:content,tab:tab});tab.index=this.tabs_.length-1;tab.style['zIndex']=this.baseZIndex_-tab.index;if(!this.activeTab_){this.setTabActive_(tab);}
tab.className=tab.className+' '+this.animationName_;this.redraw_();};InfoBubble.prototype['addTab']=InfoBubble.prototype.addTab;InfoBubble.prototype.updateTab=function(index,opt_label,opt_content){if(!this.tabs_.length||index<0||index>=this.tabs_.length){return;}
var tab=this.tabs_[index];if(opt_label!=undefined){tab.tab.innerHTML=tab.label=opt_label;}
if(opt_content!=undefined){tab.content=opt_content;}
if(this.activeTab_==tab.tab){this.setContent(tab.content);this.updateContent_();}
this.redraw_();};InfoBubble.prototype['updateTab']=InfoBubble.prototype.updateTab;InfoBubble.prototype.removeTab=function(index){if(!this.tabs_.length||index<0||index>=this.tabs_.length){return;}
var tab=this.tabs_[index];tab.tab.parentNode.removeChild(tab.tab);google.maps.event.removeListener(tab.tab.listener_);this.tabs_.splice(index,1);delete tab;for(var i=0,t;t=this.tabs_[i];i++){t.tab.index=i;}
if(tab.tab==this.activeTab_){if(this.tabs_[index]){this.activeTab_=this.tabs_[index].tab;}else if(this.tabs_[index-1]){this.activeTab_=this.tabs_[index-1].tab;}else{this.activeTab_=undefined;}
this.setTabActive_(this.activeTab_);}
this.redraw_();};InfoBubble.prototype['removeTab']=InfoBubble.prototype.removeTab;InfoBubble.prototype.getElementSize_=function(element,opt_maxWidth,opt_maxHeight){var sizer=document.createElement('DIV');sizer.style['display']='inline';sizer.style['position']='absolute';sizer.style['visibility']='hidden';if(typeof element=='string'){sizer.innerHTML=element;}else{sizer.appendChild(element.cloneNode(true));}
document.body.appendChild(sizer);var size=new google.maps.Size(sizer.offsetWidth,sizer.offsetHeight);if(opt_maxWidth&&size.width>opt_maxWidth){sizer.style['width']=this.px(opt_maxWidth);size=new google.maps.Size(sizer.offsetWidth,sizer.offsetHeight);}
if(opt_maxHeight&&size.height>opt_maxHeight){sizer.style['height']=this.px(opt_maxHeight);size=new google.maps.Size(sizer.offsetWidth,sizer.offsetHeight);}
document.body.removeChild(sizer);delete sizer;return size;};InfoBubble.prototype.redraw_=function(){this.figureOutSize_();this.positionCloseButton_();this.draw();};InfoBubble.prototype.figureOutSize_=function(){var map=this.get('map');if(!map){return;}
var padding=this.getPadding_();var borderWidth=this.getBorderWidth_();var borderRadius=this.getBorderRadius_();var arrowSize=this.getArrowSize_();var mapDiv=map.getDiv();var gutter=arrowSize*2;var mapWidth=mapDiv.offsetWidth-gutter;var mapHeight=mapDiv.offsetHeight-gutter-this.getAnchorHeight_();var tabHeight=0;var width=(this.get('minWidth')||0);var height=(this.get('minHeight')||0);var maxWidth=(this.get('maxWidth')||0);var maxHeight=(this.get('maxHeight')||0);maxWidth=Math.min(mapWidth,maxWidth);maxHeight=Math.min(mapHeight,maxHeight);var tabWidth=0;if(this.tabs_.length){for(var i=0,tab;tab=this.tabs_[i];i++){var tabSize=this.getElementSize_(tab.tab,maxWidth,maxHeight);var contentSize=this.getElementSize_(tab.content,maxWidth,maxHeight);if(width<tabSize.width){width=tabSize.width;}
tabWidth+=tabSize.width;if(height<tabSize.height){height=tabSize.height;}
if(tabSize.height>tabHeight){tabHeight=tabSize.height;}
if(width<contentSize.width){width=contentSize.width;}
if(height<contentSize.height){height=contentSize.height;}}}else{var content=(this.get('content'));if(typeof content=='string'){content=this.htmlToDocumentFragment_(content);}
if(content){var contentSize=this.getElementSize_(content,maxWidth,maxHeight);if(width<contentSize.width){width=contentSize.width;}
if(height<contentSize.height){height=contentSize.height;}}}
if(maxWidth){width=Math.min(width,maxWidth);}
if(maxHeight){height=Math.min(height,maxHeight);}
width=Math.max(width,tabWidth);if(width==tabWidth){width=width+2*padding;}
arrowSize=arrowSize*2;width=Math.max(width,arrowSize);if(width>mapWidth){width=mapWidth;}
if(height>mapHeight){height=mapHeight-tabHeight;}
if(this.tabsContainer_){this.tabHeight_=tabHeight;this.tabsContainer_.style['width']=this.px(tabWidth+50);}
this.contentContainer_.style['width']=this.px(width);this.contentContainer_.style['height']=this.px(height);};InfoBubble.prototype.getAnchorHeight_=function(){var anchor=this.get('anchor');if(anchor){var anchorPoint=(this.get('anchorPoint'));if(anchorPoint){return-1*anchorPoint.y;}}
return 0;};InfoBubble.prototype.anchorPoint_changed=function(){this.draw();};InfoBubble.prototype['anchorPoint_changed']=InfoBubble.prototype.anchorPoint_changed;InfoBubble.prototype.positionCloseButton_=function(){var br=this.getBorderRadius_();var bw=this.getBorderWidth_();var right=2;var top=2;if(this.tabs_.length&&this.tabHeight_){top+=this.tabHeight_;}
top+=bw;right+=bw;var c=this.contentContainer_;if(c&&c.clientHeight<c.scrollHeight){right+=15;}
this.close_.style['right']=this.px(right);this.close_.style['top']=this.px(top);};
if(!C2MEngine.instance){C2MEngine.instance=new C2MEngine();window.c2mInstance=C2MEngine.instance;}
if(_enableTraffic)$('traffic').show();C2MEngine.standby();
},wait:function(text)
{if(text){$('alert_text').update(text);}else{$('alert_text').update(_s_loading);}
$('body').addClassName('loading');},standby:function()
{$('body').removeClassName('loading');},mapLoadBarShow:function()
{$('mapLoadBar').removeClassName('hide');},mapLoadBarHide:function()
{$('mapLoadBar').addClassName('hide');},loadingBoxShow:function()
{$('loadingBox').addClassName('show');},loadingBoxHide:function()
{$('loadingBox').removeClassName('show');},progressBarShow:function()
{$('progressBar').addClassName('show');},progressBarHide:function()
{$('progressBar').removeClassName('show');},progressBarValue:function(current,max)
{var pct=Math.round((current*100)/max);$('progressBar').update(_s_progress_loading+' '+pct+"%");},run:function()
{if(_showSidebar){if(_hideSidebarOnStartup){C2MEngine.sidebarIsOpened=false;$('sidebar').hide();}}
$('app').show();C2MEngine.wait(_s_loading_app);if(_enableStat&&!_isPreview)C2MEngine.statAction(_iid,null,null,null,null);C2MEngine.resize();Event.observe(window,'resize',C2MEngine.resize);if(_showSidebar){if(C2MEngine.sidebarIsOpened){if(_enableToggle&&_toggleCompatible){Event.observe($('toggle'),'click',C2MEngine.hideSidebar);}}else{if(_enableToggle&&_toggleCompatible){Event.observe($('toggle'),'click',C2MEngine.showSidebar);}}}
Event.observe(window,'unload',C2MEngine.unload);C2MEngine.apiLoaded();},resize:function()
{var header=$('header');var desc=$('mapDescription');var ad=$('ad');var main=$('main');var map=$('map');var footer=$('footer');var h=document.viewport.getHeight();var w=document.viewport.getWidth();var hh=0;if(_showHeader){hh=header.getHeight();}
var dh=0;if(_showDescription){dh=desc.getHeight();}
var ah=0;if(_showAds){ah=ad.getHeight();}
var fh=0;if(_showFooter){fh=footer.getHeight();}
main.setStyle({width:w+'px',height:h-hh-dh-ah-fh+'px'});var sw=0;var sh=0;if(_showSidebar){if(!C2MEngine.sidebarIsOpened){sw=0;sh=0;}else{var sidebar=$('sidebar');sw=_sidebarWidth;sh=main.getHeight();sidebar.setStyle({height:sh+'px'});sidebar.setStyle({width:sw+'px'});$('sidebar-content').setStyle({height:sh+'px'});if(_showDirections){var dir_width=91;if(_sidebarWidth<300){dir_width=dir_width-Math.ceil(Math.floor(300-_sidebarWidth)/10);}
$('dir_from_addr').setStyle({width:dir_width.toString()+'%'});$('dir_to_addr').setStyle({width:dir_width.toString()+'%'});}}}
var th=0;if(((_showSidebar&&C2MEngine.sidebarIsOpened)&&(_showDirections||_showSearch)&&_showMarkerList)||_isPreview){var tabs=$('tabs');th=tabs.getHeight()+2;if(_ieFamily==true){th-=8;}
if(_isPreview&&!(_showDirections||_showSearch)){if(_ieFamily==true){th=2;}
th+=1;}
if(_isPreview&&!_showMarkerList){if(_ieFamily==true){th=2;}
th+=1;}}else{th=2;}
var gtHeight=0;if(_showSidebar&&_enableGotoAdress){var goToAddress=$('goToAddress');gtHeight=goToAddress.getHeight()+5;}
if(_showSidebar&&C2MEngine.sidebarIsOpened){if(th>=sh&&sh>=2)th=2;var tch=sh-th-gtHeight;$('tab-content').setStyle({height:tch+'px'});}
var tw=0;if(_showSidebar){var toggle=$('toggle');toggle.setStyle({height:main.getHeight()+'px'});tw=toggle.getWidth();}
map.setStyle({height:main.getHeight()+'px'});map.setStyle({width:main.getWidth()-sw-tw+'px'});$('map-content').setStyle({width:map.getWidth()-(_mapBorderWidth*2)-(_mapMarginWidth*2)+'px',height:map.getHeight()-(_mapBorderWidth*2)-(_mapMarginWidth*2)+'px'});var progressBar=$('progressBar');progressBar.setStyle({top:hh+dh+ah+30+'px'});var prgsB_left=map.getWidth()-progressBar.getWidth()-10;if(_showSidebar&&_sidebarPos=='left'){progressBar.setStyle({left:prgsB_left+sw+tw+'px'});}else{progressBar.setStyle({left:prgsB_left+'px'});}
var mapLoadBar=$('mapLoadBar');mapLoadBar.setStyle({top:hh+dh+ah+5+'px'});var mapLoadBar_left=Math.ceil(map.getWidth()/2)-(220/2);if(_showSidebar&&_sidebarPos=='left'){mapLoadBar.setStyle({left:mapLoadBar_left+sw+tw+'px'});}else{mapLoadBar.setStyle({left:mapLoadBar_left+'px'});}
var loadingBox=$('loadingBox');var loadingBox_Top=Math.ceil($('map-content').getHeight()/2)-Math.ceil(loadingBox.getHeight()/2);loadingBox.setStyle({top:hh+dh+ah+loadingBox_Top+'px'});var loadingBox_left=Math.ceil(map.getWidth()/2)-(250/2);if(_showSidebar&&_sidebarPos=='left'){if(_ieFamily){loadingBox.setStyle({left:loadingBox_left+'px'});}else{loadingBox.setStyle({left:loadingBox_left+sw+tw+'px'});}}else{if(_ieFamily){loadingBox.setStyle({left:'0px'});}else{loadingBox.setStyle({left:loadingBox_left+'px'});}}
if(_enableTraffic){var trafficDiv=$('traffic');var trafficRightDecal=0;if(_useMenuForMapType){trafficDiv.setStyle({top:hh+dh+ah+7+'px'});trafficRightDecal=100;}else{trafficDiv.setStyle({top:hh+dh+ah+7+'px'});trafficRightDecal=285;}
if(!_enableType){trafficRightDecal=7;}
var trafficDiv_left=map.getWidth()-trafficDiv.getWidth()-trafficRightDecal;if(_showSidebar&&_sidebarPos=='left'){trafficDiv.setStyle({left:trafficDiv_left+sw+tw+'px'});}else{trafficDiv.setStyle({left:trafficDiv_left+'px'});}}
if(C2MEngine.instance){C2MEngine.instance.gmap.checkResize();}},unload:function()
{GUnload();},hideSidebar:function()
{if(_enableToggle&&_toggleCompatible){Event.stopObserving($('toggle'),'click',C2MEngine.hideSidebar);Event.observe($('toggle'),'click',C2MEngine.showSidebar);}
C2MEngine.sidebarIsOpened=false;$('sidebar').hide();$('toggle').removeClassName('show_sidebar_'+_sidebarPos);$('toggle').addClassName('hide_sidebar_'+_sidebarPos);C2MEngine.resize();},showSidebar:function()
{if(_enableToggle&&_toggleCompatible){Event.stopObserving($('toggle'),'click',C2MEngine.showSidebar);Event.observe($('toggle'),'click',C2MEngine.hideSidebar);}
C2MEngine.sidebarIsOpened=true;$('sidebar').show();$('toggle').removeClassName('hide_sidebar_'+_sidebarPos);$('toggle').addClassName('show_sidebar_'+_sidebarPos);C2MEngine.resize();},statAction:function(map,mkr,action,list,param)
{var cpt=new Image();var r='&r='+String(Math.random()*10000000);var mk='';var act='';var li='';var prm='';if(mkr)mk='&mk='+String(mkr);if(action)act='&act='+String(action);if(list)li='&li='+String(list);if(param)prm='&prm='+String(param);cpt.src=_statEngineBaseUrl+'/gr_count.php?map='+map+mk+act+li+prm+r;}});

Object.extend(C2MEngine.prototype,{initialize:function()
{this.gmap=null;this.gdir=null;this.gmarkers=new Array();this.gclusters=new Array();this.gdrawings=new Array();this.gicons=new Array();this.icons=null;this.groups=null;this.markers=null;this.gdrawings=new Array();this.drawings=null;this.mcount=0;this._groupFilterTimer=null;this._groupNextOpenMarker=null;this._groupNextOpenDrawing=null;this._highlightCircle=null;this._loadedBounds=false;this._canLoadOnMove=true;this._nextSelectedMarkerId=null;this._isLoading=false;this.directions={from:null,fromAddr:null,to:null};this.gotoAddress={address:null,gMarker:null,icon:{"icon_uri":_generatorBaseImagesUrl+'/locate.png',"icon_size_w":32,"icon_size_h":32,"icon_anchor_x":16,"icon_anchor_y":32,"infowindow_anchor_x":17,"infowindow_anchor_y":2,"use_shadow":true,"shadow_uri":_generatorBaseImagesUrl+'/locate_shadow.png',"shadow_size_w":49,"shadow_size_h":32}};this.gmap=new GMap2($(_mapElemId));if(_tile_layers.length==0){this.gmap.setCenter(new GLatLng(_centerLat,_centerLng),_zoom);this.gmap.addMapType(G_PHYSICAL_MAP);}else{var g_tile_layers=new Array();var tile_layer_max_zoom_1=0;for(var i=0;i<_tile_layers.length;i++){var g_tile_layer=new GTileLayer(new GCopyrightCollection(_tile_layers[i].name),_tile_layers[i].min_zoom,_tile_layers[i].max_zoom,{tileUrlTemplate:_tile_layers[i].tile_url});g_tile_layers.push(g_tile_layer);tile_layer_max_zoom_1=_tile_layers[i].max_zoom+1;}
var map_type=new GMapType(g_tile_layers,new GMercatorProjection(tile_layer_max_zoom_1),'Custom',{errorMessage:'No data available'});this.gmap.addMapType(map_type);this.gmap.setCenter(new GLatLng(_centerLat,_centerLng),_zoom,map_type);}
this.gdir=new GDirections(this.gmap);this.gmap._gZoomControl=null;if(_zoomControl=='ddliZoom'){this.gmap._gZoomControl=new GSmallZoomControl();this.gmap.addControl(this.gmap._gZoomControl);}else if(_zoomControl=='ddliSmall'){this.gmap._gZoomControl=new GSmallMapControl();this.gmap.addControl(this.gmap._gZoomControl);}else if(_zoomControl=='ddliLarge'){this.gmap._gZoomControl=new GLargeMapControl();this.gmap.addControl(this.gmap._gZoomControl);}else if(_zoomControl=='ddliZm3D'){this.gmap._gZoomControl=new GSmallZoomControl3D();this.gmap.addControl(this.gmap._gZoomControl);}else if(_zoomControl=='ddliLrg3D'){this.gmap._gZoomControl=new GLargeMapControl3D();this.gmap.addControl(this.gmap._gZoomControl);}
if(_enableType){if(!_useMenuForMapType){this.gmap._menuControl=new GMapTypeControl();}else{this.gmap._menuControl=new GMenuMapTypeControl();}
this.gmap.addControl(this.gmap._menuControl);}
if(_enableScale){this.gmap._scaleControl=new GScaleControl();this.gmap.addControl(this.gmap._scaleControl);}
if(_enableOverview){this.gmap._overviewControl=new GOverviewMapControl();this.gmap.addControl(this.gmap._overviewControl);}
if(_enableDragging)this.gmap.enableDragging();else this.gmap.disableDragging();if(_enableTraffic){this.gmap._trafficOverlay=new GTrafficOverlay();this.gmap._trafficOverlay.hide();this.gmap.addOverlay(this.gmap._trafficOverlay);}
if(_enableDoubleclickZoom)this.gmap.enableDoubleClickZoom();else this.gmap.disableDoubleClickZoom();if(_enableDoubleclickZoom)this.gmap.enableScrollWheelZoom();if(_enableContinuousZoom)this.gmap.enableContinuousZoom();else this.gmap.disableContinuousZoom();if(_enableInfowindow)this.gmap.enableInfoWindow();else this.gmap.disableInfoWindow();if(_tile_layers.length==0){if(_defaultType=='ddliMap'){this.gmap.setMapType(G_NORMAL_MAP);}else if(_defaultType=='ddliSatellite'){this.gmap.setMapType(G_SATELLITE_MAP);}else if(_defaultType=='ddliHybrid'){this.gmap.setMapType(G_HYBRID_MAP);}else if(_defaultType=='ddliTerrain'){this.gmap.setMapType(G_PHYSICAL_MAP);}else if(_defaultType=='ddliSatellite3D'){this.gmap.setMapType(G_SATELLITE_3D_MAP);}}
GEvent.bind(this.gmap,"zoomend",this,this.gmap_zoomend);GEvent.bind(this.gmap,"moveend",this,this.gmap_moveend);GEvent.bind(this.gmap,"infowindowclose",this,this.closeHighlight);var bwe=$('builtwith');if(bwe!=null){var la=google.maps.ControlPosition.LEFT_BOTTOM;switch(_logo_anchor){case'bl':la=google.maps.ControlPosition.BOTTOM_LEFT;break;case'bc':la=google.maps.ControlPosition.BOTTOM_CENTER;break;case'br':la=google.maps.ControlPosition.BOTTOM_RIGHT;break;case'tl':la=google.maps.ControlPosition.TOP_LEFT;break;case'tc':la=google.maps.ControlPosition.TOP_CENTER;break;case'tr':la=google.maps.ControlPosition.TOP_RIGHT;break;case'lb':la=google.maps.ControlPosition.LEFT_BOTTOM;break;case'lc':la=google.maps.ControlPosition.LEFT_CENTER;break;case'lt':la=google.maps.ControlPosition.LEFT_TOP;break;case'rb':la=google.maps.ControlPosition.RIGHT_BOTTOM;break;case'rc':la=google.maps.ControlPosition.RIGHT_CENTER;break;case'rt':la=google.maps.ControlPosition.RIGHT_TOP;break;}
bwe.style.display='';this.gmap.map.controls[la].push(bwe);}
GEvent.bind(this.gdir,'load',this,this.directionsOnLoad);GEvent.bind(this.gdir,'addoverlay',this,this.directionsOnAddOverlay);GEvent.bind(this.gdir,'error',this,this.directionsOnError);if(_showSidebar&&_showDirections){Event.observe($('dir_from_addr'),'keypress',this.directionsOnFromAddressKeypress.bindAsEventListener(this));Event.observe($('dir_to_addr'),'keypress',this.directionsOnToAddressKeypress.bindAsEventListener(this));}
this._linkElements=document.getElementsByAttribute('group');this._firstTime=true;var self=this;this._timerAddMarkers="";this._timerCurrentAdd=false;this._timerCurrentBounds=null;this._timerMultiAddMax=_nMarkerPerTick;this._timerMultiAddCurrent=0;this._markersMaxToAdd=0;this._markersAddedCurrentCount=0;this._markersCurrentIndex=0;this._markersUnboundedCurrentCount=0;this._markersIndexAdded=new Array();this._currentMarkerId=null;this._currentClusterIndex=null;GEvent.addListener(this.gmap,'idle',function(){if(!self._firstTime)return;self._firstTime=false;

self.loadMarkers();
});},loadMarkers:function()
{var self=this;var request=HTTP.newRequest();request.onreadystatechange=function()
{if(request.readyState==4){

if(request.status==200||request.status==0){var content_type=request.getResponseHeader("Content-type");if(content_type=="application/json"||content_type=="application/javascript"||content_type=="application/x-javascript"||true){

var data=eval('('+request.responseText+')');self.mcount=data.count;self.icons=data.icons;self.groups=data.groups;self.markers=data.markers;self.drawings=data.drawings;self.createIcons();if(_enable_pub_cluster==true){self.createMarkersAndCluster();self.createDrawings();}else if(_useTimerLoading){self.createMarkersWithTimer();}else{self.createMarkers();self.createDrawings();}}}
C2MEngine.standby();}}
request.open("GET",_markersLoaderUrl);request.send(null);},getPixelExtendedBounds:function(bounds,size)
{if(this.gmap==null)return false;var extendedBounds=bounds;var mapZoom=this.gmap.getZoom();if(mapZoom>3){if(bounds){var projection=this.gmap.getCurrentMapType().getProjection();var northEastPoint=projection.fromLatLngToPixel(bounds.getNorthEast(),this.gmap.getZoom());var southWestPoint=projection.fromLatLngToPixel(bounds.getSouthWest(),this.gmap.getZoom());var extendedNEPoint=new GPoint(northEastPoint.x+size,northEastPoint.y-size);var extendedSWPoint=new GPoint(southWestPoint.x-size,southWestPoint.y+size);extendedBounds=new GLatLngBounds(projection.fromPixelToLatLng(extendedSWPoint,this.gmap.getZoom(),true),projection.fromPixelToLatLng(extendedNEPoint,this.gmap.getZoom(),true));}}else{extendedBounds=new GLatLngBounds(new GLatLng(-90,-180),new GLatLng(90,180));}
return extendedBounds;},

createIcons:function()
{for(var i=0;i<this.icons.length;i++){if(this.gicons[this.icons[i].id]==null||(this.gicons[this.icons[i].id]!=null&&this.gicons[this.icons[i].id].image!=this.icons[i].icon_uri)){var ic=new GIcon();ic.image=this.icons[i].icon_uri;ic.transparent=this.icons[i].icon_uri;ic.iconSize=new GSize(this.icons[i].icon_size_w,this.icons[i].icon_size_h);ic.iconAnchor=new GPoint(this.icons[i].icon_anchor_x,this.icons[i].icon_anchor_y);ic.infoWindowAnchor=new GPoint(this.icons[i].infowindow_anchor_x,this.icons[i].infowindow_anchor_y);if(this.icons[i].use_shadow){ic.shadow=this.icons[i].shadow_uri;ic.shadowSize=new GSize(this.icons[i].shadow_size_w,this.icons[i].shadow_size_h);}
this.gicons[this.icons[i].id]=ic;}}},_removeClusters:function()
{if(this._clusterTabs){var clusterTabs=this._clusterTabs;if(clusterTabs instanceof Array){for(var i=0;i<clusterTabs.length;i++){var cluster=clusterTabs[i];var gCluster=cluster.overlay;if(gCluster){gCluster.remove();}}}}},forceRedrawCluster:function()
{if(this._clusterTabs){var clusterTabs=this._clusterTabs;if(clusterTabs instanceof Array){for(var i=0;i<clusterTabs.length;i++){var cluster=clusterTabs[i];var gCluster=cluster.overlay;if(gCluster){gCluster.redraw(true);}}}}},

forceRedrawLabeledMarker:function()
{var nbGMarkers=this.gmarkers.length;for(var i=0;i<nbGMarkers;i++){if(this.gmarkers[i]&&this.gmarkers[i].__numberValue!=null){this.gmarkers[i].redraw(true);}}},_createLabeledCluster:function(PCluster,index)
{var self=this;var cluster=PCluster;var markerCount=cluster.gMarkersIndex.length;var clustParamGIcon=new GIcon();
clustParamGIcon.image=_generatorBaseUrl+'/cluster_01.png';clustParamGIcon.shadow=_generatorBaseUrl+'/shadow_cluster.png';
clustParamGIcon.iconSize=new GSize(32,32);clustParamGIcon.iconAnchor=new GPoint(16,32);clustParamGIcon.infoWindowAnchor=new GPoint(17,2);clustParamGIcon.shadowSize=new GSize(49,32);var xTotal=0.0,yTotal=0.0;var max=0;var title="";for(j=0;j<markerCount;++j){marker=this.gmarkers[cluster.gMarkersIndex[j]];if(marker!=null){max++;xTotal+=(+marker.getPoint().lng());yTotal+=(+marker.getPoint().lat());}}
title=max.toString()+" markers";if(max!=0){var location=new GLatLng(yTotal/max,xTotal/max);}else{var location=cluster.bounds.getCenter();}
cluster.center=location;var lblClass="markerLabelShort";if(max>99)lblClass="markerLabelLong";var clusterOptions={labelText:max.toString(),'title':title,labelOffset:new GSize(-15,-26),labelClass:lblClass,draggable:false,icon:clustParamGIcon}
var gcluster=new LabeledCluster(location,clusterOptions);gcluster._clusterIndex=index;for(var j=0;j<cluster.gMarkersIndex.length;j++){this.hideGMarker(cluster.gMarkersIndex[j]);}
for(var j=0;j<cluster.gMarkersHidedIndex.length;j++){this.hideGMarker(cluster.gMarkersHidedIndex[j]);}
this.gmap.addOverlay(gcluster);GEvent.addListener(gcluster,"click",function(){self.openClusterInfoWindow(gcluster,null,false);});cluster.overlay=gcluster;return cluster;},clusterize:function()
{var clustParamSize=8;var clustParamCalcType=0;var clustParamCalcDynZoom=5;var clustParamLowZoomCorrection=true;var clustParamMaxZoom=17;var clustParamMinInClust=3;if(_clustSize!=null)clustParamSize=_clustSize;if(_clustNbNeeded!=null)clustParamMinInClust=_clustNbNeeded;if(_clustType!=null)clustParamCalcType=_clustType;if(_clustDynZoom!=null)clustParamCalcDynZoom=_clustDynZoom;if(_clustMaxZoom!=null)clustParamMaxZoom=_clustMaxZoom;if(_clustLowZoom!=null)clustParamLowZoomCorrection=_clustLowZoom;this._removeClusters();var mapBounds=this.gmap.getBounds();var mapBounds=new GLatLngBounds(new GLatLng(-90,-180),new GLatLng(90,180));var zoom=this.gmap.getZoom();if(zoom>=clustParamMaxZoom){for(var i=0;i<this.gmarkers.length;i++){if(this.groupIsVisible(this.gmarkers[i].__group_id)){this.showGMarker(i);}}
return true;}
if(zoom==0)zoom=1;var gridSize=clustParamSize+1;if(clustParamCalcType==0){if(zoom<=clustParamCalcDynZoom){gridSize=Math.floor((clustParamSize*Math.exp(zoom-1))-(zoom*zoom*zoom));if(clustParamLowZoomCorrection&&(zoom<=2)){gridSize+=Math.floor(gridSize/2);}}else{gridSize=Math.floor((clustParamSize*zoom*zoom*zoom)/2);}}else if(clustParamCalcType==1){gridSize=Math.floor((clustParamSize*Math.exp(zoom-1))-(zoom*zoom*zoom));if(clustParamLowZoomCorrection&&(zoom<=3)){gridSize+=Math.floor(gridSize/2);}}else{gridSize=Math.floor((clustParamSize*zoom*zoom*zoom)/2);}
if(gridSize<clustParamSize)gridSize=Math.floor(clustParamSize/2);var sw=mapBounds.getSouthWest();var ne=mapBounds.getNorthEast();var size=mapBounds.toSpan();var gridCellSizeLat=size.lat()/gridSize;var gridCellSizeLng=size.lng()/gridSize;var clusterTabs=[];var clusterIndexTab=[];for(var i=0;i<this.gmarkers.length;i++){if(this.gmarkers[i]){var visible=this.groupIsVisible(this.gmarkers[i].__group_id);var MarkerLatLng=this.gmarkers[i].getPoint();if(mapBounds.containsLatLng(MarkerLatLng)){var testBounds=new GLatLngBounds(sw,MarkerLatLng);var testSize=testBounds.toSpan();var x=Math.ceil(testSize.lng()/gridCellSizeLng);var y=Math.ceil(testSize.lat()/gridCellSizeLat);var key=y.toString()+'-'+x.toString();if(clusterIndexTab[key]==null){var indice=clusterTabs.length;clusterIndexTab[key]=indice;var cluster=new Object();var CellSW=new GLatLng(sw.lat()+((y-1)*gridCellSizeLat),sw.lng()+((x-1)*gridCellSizeLng));var CellNE=new GLatLng(CellSW.lat()+gridCellSizeLat,CellSW.lng()+gridCellSizeLng);cluster.bounds=new GLatLngBounds(CellSW,CellNE);cluster.gMarkersIndex=[];cluster.gMarkersHidedIndex=[];cluster.overlay=null;cluster.key=key;cluster.index=indice;cluster.center=null;if(visible){cluster.gMarkersIndex.push(i);}else{cluster.gMarkersHidedIndex.push(i);}
clusterTabs.push(cluster);}else{if(visible){clusterTabs[clusterIndexTab[key]].gMarkersIndex.push(i);}else{clusterTabs[clusterIndexTab[key]].gMarkersHidedIndex.push(i);}}}}}
for(var i=0;i<clusterTabs.length;i++){var cluster=clusterTabs[i];var markerCount=cluster.gMarkersIndex.length
if(markerCount>=clustParamMinInClust){cluster=this._createLabeledCluster(cluster,i);}else{for(var j=0;j<cluster.gMarkersIndex.length;j++){this.showGMarker(cluster.gMarkersIndex[j]);}
for(var j=0;j<cluster.gMarkersHidedIndex.length;j++){this.hideGMarker(cluster.gMarkersHidedIndex[j]);}}}
this._clusterTabs=clusterTabs;},createMarkersAndCluster:function()
{for(var i=0;i<this.markers.length;i++){this.createMarker(this.markers[i],false);}
this.clusterize();this.openMarkerAfterLoading();},createMarkers:function()
{for(var i=0;i<this.markers.length;i++){this.createMarker(this.markers[i],true);}
this.openMarkerAfterLoading();},

createMarkersWithTimer:function()
{this._markersMaxToAdd=this.markers.length;this._markersAddedCurrentCount=0;this._markersCurrentIndex=0;this._markersUnboundedCurrentCount=0;this._markersIndexAdded=new Array();for(var i=0;i<this.markers.length;i++){this._markersIndexAdded[i]={added:false,latlng:new GLatLng(parseFloat(this.markers[i].lat),parseFloat(this.markers[i].lng)),unbound:false}}
this._timerCurrentBounds=this.gmap.getBounds();this._timerCurrentAdd=false;this._timerMultiAddCurrent=0;this._timerAddMarkers=setInterval("C2MEngine.instance.timerAddMarkers_tick()",_timerLoadingElapse);C2MEngine.progressBarShow();C2MEngine.progressBarValue(0,this._markersMaxToAdd);},createDrawings:function()
{for(var i=0;i<this.drawings.length;i++){this.createDrawing(this.drawings[i],true);}},timerAddMarkers_tick:function()
{try{if(this._timerCurrentAdd==false){if(this._markersAddedCurrentCount==this._markersMaxToAdd){clearInterval(this._timerAddMarkers);this.createDrawings();C2MEngine.progressBarHide();this.openMarkerAfterLoading();}else{this._timerCurrentAdd=true;for(var i=this._markersCurrentIndex;i<this._markersMaxToAdd;i++){if(this._markersIndexAdded[i].added==false){if((this._timerCurrentBounds.contains(this._markersIndexAdded[i].latlng))||(this._markersUnboundedCurrentCount==this._markersMaxToAdd)){this.createMarker(this.markers[i],true);if(_openMarkerId&&this.markers[i].id==_openMarkerId){this.openMarkerAfterLoading();}
this._markersIndexAdded[i].added=true;if(i==this._markersCurrentIndex){this._markersCurrentIndex++;}
this._markersAddedCurrentCount++;C2MEngine.progressBarValue(this._markersAddedCurrentCount,this._markersMaxToAdd);this._markersIndexAdded[i].unbound=true;if(this._markersUnboundedCurrentCount!=this._markersMaxToAdd){this._markersUnboundedCurrentCount++;}
break;}else{if(this._markersIndexAdded[i].unbound==false){this._markersIndexAdded[i].unbound=true;if(this._markersUnboundedCurrentCount!=this._markersMaxToAdd){this._markersUnboundedCurrentCount++;}}}}}
this._timerCurrentAdd=false;this._timerMultiAddCurrent++;if(this._timerMultiAddCurrent<this._timerMultiAddMax){this.timerAddMarkers_tick();}else{this._timerMultiAddCurrent=0;}}}}catch(ex){clearInterval(this._timerAddMarkers);this.createDrawings();C2MEngine.progressBarHide();this.openMarkerAfterLoading();}},createMarker:function(marker,show)
{var gmarker=this.createGMarker(marker);this.gmap.addOverlay(gmarker);if(!this.groupIsVisible(marker.group_id)){gmarker.hide();var linkmarker=$('linkmarker'+marker.id);if(linkmarker)linkmarker.className="linkmarker_disabled";}
if(show==false)gmarker.hide();this.gmarkers.push(gmarker);},createGNumberMarker:function(marker)
{var number=marker.number_value;var numberMarkerGIcon=new GIcon();numberMarkerGIcon.image=_generatorBaseImagesUrl+'/components/resources/icons/default/cluster_02.png';numberMarkerGIcon.iconSize=new GSize(32,32);numberMarkerGIcon.iconAnchor=new GPoint(16,32);numberMarkerGIcon.infoWindowAnchor=new GPoint(17,2);numberMarkerGIcon.shadow=_generatorBaseImagesUrl+'/components/resources/icons/default/shadow_cluster.png';numberMarkerGIcon.shadowSize=new GSize(49,32);var lblClass="markerLabelShort";if(number>99)lblClass="markerLabelLong";var numberMarkerOptions={labelText:number.toString(),'title':marker.title,labelOffset:new GSize(-15,-26),labelClass:lblClass,draggable:false,icon:numberMarkerGIcon}
var gmarker=new LabeledCluster(new GLatLng(parseFloat(marker.lat),parseFloat(marker.lng)),numberMarkerOptions);return gmarker;},_orderProcess:function(marker,b)
{return 1000000-marker.__order;},createGMarker:function(marker)
{var self=this;if(marker.number_value!=null){var gmarker=this.createGNumberMarker(marker);}else{var gmarker=new GMarker(new GLatLng(parseFloat(marker.lat),parseFloat(marker.lng)),{title:marker.title,icon:this.gicons[marker.icon_id],zIndexProcess:this._orderProcess});}
gmarker.__id=marker.id;gmarker.__iid=marker.iid;gmarker.__group_id=marker.group_id;gmarker.__tabs=marker.tabs;gmarker.__numberValue=marker.number_value;gmarker.__gId=this.gmarkers.length;gmarker.__order=marker.order;GEvent.addListener(gmarker,"click",function(){self.openMarkerInfoWindow(gmarker,gmarker.__tabs,'m',null);if(_enableStat&&!_isPreview)C2MEngine.statAction(_iid,gmarker.__iid,3,0,null);});return gmarker;},createDrawing:function(drawing,show)
{if(this.findGDrawing(drawing.id)==null){var gPoly=this.createGPoly(drawing);this.gmap.addOverlay(gPoly);if(drawing.group_id!=null&&!this.groupIsVisible(drawing.group_id)){gPoly.hide();var linkdrawing=$('linkdrawing'+drawing.id);if(linkdrawing)linkdrawing.className="linkmarker_disabled";}
if(show==false){gPoly.hide();}
this.gdrawings.push(gPoly);}},decodeDrawingPoints:function(points)
{return this._decodeDrawingPoints(points);},createGPoly:function(drawing)
{var self=this;var points=this.decodeDrawingPoints(drawing.points);if(drawing.drawType==1){var lineColor=drawing.lineColor!=""?drawing.lineColor:"#0000EE";var lineWeight=drawing.lineWeight!=""?drawing.lineWeight:3;var lineOpacity=drawing.lineOpacity!=""?drawing.lineOpacity:0.75;var gPoly=new GPolyline(points,lineColor,lineWeight,lineOpacity);}else if(drawing.drawType==2){var lineColor=drawing.lineColor!=""?drawing.lineColor:"#0000FF";var lineWeight=drawing.lineWeight!=""?drawing.lineWeight:4;var lineOpacity=drawing.lineOpacity!=""?drawing.lineOpacity:0.7;var fillColor=drawing.fillColor!=""?drawing.fillColor:"#0033FF";var fillOpacity=drawing.fillOpacity!=""?drawing.fillOpacity:0.45;var gPoly=new GPolygon(points,lineColor,lineWeight,lineOpacity,fillColor,fillOpacity);}
gPoly.__id=drawing.id;gPoly.__iid=drawing.iid;gPoly.__group_id=drawing.group_id;GEvent.addListener(gPoly,"click",function(e){self.openDrawingInfoWindow(gPoly,e.latLng);if(_enableStat&&!_isPreview)C2MEngine.statAction(_iid,gPoly.__iid,4,0,null);});return gPoly;},

openMarkerInfoWindow:function(gmarker,tabs,from,gPoint)
{if(from=='l'&&_hideSideBarOnOpenMarker){C2MEngine.hideSidebar();this.gmap.checkResize();}
if(tabs){var winTabs=new Array();var content="";var lat;var lng;for(var i=0;i<tabs.length;i++){content=tabs[i].content;if(_enableMarkerZoomIn&&i==0){lat=gmarker.getPoint().lat();lng=gmarker.getPoint().lng();if(gPoint){lat=gPoint.lat();lng=gPoint.lng();}
content=this.addMarkerZoomInfo(content,lat,lng);}
winTabs.push(new GInfoWindowTab(tabs[i].caption,content));}
if(winTabs.length>0)gmarker.openInfoWindowTabsHtml(winTabs);if(!_enableInfowindow)this.gmap.panTo(gmarker.getPoint());if(_enableHighlightMarkers)this.highlightLatLng(gmarker.getLatLng());}},addMarkerZoomInfo:function(content,lat,lng){var newContent="";newContent=content;if(_enableMarkerZoomIn){var currentZoom=this.gmap.getZoom();var maxZoom=this.gmap.getCurrentMapType().getMaximumResolution();if(currentZoom<maxZoom){var index=content.toLowerCase().lastIndexOf("</div>");var zoomDiv="<div class=\"marker_zoom\"><a href=\"javascript:void(C2MEngine.instance.mapZoomIn("+lat.toString()+","+lng.toString()+"));\">Zoom</a></div>";if(index!=-1){newContent=content.substring(0,index)+zoomDiv+content.substring(index);}else{newContent+=zoomDiv;}}}
return newContent;},openDrawingInfoWindow:function(gPoly,position)
{var htmlDrawing="<div class=\"drawing_infowindow\">";var drawing=null;for(var i=0;i<this.drawings.length;i++){if(gPoly.__id==this.drawings[i].id){drawing=this.drawings[i];break;}}
if(drawing){var innerHtml="";if(drawing.title){if(drawing.title.length>0){innerHtml=innerHtml+"<h1 class=\"drawing_title\">"+drawing.title+"<\/h1>";}}
if(drawing.description){var description=new String(drawing.description);var reg=new RegExp("\\n","g");description=description.replace(reg,"<br \/>");if(description.length>0){innerHtml=innerHtml+"<div class=\"drawing_description\">"+description+"<\/div>";}}
if(innerHtml!=""){htmlDrawing+=innerHtml;htmlDrawing+="</div>";var html="<div style=\"width:300px;\">"+htmlDrawing+"<\/div>";this.gmap.openInfoWindowHtml(position,html);}else{this.gmap.panTo(position);}}},openClusterInfoWindow:function(gCluster,marker_id,htmlMode)
{this.closeHighlight();if(_enable_pub_cluster==true){if(gCluster){if(this._clusterTabs){var clusterTabs=this._clusterTabs;if(clusterTabs instanceof Array){var indice=gCluster._clusterIndex;if(clusterTabs[indice]){var cluster=clusterTabs[indice];this._currentClusterIndex=indice;var htmlMarkers="";var count=cluster.gMarkersIndex.length;var clust_h=count*23;if(clust_h>185)clust_h=185;htmlMarkers+="<div class=\"info_window\">";htmlMarkers+="<h1 class=\"infowindow_title\">"+count.toString()+" markers"+"</h1>";htmlMarkers+="<div id=\"markersInCluster\" style=\"height:"+clust_h+"px;overflow:auto;margin-top:7px;\"><table>";for(var i=0;i<count;i++){var gmarker=this.gmarkers[cluster.gMarkersIndex[i]];if(gmarker){htmlMarkers+="<tr id=\"clust_"+gmarker.__id+"\">";htmlMarkers+="<td>";htmlMarkers+="<a href=\"javascript:void(C2MEngine.instance.selectClusteredMarker("+gmarker.__id+"));\"><img src=\""+gmarker.getIcon().image+"\" style=\"height:16px;border:0px;\" \/><\/a>";htmlMarkers+="<\/td>";if(gmarker.__id==marker_id){htmlMarkers+="<td><span  style=\"font-size:11px;font-weight:bold;background-color:#ADFFAD;\">";}else{htmlMarkers+="<td style=\"font-size:11px;\"><span>";}
htmlMarkers+="<a href=\"javascript:void(C2MEngine.instance.selectClusteredMarker("+gmarker.__id+"));\">";htmlMarkers+=gmarker.getTitle();htmlMarkers+="<\/a><\/span><\/td>";htmlMarkers+="<\/tr>";}}
htmlMarkers+="<\/table><\/div>";htmlMarkers+="<\/div>";var html="<div id=\"innerClusterInfo\" style=\"width:300px;\">"+htmlMarkers+"<\/div>";if(htmlMode==true){return htmlMarkers;}
if(_enableMarkerZoomIn){html=this.addMarkerZoomInfo(html,gCluster.getPoint().lat(),gCluster.getPoint().lng());}
this.highlightLatLng(gCluster.getLatLng());gCluster.openInfoWindowHtml(html);}}}}}},removeUndefinedElementsFromArray:function(array)
{var newArray=new Array();var nbe=array.length;for(var i=0;i<nbe;i++){if(typeof(array[i])!='undefined'){newArray.push(array[i]);}}
return newArray;},

findGMarker:function(id)
{var gmarker=null;for(var i=0;i<this.gmarkers.length;i++){if(this.gmarkers[i]&&this.gmarkers[i].__id==id){gmarker=this.gmarkers[i];break;}}
return gmarker;},findGDrawing:function(id)
{var gdrawing=null;for(var i=0;i<this.gdrawings.length;i++){if(this.gdrawings[i]&&this.gdrawings[i].__id==id){gdrawing=this.gdrawings[i];break;}}
return gdrawing;},findMarker:function(id)
{var marker=null;var i=0;while(marker==null&&i<this.markers.length){if(this.markers[i].id==id){marker=this.markers[i];}else{i++;}}
return marker;},openMarkerAfterLoading:function()
{if(_openMarkerId!=null){_forceOpenMarker=true;this.openMarker(_openMarkerId,null,null);_openMarkerId=null;}},

openDrawing:function(id)
{var gPoly=null;var nbDrawings=this.gdrawings.length;for(var i=0;i<nbDrawings;i++){if(this.gdrawings[i].__id==id){gPoly=this.gdrawings[i];break;}}
if(gPoly){var openByGroup=false;if(gPoly.isHidden()){if(gPoly.__group_id){this.filterByGroup(gPoly.__group_id,false,null,id);$('groupcheck'+gPoly.__group_id).checked=true;openByGroup=true;}else{gPoly.show();var element=$('linkdrawing'+id.toString());var chkDrawing=$('chkdrawing'+id.toString());if(element)element.className="link_markername";if(chkDrawing)chkDrawing.checked=true;}}
if(!openByGroup){}}},openMarker:function(id,lat,lng)
{if(!this.gmap.isLoaded())return;var cluster=this.isInCluster(0,id);var clustParamMaxZoom=17;if(_clustMaxZoom!=null)clustParamMaxZoom=_clustMaxZoom;var currentZoomLvl=this.gmap.getZoom();if(cluster&&(currentZoomLvl<clustParamMaxZoom)){_forceOpenMarker=true;if(_forceOpenMarker){_forceOpenMarker=false;this.selectClusteredMarker(id);}else{this.selectCluster(cluster,id);}}else{var gmarker=this.findGMarker(id);this.gmap.closeInfoWindow();if(gmarker){var openByGroup=false;if(gmarker.isHidden()){this.filterByGroup(gmarker.__group_id,false,id,null);$('groupcheck'+gmarker.__group_id).checked=true;openByGroup=true;}
if(!openByGroup){this._currentMarkerId=id;this._canLoadOnMove=false;this.openMarkerInfoWindow(gmarker,gmarker.__tabs,'l',null);if(_enableStat&&!_isPreview)C2MEngine.statAction(_iid,gmarker.__iid,2,1,null);if(_zoomOnOpenMarker){var mkPoint=new GLatLng(lat,lng);var coef=0.0005*(18-_zoom);var bounds=new google.maps.LatLngBounds(new GLatLng(lat-coef,lng-coef),new GLatLng(lat+coef,lng+coef));if(this.gmap.getBounds().containsLatLng(mkPoint)){this.gmap.fitBounds(bounds,0,mkPoint);}else{}}}}else{
}}},selectCluster:function(cluster,marker_id)
{this._currentMarkerId=marker_id;var gOverlay=cluster.overlay;if(gOverlay){this._canLoadOnMove=false;if(this._currentClusterIndex!=cluster.index){this.gmap.closeInfoWindow();this.openClusterInfoWindow(gOverlay,marker_id,false);}else{var infoWindow=this.gmap.getInfoWindow();if(infoWindow.isHidden()){this.openClusterInfoWindow(gOverlay,marker_id,false);}else{var innerClusterInfo=$("innerClusterInfo");if(innerClusterInfo){innerClusterInfo.innerHTML=this.openClusterInfoWindow(gOverlay,marker_id,true);}}}
var markersInCluster=$("markersInCluster");if(markersInCluster){var offsetTop=$('clust_'+marker_id).offsetTop;if(offsetTop>100){var top=offsetTop-70;markersInCluster.scrollTop=top;}}}},selectClusteredMarker:function(id)
{if(!this.gmap)return;var gmarker=this.findGMarker(id);if(gmarker){var cluster=this.isInCluster(0,id);var gCluster=false;if(cluster)gCluster=cluster.overlay;this.gmap.closeInfoWindow();if(gCluster){this.openMarkerInfoWindow(gCluster,gmarker.__tabs,'l',gmarker.getPoint());}else{this.openMarkerInfoWindow(gmarker,gmarker.__tabs,'l',null);}}},showGMarker:function(index)
{if(this.gmarkers[index]!=null){this.gmarkers[index].show();}},hideGMarker:function(index)
{if(this.gmarkers[index]!=null){this.gmarkers[index].hide();}},showGMarkers:function(group_id)
{var n=this._linkElements.length;for(var i=0;i<n;i++){if(this._linkElements[i].getAttribute('group')==group_id.toString()){var mk_id=this._linkElements[i].id.replace(/linkmarker/,"");var gmarker=this.findGMarker(mk_id);if(gmarker)gmarker.show();this._linkElements[i].className="link_markername";
}}},hideGMarkers:function(group_id)
{var n=this._linkElements.length;for(var i=0;i<n;i++){if(this._linkElements[i].getAttribute('group')==group_id.toString()){var mk_id=this._linkElements[i].id.replace(/linkmarker/,"");var gmarker=this.findGMarker(mk_id);if(gmarker)gmarker.hide();this._linkElements[i].className="linkmarker_disabled";
}}},showGDrawings:function(group_id)
{for(var i=0;i<this.gdrawings.length;i++){if(this.gdrawings[i]&&this.gdrawings[i].__group_id==group_id){var gpoly=this.gdrawings[i];if(gpoly){gpoly.show();var chkDrawing=$('chkdrawing'+gpoly.__id.toString());if(chkDrawing)chkDrawing.checked=true;}}}},hideGDrawings:function(group_id)
{for(var i=0;i<this.gdrawings.length;i++){if(this.gdrawings[i]&&this.gdrawings[i].__group_id==group_id){var gpoly=this.gdrawings[i];if(gpoly){gpoly.hide();var chkDrawing=$('chkdrawing'+gpoly.__id.toString());if(chkDrawing)chkDrawing.checked=false;}}}},chgDrawingDisp:function(dwg_id)
{var gpoly=this.findGDrawing(dwg_id);if(gpoly){var element=$('linkdrawing'+dwg_id.toString());var chkDrawing=$('chkdrawing'+dwg_id.toString());if(gpoly.isHidden()){gpoly.show();if(element)element.className="link_markername";if(chkDrawing)chkDrawing.checked=true;}else{gpoly.hide();if(element)element.className="linkmarker_disabled";if(chkDrawing)chkDrawing.checked=false;}}},hideGroup:function(id)
{var group=$('group'+id);group.hide();var icon=$('groupIcon'+id);if(icon)icon.src=_generatorBaseImagesUrl+'/folder_closed_16.png';if(Prototype.Browser&&Prototype.Browser.WebKit){C2MEngine.resize();}},showGroup:function(id)
{var group=$('group'+id);group.show();var icon=$('groupIcon'+id);if(icon)icon.src=_generatorBaseImagesUrl+'/folder_open_16.png';if(Prototype.Browser&&Prototype.Browser.WebKit){C2MEngine.resize();}},toggleGroup:function(id)
{},showHideGroup:function(id)
{this.gmap.closeInfoWindow();C2MEngine.mapLoadBarShow();if(this.groups!=null){var found=false;var i=0;while(!found&&i<this.groups.length){if(this.groups[i].id==id){found=true;}else{i++;}}
if(found){if(this.groups[i].opened){this.groups[i].opened=false;this.hideGroup(id);}else if(this.groups[i].opened==false){this.groups[i].opened=true;this.showGroup(id);}else{this.groups[i].opened=true;this.showGroup(id);}}}
C2MEngine.mapLoadBarHide();},groupIsVisible:function(id)
{var found=false;var i=0;while(!found&&i<this.groups.length){if(this.groups[i].id==id){found=true;}else{i++;}}
if(found){return this.groups[i].visible;}
return true;},filterByGroup:function(group_id,sub_groups,marker_id,drawing_id)
{this.gmap.closeInfoWindow();C2MEngine.mapLoadBarShow();var nb_ms=150;if(marker_id)nb_ms=250;if(drawing_id)nb_ms=250;var fct_str="C2MEngine.instance.filterByGroupTimed('"+group_id.toString();fct_str+="','true";if(typeof(sub_groups)!='undefined')fct_str+="','"+sub_groups.toString();fct_str+="')";this._groupFilterTimer=setInterval(fct_str,150);if(marker_id)this._groupNextOpenMarker=marker_id;if(drawing_id)this._groupNextOpenDrawing=drawing_id;},filterByGroupTimed:function(id,end_redraw,openSubGroups)
{var endOrRedraw=true;if(typeof(end_redraw)=='string'){if(end_redraw=="false")endOrRedraw=false;}else if(!end_redraw){endOrRedraw=false;}
if(this._groupFilterTimer!=null)clearInterval(this._groupFilterTimer);this._groupFilterTimer=null;var found=false;var i=0;while(!found&&i<this.groups.length){if(this.groups[i].id==id){found=true;}else{i++;}}
if(found){if(this.groups[i].visible){this.groups[i].visible=false;this.hideGMarkers(id);this.hideGDrawings(id);}else if(this.groups[i].visible==false){this.groups[i].visible=true;this.showGMarkers(id);this.showGDrawings(id);}else{this.groups[i].visible=false;this.hideGMarkers(id);this.hideGDrawings(id);}}
var openGroups=true;if(typeof(openSubGroups)!='undefined'){if(openSubGroups=="false")openGroups=false;}
if(found&&openGroups){for(var j=0;j<this.groups.length;j++){if(this.groups[j].parent_id==id){var grpChk=$('groupcheck'+this.groups[j].id);if(grpChk&&grpChk.disabled==false){if(this.groups[i].visible==true){grpChk.checked=true;this.groups[j].visible=false;this.filterByGroupTimed(this.groups[j].id,false);}else{grpChk.checked=false;this.groups[j].visible=true;this.filterByGroupTimed(this.groups[j].id,false);}}}}}
if(endOrRedraw){C2MEngine.mapLoadBarHide();

if(_enable_pub_cluster==true){this.clusterize();}


if(this._groupNextOpenMarker){this.openMarker(this._groupNextOpenMarker,null,null);this._groupNextOpenMarker=null;}
if(this._groupNextOpenDrawing){this.openDrawing(this._groupNextOpenDrawing);this._groupNextOpenDrawing=null;}}},isInCluster:function(index,id)
{var cluster=null;if(_enable_pub_cluster==true){if(this._clusterTabs){var clusterTabs=this._clusterTabs;if(clusterTabs instanceof Array){for(var i=0;i<clusterTabs.length;i++){cluster=clusterTabs[i];var gCluster=cluster.overlay;if(gCluster){for(var j=0;j<cluster.gMarkersIndex.length;j++){if(index!=0){if(index==cluster.gMarkersIndex[j]){return cluster;}}else if(id!=0){if(this.gmarkers[cluster.gMarkersIndex[j]]&&this.gmarkers[cluster.gMarkersIndex[j]].__id==id){return cluster;}}}}}}}}
return false;},gmap_zoomend:function(oldZoom,newZoom)
{

this.closeHighlight();if(_enable_pub_cluster==true){this.clusterize();}

},mapZoomIn:function(lat,lng){

var currentZoom=this.gmap.getZoom();var maxZoom=this.gmap.getCurrentMapType().getMaximumResolution();if(currentZoom<maxZoom){this.gmap.setCenter(new GLatLng(lat,lng),maxZoom);}},gmap_moveend:function()
{if(this._firstTime)return;

if(_enable_pub_cluster==true){this.forceRedrawCluster();}
this.forceRedrawLabeledMarker();
},


directionsOnLoad:function(id)
{var dirHtml='<table>';dirHtml+='<tr><td colspan="3"><\/td><\/tr>';for(var i=0;i<this.gdir.getNumRoutes();i++){var istep=0;var step;for(var j=0;j<this.gdir.getRoute(i).getNumSteps();j++){istep++;step=this.gdir.getRoute(i).getStep(j);dirHtml+='<tr><td style="vertical-align:top;"><a href="javascript:void(C2MEngine.instance.directionsGoToStep('+i+', '+istep+'));">'+istep+'<\/a>.<\/td>';dirHtml+='<td>'+step.getDescriptionHtml()+'<\/td>';dirHtml+='<td>'+step.getDistance().html+'<\/td>';dirHtml+='<\/tr>';}}
dirHtml+='<tr><td colspan="3"><\/td><\/tr>';dirHtml+='<\/table>';var dirHtmlFooter=this.gdir.getDistance().html+' ('+_s_dir_about+' '+this.gdir.getDuration().html+')';if(_showDirections){$('directions_result').innerHTML=dirHtml;$('directions_result_footer').innerHTML=dirHtmlFooter;}
C2MEngine.standby();},directionsOnAddOverlay:function()
{C2MEngine.standby();},directionsOnError:function()
{C2MEngine.standby();var dirHtml=_s_no_dir_found;$('directions_result').innerHTML=dirHtml;},directionsFromAddrOnChange:function()
{if(_showDirections){var addr=$F('dir_from_addr');if(addr!=''){$('dir_from_addr_clear_link').style.display='';this.directionsClearFrom();}else{$('dir_from_addr_clear_link').style.display='none';}}},directionsOnFromAddressKeypress:function()
{this.directions.from=null;},directionsOnToAddressKeypress:function()
{this.directions.to=null;},directionsSetAddressGoTo:function(dir)
{if(_enableGotoAdress){var address="";if(this.gotoAddress.address)address=this.gotoAddress.address;if(dir=="from"){$('dir_from_addr').value=address;this.directions.from=null;}else{$('dir_to_addr').value=address;this.directions.to=null;}
this.gmap.closeInfoWindow();this.directionsFind();}},directionsFrom:function(id)
{var marker=this.findMarker(id);if(marker!=null){this.gmap.closeInfoWindow();var from=_s_dir_unknown;if(marker.title!='')from=marker.title;$('dir_from_addr').value='('+from+')';this.directions.from=marker;this.directionsFind();}else{if(_inViewLoading){C2MEngine.mapLoadBarShow();var self=this;var request=HTTP.newRequest();request.onreadystatechange=function()
{if(request.readyState==4){if(request.status==200){if(request.getResponseHeader("Content-type")=="application/json"){var data=eval('('+request.responseText+')');var markers=data.markers;if(markers.length>0){var marker=markers[0];self.gmap.closeInfoWindow();var from=_s_dir_unknown;if(marker.title!='')from=marker.title;$('dir_from_addr').value='('+from+')';self.directions.from=marker;self.directionsFind();}}}
C2MEngine.mapLoadBarHide();}}
var URL=_markersInViewLoaderUrl;URL+='&fl=0';URL+='&ec=0';URL+='&mkids='+id.toString();request.open("GET",URL);request.send(null);}}},directionsTo:function(id)
{var marker=this.findMarker(id);if(marker!=null){this.gmap.closeInfoWindow();var to=_s_dir_unknown;if(marker.title!='')to=marker.title;$('dir_to_addr').value='('+to+')';this.directions.to=marker;this.directionsFind();}else{if(_inViewLoading){C2MEngine.mapLoadBarShow();var self=this;var request=HTTP.newRequest();request.onreadystatechange=function()
{if(request.readyState==4){if(request.status==200){if(request.getResponseHeader("Content-type")=="application/json"){var data=eval('('+request.responseText+')');var markers=data.markers;if(markers.length>0){var marker=markers[0];self.gmap.closeInfoWindow();var to=_s_dir_unknown;if(marker.title!='')to=marker.title;$('dir_to_addr').value='('+to+')';self.directions.to=marker;self.directionsFind();}}}
C2MEngine.mapLoadBarHide();}}
var URL=_markersInViewLoaderUrl;URL+='&fl=0';URL+='&ec=0';URL+='&mkids='+id.toString();request.open("GET",URL);request.send(null);}}},directionsFind:function()
{var query=null;if(this.directions.from!=null&&this.directions.to!=null){C2MEngine.wait();if(_showDirections){$('directions_result').innerHTML='';}
query={origin:new google.maps.LatLng(this.directions.from.lat,this.directions.from.lng),destination:new google.maps.LatLng(this.directions.to.lat,this.directions.to.lng)};}else{if(this.directions.from==null){var from_addr='';if(_showDirections){from_addr=$F('dir_from_addr');if(from_addr=='')from_addr=null;}}
if(this.directions.to==null){var to_addr='';if(_showDirections){to_addr=$F('dir_to_addr');if(to_addr=='')to_addr=null;}}
if(from_addr!=null&&this.directions.to!=null){query={origin:from_addr,destination:new google.maps.LatLng(this.directions.to.lat,this.directions.to.lng)};}else if(this.directions.from!=null&&to_addr!=null){query={origin:new google.maps.LatLng(this.directions.from.lat,this.directions.from.lng),destination:to_addr};}else if(from_addr!=null&&to_addr!=null){query={origin:from_addr,destination:to_addr};}}
if(query!=null){if(_showDirections){$('directions_result').innerHTML='';$('directions_result_footer').innerHTML='';}
this.gdir.clear();this.gdir.load(query,{getSteps:true,locale:_language});if(_showDirections){this.selectTab('directions_tab');}}else{}
return false;},directionsClearFrom:function(id)
{if(_showDirections){$('dir_from_addr').clear();}
this.directions.from=null;},directionsClearTo:function(id)
{if(_showDirections){$('dir_to_addr').clear();}
this.directions.to=null;},directionsReset:function()
{this.directionsClearFrom();this.directionsClearTo();if(_showDirections){$('directions_result').innerHTML='';$('directions_result_footer').innerHTML='';}
this.gdir.clear();},directionsGoToStep:function(nroute,nstep)
{var route=this.gdir.getRoute(nroute);if(route)var step=route.getStep(nstep-1);if(step){this.gmap.showMapBlowup(step.getLatLng());}},trafficButtonClicked:function()
{if(_enableTraffic){_trafficActive=!(_trafficActive);if(_trafficActive){this.gmap._trafficOverlay.show();$('trafficButton').removeClassName('traffic_off');$('trafficButton').addClassName('traffic_on');}else{this.gmap._trafficOverlay.hide();$('trafficButton').removeClassName('traffic_on');$('trafficButton').addClassName('traffic_off');}}},closeHighlight:function()
{this.highlightLatLng(false);},highlightLatLng:function(latlng)
{if(!latlng){if(this._highlightCircle){this._highlightCircle.setMap(null);this._highlightCircle=null;}
return;}
this._highlightCircle=new google.maps.Marker({position:latlng,zIndex:-99,icon:{path:google.maps.SymbolPath.CIRCLE,fillOpacity:0.65,fillColor:'#ff0000',strokeOpacity:0.8,strokeColor:'#ff0000',strokeWeight:2.0,scale:20}});this._highlightCircle.setMap(this.gmap.map);},

serverSearchKeyDown:function(event)
{if(_showSearch){var key=event.keyCode;if(key&&key==13)this.serverSearchExecute();}},serverSearchClicked:function()
{this.serverSearchExecute();},serverSearchFromPage:function(page)
{this.serverSearchExecute(this._searchExpression,page);},serverSearchExecute:function(txtSearched,page)
{if(_showSearch){if(typeof(txtSearched)!="undefined"){var searchValue=txtSearched;}else{var searchValue=$('txt_serverSearch').getValue();}
if(searchValue!=""){if(searchValue.length<4){alert("Search expression must contains more than 4 characters.");return false;}
var self=this;var request=HTTP.newRequest();request.onreadystatechange=function()
{if(request.readyState==4){

if(request.status==200||request.status==0){var content_type=request.getResponseHeader("Content-type");if(content_type=="application/json"||content_type=="application/javascript"||content_type=="application/x-javascript"||true){

var data=eval('('+request.responseText+')');if(typeof(data.markers)!="undefined"){var count=data.count;var currentPage=data.page;var nbParPage=data.nb_per_page;var markers=data.markers;var linkClassName=" class=\"link_markername\"";var htmlResult="<div style=\"margin-left:10px;\">"+"<a"+linkClassName+">"+"No match found."+"</a></div>";var nb_m=markers.length;if(count>0){htmlResult="";htmlResult+="<div style=\"margin-left:5px;\">";htmlResult+="<a"+linkClassName+">"+count.toString();var plural='s';if(_language=='nl')plural='';htmlResult+=" "+((count>1)?"result"+plural:"result");htmlResult+="</a></div>\n";var pagination="";var pgDeb=1;var nbPageMaxDisp=11;var nbPageMax=Math.ceil(count/nbParPage);if(nbPageMax>1){if(nbPageMax<nbPageMaxDisp){nbPageMaxDisp=nbPageMax;}else{pgDeb=currentPage-Math.floor(nbPageMaxDisp/2);if(pgDeb<1){pgDeb=1;}else{pgFin=pgDeb+Math.floor(nbPageMaxDisp/2);while((pgDeb+nbPageMaxDisp)>(nbPageMax+1)&&pgDeb>1){pgDeb--;}}}
if(currentPage>1){var pagePrec=currentPage-1;pagination+="<a"+linkClassName+" href=\"javascript:void(C2MEngine.instance.serverSearchFromPage("+pagePrec.toString()+"));\">"+"Previous"+"</a>&nbsp;";}else{pagination+="<a"+linkClassName+">"+"Previous"+"</a>&nbsp;";}
if(pgDeb>1){pagination+="<a"+linkClassName+" href=\"javascript:void(C2MEngine.instance.serverSearchFromPage(1));\">1</a> ...&nbsp;";}
for(var i=pgDeb;i<(pgDeb+nbPageMaxDisp);i++){if(i==currentPage){pagination+="<a"+linkClassName+">"+i.toString()+"</a>&nbsp;";}else{pagination+="<a"+linkClassName+" href=\"javascript:void(C2MEngine.instance.serverSearchFromPage("+i.toString()+"));\">"+i.toString()+"</a>&nbsp;";}}
if(pgDeb+nbPageMaxDisp-1<nbPageMax){pagination+="&nbsp;... <a"+linkClassName+" href=\"javascript:void(C2MEngine.instance.serverSearchFromPage("+nbPageMax.toString()+"));\">"+nbPageMax.toString()+"</a>&nbsp;";}
if(currentPage<nbPageMax){var pageSuiv=currentPage+1;pagination+="<a"+linkClassName+" href=\"javascript:void(C2MEngine.instance.serverSearchFromPage("+pageSuiv.toString()+"));\">"+"Next"+"</a>&nbsp;";}else{pagination+="<a"+linkClassName+">"+"Next"+"</a>";}
htmlResult+="<div style=\"padding:5px 0px;text-align:center;width:100%;\">";htmlResult+=pagination;htmlResult+="</div>\n";}
htmlResult+="<table class=\"markerlist\">\n";for(var i=0;i<nb_m;i++){var mk_title=markers[i].title;if(mk_title==""&&markers[i].name!="")mk_title=markers[i].name;var href="href=\"javascript:void(C2MEngine.instance.openMarker("+markers[i].id.toString()+","+markers[i].lat.toString()+","+markers[i].lng.toString()+"));\"";var link_href=href+" title=\""+mk_title+"\"";var img="<a "+link_href+">"+"<img src=\""+markers[i].icon_uri+"\" style=\"border:0;width:16px;height:16px;\" class=\"png\" alt=\"\" /></a>";var title="<a id=\"searchlinkmarker"+markers[i].id.toString()+"\" class=\"link_markername\" "+link_href+">"+mk_title+"</a>";htmlResult+="<tr class=\"markerrow\">\n<td class=\"markericoncell\" valign=\"top\">\n";htmlResult+=img+"\n";htmlResult+="</td>\n<td class=\"markertitlecell\">\n";htmlResult+=title+"\n";htmlResult+="</td>\n</tr>\n";}
htmlResult+="</table>\n";if(nbPageMax>1){htmlResult+="<div style=\"padding:5px 0px;text-align:center;width:100%;\">";htmlResult+=pagination;htmlResult+="</div>\n";}}
$('searchResults').innerHTML=htmlResult;}}}
C2MEngine.standby();}}
this._searchExpression=searchValue;var paramSearch="?q="+searchValue;if(typeof(page)!="undefined")paramSearch+="&page="+page.toString();request.open("GET",_searchUrl+paramSearch);C2MEngine.wait("Searching for results ...");request.send(null);}}},serverSearchReset:function()
{if(_showSearch){$('txt_serverSearch').clear();$('searchResults').innerHTML="";}},

goToAddressPlaceMarker:function(addressToGo,pt,bounds,types){var self=this;if(pt){var ic=new GIcon();ic.image=self.gotoAddress.icon.icon_uri;ic.transparent=self.gotoAddress.icon.icon_uri;ic.iconSize=new GSize(self.gotoAddress.icon.icon_size_w,self.gotoAddress.icon.icon_size_h);ic.iconAnchor=new GPoint(self.gotoAddress.icon.icon_anchor_x,self.gotoAddress.icon.icon_anchor_y);ic.infoWindowAnchor=new GPoint(self.gotoAddress.icon.infowindow_anchor_x,self.gotoAddress.icon.infowindow_anchor_y);if(self.gotoAddress.icon.use_shadow){ic.shadow=self.gotoAddress.icon.shadow_uri;ic.shadowSize=new GSize(self.gotoAddress.icon.shadow_size_w,self.gotoAddress.icon.shadow_size_h);}
var gmarker=new GMarker(pt,{title:addressToGo,icon:ic});var reg1=new RegExp(",","g");var tabContent='<div style="font-weight:bold;font-size:17px;margin-right:10px;">'+addressToGo.replace(reg1,",<br />");+'</div>';if(_showDirections){tabContent+="<div style='font-weight:normal;font-size:11px;margin-right:10px;margin-top:5px;'>Directions: <a href=\"javascript:void(C2MEngine.instance.directionsSetAddressGoTo('from'));\">From here</a> or <a href=\"javascript:void(C2MEngine.instance.directionsSetAddressGoTo('to'));\">To here</a></div>";}
gmarker._tabContent=tabContent;if(self.gotoAddress.gMarker){self.gotoAddress.gMarker.remove();}
self.gotoAddress.address=addressToGo;self.gotoAddress.gMarker=gmarker;self.gmap.addOverlay(self.gotoAddress.gMarker);GEvent.addListener(gmarker,"click",function(){gmarker.openInfoWindowHtml(gmarker._tabContent);});var zoom=0;if(types.length>0){zoom=2;var not_zoom_types=['administrative_area_level_1','administrative_area_level_2','administrative_area_level_3','administrative_area_level_4','administrative_area_level_5','country','post_box','postal_code','postal_code_prefix','postal_town'];for(var j=0;j<types.length;j++){if(zoom!=0){for(var i=0;i<not_zoom_types.length;i++){if(types[j]==not_zoom_types[i]){zoom=0;break;}}
if(zoom==0)break;}};}
if(bounds!=null){self.gmap.fitBounds(bounds,zoom,pt);}else{var coef=0.0005*(18-_zoom);bounds=new google.maps.LatLngBounds(new google.maps.LatLng(pt.lat()-coef,pt.lng()-coef),new google.maps.LatLng(pt.lat()+coef,pt.lng()+coef));self.gmap.fitBounds(bounds,zoom,pt);self.gmap.panTo(pt);}}},goToAddressLocate:function()
{if(_enableGotoAdress){var self=this;var addressToGo=$('txt_gotoAddress').getValue();if(addressToGo=="")return false;if(_localSearch==null){_localSearch=new google.maps.places.PlacesService(self.gmap.map);}
if(_localSearch){var request={query:addressToGo};_localSearch.textSearch(request,function(results,status)
{var errorMsg=true;if(status==google.maps.places.PlacesServiceStatus.OK){if(results.length>0){errorMsg=false;result=results[0];var pt=null;var bounds=null;var types=[];if(typeof(result.geometry.location)!=="undefined")pt=result.geometry.location;if(typeof(result.geometry.viewport)!=="undefined")bounds=result.geometry.viewport;if(typeof(result.types)!=="undefined")types=result.types;C2MEngine.instance.goToAddressPlaceMarker(addressToGo,pt,bounds,types);}}
if(errorMsg){alert("No result found.\nPlease check or correct the address.");}});}}},goToAddressLauch:function(event)
{if(_enableGotoAdress){var key=event.keyCode;if(key&&key==13)this.goToAddressLocate();}},goToAddressReset:function()
{if(_enableGotoAdress){$('txt_gotoAddress').clear();this.gotoAddress.address=null;if(this.gotoAddress.gMarker){this.gotoAddress.gMarker.remove();}
this.gotoAddress.gMarker=null;}},selectTab:function(tab)
{if(!_showMarkerList&&!_showDirections&&!_showSearch&&!_isPreview)return;C2MEngine.showSidebar();if(tab=='markers_tab'){if(_showMarkerList){$('markers_tab').addClassName('tabSelected');$('markers_tab_content').show();}
if(_showDirections){$('directions_tab').removeClassName('tabSelected');$('directions_tab_content').hide();}
if(_showSearch){$('search_tab').removeClassName('tabSelected');$('search_tab_content').hide();}}else if(tab=='directions_tab'){if(_showMarkerList){$('markers_tab').removeClassName('tabSelected');$('markers_tab_content').hide();}
if(_showDirections){$('directions_tab').addClassName('tabSelected');$('directions_tab_content').show();}
if(_showSearch){$('search_tab').removeClassName('tabSelected');$('search_tab_content').hide();}}else if(tab=='search_tab'){if(_showMarkerList){$('markers_tab').removeClassName('tabSelected');$('markers_tab_content').hide();}
if(_showDirections){$('directions_tab').removeClassName('tabSelected');$('directions_tab_content').hide();}
if(_showSearch){$('search_tab').addClassName('tabSelected');$('search_tab_content').show();}}
C2MEngine.currentTab=tab;
},_decodeDrawingPoints:function(enc_points)
{var len=enc_points.length;var index=0;var array=[];var lat=0;var lng=0;while(index<len){var b;var shift=0;var result=0;do{b=enc_points.charCodeAt(index++)-63;result|=(b&0x1f)<<shift;shift+=5;}while(b>=0x20);var dlat=((result&1)?~(result>>1):(result>>1));lat+=dlat;shift=0;result=0;do{b=enc_points.charCodeAt(index++)-63;result|=(b&0x1f)<<shift;shift+=5;}while(b>=0x20);var dlng=((result&1)?~(result>>1):(result>>1));lng+=dlng;array.push(new GLatLng((lat*1e-5),(lng*1e-5)));}
return array;},streetViewCreate:function(lat,lng)
{var tid=setTimeout(function(){var d=document.createElement('div');d.style.width="300px";d.style.height="230px";$('pano').appendChild(d);var pano=new GStreetviewPanorama(d,{latlng:new GLatLng(lat,lng)});clearTimeout(tid);},200);}

});document.getElementsByAttribute=function(attribute,parentElement){var children=($(parentElement)||document.body).getElementsByTagName('*');return $A(children).inject([],function(elements,child){if(child.getAttribute(attribute))
elements.push(Element.extend(child));return elements;});}
Object.extend(Enumerable,{pluck:function(property){var results=[];this.each(function(value,index){results.push(value.getAttribute?value.getAttribute(property)||value[property]:value[property]);});return results;}});Object.extend(Array.prototype,Enumerable);
C2MEngine.run();}

google.setOnLoadCallback(main);
            //]]>
        </script>
<div id="builtwith" style="display:none;" class="png">
<a href="http://www.click2map.com" title="Create a map with Click2Map" target="_blank"><img id="builtwithimg" src="http://d2njlksuqgkb9c.cloudfront.net/generator/images/builtwith.png" style="border:0" width="76" height="27" alt="Built with Click2Map" /></a>
</div>
<script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"beacon":"bam.nr-data.net","licenseKey":"06e84bea60","applicationID":"727665","transactionName":"MlwENRdVWEJUAhELWQsWMxMMG1FUWwQXA0IKS1ROTxtfX1EEHUxGDUk=","queueTime":0,"applicationTime":121,"ttGuid":"","agentToken":"","atts":"HhsHQ19PS0w=","errorBeacon":"bam.nr-data.net","agent":"js-agent.newrelic.com\/nr-632.min.js"}</script></body>
<!-- Build by Click2Map Generator v.2.1.2282 (http://www.click2map.com) on Sun, 14 Jun 2015 20:37:46 GMT -->
</html>
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

orre
Registered User
Posts: 22
Joined: Fri Feb 25, 2011 8:19 pm
Name: Jan Orre

Re: Session problem loading external map page

Post by orre » Thu Jun 18, 2015 5:19 pm

Aaahh.. Cache... :oops:

Jepp! Now the javascript start! :)
But the icon.png's doesen't show...
Yes I was afraid ALL url's had to be changed!... :?: :shock:
Like I said. I will have to update this map quite often, and manually changing a lot of code isn't optimal...

But Amigo.
Except from not being a "clean" solution...
Is it any problem using this map page in the oposit way as I set up in above post?
I mean, it seem to work!?...

User avatar
AmigoJack
Registered User
Posts: 5599
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Session problem loading external map page

Post by AmigoJack » Thu Jun 18, 2015 6:26 pm

orre wrote:But the icon.png's doesen't show...
You mention this for the first time - I never took care of looking for such a thing...
orre wrote:ALL url's had to be changed!...
Yes, all of them. You have to understand that relative paths can't point from where the template file exists, but where the output occurs. And the output occurs where the PHP file is requested. And your PHP file is always in the root of your board - not in the folder of one of your style's templates.
orre wrote:I will have to update this map quite often
Isn't that irrelevant to where the template file resides and you'd put appropriate paths in front of all resources on your website?
orre wrote:manually changing a lot of code isn't optimal
That's where "templating" kicks in: why not making it a real template and then serve all your "changes" thru PHP? In the end it could be as simple as managing your data in a text file, which is parsed thru the PHP file everytime, so your template needs no more changes at all.
orre wrote:Is it any problem using this map page in the oposit way as I set up in above post?
Not now. Once you decide to change your design of the map or extend any functionality you'll find yourself in hacking here and there, which gets awful quite quick and you end up having more work and inconsistencies than now. From my experiences I know that there was never a case where such a design was final. ;)
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

orre
Registered User
Posts: 22
Joined: Fri Feb 25, 2011 8:19 pm
Name: Jan Orre

Re: Session problem loading external map page

Post by orre » Thu Jun 18, 2015 6:56 pm

Ok.
Many thanks’ for your efforts AmigoJack! I really appreciate it!
And I will certainly assimilate your wisdom! ;)

Just tried to implement this 3’d party solution with our forum, and with your help actually accomplished that! For a start anyway!..
Maybe PhpBB 3.1 has something I could use when I get that far sometime!?... ;)

Have a marvelous midsummer day! 8-)

/orre

Locked

Return to “[3.0.x] MOD Writers Discussion”