/*-------------------- /projects/62/templates/js/kontaktmanager.js --------------------*/
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

var map ;
var geocoder;

$(document).ready(function(){


	 $("#geburtstag").mask("99.99.9999",{placeholder:"_"});



});


function initContactmanagerMapCategory(eleid, zoom) {
	//var mapOptions = { zoom:2, disableDefaultUI: true, center:world };
	var mapOptions = {
		zoom: zoom,
		//disableDefaultUI: true,
		mapTypeId: google.maps.MapTypeId.ROADMAP
	};
	map = new google.maps.Map(document.getElementById(eleid), mapOptions);
	geocoder = new google.maps.Geocoder();
}

function initContactmanagerMap(eleid, zoom) {
	//var mapOptions = { zoom:2, disableDefaultUI: true, center:world };
	var mapOptions = {
		zoom: zoom,
		disableDefaultUI: true,
		mapTypeId: google.maps.MapTypeId.ROADMAP
	};
	map = new google.maps.Map(document.getElementById(eleid), mapOptions);
	geocoder = new google.maps.Geocoder();
}

function showAddress(address, url) {
 
   if (geocoder) {
      geocoder.geocode( { 'address': address}, function(results, status) {
        if (status == google.maps.GeocoderStatus.OK) {
          map.setCenter(results[0].geometry.location);
          var marker = new google.maps.Marker({
              map: map,
              position: results[0].geometry.location
          });
		  google.maps.event.addListener(marker, 'click', function() {
			  window.location = url;
		  });
        } else {
          //alert("Geocode was not successful for the following reason: " + status);
        }
      });
    }

}



/*-------------------- /projects/62/templates/js/main.js --------------------*/
/*
    Document   : main.js
    Created on : 25.01.2011, 12:15:01
    Description:
        Basis javascript Datei  
*/



$(document).ready(function () {
	initPrettyFoto();
		$('#dropdownfilialen_trigger').hover(function(){
			$(this).parent('li').addClass('current').hover(function(){

			},function(){
				$(this).removeClass('current');
			});

		},function(){

		});
});

function ajax_trackimage(image_id){ }

function slideshow(){ }

function initPrettyFoto(){
	/*-------------------------------------------------------------------------
	   prettyPhoto
	---------------------------------------------------------------------------*/
	$("a[rel^='prettyOverlay'],a[rel^='prettyPhoto']").prettyPhoto({
			animationSpeed: 'normal',
			opacity: 0.55,
			showTitle: true,
			allowresize: true,
			counter_separator_label: '/' ,
			theme: 'light_rounded' /* light_rounded / dark_rounded / light_square / dark_square */

		});
}
/*--------------------------------------------------------------------------------
sum bytes: 2452 (2 KB)
--------------------------------------------------------------------------------*/

