// JavaScript Document
// Programmer : Agoes Tri Hariyanto
// Email : doubpsycho@yahoo.com
// Site : http://agoesdoubleb.i-bego.com
// Forum : http://forum.i-bego.com
// Purpose : For Love... :D
(function($){
	$.fn.aslider = function(options){
		var s = {
				speed : 1000
				, width : 600
				, height : 400
				};
		s = $.extend(options, s);
		var current = 1;
		return this.each(function(){
				var $this = $(this);
				var $kids = $this.children();
				var l = $kids.length;
				$this.wrap("<div class='acontainer'></div>");
				$this.parent().css({
					"posision" : "relative"
					, "width" : s.width
					, "height" : s.height
					, "overflow-x" : "hidden"
					, "overflow-y" : "hidden"
					, "border" : "#000 thin solid"
					});
				$this.addClass("parSlider");
				$this.children().addClass("childSlider");
				$this.css({
					"posision" : "relative"
					, "width" : s.width
					, "height" : "9000px"
					, "padding" : "0px"
					, "left" : "0px"
					});
				function geser_obj(){
					$this.find("div.childSlider:first").hide(s.speed, function(){
						$(this).appendTo($this).show("slow");
					});
					setTimeout(function(){ 
								geser_obj(); 
							  }, s.speed );
				};
				geser_obj();
			}
		);
	};
})(jQuery);
