
function blockError() {
  return true;
}
window.onerror = blockError;




// jQuery Code
$(document).ready(function(){
	
	$(".tteam_name > div:first").show();
    	
	$("li").hover(
      function () {
		$("#team_" + this.id).show();
		$("#name_" + this.id).show();
      }, 
      function () {
		$("#team_" + this.id).hide();
		$(".team_name > *").hide();
      }
    );
    
    $("li").hover(function () {
      $(this).addClass("highlite");
    },function () {
      $(this).removeClass("highlite");
	});
	
	$("#close_text").click(
      function () {
		$("#close_text").fadeOut();
		$("#text").fadeOut();
      }
    );
    $("li").click(function(){
		$("#tteam").replaceWith("<img src='tl_files/team/" + this.id + ".jpg' id='tteam' />");
		$(".team_name > *").hide();
		$(".tteam_name > *").hide();
		$("#tname_" + this.id).show();
	});
	
	$(".referenzen_link").hover(function(){
					$(this).css("background-image","url('tl_files/die_agentour/img/bg_referenzen_o.jpg')");
					},function(){
					$(this).css("background-image","url('tl_files/die_agentour/img/bg_referenzen.jpg')");
					}
	);
	$(".partner_link").hover(function(){
					$(this).css("background-image","url('tl_files/die_agentour/img/bg_referenzen_o.jpg')");
					},function(){
					$(this).css("background-image","url('tl_files/die_agentour/img/bg_referenzen.jpg')");
					}
	);
	// apply ifixpng
	$(document).pngFix();
	//$('img[@src$=.png], #close_text').ifixpng();

});