$(document).ready(function()
{
    $(".columnSide a[rel='sidebar']").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
        'showNavArrows' :   true
	});
    
    $("ul.faces li a").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
        'showNavArrows' :   true
	});
    
    $("div.portfolio_detail a.detail_photo").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
        'showNavArrows' :   true
	});    
    
    /** AJAX LOGIN **/
	$("a.login").fancybox({
		'width'				: '75%',
		'height'			: '75%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'ajax',
        'href'              : '/site/nl/0/user/login/index.html?ajax=true'
	});   

    
    $('#googleMaps_Helmond').gmap3(
      {
        action: ':addMarker', 
        args:{
          address:      "Lungendonk 9,5706 LE,Helmond",
          map:{
            center:     true,
            zoom:       14
          }
        }
      },
      {action: 'enableScrollWheelZoom'}
    );    
    
    $('#googleMaps_Overloon').gmap3(
      {
        action: ':addMarker', 
        args:{
          address:      "Overloon",
          map:{
            center: true,
            zoom: 14
          }
        }
      },
      {action: 'enableScrollWheelZoom'}
    ); 
    
    $('#googleMaps_Handel').gmap3(
      {
        action: ':addMarker', 
        args:{
          address:      "Pelgrimsweg 41,5423 XG,Handel",
          map:{
            center:     true,
            zoom:       14
          }
        }
      },
      {action: 'enableScrollWheelZoom'}
    );    

    /** Grayscale footer **/
    $("div#footer div.left a").hover(function() { //On hover...
        $(this).css({'backgroundPosition' : '0 25px'});
    },function() { //on hover out...
        //Fade the image to full opacity 
        $(this).css({'background-position' : '0 0'});
    });

    
               
});

