$(function(){
	$.plugin('all',{
		files: [	'scripts/jquery.ui.js',
							'scripts/jquery.metadata.js'],
		selectors: [document]
	});
	$.plugin('parallax',{
		files: [	'scripts/jquery.mousewheel.js',
							'scripts/jquery.metadata.js',
							'scripts/jquery.parallax.js'],
		cache: false,
		selectors: ['.cloudParallax','codeParallax']
	});
	$.plugin('objectVR',{
		files: [	'scripts/jquery.preload.js',
							'scripts/jquery.metadata.js',
							'scripts/jquery.ui.js',
							'scripts/jquery.objectvr.js'],
		cache: false,
		selectors: ['.objectVR']
	});
});
	
$(document).ready(function(){

	$(".JSWarning").css("display","none");
	
	$.plugin('objectVR',function(){
		$("img.objectVR").objectvr();
	});
	
	$.plugin('parallax',function(){
		$(window).parallax('.cloudParallax', {
			y: true
		});
		$("#javascriptcode").parallax('.codeParallax');
	});
	/*
	$(window).parallax( '.parallax', {
		y: true
	});
	$(window).parallax( '.parallax', [ratio1,ratio2], {
		y: true
	});
	$("#parallax").parallax( '#parallaxPlane1', ratio, {
		x: true
	});
	$("#parallax").parallax( [url1,url2], [ratio1,ratio2], {
		base: "urlprefix",
		ext: "urlsuffix",
		x: true
	});*/
	
});