/**
 * @Copyright CSSJockey - Web Design and Development
 * @Website: http://www.cssjockey.com
 * @Terms of Use: http://www.cssjockey.com/terms-of-use
 * If you change the contents below sky will fall on your head!
 */
DD_roundies.addRule('.round', 5, true);

$(document).ready(function(){
    $('#featured').cycle({
        fx: 'fade',
        speed: 'fast',
        timeout: 0,
        next: '#next',
        prev: '#prev'
    });
$('#rsstop').mouseover(function(){
	$('#rsstophover').fadeIn(300).removeClass('hidden');
})
$('#rsstophover').mouseout(function(){
	$('#rsstophover').fadeOut(300);
})
/*** Ajax requests via forms ***/
$('.aform').submit(function(){
	var url = $(this).attr('action');
	var dataString = $('.aform').serialize();
	var update = url.split("#")[1];
		$.ajax({
		   type: "POST",
		   url: ""+url+"",
		   data: dataString,
		   success: function(response){
				$('#'+update+"").html(response);
		   },
		   complete: function(){
			$.post("http://mysites.com/MyWall/includes/functions.php?action=wall", function(data){
			   $("#wall").html(data);
			});
		   }
		 });
	return false;

})
})

