
  function initialize() {
  
  // Creating a map  
var map = new google.maps.Map(document.getElementById('map'), {  
  zoom: 14,  
  center: new google.maps.LatLng(60.988679, 25.678740),  
  mapTypeId: google.maps.MapTypeId.ROADMAP ,
  mapTypeControl: false,
  panControl: false,
  scaleControl: false,
  streetViewControl: false,
  zoomControl: true,
  zoomControlOptions: {
  style: google.maps.ZoomControlStyle.LARGE,
  position: google.maps.ControlPosition.LEFT_CENTER
  }
}
);  
  
// Creating a marker and positioning it on the map  
var marker = new google.maps.Marker({  
  position: new google.maps.LatLng(60.987615, 25.661724),  
  map: map,
	title: 'JS Media',  
  clickable: false,  
  icon: 'http://www.jsmedia.fi/images/map-icon.png'  
}); 

                            
  }

	$(document).ready(function() { 
		
		$(window).scroll(function() {  
			checkFloatingMenu();
		});
		
		checkFloatingMenu();
		

		$.localScroll({
			duration:750,
			easing:'easeOutQuad',
			offset: {top:-50, left:0}
		});
		
		// initialize scrollable together with the navigator plugin
		var root = $("#scrollable").scrollable({
			vertical: true,
			keyboard: false,
			speed: 700
			}).navigator(".scrlnavi");
		window.api = root.data("scrollable");
	});
	
	function checkFloatingMenu(){
		var ypos = $(document).scrollTop(); 		
		if( ypos > 100 ){
			$('#floating-header').show();
		} else {
			$('#floating-header').hide();
		}		
	}

		$(document).ready(function() {
			$("#palvelulista").fancybox({
				'width'				: 700,
				'height'			: 500,
				'autoScale'			: false,
				'transitionIn'		: true,
				'transitionOut'		: false,
				'type'				: 'iframe'
			});		
		});
		
		$(document).ready(function() {
			$("#asiakkaan-kommentit-lahtiskigames").fancybox({
				'width'				: 750,
				'height'			: 520,
				'autoScale'			: false,
				'transitionIn'		: true,
				'transitionOut'		: false,
				'type'				: 'iframe'
			});		
		});

	
