  $(function() {

                var current = 1;

                

                var iterate		= function(){

                    var i = parseInt(current+1);

                    var lis = $('#rotmenu').children('li').size();

                    if(i>lis) i = 1;

                    display($('#rotmenu li:nth-child('+i+')'));

                }

                display($('#rotmenu li:first'));

                var slidetime = setInterval(iterate,3000);

				

               

				

                function display(elem){

                    var $this 	= elem;

                    var repeat 	= false;

                    if(current == parseInt($this.index() + 1))

                        repeat = true;

					

                   					

                    current = parseInt($this.index() + 1);

					

                    var elem = $('a',$this);

                    

                        elem.stop(true,true).animate({'marginRight':'0px','opacity':'1.0'},300);

					

                    var info_elem = elem.next();

                    

                    $('#rot1').prepend(

                    $('<img/>',{

                        style	:	'opacity:0',

                        className : 'bg'

                    }).load(

                    function(){

                        $(this).animate({'opacity':'1'},600);

                        $('#rot1 img:first').next().animate({'opacity':'0'},700,function(){

                            $(this).remove();

                        });

                    }

                ).attr('src','images/'+info_elem.find('.info_image').html()).attr('width','562').attr('height','230')

                );

                }

            });

