/*-------------------- /projects/32/templates/js/basic.js.js --------------------*/
$(document).ready(function(){
	$('.videos .image a').hover(function(){
		$(this).stop().animate({opacity:0.5},400);
	},function(){
		$(this).stop().animate({opacity:1},200);
	});
});
/*-------------------- /projects/32/templates/js/gallery_tracking.js --------------------*/
function ajax_trackimage(img){
	
	
}
/*-------------------- /projects/32/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(){




});


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);
        }
      });
    }

}



/*--------------------------------------------------------------------------------
sum bytes: 1725 (2 KB)
--------------------------------------------------------------------------------*/

