var width = 382;
var height = 368;

function setLocation(){
    if(view.isHighScreen()){
        width = width * 1.5;
        height = height * 1.5;
    }
    view.moveWindow(0,0,width,height,true);
    view.centerWindow();
}
function setHomePage(url){
    $(#home).value = url;
}

function setVersionNumber(version){
    $(.current-version).value = version;
}

$(#home).onClick = function(){

    view.showHomePage();
}

$(#close).onClick = function(){
    view.onCloseWindow();
};

$(.link-home).onClick = function(){
    view.showHomePage();
}

$(.link-wechat).onClick = function(){
    view.showWechat();
};

$(.link-weibo).onClick = function(){
    view.showWebo();
}
$(.link-law).onClick = function(){
    view.showLegalNotices();
};
$(.link-agreement).onClick = function(){
    view.showUserAgreement();
}