/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

    var count=1;
    jQuery(document).ready(function(){

        NewsTweetAjaxUrl = 'http://www.infobladet.com/wp-content/plugins/newstweet/newstweet-ajax.php';
        NewsTweetSearchterm = 'Kristianstad';
        NewsTweetRpp = 5;

        gotoPoll();
        if(si){clearInterval(si);}
        var si = setInterval('gotoPoll()',60000);

        setTimeout("koposalj_refresh()", 10000 );
    });

    function koposalj_refresh()
    {
        jQuery("div#koposalj_box").fadeOut();
        if(count>5) { count=0; }
        jQuery.ajax({
            dataType: 'html',
            type: 'POST',
            url: 'custom-content/koposalj_list.php?i='+count,
            success: function(data) {
                jQuery("div#koposalj_box").html(data);
                jQuery("div#koposalj_box").fadeIn();
            }
        });
        count=count+1;
        setTimeout("koposalj_refresh()", 10000 );
    }