$(document).ready(function() {
						   
	$('a').each(function(){
		$(this).bind( 
			'focus', 
				
				function()
				{
					this.blur();
				}
		)
	}); 

	$(function() {
    $('#tx_iqslideshow').cycle({
		fx:    'fade', 
    	speed:  1000,
    	timeout: 7000
    });
});
	
	links_height = document.getElementById("links").offsetHeight;
	rechts_height = document.getElementById("rechts").offsetHeight;
	content_height = document.getElementById("content").offsetHeight;
	if (links_height > content_height){
		overall_height = links_height;
	} else {
		overall_height = content_height;
	}
	
	if (rechts_height > overall_height){
		overall_height = rechts_height;
	}
	
	$("#content").css("height",overall_height+"px");
	
	$("#navigationBox a").each(function(i){									   
		 $(this).bind("mouseover", function(e){
			$(this).css({"background":"url(fileadmin/templates/_images/navi/navi"+$(this).attr("id")+"Hover.png) no-repeat","padding-top":"28px;"});
		});
 		 $(this).bind("mouseout", function(e){
			$(this).css({"background":"url(fileadmin/templates/_images/navi/navi"+$(this).attr("id")+".png) no-repeat","padding-top":"28px;"});
		});
	 });
});


function tm_tracker() {
 var pageTitle = document.title;
 var pageUrl = document.URL;

 var page="http"+(document.URL.indexOf('https:')==0?'s':'')+'://s2.trafficmaxx.de/thx.php?sid='+tm_sid+"\x26java=y";
 var tm_ref = escape(parent==self?document.referrer:top.document.referrer);
 tm_ref = (typeof(top.document)=="object")?top.document.referrer:tm_ref;
 var tm_lang = navigator.userLanguage?navigator.userLanguage:navigator.language;

 if (typeof(tm_pageCategory)=="undefined") tm_pageCategory = "";
 if (typeof(tm_conversionName)=="undefined") tm_conversionName = "";
 if (typeof(tm_campaignName)=="undefined")  tm_campaignName = "";

 tm="\x26swidth="+swidth;
 tm+="\x26sheight="+sheight;
 tm+="\x26scolor="+scolor;
 tm+="\x26la="+escape(tm_lang.toLowerCase());
 tm+="\x26pageTitle="+escape(pageTitle);
 tm+="\x26pageUrl="+escape(pageUrl.toLowerCase());
 tm+="\x26pageCategory="+escape(tm_pageCategory);
 tm+="\x26campaignName="+escape(tm_campaignName);
 tm+="\x26ref="+escape(tm_ref.toLowerCase());
 tm+="\x26conversionName="+escape(tm_conversionName);
 pq = new Image();
 pq.src = page+tm;
 console.log(pq);
}
