
var win32BorderWidth = 5;
var win32TitleBarHeight = 31;

//
function ExpandRusticHousePhoto(productId, position)
{
	var winWidth = 644;
	var winHeight = 344;
	var winLeft, winTop;

	winLeft = (screen.availWidth - winWidth - 2 * win32BorderWidth) / 2;
	winTop = (screen.availHeight - winHeight - win32BorderWidth - win32TitleBarHeight) / 2;

	var oWin = window.open("/es/madrid/expandphoto.aspx?ProductID=" + productId + "&Position=" + position + "&Rustic=true", "PhotosWindow", "directories=0, location=0, menubar=0, resizable=0, scrollbars=0, status=0, toolbar=0, width=" + winWidth + ", height=" + winHeight + ", left=" + winLeft + ", top=" + winTop);

	return false;
}

//
function ExpandPhoto(productId, position)
{
	var winWidth = 1000; //644;
	var winHeight = 474;
	var winLeft, winTop;

	winLeft = (screen.availWidth - winWidth - 2 * win32BorderWidth) / 2;
	winTop = (screen.availHeight - winHeight - win32BorderWidth - win32TitleBarHeight) / 2;

	var oWin = window.open("/es/madrid/expandphoto.aspx?ProductID=" + productId + "&Position=" + position, "PhotosWindow", "directories=0, location=0, menubar=0, resizable=0, scrollbars=0, status=0, toolbar=0, width=" + winWidth + ", height=" + winHeight + ", left=" + winLeft + ", top=" + winTop);

	return false;
}

//
function ExpandPlan(promotion, imageName, description)
{
	var winWidth = 1010; //640; //620;
	var winHeight = 636; //576; //550;
	var winLeft, winTop;

	winLeft = (screen.availWidth - winWidth - 2 * win32BorderWidth) / 2;
	winTop = (screen.availHeight - winHeight - win32BorderWidth - win32TitleBarHeight) / 2;
	
	var oWin = window.open("/es/madrid/expandplan.aspx?Promotion=" + promotion + "&ImageName=" + imageName + "&Description=" + description, "PlanWindow", "directories=0, location=0, menubar=0, resizable=0, scrollbars=1, status=0, toolbar=0, width=" + winWidth + ", height=" + winHeight + ", left=" + winLeft + ", top=" + winTop);

	return false;
}
