jQuery.noConflict();

(function($){
	var name = "#pagetop";
	//var container = "#mainContent";
	//var offsetX = null;
	var menuYloc = null;
	$(function(){
		menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")));
		$(window).scroll(function () {
			//offsetX = $(name).offset();
			offset = menuYloc+$(document).scrollTop()+"px";
			//if( offsetX.top < $(container).height() ) {
				$(name).animate({top:offset},{
					duration:500,
					queue:false
				});
			//} else {
				
		});
	}); })(jQuery);
