$(document).ready(function(){

	setImgPos();
	var resizeTimer = null;
	$(window).bind('resize', function() {
		if (resizeTimer) clearTimeout(resizeTimer);
		resizeTimer = setTimeout(setImgPos, 100);
	});   
	
	$('.flash_lamp').css({background:'#ffffff'}).live("mouseover", function(){
		$(this).children().stop().css({opacity:0.4}).animate({opacity:1},600);
	});
});



function setImgPos(){
	var h = $(window).height();
	var y = (h / 2) - (720/2);
	var iH = h - 40;
	$("#trunk").css({"margin-top": "20px"});
	$("#trunk img").css({"height": iH+"px"});
}
