function Compass(mapview, lang, compassElement, sliderElement){
    this.compassElement = compassElement;
    this.sliderElement = sliderElement;
    this.mapview = mapview;
    this.lang = lang;
    this.posX = 0;
    this.posY = 0;
    this.compassHeight = 68;
    this.compassWidth = 68;
    this.opacity = 1.0;
}

Compass.prototype.init=function(){
    /*var compass = document.getElementById("divCompass");
    compass.className="divCompass_"+this.lang;
    var imgCompass = document.getElementById("imgCompass");
    imgCompass.style.height = this.compassHeight + "px";
    imgCompass.style.width = this.compassWidth + "px";*/
}



Compass.prototype.areaOnMouseOver=function(id){
    var compass = document.getElementById('compassMap');
    document.getElementById('imgCompass').src = 'images/Compass_'+ id +'.gif'
}

Compass.prototype.areaOnMouseOut=function(){
    var compass = document.getElementById('compassMap');
    document.getElementById('imgCompass').src = 'images/Compass_1.gif';
    
    
}

var x326=function() {
    if(this.mapview._f397 && this.mapview._f401){
        this.mapview._f398.clear();
        this.mapview.marqueeZoom();
    }
    _f25._f26(((window.event)?event:null));    
}

var x318=function() {
    if(this.mapview._f262&&this.mapview._f266) {
        this.mapview._f263.clear();
        this.mapview.marqueeZoom();
    }
    MVUtil._f169((window.event)?event:null);
}

Compass.prototype.afterPan=function() {
    x318();
}

Compass.prototype.panningMoveNW=function() {
    
    if(this.mapview._f262&&this.mapview._f264)
        this.mapview._f266=true;
    this.mapview.smoothScroll((this.mapview._f127()+this.mapview._f129())*(-0.18),(this.mapview._f127()+this.mapview._f129())*(-0.18));    
    MVUtil._f169((window.event)?event:null);
    
}

Compass.prototype.panningMoveN=function() {
    
    if(this.mapview._f262&&this.mapview._f264)
        this.mapview._f266=true;
    this.mapview.smoothScroll(0,(this.mapview._f127()+this.mapview._f129())*(-0.25));
    MVUtil._f169((window.event)?event:null);
    
}

Compass.prototype.panningMoveNE=function() {
    
    if(this.mapview._f262&&this.mapview._f264)
        this.mapview._f266=true;
    this.mapview.smoothScroll((this.mapview._f127()+this.mapview._f129())*(0.18),(this.mapview._f127()+this.mapview._f129())*(-0.18));
    MVUtil._f169((window.event)?event:null);
    
}

Compass.prototype.panningMoveE=function() {
    
    if(this.mapview._f262&&this.mapview._f264)
        this.mapview._f266=true;
    this.mapview.smoothScroll((this.mapview._f127()+this.mapview._f129())*(0.25),0);
    MVUtil._f169((window.event)?event:null);
    
}

Compass.prototype.panningMoveSE=function() {
    if(this.mapview._f262&&this.mapview._f264)
        this.mapview._f266=true;
    this.mapview.smoothScroll((this.mapview._f127()+this.mapview._f129())*(0.18),(this.mapview._f127()+this.mapview._f129())*(0.18));
    MVUtil._f169((window.event)?event:null);
    
}

Compass.prototype.panningMoveS=function() {
    if(this.mapview._f262&&this.mapview._f264)
        this.mapview._f266=true;
    this.mapview.smoothScroll(0,(this.mapview._f127()+this.mapview._f129())*(0.25));
    MVUtil._f169((window.event)?event:null);
    
}

Compass.prototype.panningMoveSW=function() {
    if(this.mapview._f262&&this.mapview._f264)
        this.mapview._f266=true;
    this.mapview.smoothScroll((this.mapview._f127()+this.mapview._f129())*(-0.18),(this.mapview._f127()+this.mapview._f129())*(0.18));
    MVUtil._f169((window.event)?event:null);
    
}

Compass.prototype.panningMoveW=function() {
    
    if(this.mapview._f262&&this.mapview._f264)
        this.mapview._f266=true;
    this.mapview.smoothScroll((this.mapview._f127()+this.mapview._f129())*(-0.25),0);
    MVUtil._f169((window.event)?event:null);
    
}

Compass.prototype.panningMoveCenter=function() {
    
    if(this.mapview._f262&&this.mapview._f264)
        this.mapview._f266=true;
    this.mapview.setCenterAndZoomLevel(this.mapview._f258,this.mapview._f259);
    MVUtil._f169((window.event)?event:null);
    
}