// JavaScript Document

$(document).ready(function(){
	/* light box show */
				   
	$("a.open").click( function() {	
	
		$("div.on").fadeIn("slow");
		$(".overOuter").fadeIn("slow");	
		
		var Dh = $('.overContainerAd');
		$(Dh).css("top", ($(window).height() - $(Dh).height())/2  + 'px');
		
		var Dw = $('.overContainerAd');
		$(Dw).css("left", ($(window).width() - $(Dw).width())/2  + 'px');
		
		var Dh = $('.overContainer');
		$(Dh).css("top", ($(window).height() - $(Dh).height())/2  + 'px');
		
		var Dw = $('.overContainer');
		$(Dw).css("left", ($(window).width() - $(Dw).width())/2  + 'px');

						 
	});
	$("a.close").click( function() {	
		$("div.on").fadeOut("slow");
		$(".overOuter").fadeOut("slow");							 
	});
});



$(document).ready(function () {
    /* light box show */

    $("a.unsubscribe").click(function () {

        $("div.on1").fadeIn("slow");
        $(".overOuter1").fadeIn("slow");

        var Dh = $('.overContainerAd');
        $(Dh).css("top", ($(window).height() - $(Dh).height()) / 2 + 'px');

        var Dw = $('.overContainerAd');
        $(Dw).css("left", ($(window).width() - $(Dw).width()) / 2 + 'px');

        var Dh = $('.overContainer');
        $(Dh).css("top", ($(window).height() - $(Dh).height()) / 2 + 'px');

        var Dw = $('.overContainer');
        $(Dw).css("left", ($(window).width() - $(Dw).width()) / 2 + 'px');


    });
    $("a.closeUnsubscribe").click(function () {
        $("div.on1").fadeOut("slow");
        $(".overOuter1").fadeOut("slow");
    });
});





