jQuery(document).ready(function () {


$(function() { 
           
    $('#banner_1 > img').each(function(i,e){
        rotate($(this),500,7500,i);
    });

    function rotate(elem1,speed,timeout,i){

        elem1.animate({'marginLeft':'18px','width':'0px'},speed,function(){
            var other;

            if(elem1.parent().attr('id') == 'banner_1')
                other = $('#banner_2').children('img').eq(i);
            else
                other = $('#banner_1').children('img').eq(i);

                other.animate({'marginLeft':'0px','width':'35px'},speed,function(){
                var f = function() { rotate(other,speed,timeout,i) };
                setTimeout(f,timeout);
            });
        });
    }
});

	jQuery('#locfinal').ekko({
		url : '/02461357/local_final.php', // url : '/02461357/local_final.php',
		minTimeout : 10000,
		maxTimeout : 20000
	}, function (data) {
		jQuery('#locfinal').empty();
		jQuery('#locfinal').append("" + data + "");
	});
				
	jQuery('#miscnews').ekko({
		url : '/02461357/misc_news.php', // url : '/02461357/misc_news.php',
		minTimeout : 10000,
		maxTimeout : 20000
	}, function (data) {
		jQuery('#miscnews').empty();
		jQuery('#miscnews').append("" + data + "");
	});
				
});