// JavaScript Document

/*var d = new Date();
var t = d.getTime();*/

var queInt = ""; // INTERVAL for fade
var marginCount = 0;
var counter = 0;
var pixels = 57;

$(document).ready(function(){	
	
	$(document).pngFix(); 
	
	$.ajax({
		type: "POST",
		url: "process/process_get_rss.php", 
		success: function(html){
			$("#move").html(html);
				queInt = window.setInterval('move()', 10000);
		
				
		}
		

 	});
});

function move(count){
				
	marginCount = marginCount - pixels;
	
	$('#move').animate({marginTop: marginCount + "px"}, {duration: 2000});
	
	counter = counter + 1;
	
	//alert(counter);
	
		if(counter >= 5){
			resetPos();
		}

}

function resetPos(){
	
	$('#move').animate({marginTop: '0px'}, {duration: 500});
	marginCount = 0;
	counter = 0;
}