
	function GetWidth() {
	    if (document.documentElement && document.documentElement.clientWidth) {
	        width = document.documentElement.clientWidth;
	    } else if (document.body.clientWidth) {
	        width = document.body.clientWidth;
	    } else if (self.innerWidth) {
	        width = self.innerWidth;
	    }
	    return width;
	}

	var mouseX = 0;
	var base_pic = -30;
	var base_txt = 0;
	var easing = 'easeOutQuad';

	function mv() {
		var p;
		base_txt = (GetWidth() <= 1125) ? 40 : 110
		if(mouseX > 0) {
			p = mouseX - (GetWidth() / 2);
		}
		else {
			p = 0;
		}
		if(0) {
			p -= $("#intro").offset().left;
			var w = parseInt($("#intro").width());
			if(p < 0) p = 0;
			if(p > w) p = w;
		}
		var p1 = p / 20;
		var p2 = p / 15;
		//$("#d").attr("value", p1);
		//
		var pic_left = parseInt($('.pic').css('left'));
		var txt_left = parseInt($('.txt').css('left'));
		//
		$('.pic').animate({left: base_pic + p1}, {queue: false, duration: 500, easing: easing});
		$('.txt').animate({left: base_txt + p2}, {queue: false, duration: 500, easing: easing});
	};

	$(function() {
		$('body').mousemove(function(e) {
			mouseX = e.pageX;
		});
		setInterval("mv()", 100);
	})

