function adScroll(adID){
	
	var ad = adID;
	var margins;
	var windowHeight = 600;
	var moveUpButton = $('#moveUp');
	var moveDownButton = $('#moveDown');
	var scrollMovement = 0;

	this.init = function(){
		
		setHeight();
		if(windowHeight < 665){
			showScrolling();
		} else {
			hideScrolling();
		}
	}

	$(window).bind('resize', function() {
		scrollUp(); // when they size it bigger move it back up
		init();
	});
	
	this.showScrolling = function(){
		setHeight();
		setScroll();
		$('#adPane').addClass('scrolling');
		$('.nav').show();
	}
	
	this.hideScrolling = function(){
		$('#adPane').removeClass('scrolling');
		$('.nav').hide();
	}
	
	this.scrollUp = function(){
		
		$(ad).animate({top:0, speed:'slow'});
	
	}
	
	this.scrollDown = function(){
		
		$(ad).animate({top:scrollMovement});
		
	}
	
	this.setHeight = function(){
		windowHeight = 	$("body").height();
	}
	
	this.setScroll = function(){
		scrollMovement = windowHeight - 705;
	}
	
	this.init();
	return this;
}