$(function(){
    $('#slider').movingBoxes({
        startPanel   : 1,      // start with this panel
        width        : 450,    // overall width of movingBoxes (not including navigation arrows)
        panelWidth   : .7,     // current panel width adjusted to 70% of overall width
        buildNav     : true,   // if true, navigation links will be added
        navFormatter : function(index, panel){ return panel.find('h2 span').text(); } // function which gets nav text from span inside the panel header
    });

	
	// Report events to firebug console
    $('.mb-slider').bind('initialized.movingBoxes initChange.movingBoxes beforeAnimation.movingBoxes completed.movingBoxes',function(e, slider, tar){
		// show object ID + event in the firebug console
		// namespaced events: e.g. e.type = "completed", e.namespace = "movingBoxes"
        if (window.console && window.console.firebug){
            var txt = slider.$el[0].id + ': ' + e.type + ', now on panel #' + slider.curPanel + ', targeted panel is ' + tar;
            console.debug( txt );
        }
    });


    
        
    $('#dvacom').css('left', $('#footer').width()/3 + 90 +'px');
    $(window).resize(function() {
        $('#dvacom').css('left', $('#footer').width()/3 +100 +'px');
    });
});

Cufon.replace(".contacts");

Cufon.replace(".header-menu ul li a");
