function coord_object(){


    this.set_coords=function(){

        for(var i=0; i<window.all_maps.length;i++){
            obj=window.all_maps[i];
            obj.style.top=window.map_top+"px";
            obj.style.left=window.map_left+"px";
        }
        
        window.my_navi.set_fade_position();

        window.my_scope.init_scope();

        if(window.no_drag===true){
            window.mapbuilder.validate_scope(window.map_main);
        }
    }
    
    
    this.set_mp=function(){
        window.mp_top=parseInt(window.map_width/2);
        window.mp_left=parseInt(window.map_height/2);
    }
    
    this.change_mp=function(my_value){

        var old_zoom=window.zoomstufe;
        var new_zoom=my_value;
        var faktor=new_zoom/old_zoom;

        var new_scope_mp_top=window.my_scope.scope_mp_top*faktor;
        var new_scope_mp_left=window.my_scope.scope_mp_left*faktor;

        var new_map_top=(-1*new_scope_mp_top)+window.container_height/2;
        var new_map_left=(-1*new_scope_mp_left)+window.container_width/2;
        
        set_top_left(new_map_top,new_map_left);
        
        return;
    }
    
    function set_top_left(top,left){
        window.map_top=parseInt(top);
        window.map_left=parseInt(left);
        return;
    }

}