			$(document).ready(function() {
				$(function() {
							$('.beschreibung_baujahr').datepicker({ dateFormat: 'yy-mm-dd', changeYear: true});
							$('.beschreibung_renovation').datepicker({ dateFormat: 'yy-mm-dd', changeYear: true});
							$('.beschreibung_verfuegbar').datepicker({ dateFormat: 'yy-mm-dd', changeYear: true});
						});
						
			 }); 

			 jQuery( function() { function content_resize() { var w = $( window );var H = $(document).height();  $( '#wrapper' ).css( {height: H} ); }  $( window ).wresize( content_resize ); content_resize(); } ); 
			 
			 $().ready(function() {
				$('.tinymce').tinymce({
					script_url : 'tinymce/tiny_mce.js',
					theme : "advanced",
					plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",
					theme_advanced_buttons1 : "justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect",
					theme_advanced_buttons2 : "anchor,image,|,forecolor,backcolor,tablecontrols",
					theme_advanced_buttons3 : "bold,italic,underline,strikethrough,bullist,numlist,|,cut,copy,paste,link,unlink",
					theme_advanced_toolbar_location : "top",
					theme_advanced_toolbar_align : "left",
					theme_advanced_statusbar_location : "bottom",
					theme_advanced_resizing : true,
					file_browser_callback : "tinyBrowser",
					content_css : "tinymce.css"
				});	
				$('.tinymce_small').tinymce({
					script_url : 'tinymce/tiny_mce.js',
					theme : "advanced",
					plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",
					theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull",
					theme_advanced_buttons2 : "formatselect,fontselect",
					theme_advanced_buttons3 : "fontsizeselect,bullist,numlist",
					theme_advanced_buttons4 : "cut,copy,paste,|anchor,image,|,forecolor,backcolor,link,unlink",
					theme_advanced_toolbar_location : "top",
					theme_advanced_toolbar_align : "left",
					theme_advanced_statusbar_location : "bottom",
					theme_advanced_resizing : true,
					file_browser_callback : "tinyBrowser",
					content_css : "tinymce.css"
				});
				$('.tinymce_short').tinymce({
					script_url : 'tinymce/tiny_mce.js',
					theme : "advanced",
					plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",
					theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull",
					theme_advanced_buttons2 : "formatselect,fontselect",
					theme_advanced_buttons3 : "fontsizeselect,bullist,numlist",
					theme_advanced_buttons4 : "cut,copy,paste,|anchor,image,|,forecolor,backcolor,link,unlink",
					theme_advanced_toolbar_location : "top",
					theme_advanced_toolbar_align : "left",
					theme_advanced_statusbar_location : "bottom",
					theme_advanced_resizing : true,
					file_browser_callback : "tinyBrowser",
					content_css : "tinymce.css"
				});
			});

			   $(function() {
					$('.showpic').lightBox();
				});

$(function() {
    $('.slideshow').cycle({
        fx:     'scrollHorz',
        timeout: 10000,
		prev:   '.big_prev', 
		next:   '.big_next',
		easing:  'backinout',
		pause: true

    });
});
$(function() {
    $('.slideshowsmall').cycle({
        fx:     'scrollHorz',
        timeout: 10000,
		prev:   '.small_prev', 
		next:   '.small_next',
		easing:  'backinout',
		pause: true

    });
});


$().ready(function() {
	// validate signup form on keyup and submit
	$("#form").validate({
		rules: {
			name: "required",
			subject: "required",
			message: "required",
			email: {
				required: true,
				email: true
			}
		},
		messages: {
			subject: "Bitte geben Sie einen Namen ein.",
			message: "Bitte geben Sie eine Nachricht ein.",
			name: "Bitte geben Sie einen Betreff ein.",
			email: "Bitte geben Sie eine korrekte E-Mail Adresse ein."
			}
	});

	
$('.immo_pic').hover(function() {
	var file=$(this).attr("alt");
//	alert(file);
//	$("img.bigImage").attr("src", $(this).attr("src"));

	$('.pic1').attr("src", 'data/'+file);

}); 		
	
	
});







