var makeBigBubbleLock=false;
var test="tester";
var make_bigger=false;
$(document).ready(function(){
    $(document.body).removeClass('no_javascript');
	var taal=$('#nav-lang li a.active').html();
	var inh = '<li class="active"></li><li><a href="'+$('#nav-lang li:first a').attr("href")+'" title="" rel="alternate" lang="nl">Nederlands</a></li><li><a href="'+$('#nav-lang li:first').next().children().attr("href")+'" title="" rel="alternate" lang="fr">Français</a></li><li><a href="'+$('#nav-lang li:first').next().next().children().attr("href")+'" title="" rel="alternate" lang="en">English</a></li>';

 $('#nav-lang').html(inh).css('height','24px').css('clip','rect(0pt, 104px, 78px, 0pt)').css('background-position','-613px -83px').mouseover(function(){
 
  $(this).css('background-position','-613px -83px').children().show();
  //$(this).stop().animate({height:'78px',clip:"rect(0pt, 104px, 78px, 0pt)"},250,"swing");
  $(this).stop().animate({height:'78px'},200);
  
   }).mouseout(function(){
   
     //$(this).css('background-position','-613px -83px').stop().animate({height:'24px',clip:"rect(0pt, 104px, 24px, 0pt)"},250,function(){ $(this).css('background-position','-503px -83px').children().hide(); $('#nav-lang li.active').show(); });
	 $(this).css('background-position','-613px -83px').stop().animate({height:'24px'},200,function(){ $(this).css('background-position','-503px -83px').children().hide(); $('#nav-lang li.active').show(); });
	  });
	 
	 
 $('#nav-lang a').css("background","#DBEDFF none repeat scroll 0 0").mouseover(function(){ $(this).css("background","#CEE3F9 none repeat scroll 0 0"); }).mouseout(function(){ $(this).css("background","#DBEDFF none repeat scroll 0 0"); });
 if(taal=="NL") { $('#nav-lang li.active').html("Nederlands").next().children().addClass("selected"); }
	if(taal=="FR") { $('#nav-lang li.active').html("Français").next().next().children().addClass("selected");  }
	if(taal=="EN") { $('#nav-lang li.active').html("English").next().next().next().children().addClass("selected"); }
});
$(document).ready(function(){

$('.make_bigger').click(function(){ window.location=$("#"+$(this).attr("id")+" .link_big:first").attr("href"); }).mouseenter(function(){ if($(this).hasClass("make_bigger")==false) return false; make_bigger=true; $(this).attr("title",$("#"+$(this).attr("id")+" .link_big:first").attr("title")); $('.pre_big_active').removeClass("pre_big_active");$(this).addClass("pre_big_active"); $("#"+$(this).attr("id")+" a").each(function(){ if($(this).parent().hasClass("fade_me")==true) { $(this).stop().animate({opacity: '0'},500,function(){ $('.pre_big_active').addClass("big_active");$('.pre_big_active').removeClass("pre_big_active"); }); } }); }).mouseleave(function(){ if($(this).hasClass("make_bigger")==false) return false; make_bigger=false; $(this).removeClass("big_active"); $("#"+$(this).attr("id")+" a").each(function(){
if($(this).parent().hasClass("fade_me")==true)
$(this).stop().animate({opacity: '1'},500);
}); });

$('.fade_me a').each(function(){ $(this).css('opacity','1'); }).mouseover(function(){ 
				   $(this).stop().animate({opacity: '0'},250);
				}).mouseout(function(){ 
					if(make_bigger==true) return true;
				   $(this).stop().animate({opacity: '1'},250);
				});
$('#nav-left ul li a').each(function(){
	if(!$(this).hasClass('selected'))
	{
		if($(this).height()==22)
		{
			$(this).css( 
				   {backgroundPosition: '-675px 0px'} 
				).mouseover(function(){ 
				   $(this).stop().animate({backgroundPosition: '-245px 0px'},500);
				}).mouseout(function(){ 
				   $(this).stop().animate({backgroundPosition: '-675px 0px'},500);
				});
		}
		else
		{
			$(this).css( 
				   {backgroundPosition: '-675px -22px'} 
				).mouseover(function(){ 
				   $(this).stop().animate({backgroundPosition: '-245px -22px'},500);
				}).mouseout(function(){ 
				   $(this).stop().animate({backgroundPosition: '-675px -22px'},500);
				});
		}
		$(this).focus(function(){ $(this).trigger("mouseover"); }).blur(function(){ $(this).trigger("mouseout"); });
	}
});

$('.email-adress').each(function(){
	$.post(thisServer+'ajax/getContactInfo.php',{
		pass: "secret",
		id: $(this).attr("id")
	},function(txt){
		if(txt!="") eval(txt);
	});
});


});