function initform()	{
	$.get("http://blog.immofinanz.com/incs/ajax/loadtitle.php", {},
	function(data){
		$("#faxlabel").html(data);
		});
	}

function aufmochn(options){
	$(".button-reply").colorbox(options);
	}

$(document).ready(function(){ 	
						   
	$(".button-reply, .button-submit, .button-search, .button-login, #languages li").hover(function() {
		 $(this).addClass("hover");
	   },function(){
		 $(this).removeClass("hover");
	   });

	$("#loginform input,#searchform input ").focus(function() { this.select(); });

	$(".button-submit, .button-login, .button-search").click(function() {
		$(this).closest("form").submit();													  	
	   });

	$("div.menu h3").click(function(){
		$(this).next("div").slideToggle("fast");
		$(this).toggleClass("closed");
		});
	
	$(".button-reply").click(function(){
		aufmochn({width:"500px", height:"600px", iframe:true, scrolling:false, onCleanup:function() { window.location.href = window.location.href; }, href:'/'+$(this).attr("id")+'/'});
		});
	
	if ($(".openurl")) $(".openurl").colorbox({width:"500px", height:"520px", iframe:true, scrolling:false});
	if ($(".openurl2")) $(".openurl2").colorbox({width:"500px", height:"550px", iframe:true, scrolling:false});
	if ($(".openurl3")) $(".openurl3").colorbox({width:"500px", height:"300px", iframe:true, scrolling:false});
	
	$('.fav').jFav();
	
	initform();
	
    }); 



