function initLB(){
	var fullWidth = $(window).width();
	var fullHeight = $(document).height();
	$('#lb'	).css({
		width : fullWidth+'px',
		height : fullHeight+'px',
		opacity : '0.5',
		'-moz-opacity' : '0.5',
		'-khtml-opacity' : '0.5'
				  });
}

function aweberDrop(){
	$('#lb').fadeIn(200,function(){
		$('#dropin').css({'opacity': '0'}).animate( { 'left' : '40%', 'opacity' : 1 }, 2000);
		
	});	
}

function closeSub(){
	
	$('#lb').click(function(){		
		$('#dropin').fadeOut(200, function(){
			$('#lb').fadeOut(200);
											});
									 });
	
	$('a#close-aweb').click(function(){		
		$('#dropin').fadeOut(200, function(){
			$('#lb').fadeOut(200);
											});
									 });	
}

$(document).ready(function(){ 

initLB();
closeSub();

function closeSubscription()
{
	$('#subscription #container').animate({ left: -178, opacity: 0 }, 888);
}
// Subscribe now contact details.

	window.setTimeout('aweberDrop()', 7000);//} );

	$('a.emailreading').click(function(){ $('form#emailReading' + $(this).attr('rel')).submit(); return false; });

}); 

