//$(document).ready(function()
//    {
//
//        if ($(".chart").length > 0 ) {
//            animateResults();
//        }
//
//    });
//
//
//function animateResults()
//{
//    $(".chart div.bar").each(function(){
//        var percentage = $(this).next().text();
//        $(this).css({
//            width: "0%"
//        }).animate({
//            width: percentage
//        }, 'slow');
//    });
//}


//window.onload = function() {
//
//    var animator = new Animator('test');
//    animator.animate();
//
//
//
//};
//
//
//function Animator(element) {
//
//    var that = this;
//
//    this.element = document.getElementById(element) || null;
//    
//    log();
//    
//    this.animate = function() {
//    
//        var counter = 0;    
//    
//        var interval = window.setInterval(function() {
//        
//            counter += 10;
//            
//            that.element.style.width = counter + '%';
////            that.element.style.height = counter + '%';
//        
//            if(counter == 150) {
//            
//                clearInterval(interval);
//                
//                var interval2 = window.setInterval(function() {
//                
//                
//                    counter -= 10;
//                    
//                    that.element.style.width = counter + '%';
////                    that.element.style.height = counter + 'px';
//                    
//                    if(counter == 0) {
//                    
//                        clearInterval(interval2);
//                    
//                    
//                    }
//                
//                
//                
//                }, 50);
//               
//            
//            }
//        
//        
//        }, 50);
//    
//    
//    
//    
//    
//    };
//
//
//
//}
