//*******fade for Tab code  ***
$(document).ready(function(){ 
$('#tabs #tab-1').hide(); // Hide all divs 
$('#tabs #tab-2').hide(); // Hide all divs 
$('#tabs #tab-3').hide(); // Hide all divs 
$('#tabs #tab-4').hide(); // Hide all divs 
$('#tabs #tab-5').hide(); // Hide all divs 
$('#tabs #tab-6').hide(); // Hide all divs 
$('#tabs #tab-7').hide(); // Hide all divs 
$('#tabs #tab-8').hide(); // Hide all divs 
$('#tabs #tab-9').hide(); // Hide all divs 
$('#tabs #tab-10').hide(); // Hide all divs 
//$('#tabs div:first').show(); // Show the first div 
$('#tabs #tab-1').show();

$('#newtab div a:first').addClass('active'); //Set the first link's class to active
$('#newtab div a').click(function()
								  { //When any link is clicked 

$('#newtab div').removeClass('active'); //Remove active class from all links 

$(this).parent().addClass('active'); //Set clicked link class to active 
var currentTab = $(this).attr('href'); // Set variable currentTab 
$("#tabs #tab-2").fadeOut("slow",function(){ //fade out visible div 
$('#tabs #tab-1').hide();
$('#tabs #tab-2').hide();
$('#tabs #tab-3').hide();
$('#tabs #tab-4').hide();
$('#tabs #tab-5').hide();
$('#tabs #tab-6').hide();
$('#tabs #tab-7').hide();
$('#tabs #tab-8').hide();
$('#tabs #tab-9').hide();
$('#tabs #tab-10').hide();
$(currentTab).fadeIn("slow") //fade in target div 
});return false; 

}); 
});

//*******popup code  ***
$(document).ready(function() {
/*	$("a#donate").bind("click", function() {
		$("#donate_form").submit()
	});

	$("a#single_1").fancybox();
		
	$("a#single_2").fancybox({
		'zoomOpacity'			: true,
		'overlayShow'			: false,
		'zoomSpeedIn'			: 500,
		'zoomSpeedOut'			: 500
	});
	
	$("a#single_3").fancybox({
		'overlayShow'			: false,
		'zoomSpeedIn'			: 600,
		'zoomSpeedOut'			: 400,
		'easingIn'				: 'easeOutBack',
		'easingOut'				: 'easeInBack'
	});
*/	
	$("a.group").fancybox({
		'hideOnContentClick': false
	});

});
