var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3947675&docid=68531341&x=123',
		'title': '',
		'imageId': '68531341',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947675&docid=68531332&x=123',
		'title': '',
		'imageId': '68531332',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947675&docid=68531337&x=123',
		'title': '',
		'imageId': '68531337',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947675&docid=68531342&x=123',
		'title': '',
		'imageId': '68531342',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947675&docid=68531339&x=123',
		'title': '',
		'imageId': '68531339',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947675&docid=68531340&x=123',
		'title': '',
		'imageId': '68531340',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947675&docid=68531333&x=123',
		'title': '',
		'imageId': '68531333',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947675&docid=68531338&x=123',
		'title': '',
		'imageId': '68531338',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947675&docid=68531335&x=123',
		'title': '',
		'imageId': '68531335',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947675&docid=68531336&x=123',
		'title': '',
		'imageId': '68531336',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947675&docid=68531334&x=123',
		'title': '',
		'imageId': '68531334',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3947675&docid=68531392&x=123',
		'title': '',
		'imageId': '68531392',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3947675';

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";
	})
}
