/* Qui ci sono tutte le attivazioni dei comandi js!!!! */


///////** Per far andare e/o fermare la musica **///////

/*$(document).ready(function(){

   $("#jquery_jplayer").jPlayer({
		ready: function () {
			$(this).setFile('http://ctrln.comyr.com/audio/HittheRoadJack.mp3').play();
		}
	})
	.jPlayerId("play", "play")
	.jPlayerId("pause", "pause")
	.jPlayerId("stop", "stop")
	.onProgressChange( function(lp,ppr,ppa,pt,tt) {
 		$("#pcent").text(parseInt(ppa)+"%");
		
	});
});*/

///////** ToolTips - etichette sul title **///////

/* $('#yoyo').qtip({   
		content: 'Bienvenido a (ctrl+N), elija su ticket para comenzar el vuelo, Buen Viaje!',
		position: {
		adjust: {x:52, y:27},
		corner: {
		target: 'topLeft',
        tooltip: 'rightBottom' } },
   style:{ background: '#F1F0DF','font-family': 'Trebuchet MS', 'font-weight': '700', tip: true, border: {width:1, radius:4, color: '#7F808F'}},
   tip:'bottomMiddle'}) */


///////** Menu **///////
var query = new Object();
	window.location.search.replace(
	new RegExp( "([^?=&]+)(=([^&]*))?", 'g' ),
		function( $0, $1, $2, $3 ){
			query[ $1 ] = $3;
		}
	);
	easing = query['e'] || 'Expo';

$(function(){
		$('#lavaLampFun').lavaLamp({
			fx: 'easeInOut'+easing,
			speed: 1000,
			autoReturn: false
		});
		$('#lavaLampFun2').lavaLamp({
			fx: 'easeInOut'+easing,
			speed: 1000,
			autoReturn: false
		});
		$('#lavaLampFun3').lavaLamp({
			fx: 'easeInOut'+easing,
			speed: 1000,
			autoReturn: false
		});
		$('#lavaLampFun4').lavaLamp({
			fx: 'easeInOut'+easing,
			speed: 1000,
			autoReturn: false
		});
	});

///////** PopUp **///////
$("a.iframe").fancybox({
		'hideOnContentClick': true, 
		'overlayShow'			: false,
		'zoomSpeedIn'			: 750,
		'zoomSpeedOut'			: 450,
		'frameWidth'            : 545,
		'frameHeight'           : 250,
		'centerOnScroll'        : false,
		'easingIn'				: 'easeOutBack',
		'zoomOpacity'           :75
	});

$("#vermas a").fancybox({
		'hideOnContentClick': true, 
		'overlayShow'			: true,
		'zoomSpeedIn'			: 750,
		'zoomSpeedOut'			: 450,
		'frameWidth'            : 885,
		'frameHeight'           : 410,
		'centerOnScroll'        : false,
		'easingIn'				: 'easeOutBack',
		'zoomOpacity'           :75
	});

$("#joistik a").fancybox({
		'hideOnContentClick': true, 
		'overlayShow'			: true,
		'zoomSpeedIn'			: 750,
		'zoomSpeedOut'			: 450,
		'frameWidth'            : 455,
		'frameHeight'           : 340,
		'centerOnScroll'        : false,
		'easingIn'				: 'easeOutBack',
		'zoomOpacity'           :75
	});

$("#lentes3d a").fancybox({
		'hideOnContentClick': true, 
		'overlayShow'			: true,
		'zoomSpeedIn'			: 750,
		'zoomSpeedOut'			: 450,
		'frameWidth'            : 805,
		'frameHeight'           : 450,
		'centerOnScroll'        : false,
		'easingIn'				: 'easeOutBack',
		'zoomOpacity'           :75
	});



$("#portfolio a").fancybox({
		'hideOnContentClick'    : true,
		'overlayShow'			: false,
		'zoomSpeedIn'			: 600,
		'zoomSpeedOut'			: 500,
		'easingIn'				: 'easeOutBack',
		'easingOut'				: 'easeInBack',
		'centerOnScroll'        : false
	});