

function screenResizeEnbed(embed){
    newDim = new ResDimension(embed.width,embed.height);

    embed.width     = newDim.width;
    embed.height    = newDim.height;
}


//Resolution Dimension
function ResDimension(_width,_height){




    this.basicWidth     = 1024;
    this.basicHeight    = 768;

    this.widthRate  = _widthRate;
    this.heightRate = _heightRate;
    this.rate      = _rate;

    this.width   = _width * this.rate();
    this.height  = _height * this.rate();

//    this.width   = _width * this.widthRate();
//    this.height  = _height * this.heightRate();
}
function _rate(){
        if( screen.width > 1024)
            return 1.25;
        else if(screen.width < 1024)
            return 0.76;
        else
            return 1;
}

function _widthRate(){
        if( screen.width > 1024)
            return 1.25;
        else if(screen.width < 1024)
            return 0.8
        else
            return 1;
//    return screen.width / this.basicWidth;
}

function _heightRate(){
            if( screen.height > 768)
            return 1.25;
        else
            return 1;
//    return screen.height / this.basicHeight;
}
