var av_width = window.screen.availWidth;
var av_height = window.screen.availHeight;

var move_to_x = 0;
var move_to_y = 0;


if (av_width>1800) {
av_width = 1800;
move_to_x = (window.screen.availWidth - av_width)/2;

}
if (av_height>1200) {
av_height = 1200;
move_to_y = (window.screen.availHeight - av_height)/2;
}

self.moveTo(move_to_x,move_to_y);
self.resizeTo(av_width,av_height);

