//	jQuery Compatibility Method
var $j = jQuery.noConflict();



$j('document').ready(function(){



	if(!$j.cookie('pop_under') && 1 == 0) // ie, never show
	{
		$j('.pop_under').show();
		var proper_top = $j(window).height() - 138;
		var amount_from_top = $j(document).scrollTop();
		correct_bottom_value = amount_from_top + $j(window).height();
		$j('.pop_under').css('top', correct_bottom_value);
		$j('.pop_under').animate({'top': '-=138px'}, 800);
		
		// Set a cookie to signafiy that the customer has seen the popup
		$j.cookie('pop_under', 'seen');
	}



}); // Ends Ready Function

var moveitid;

$j(window).scroll(function() {
	//try
	//{
	//	window.clearInterval(moveitid);
	//}
	//catch(e){}
	//moveitid = window.setTimeout(moveit, 10);
	moveit();
});

function moveit()
{
	var amount_from_top = $j(document).scrollTop();
	correct_bottom_value = amount_from_top + $j(window).height() - 138;
	$j('.pop_under').css('top', correct_bottom_value);
}