var config = {
    logging: true,
    paths: {
	dev: {
	    libPath: "/library/square_library/src/",
	    assetPath: "/data/assets/webdev/"
	},
	stage: {
	    libPath: "/library/square_library/build/",
	    assetPath: "/data/assets/montreal/"
	},
	live: {
	    libPath: "/library/square_library/build/",
	    assetPath: "/data/assets/montrealpr/"
	}	
    },    
    flowplayer: {
	enabled: true,
	key: "#@886cfd607bdcefeafca",
	video: {
	    enabled: true,
	    controlType: "html",	    
	    play: {
		url: "images/buttons/btn_play.jpg",
		width: 73,
		height: 73
	    },
	    clip: {
		autoPlay: true,
		autoBuffering: true
	    },
	    plugins: {
		controls: null
	    },
	    canvas: {
		borderRadius: 10,
		backgroundGradient: 'none',
		opacity: 0.5
	    }
	}
    },
    overlays: true,
    facebook: {
	enabled: true,
	app_id: "188047764549939"
    },
    pringo: {
	enabled: true,
	items: {
	    "shoplink": {
		"type": "html",
		"pre" : function(success) {
		    $j(".shop_item").html("");
		    $j(".shop_item").addClass("loader");
		    success.call();
		},
		"func": "object&object=shop_item",
		"post":function(data){
		    $j(".shop_item").removeClass("loader");
		    $j(".shop_item").html(data);
		},
		"key" : "item"
	    },
	    "video": {
		"type": "json",
		"pre" : function(success) {
		    site.flowplayer.unloadVideo("videoplayer");
		    $j(".video .preloader").show();
		    success.call();
		},
		"func": "square_videos/get",
		"post":function(data){
		    var image = new Image();

		    image.onload = function() {
			$j("#videoplayer").css('background-image', 'url('+image.src+')');
			$j(".video .preloader").hide();
			site.flowplayer.setVideo("videoplayer", data["link_file"]);
		    }

		    image.src = data["medium_screenshot_src"];
		},
		"key" : "VIDEO_ID"
	    }
	}
    },
    localExec : {
	enabled: true,
	functions: [ function() {
	    setAge();
	}]
    },
    effects: {
	"enabled": true,
	"items": {
	    "homesplash": {
		path: ".sectionhome .splashblock",
		type: "imagetraverse",
		file: "/images/backgrounds/splash_deusex",
		total: 6,
		time: 5000,
		speed: 1000,
		hasswitch: true
	    },
	    "studioindexsplash": {
		path: ".s_index .splashblock",
		type: "imagetraverse",
		file: "/images/backgrounds/splash_studio",
		total: 5,
		time: 5000,
		speed: 1000,
		hasswitch: false
	    },
	    "studiogmasplash": {
		path: ".s_gma .splashblock",
		type: "imagetraverse",
		file: "/images/backgrounds/splash_studiogm",
		total: 4,
		time: 5000,
		speed: 1000,
		hasswitch: false
	    },
	    "studioodsplash": {
		path: ".s_od .splashblock",
		type: "imagetraverse",
		file: "/images/backgrounds/splash_studiood",
		total: 4,
		time: 5000,
		speed: 1000,
		hasswitch: false
	    },
	    "studiootsplash": {
		path: ".s_ot .splashblock",
		type: "imagetraverse",
		file: "/images/backgrounds/splash_studioot",
		total: 3,
		time: 5000,
		speed: 1000,
		hasswitch: false
	    },
	    "teamsdesplash": {
		path: ".t_de .splashblock",
		type: "imagetraverse",
		file: "/images/backgrounds/splash_teams_deusex",
		total: 5,
		time: 5000,
		speed: 1000,
		hasswitch: false
	    },
	    "teamsptsplash": {
		path: ".t_pt .splashblock",
		type: "imagetraverse",
		file: "/images/backgrounds/splash_playtest",
		total: 4,
		time: 5000,
		speed: 1000,
		hasswitch: false
	    },
	    "studioooscroller": {
		path: ".s_oo .studio-oo .scroller",
		type: "scroll",
		vertical: false,
		nav: "false"
	    },
	    "studiootscroller": {
		path: ".s_ot .scroller",
		type: "scroll",
		vertical: true,
		nav: "#ot_nav"
	    },
	    "aboutmonscroll": {
		path: ".aboutmon .scroller",
		type: "scroll",
		vertical: false
	    },
	    "qascroll": {
		path: ".qa .scroller",
		type: "scroll",
		vertical: false,
		seek: true
	    },
	    "pressscroll": {
		path: ".press .scroller",
		type: "scroll",
		vertical: false
	    },	    
	    "job_accordion": {
		path: "#accordion",
		type: "accordion"
	    }	    
	}
    },
    jplayer: {
	enabled: false
    }
}
