var browserName=navigator.appName;var browserVer=parseInt(navigator.appVersion);var version="";var msie4=(browserName=="Microsoft Internet Explorer"&&browserVer>=4);if((browserName=="Netscape"&&browserVer>=3)||msie4||browserName=="Konqueror"||browserName=="Opera"){version="n3";}else{version="n2";}
function blurLink(theObject){if(msie4){theObject.blur();}}
function decryptCharcode(n,start,end,offset){n=n+offset;if(offset>0&&n>end){n=start+(n-end-1);}else if(offset<0&&n<start){n=end-(start-n-1);}
return String.fromCharCode(n);}
function decryptString(enc,offset){var dec="";var len=enc.length;for(var i=0;i<len;i++){var n=enc.charCodeAt(i);if(n>=0x2B&&n<=0x3A){dec+=decryptCharcode(n,0x2B,0x3A,offset);}else if(n>=0x40&&n<=0x5A){dec+=decryptCharcode(n,0x40,0x5A,offset);}else if(n>=0x61&&n<=0x7A){dec+=decryptCharcode(n,0x61,0x7A,offset);}else{dec+=enc.charAt(i);}}
return dec;}
function linkTo_UnCryptMailto(s){location.href=decryptString(s,-1);}

function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        
        var iconColor = new GIcon(); 
        iconColor.image = 'fileadmin/inc/red-pin.png';
        iconColor.shadow = 'fileadmin/inc/shadow-pin.png';
        iconColor.iconSize = new GSize(32, 32);
        iconColor.shadowSize = new GSize(59, 32);
        iconColor.iconAnchor = new GPoint(6, 20);
        iconColor.infoWindowAnchor = new GPoint(5, 1);
        
        var options = {
          draggable: false, 
          icon: iconColor, 
          bouncy: false, 
          bounceGravity: 1.0, 
          hide: false
        };
        
		

    		var marker = new GMarker(new GLatLng(50.19553676020296, 10.964312553405762), options);
        var html = '<p class="bodytext"><b>Max Winzer&reg; GmbH & Co. KG</b><br />Gro&szlig;heirather Stra&szlig;e 1<br />D-96253 Untersiemau<br />Telefon +49 9565 798 0<br />Telefax +49 9565 798 79</p><form name="search_route" class="rzgooglemaps_form" method="get" action="http://maps.google.de/" target="_blank">' + '<input name="saddr" type="text" id="saddr" value=""><br />' + '<input name="daddr" type="hidden" id="daddr" value="Gro&szlig;heirather Stra&szlig;e 1,96253,Untersiemau">' + '<input type="submit" name="Submit" value="Route berechnen"></form>';              
    
    		map.addControl(new GLargeMapControl());
    		
    		 
    		
        
        
               
			
    		map.setMapType(G_NORMAL_MAP);
    		var point = new GLatLng(50.19553676020296, 10.964312553405762);
    		var counter = 0;
        map.setCenter(point, 14);
    				
    		map.addOverlay(marker);
    		
    		GEvent.addListener(marker, "click", function() {
    		var html = '<p class="bodytext"><b>Max Winzer&reg; GmbH & Co. KG</b><br />Gro&szlig;heirather Stra&szlig;e 1<br />D-96253 Untersiemau<br />Telefon +49 9565 798 0<br />Telefax +49 9565 798 79</p><form name="search_route" class="rzgooglemaps_form" method="get" action="http://maps.google.de/" target="_blank">' + '<input name="saddr" type="text" id="saddr" value=""><br />' + '<input name="daddr" type="hidden" id="daddr" value="Gro&szlig;heirather Stra&szlig;e 1,96253,Untersiemau">' + '<input type="submit" name="Submit" value="Route berechnen"></form>'; 
        marker.openInfoWindowHtml(html);              
        });                                  
				
      }
                                                    
     }
	   GSearch.setOnLoadCallback(initialize);	
