$(document).ready(function() {
    $('.pics').cycle({
		fx: 'fade',
		speed: 3000,
		timeout: 2,
		delay:  -4000
	});
	$('.zoom').fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true
	});
});

/*
$(document).ready(function() {
		$('.zoom').fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true
	});
});
*/
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1507143-28']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
  
  
function initialize() {
var myLatlng = new google.maps.LatLng(51.98319,6.58339);
var myOptions = {
 zoom: 13,
 center: myLatlng,
 mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

var myLatlng = new google.maps.LatLng(51.983004,6.583369); 
var marker = new google.maps.Marker({
position: myLatlng,
title: 'Porskamp Installatietechniek',
map: map,
zIndex: 0
});
var contentString = '<div id="content">'+
'<div id="siteNotice">'+     '</div>'+
'<h1 id="firstHeading" class="firstHeading">Porskamp installatietechniek</h1>'+
'<div id="bodyContent">'+
'<p> Mercatorstraat 7, 7131 PW Lichtenvoorde Oost Gelre<br /> '+
'Telefoon: <b>0544 37 21 79</b>  |  Fax: 0544 37 70 28<br /> '+
'E-mail: <a href="mailto:instal@porskamp.com">instal@porskamp.com</a></p> '+
' <p><br /><b>Routeplanner:</b><br />'+
'<form id="route_form" action="http://maps.google.nl/maps" target="_blank">'+
'<input type="hidden" name="f" value="d" /><input type="hidden" name="hl" value="nl" /><input type="hidden" name="sll" value /><input type="hidden" name="sspn" value /><input type="hidden" id="d_daddr" name="daddr" value="51.983004,6.583369" />'+
'<input id="route_input" type="text" name="saddr" tabindex="6" size="29" />'+
'<input style="font-size: 8pt" type="submit" name="btnG" tabindex="8" value="Toon Route" /></p>'+
'</div>'+
'</div>';

var infowindow = new google.maps.InfoWindow({
content: contentString,
maxWidth: 330,
maxHeight: 100
});
google.maps.event.addListener(marker, 'click', function() {   infowindow.open(map,marker); }); 
}

