$(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'			: 500,
		'easingIn'				: 'easeOutBack',
		'easingOut'				: 'easeInBack'
	});
	
	$("a.group").fancybox({
		
		'hideOnContentClick': false,
		'zoomSpeedIn'			: 500
		
	});
$("#primak").hover(function () 
			{
				$("#primak-shot").fadeIn();
			})
$("#primak").mouseout(function () 
			{
				$("#primak-shot").fadeOut();
			})

$("#lombard").hover(function () 
			{
				$("#euro-shot").fadeIn();
			})
$("#lombard").mouseout(function () 
			{
				$("#euro-shot").fadeOut();
			})
});


function popup_win(url, topleft, w, h)
{
	var title="";
	if(!w) w=420;
	if(!h) h=520;

    if (screen && !topleft) {
		if (h<(screen.height - 60)) w = w + 20;
   		var h = (h < screen.height) ? h : screen.height - 60;
   		var w = (w < screen.width) ? w : screen.width;
   		WndPopup = window.open(url,"",'width='+w+',height='+h+',left='+((screen.width-w-10)/2)+',top='+((screen.height-h-10)/2)+',scrollbars=yes,resizable=yes');

	}else {
		WndPopup = window.open(url,"",'width='+w+',height='+h+',left=0,top=0,scrollbars=yes,resizable=yes');
	}
   
	WndPopup.focus();

	
} 

