﻿function requestCube(value1,value2){
    $("cubicvr").requestCube(value1,value2);
}
function orientingMove(x,y,id){
    x=Math.floor(x/map.config.imgsize);
    y=Math.floor(y/map.config.imgsize);
    for(var i=0;i<pano[x][y].length;i+=4){
        if(pano[x][y][i+2]==id){
            map._markerUpDown(x,y,i/4);
            break;
        }
    }
}

function panoReady(){
}
function visiPano(){
    $("cvrdiv").style.left="0px";
    map.marker.style.visibility="visible";
}
function HidePano(){
    $("cvrdiv").style.left="-9999em";
    map.marker.style.visibility="hidden";
}
function getDirection(paren){
    var cssText=map.marker.style.cssText;
    var val=cssText.substr(cssText.indexOf("marker")+6,1);
    var nval=val;
    if(paren==1){
        if(val==7){
            nval=0;
        }
        else{
            nval++;
        }
    }
    else{
        if(val==0){
            nval=7;
        }
        else{
            nval--;
        }
    }
    map.marker.style.cssText=cssText.replace("marker"+val,"marker"+nval);
}