/* Author: 

*/

/* iPhone Viewport Scaling Bugfix */
(function(doc) {

	var addEvent = 'addEventListener',
	    type = 'gesturestart',
	    qsa = 'querySelectorAll',
	    scales = [1, 1],
	    meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : [];

	function fix() {
		meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
		doc.removeEventListener(type, fix, true);
	}

	if ((meta = meta[meta.length - 1]) && addEvent in doc) {
		fix();
		scales = [.25, 1.6];
		doc[addEvent](type, fix, true);
	}

}(document));

/* Google Maps */
function initialize() {
    	
    	var latlng = new google.maps.LatLng(55.860196, -4.247774); //55.860196,-4.247774
    	
    	var myOptions = {
      	zoom: 15,
      	center: latlng,
      	mapTypeId: google.maps.MapTypeId.ROADMAP
   	 	};
   	 	
    	var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
        
        var marker = new google.maps.Marker({
      	position: latlng,
      	map: map,
      	animation: google.maps.Animation.DROP,
      	title:"Hello World!"
  		});
  		       
  		}  




	$(document).ready(function() {
		$(".fancybox").fancybox();
	});
	
