// JavaScript Document
function getDocHeight() {
    var D = document;
    return Math.max(
        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
    );
}

function getDocWidth() {
    var D = document;
    return Math.max(
        Math.max(D.body.scrollWidth, D.documentElement.scrollWidth),
        Math.max(D.body.offsetWidth, D.documentElement.offsetWidth),
        Math.max(D.body.clientWidth, D.documentElement.clientWidth)
    );
}


var top_space = 15;
var left_space = 15;

avail_height_cor = getDocHeight();
avail_width_cor = getDocWidth();

if(avail_height_cor < 655){
	avail_height_cor = 655;
}

rest_space = avail_height_cor - 640;
if(rest_space > 15){
	top_space = rest_space/2;
}

var rest_space_horz = avail_width_cor - 940;
if(rest_space_horz > 30){
	left_space = rest_space_horz/2;
}

//var pos_left_top_img_layer = Math.round((avail_width - 1680)/2);
//var pos_left_grad_line_layer = Math.round((avail_width - 1200)/2);

var width_left_col_light_orange = left_space;
var height_left_col_light_orange = avail_height_cor;
var pos_bot_left_col_repeat_layer = top_space + 640;

var pos_bg_harrows_H_top = top_space - 380;
var pos_bg_harrows_H_left = left_space - 30;
if(pos_bg_harrows_H_top < 0){
	var height_bg_harrows_H = avail_height_cor - pos_bg_harrows_H_top;
}else{
	var height_bg_harrows_H = avail_height_cor;
}

