var Common = {

    init:function(){
        var self = this;
        
        self.initNavigation($(".__actNavigation"));
        
    },
    
    initNavigation: function($e){
        var self = this;
        var $item = $('li',$e);
        
        $item.hover(
            function(){
                $(this).find("ul").show();
            },
            function(){
                $(this).find("ul").hide();
            }
        );
          
    },
    
    initTestimonialsBanner: function($e, speed){
        var self = this;
        var speed = speed || 3000;
        
        $('li',$e).hide();
        $('li:first',$e).show();
        
        setInterval(function(){
            $('li:first',$e).hide().next('li').show().end().appendTo($e)
        }, speed);
       
    },
    
    initGmap: function(id, lat, lng){
        var self = this;
        var latlng = new google.maps.LatLng(lat, lng);
        var options = {
            zoom: 15,
            center: latlng,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        var map = new google.maps.Map(document.getElementById(id),options);
        var marker = new google.maps.Marker({
            position: latlng, 
            map: map
            //icon: "img/ico.marker.png"
        });
           
    },
    
    
    initImageAccordion: function($e){
        var self = this;
        
        $e.kwicks({max : 682}); 
        
    }
    
    
    
}

$(function(){
    window.Common.init();
});

$(document).ready(function(){
    
});
