jQuery(document).ready(function(){
	jQuery('body').supersleight({shim: '/img/transparent.gif'});
	
	jQuery('#services table td').fadeTo(0, 0.6)
	.hover(function(){ jQuery(this).stop().fadeTo(250, 1) }, function(){ jQuery(this).stop().fadeTo(100, 0.6) });
	
	
	jQuery('table.portfolio-table td a').parent().hover(function(){ jQuery(this).addClass('hover') }, function(){ jQuery(this).removeClass('hover') });
	
	jQuery("a[rel=res-portfolio]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
		}
	});
	
	jQuery('table.videos tr').hover(
		function(){ jQuery(this).children('.thumb:first').not('.active').addClass('hover') },
		function(){ jQuery(this).children('.thumb:first').removeClass('hover') }
	);
	/*
	.css('cursor', 'pointer')
	.click(function(){
		jQuery('table.videos tr').each(function(){ jQuery(this).children('.thumb:first').removeClass('active') });
		jQuery(this).children('.thumb:first').addClass('active');
		playVid(jQuery(this).children('.thumb:first').children('a:first').attr('rel'));
	});
	*/
	
	jQuery('table.videos tr td.thumb a').click(function(){
		jQuery('table.videos td.active').removeClass('active');
		jQuery(this).parent('td.thumb').addClass('active');
	});
});

function viewNewsletterList(){
	window.open('../script/viewNewsletterList.php','newWindow','scrollbars=yes,menubar=no,height=600,width=640,resizable=yes,toolbar=no,location=no,status=no');	
}
