/**
 * @author hollmaj
 */


$(document).ready( function(){
	if( $('body#page_1284').length > 0 ||  $('body#page_32').length > 0  )
	{
		$(function() {
			if ($('#unsubscribe').attr('checked')) {
				$('.subreq').each(function(i){
					$(this).hide(); 
				});
			} 
				
			$('#subscribe, #unsubscribe').click( function(){ 
				$('.subreq').each(function(i) { 
					$(this).toggle(); 
				})
			});
		});
		
		function loadNewsletterArchiv()
		{
			$('#newsletter_archiv_content').html( '<img src="/webfiles/fh/bilder/mini-loader.gif" alt="" style="margin: 23px 150px;"/>');
			$.ajax( {url: '/scripts/newsletter_archiv.php', 
					type: 'GET',
					success: 
						function(resp){ 
							$('#newsletter_archiv_content').html( resp );
						}
					});
		}
		
		loadNewsletterArchiv();
	}
});
