// JavaScript Document

$(document).ready(function(){
						   
	var bIE6 = (document.all && !window.opera && !window.XMLHttpRequest);

	$('a[href*="#NewsletterBox"]').click(function() {
		if ( $(this).hasClass('active') )
		{
/*			$('#NewsletterBox').slideUp('fast', function() {
				$('a[href*="#NewsletterBox"]').removeClass('active');
			});*/
			$('#Footer .col-2-1 .slider').animate({height:"39px", top:"60px"}, function(){
				$('a[href*="#NewsletterBox"]').removeClass('active');
			});
		}
		else
		{
			$('a[href*="#NewsletterBox"]').addClass('active');
			if (!bIE6) {
				$('#Footer .col-2-1 .slider').animate({height:"208px", top:"-109px"});
			}
			else {
				$('#Footer .col-2-1 .slider').animate({height:"211px", top:"-112px"});
			}
/*			$('#NewsletterBox').slideDown('fast', function() {
				$('a[href*="#NewsletterBox"]').addClass('active');
			});*/
		}
		return false;
	});
	
	
	//NOA.fadeMenu.init();
	
	
		$('#startMovie').flash(
			{
				src: 'http://de.sevenload.com/pl/c8NBnfX/930x523/swf',
				width: 930,
				height: 523,
				
				allowFullscreen: 'true',
				allowScriptAccess: 'always',
				movie: 'http://de.sevenload.com/pl/c8NBnfX/930x523/swf'
			},
			{
			}
		);
		
});


var currentFormElem = null;
var showHideValue = function(obj,val)
{
	if (obj != currentFormElem)
	{
		currentFormElem = obj;
		if (obj.value == val)
			obj.value = '';
			
		obj.onblur = function()
		{
			showHideValue(obj,val);
		}
	}
	else
	{
		if (obj.value == '')
			obj.value = val;
		
		obj.onblur = null;
		
		currentFormElem = null;
	}
};
