var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=914729&docid=6739559&x=524',
		'title': '',
		'imageId': '6739559',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914729&docid=6739556&x=524',
		'title': '',
		'imageId': '6739556',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914729&docid=6739562&x=524',
		'title': '',
		'imageId': '6739562',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914729&docid=6739565&x=524',
		'title': '',
		'imageId': '6739565',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914729&docid=6739568&x=524',
		'title': '',
		'imageId': '6739568',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914729&docid=6739579&x=524',
		'title': '',
		'imageId': '6739579',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914729&docid=6739582&x=524',
		'title': '',
		'imageId': '6739582',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914729&docid=6739585&x=524',
		'title': '',
		'imageId': '6739585',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914729&docid=6739591&x=524',
		'title': '',
		'imageId': '6739591',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=914729&docid=6739608&x=524',
		'title': '',
		'imageId': '6739608',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #914729';

document.body.style.overflow = "hidden";
var closeElement = document.querySelector("#lightbox #close");
var closeLoadingElement = document.querySelector("#lightbox #closeLoading");

if (closeElement) {
	closeElement.addEventListener("click", function() {
		document.body.style.overflow = "auto";
	})
}

if (closeLoadingElement) {
	closeLoadingElement.addEventListener("click", function() {
		document.body.style.overflow = "auto";
	})
}
