function clearField(field,action,defaultvalue) {
	if( action == 'focus'){
		if (field.value == defaultvalue) field.value = '';
	} else {
		if (field.value == '') field.value = defaultvalue;
	}
}

function checkform(Language){
	msg='';
	if(Language=='EN'){
	
	
		if (document.Formular.Firma.value==''){
			msg+='Plaese insert your Company\n';
		}
		
		if (document.Formular.Vorname.value==''){
			msg+='Plaese insert your Surname\n';
		}
		
		if (document.Formular.Name.value==''){
			msg+='Plaese insert your Name\n';
		}
		
		if (document.Formular.MailCountryID.value==''){
			msg+='Plaese select your Country\n';
		}
		
		if (document.Formular.CameraID.value==''){
			msg+='Plaese select a Product\n';
		}
		
		
		if (document.Formular.Email.value==''){
			msg+='Plaese insert your E-Mail-Address\n';
		}
		
		if (document.Formular.Telefon.value==''){
			msg+='Plaese insert your Phone Number\n';
		}
		
		if (document.Formular.MailCountryID.value==''){
			msg+='Plaese select your Country\n';
		}
	
	}else if(Language=='DE'){
		if (document.Formular.Firma.value==''){
		msg+='Bitte geben Sie Ihre Firma ein\n';
		}
		
		if (document.Formular.Vorname.value==''){
			msg+='Bitte geben Sie Ihren Vornamen ein\n';
		}
		
		if (document.Formular.Name.value==''){
			msg+='Bitte geben Sie Ihren Nachnamen ein\n';
		}
		
		if (document.Formular.MailCountryID.value==''){
			msg+='Bitte wählen Sie Ihre Land ein\n';
		}
		
		if (document.Formular.CameraID.value==''){
			msg+='Bitte wählen Sie ein Produkt\n';
		}
		
		if (document.Formular.Email.value==''){
			msg+='Bitte geben Sie Ihre E-Mail Adresse ein ein\n';
		}
		
		if (document.Formular.Telefon.value==''){
			msg+='Bitte geben Sie Ihre Telefonnummer ein\n';
		}
		
		if (document.Formular.MailCountryID.value==''){
			msg+='Bitte geben Sie Ihr Land ein\n';
		}
	}
	
	
	if (msg!=''){
		alert(msg);
		return false;
	}else{
		document.forms[0].submit();
	}
}

jQuery(function() {
	// Products nur aufklappen aber nicht öffnen
	$('ul.Navigation_1st_layer li.link2 a:first').click(
		function() {
			var relative = jQuery.url.attr("relative");
			$('ul.Navigation_1st_layer li').removeClass("active");
			$('ul.Navigation_1st_layer li.link2').addClass("active");
			return false;		
		}
	);
	
	// Applications nur aufklappen aber nicht öffnen
	$('ul.Navigation_1st_layer li.link3 a:first').click(
		function() {
			var relative = jQuery.url.attr("relative");
			$('ul.Navigation_1st_layer li').removeClass("active");
			$('ul.Navigation_1st_layer li.link3').addClass("active");
			return false;			
		}
	);
	
	// Start Produktmatrix	
	$('.cam1').hover(function() {
			$(this).css({'z-index' : '20'});
			$(this).find('.bigImage img').stop().animate({
				width: '160px', 
				height: '113px'
			}, 200);
			$(this).find('.tooltip').stop().css('display','block');		
		} , function() {
			$(this).css({'z-index' : '10'});
			$(this).find('.bigImage img').stop().animate({
				width: '130px',		
				height: '92px'
			}, 400);
			$(this).find('.tooltip').stop().css('display','none');
		}
	);
	
	$('.cam2').hover(function() {
			$(this).css({'z-index' : '20'});
			$(this).find('.bigImage img').stop().animate({
				width: '116px', 
				height: '73px'
			}, 200);
			$(this).find('.tooltip').stop().css('display','block');		
		} , function() {
			$(this).css({'z-index' : '10'});
			$(this).find('.bigImage img').stop().animate({
				width: '97px',		
				height: '61px'
			}, 400);
			$(this).find('.tooltip').stop().css('display','none');
		}
	);
	
	$('.cam3').hover(function() {
			$(this).css({'z-index' : '20'});
			$(this).find('.bigImage img').stop().animate({
				width: '100px', 
				height: '77px'
			}, 200);
			$(this).find('.tooltip').stop().css('display','block');		
		} , function() {
			$(this).css({'z-index' : '10'});
			$(this).find('.bigImage img').stop().animate({
				width: '83px',		
				height: '64px'
			}, 400);
			$(this).find('.tooltip').stop().css('display','none');
		}
	);
	
	$('.cam4').hover(function() {
			$(this).css({'z-index' : '20'});
			$(this).find('.bigImage img').stop().animate({
				width: '94px', 
				height: '83px'
			}, 200);
			$(this).find('.tooltip').stop().css('display','block');		
		} , function() {
			$(this).css({'z-index' : '10'});
			$(this).find('.bigImage img').stop().animate({
				width: '78px',		
				height: '69px'
			}, 400);
			$(this).find('.tooltip').stop().css('display','none');
		}
	);

});