
Shadowbox.loadSkin('classic', 'js/src/skin');
Shadowbox.loadLanguage('en', 'js/build/lang');
Shadowbox.loadPlayer(['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp'], 'js/build/player');
	


$(document).ready(function()
{
	Shadowbox.init();
  
	
	$('#img_links ul:not(".home") li:not("#img_home") a').each( function()
	{
		$(this).hover( function()
		{
			var image = $(this).find('img')
			if( image.css('display') != 'inline')
			{
				image.fadeIn(300);				
			}

		},
		function()
		{
			var image = $(this).find('img')
			if( $(this).parent().attr('class') != "current" && image.css('display') != 'none')
			{
				if( $(this).hasClass("caption") )	
				{
					
				}	
				else
				{
					image.fadeOut(300);		
				}
			}
		})
	});
	
	if( $('#clear_top a').length > 0 )
	{
		$('#flash_wrap').hide();		
	}

	
	
	$('#clear_top a').click( function()
	{
		$('#flash_wrap').slideToggle();
		
		return false;
	});
	
	// 
	// 
	// $("#nytimes").click( function()
	// {
	// 	if( $(this).find('a').hasClass('caption'))
	// 	{
	// 		$(this).css('left', '409px')
	// 		$(this).css('top', '235px')
	// 	}
	// 	else {
	// 		 $(this).css('left', '403px')
	// 		$(this).css('top', '229px')
	// 	}
	// 	
	// 	$(this).find('a').toggleClass('caption');
	// 	
	// 	return false;
	// });
	// 
	
});

