$(document).ready(function() {

		// Drop down callback form
		
		$('.dropdowncallbackform .text').css({'display':'none'});
		
		$('.dropdowncallbackform h2').hover(function() {
			$(this).stop().toggleClass('headinghover');
			}, function() {
			$(this).stop().toggleClass('headinghover');
		});
		
		$('.dropdowncallbackform h2').click(function(){
			$('.dropdowncallbackform .text').slideDown(500);
		});

		$('.dropdowncallbackform .closer').hover(function() {
			$(this).stop().toggleClass('over');
			}, function() {
			$(this).stop().toggleClass('over');
		});

		$('.dropdowncallbackform .closer').click(function(){
			$('.dropdowncallbackform .text').slideUp(500);
		});
		
		
		$('.dropdowncallbackform .captcha-revealer').focus(function() {
				$('.captcha_hider').slideDown(500);
		});
		
		// Related Publications
		
		$('.relatedpublications .text').css({'display':'none'});

		$('.defaultdocTH').appendTo('.relatedpublications .text');		

		$('.relatedpublications h2').hover(function() {
			$(this).stop().toggleClass('headinghover');
			}, function() {
			$(this).stop().toggleClass('headinghover');
		});
		
		$('.relatedpublications h2').click(function(){
			$('.relatedpublications .text').slideDown(500);
		});

		$('.relatedpublications .closer').hover(function() {
			$(this).stop().toggleClass('over');
			}, function() {
			$(this).stop().toggleClass('over');
		});

		$('.relatedpublications .closer').click(function(){
			$('.relatedpublications .text').slideUp(500);
		});
		
		// Latest News

		$('#container-right .newsTH .text').css({'display':'none'});
		
		$('#container-right .newsTH h2').hover(function() {
			$(this).stop().toggleClass('headinghover');
			}, function() {
			$(this).stop().toggleClass('headinghover');
		});
		
		$('#container-right .newsTH h2').click(function(){
			$('#container-right .newsTH .text').slideDown(500);
		});

		$('#container-right .newsTH .closer').hover(function() {
			$(this).stop().toggleClass('over');
			}, function() {
			$(this).stop().toggleClass('over');
		});

		$('.link').appendTo('#container-right .newsTH .text');		
		
		$('#container-right .newsTH .text').append('<p class="closer">Close</a>');

		$('#container-right .newsTH .text .closer').live('click', function(){
			$('#container-right .newsTH .text').slideUp(500);
		});
		
		$('#container-right .newsTH .text .closer').hover(function() {
			$(this).stop().toggleClass('over');
			}, function() {
			$(this).stop().toggleClass('over');
		});
		
});
