// JavaScript Document

jQuery( function() {
		/*$('#coverflow').load( function(){
			$(this.contentDocument).find('a').click(function (){
				var url = $(this).attr("href");
				return false;
			});
		});*/
		$('#iframepruebas').load( function(){
		   	//$(this.contentDocument).find('a[rel=videos]');
			$(this.contentDocument).find('a[rel=videos]').click(function (){
				//window.alert("Hola");
				var url = $(this).attr("href");
				$.fancybox({
					'transitionIn'		: 'none',
					'autoScale'         : 'false',
					'width'             : 490,
					'height'            : 295,
					'transitionOut'		: 'none',
					'type'              : 'iframe',
					'href'              :  url
				});
				return false;
			});
		});
		$('#iframepruebas2').load( function(){
		   	//$(this.contentDocument).find('a[rel=videos]');
			$(this.contentDocument).find('a[rel=videos]').click(function (){
				//window.alert("Hola");
				var url = $(this).attr("href");
				$.fancybox({
					'transitionIn'		: 'none',
					'autoScale'         : 'false',
					'width'             : 490,
					'height'            : 295,
					'transitionOut'		: 'none',
					'type'              : 'iframe',
					'href'              :  url
				});
				return false;
			});
		});
		$('#iframepruebas3').load( function(){
		   	//$(this.contentDocument).find('a[rel=videos]');
			$(this.contentDocument).find('a[rel=videos]').click(function (){
				//window.alert("Hola");
				var url = $(this).attr("href");
				$.fancybox({
					'transitionIn'		: 'none',
					'autoScale'         : 'false',
					'width'             : 490,
					'height'            : 295,
					'transitionOut'		: 'none',
					'type'              : 'iframe',
					'href'              :  url
				});
				return false;
			});
		});
	});
		
