var wHeight = $(window).height();


$(document).ready(function imageresize() {  
if ((wHeight) < '850'){	  
  } else { 
	$("#slide img").each(function (i) {
		var originalSrc = $(this).attr('src');  
	    $(this).attr('src', '1550' + originalSrc);
        $(this).attr('width', '1033').attr('height', '1550');    
	})   
  }  
 });   
function fade(div_id, rel) {
	if(rel.value == 'FadeOut') {
		$('#'+div_id).fadeOut('slow').siblings();
		rel.value = 'FadeIn';
		$('#more_c').siblings().fadeTo('slow', 1);
	}else {
		$('#'+div_id).fadeIn('slow').siblings().fadeOut('slow');
			rel.value = 'FadeOut';			
		$('#more_c').siblings().fadeTo('slow', 0.5);
	}
}
$(document).ready(function() {
        $ ('#blog ol li:even').addClass ('even');
        $ ('#blog ol li:odd').addClass ('odd');
		$('#imp').hide();	
		$('#imprint').click(function() {
			$('#imp').slideToggle('fast');
			});
    });
$(document).ready(function() {
       $('#slide').css('height', wHeight);
       $('#slide img').attr('height', wHeight);
       var galleryWidth = $('#slide img').height() * .668  ;       
       $('#slide img').attr('width', galleryWidth);     
       $('#slide li').css('height', wHeight).css('width', galleryWidth - 2);
	
   });
 $(function() {
     $("#slide").jCarouselLite({
         btnNext: ".next",
         btnPrev: ".prev",
 		easing: "easeInOutCirc",
 		speed: 1500
     });
     
     $('#slide').attr('style', 'width:100%!important');
     
 });
 function mailIt(form) {
   var data = document.dataFor
   form.mailBody.value ="\n\nEmail:\n" + data.email.value + "\n\nName:\n" + data.name.value + "\n"
   return true
 }	

