// voteing stars*/
function loadVoteImg(ContId,rank,no_votes,type,read,site_url)
{
    /*var site_url    = '<?php echo site_url()?>';
    var ContId      = '<?php echo $ContId; ?>';
    var max_rank    = '<?php echo $max_rank; ?>';
    var rank        = '<?php echo $rank; ?>';
    var no_votes    = '<?php echo $no_votes; ?>';*/
    var src_light   = site_url+'css/img/'+type+'_star_light.jpg';
    var src_black   = site_url+'css/img/'+type+'_star_black.jpg';
    var timeout     = 5000;

    if(read=='read'){
            $('div#votes-outer-'+ContId+' img').click(function(e) {    
                $.ajax({       
                    type: "POST",
                    datatype: "html",
                    url: site_url+"ajaxvote.html",
                    data: "Rank="+this.alt+"&ContId="+ContId+"",
                    success: function(msg){         
                         $('div#articles_actions').fadeIn();
                         $('div#articles_actions').html(msg);
                         setTimeout("$('div#articles_actions').fadeOut('slow');", timeout);
                    }
                });
            }).hover(
                function() {
                    imgs = $('div#votes-outer-'+ContId+' img');
                    for(i=1; i<=imgs.length; i++)
                    {
                        alt = parseInt(this.alt);
                        if(i<=alt) src = src_light;
                    };
                },
                function() {
                    imgs = $('div#votes-outer-'+ContId+'img');
                    for(i=1; i<=imgs.length; i++)
                    {
                        alt = parseInt(this.alt);
                        if(alt<rank) src = src_light;
                    };
                }
            );
        }
        $('span#rank_'+ContId+'').html(rank);
        $('span#no_votes_'+ContId+'').html(no_votes);
}