jQuery(document).ready( function() {
	
	Cufon.replace('.him, .contentListTitle' , { fontFamily: 'him', hover:true });
	
	jQuery("#accordionList .accordionListLink").each( function() {
		
		jQuery(this).unwrap().unwrap();
		
		
	});	
	
	jQuery("#accordionList .accordionListLink:first").prev().remove();
	jQuery("#accordionList .accordionListLink:first").unwrap().unwrap();
	
	jQuery(jQuery("#accordionList .accordionListLink")[0]).addClass("selected");
	
	if ( jQuery('#accordionList').length > 0 )
	{
		jQuery('#accordionList').accordion({
			header: '.accordionListLink',
			active: '.selected',
			autoheight: false,
			alwaysOpen: true
		});	
	}

	if ( jQuery('a.zoom').length > 0 )
	{
		jQuery("a.zoom").fancybox({
			'overlayOpacity'	:	0.8,
			'zoomSpeedIn'		:	500,
			'zoomSpeedOut'		:	500
		});

}
	
	jQuery("#rightArea .productionTitle").each( function() {
	
		str = jQuery(this).children("a").attr("href");
		jQuery(this).prev().children("a").attr("href",str);
	
	});

	jQuery("#leftArea .productionTitle").each( function() {
	
		str = jQuery(this).children("a").attr("href");
		jQuery(this).prev().children("a").attr("href",str);
	
	});
});

