$(function() {
	
	// Spectrum Line
	var scrollSpeed = 8;
	var imgWidth = 500;
	var posX = 0;
	setInterval(function(){
		posX += scrollSpeed;
		$('#main').css("background-position",posX+"px 212px");
	}, 1);
	
	// jRumble
	$('#logo').jrumble({
		rangeX: 2,
		rangeY: 2,
		rangeRot: 1
	});
	
	// IE6 position:fixed
	$('header, article #to-top').exFixed();
	
	// Scroll to Top
	$('#to-top').hide();
	$(function(){
		$(window).scroll(function(){
			if($(this).scrollTop() > 100) {
				$('#to-top').fadeIn();
			}else{
				$('#to-top').fadeOut();
			}
		});
		$('#to-top a').click(function(){
			$('body,html').animate({
				scrollTop: 0
			}, 800);
			return false;
		});
	});
});
