$(document).ready(function() {
	$("a#donate").bind("click", function() {
		$("#donate_form").submit()
	});

	$("a#single_1").fancybox();

	$("a#wepblogLogonButton").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,
		'frameWidth': 600,
		'frameHeight': 800
	});

    $("a.iframe").fancybox({
	    'overlayShow' : true,
	    'easingIn' : 'easeOutBack',
	    'easingOut' : 'easeInBack',
	    'hideOnContentClick': false,
	    'overlayOpacity': 0.7,
	    'frameWidth': 600,
	    'frameHeight': 650
	});
	
	
	// login slider:::

	$(".topMenuAction").click(function() {
	    if ($("#openCloseIdentifier").is(":hidden")) {
	        $("#slider").animate({
	            marginTop: "-181px"
	        }, 500);
	        $("#topMenuImage").html('<img src="/_wepblog/images/slider/open.png"/>');
	        $("#openCloseIdentifier").show();
	    } else {
	        $("#slider").animate({
	            marginTop: "0px"
	        }, 500);
	        $("#topMenuImage").html('<img src="/_wepblog/images/slider/close.png"/>');
	        $("#openCloseIdentifier").hide();
	    }
	});    
});





