Effects = {
	
	init: function() {
		this.wire_events();
	},
	
	wire_events: function() {
		$("a.youtuberef").click(function() {
		                 $.fancybox({
		                  'padding'             : 0,
		                  'autoScale'   : false,
		                  'transitionIn'        : 'none',
		                  'transitionOut'       : 'none',
		                  'title'               : this.title,
		                  'width'               : 680,
		                  'height'              : 495,
		                  'href'                : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
		                  'type'                : 'swf',    // <--add a comma here
		                  'swf'                 : {'allowfullscreen':'true'} // <-- flashvars here
		                  });
		                 return false;
		            });


		$(".iframepopup").fancybox({
						'width'				: '75%',
						'height'			: '75%',
						'autoScale'			: false,
						'type'				: 'ajax',
						'transitionIn'		: 'elastic',
						'transitionOut'		: 'elastic',
						'speedIn'			: 200, 
						'speedOut'			: 200, 
						'overlayShow'		: false,
						'titleShow'		: false		
		});	
		
		$("#selected_manga_poster_button").hover(
			function(){	
					$("#manga_play_button").attr("src","url('../images/playbuttonhighlight.png')");
				},
				function(){
					$("#manga_play_button").attr("src","url('../images/playbutton.png')");
				}
		);
				
	}	
}

