
$(function() {/*		
	$("#accordion li").each(function(){
		$li = $(this);
		$a = $li.find('a:first');
		$a.replaceWith('<h3>'+$a.text()+'</h3>');
		$span = $li.find('span');
		$span.replaceWith('<div>'+$span.html()+'<br style="clear:both;"/></div>');
		$li.parent().parent().append($li.html());			
	});

	$("#accordion ul").remove();

	$("#accordion").accordion({ autoHeight: false });

	$(".iframe").fancybox({
		'autoDimensions'	: 	false,
		'width'				:	640,
		'height'			:	480,
		'type'				:	'iframe',
		'href'				: 	this.href,
		'onStart'			:	function(){
			$("#player").css({
				'display'	:	'none'
			});
		},
		'onClosed'			: 	function(){
			$("#player").css({
				'display'	:	'block'
			});
		}			
	});

	$(".iframe2").fancybox({
		'autoDimensions'	: 	false,
		'width'				:	400,
		'height'			:	300,
		'type'				:	'iframe',
		'href'				: 	this.href,
		'onStart'			:	function(){
			$("#player").css({
				'display'	:	'none'
			});
		},
		'onClosed'			: 	function(){
			$("#player").css({
				'display'	:	'block'
			});
		}						
	});
	
	$(".fancyimg").fancybox({
		'onStart'			:	function(){
			$("#player").css({
				'display'	:	'none'
			});
		},
		'onClosed'			: 	function(){
			$("#player").css({
				'display'	:	'block'
			});
		}	
	});
	
	$(".photobook-images a").attr(
		"rel","pic"
	);

	$(".photobook-images a").fancybox({
		'onStart'			:	function(){
			$("#player").css({
				'display'	:	'none'
			});
		},
		'onClosed'			: 	function(){
			$("#player").css({
				'display'	:	'block'
			});
		}			
	});*/
        $(".fancybox").fancybox();
	$("#video-list a").addClass('youtube');
    $("#video-list .musiclink a").removeClass('youtube');
	$(".youtube").click(function() {
		$("#player").css({
			'display'			:	'none'
		});
		$.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',
				'swf'			: 	{
						'wmode'			: 	'transparent',
						'allowfullscreen'	: 'true'					
				},
				'onClosed'		: 	function(){
					$("#player").css({
						'display'			:	'block'
					});
				}
			});

		return false;
	});
					
});

