// Correction height for tabs in case that
// was used padding/margin for tabs of middleDesign in CSS
// NOTE: used only with function -> tryResizeTabs(1);
var correctionHeightTabLeft = 30;
var correctionHeightTabMiddle = 30;
var correctionHeightTabRight = 0;

// Resize of images in gallery
// used by WindowFull.aspx
function setWindow() {
    window.onresize = resizeImage;
    resizeWindow();
}

function resizeWindow() {
    imgx = document.img.width;
    imgy = document.img.height;
    
    if (document.img.width > 984) { imgx = 1024; } else { imgx += 33; }
    if (document.img.height > 723) { imgy = 768; } else { imgy += 64; }
    
    window.resizeTo(imgx, imgy);
}

function resizeImage() {
	var browseWidth;

	if (document.layers){
	   browseWidth = parseInt(window.outerWidth);
	}
	else if (document.all){
	   browseWidth = parseInt(document.body.offsetWidth);
	}
	document.img.style.width = (browseWidth-1);
}