﻿var viewport = new Object();
viewport.setSize = function() {

    var viewsize = {w:0, h:0};
    this.w = 0;
    this.h = 0;
    if (window.innerWidth){
        this.w = window.innerWidth;
        this.h = window.innerHeight;
    }
    else if (document.documentElement && document.documentElement.clientWidth != 0) {
        this.w = document.documentElement.clientWidth;
        this.h = document.documentElement.clientHeight;
    }
    else if (document.body) {
        this.w = document.body.clientWidth;
        this.h = document.body.clientHeight;
    }
}


