// JavaScript Document

	// dynamically set the background positions of the .sep divs so the background looks seamless
	$( function () {
		$('.promopane').each (
			function(i) {
				if ($('.sep',$(this)).length == 1) {
					var pos = {}
					pos = $(this).offset();
					var height = parseInt($(this).outerHeight());
					var postop = parseInt(pos['top']);
					
					if (height > 300) {
						height = height-4;
					}
					$('.sep',$(this)).css("background-position","-991px -" +  (height-26 + postop+ 1) + "px");
					
					//alert ("-991px -" +  (height-26 + postop + 1) + "px")
					//alert ("top: " + pos['top'] + " height: " +height + " background-pos-y:" +(height-26 + postop+ 1));
				}
			}
		);
	});
