		var timeout = new Date('11/11/2010 00:00');
		var timerId, contents, timerField, o, dummy, footer;

		$(function(){
			if(!hasFP){
				$('body').addClass('supersized');
				$.fn.supersized.options = {  
					startwidth: 1673,  
					startheight: 1046,
					vertical_center: 1,
					slideshow: 0,
					navigation: 0,
					transition: 0, //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left
					pause_hover: 0,
					slide_counter: 1,
					slide_captions: 1,
					slide_interval: 0
				};
				$('#supersize').supersized();

				contents = $('#contents');
				contents.css('margin-top','0');

				footer = $('#footer');

				dummy = document.createElement('div');
				dummy.id = 'dummy';
				dummy = $(dummy)
				$('body').append(dummy);

				positionContents();
				startTimer();
				$(window).resize(positionContents);
				$('#recent a').fancyZoom({scaleImg:true, closeOnClick:true, width:250, height:250});
			}
	    });
		function startTimer(){
			timerField = $("#time").find('em')[0];
			o = timeout-(new Date());
			timerId=setInterval(tick,50);
		}
		function stopTimer(){
			clearInterval(timerId);
		}
		function tick(){
			o = timeout-(new Date());
//			o-=parseInt(50-Math.random()*10)
			timerField.innerHTML = o;
		}
		function positionContents(){
			ch=contents.height();
			wh = $(window).height();
			fh = footer.height();
			top = parseInt((wh-(ch+fh+10))/2);
			dh = (ch+fh+10);
			dh = Math.max(460,dh)
			dummy.css('min-height',dh+'px')
			if((wh-20)<(ch+fh)){
				footer.css('top', (ch+20)+'px')
				footer.css('bottom','auto')
				contents.css('top','0');
			} else {
				footer.css('top','auto')
				footer.css('bottom', 10)

				contents.css('top',top+'px');
			}
		};

