function simpleDonate() {
	$("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'			: 500,
		'easingIn'				: 'easeOutBack',
		'easingOut'				: 'easeInBack'
	});
	
	$("a.group").fancybox({
		'hideOnContentClick': false
	});

};


/* ###################
JQuery TABS - on product details template
http://www.sohtanaka.com/web-design/simple-tabs-w-css-jquery/
#################### 	
function simpleTabs() {
	//When page loads...
	$("div.tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$("div.tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$("div.tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});
};


*/


/*

$(document).ready(function() {
//tabs
		$('#tabs ul').tabs({ fx: { opacity: 'toggle' } }).tabs('rotate', 5000, 'false').tabs('disabled.tabs', []); 
});
function triggerLink() {$("#form").fancybox().trigger('click');}		

*/

/***********************
* ONLOAD functions script
***********************/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(simpleDonate);
/* addLoadEvent(simpleTabs); */
addLoadEvent(function() {
  /* more code to run on page load */
});

