function van_fade(direction)
{
	
	if (direction == 1) {
  		jQuery('#pics_2_slide li:first').fadeOut("fast",
        function() { 
        	jQuery(this).remove().appendTo("#pics_2_slide");
            jQuery('#pics_2_slide li:first').fadeIn("fast");
            // jQuery('#pic_month').remove();
            // jQuery('#is_pic_month .picBorder').after('<span id="pic_month">Pic of the month</span>');
        });
    } else {
      	jQuery('#pics_2_slide li:first').fadeOut("fast",
        function() {  	
        	jQuery('#pics_2_slide li:last').remove().prependTo("#pics_2_slide").fadeIn("fast");
        	// jQuery('#pic_month').remove();
            // jQuery('#is_pic_month .picBorder').after('<span id="pic_month">Pic of the month</span>');
		});
    }
}

function van_fade_old2 (direction)
{
	
	if (direction == 1) {
  		jQuery('#pics_2_slide li:first').hide(1,
        function() { 
        	jQuery(this).remove().appendTo("#pics_2_slide");
            jQuery('#pics_2_slide li:first').show();
            jQuery('#pic_month').remove();
            jQuery('#is_pic_month .picBorder').after('<span id="pic_month">Pic of the month</span>');
        });
    } else {
      	jQuery('#pics_2_slide li:first').hide(1,
        function() {  	
        	jQuery('#pics_2_slide li:last').remove().prependTo("#pics_2_slide").show();
        	jQuery('#pic_month').remove();
            jQuery('#is_pic_month .picBorder').after('<span id="pic_month">Pic of the month</span>');
		});
    }
}

function van_fade_old(direction)
{
	
	if (direction == 1) {
  		jQuery('#pics_2_slide li:first').fadeOut("fast",
        function() { 
        	jQuery(this).remove().appendTo("#pics_2_slide");
            jQuery('#pics_2_slide li:first').fadeIn("fast");
        });
    } else {
      	jQuery('#pics_2_slide li:first').fadeOut("fast",
        function() {  	
        	jQuery('#pics_2_slide li:last').remove().prependTo("#pics_2_slide").fadeIn("fast");
		});
    }
}

function van_multi_fade(direction, etarget)
{
	
	if (direction == 1) {
  		jQuery('#'+etarget+' li:first').fadeOut("fast",
        function() { 
        	jQuery(this).remove().appendTo('#'+etarget);
            jQuery('#'+etarget+' li:first').fadeIn("fast");
        });
    } else {
      	jQuery('#'+etarget+' li:first').fadeOut("fast",
        function() {  	
        	jQuery('#'+etarget+' li:last').remove().prependTo('#'+etarget).fadeIn("fast");
		});
    }
}



