var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4004670&docid=69827327&x=5425',
		'title': '',
		'imageId': '69827327',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004670&docid=69827329&x=5425',
		'title': '',
		'imageId': '69827329',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004670&docid=69827330&x=5425',
		'title': '',
		'imageId': '69827330',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004670&docid=69827331&x=5425',
		'title': '',
		'imageId': '69827331',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004670&docid=69827333&x=5425',
		'title': '',
		'imageId': '69827333',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004670&docid=69827332&x=5425',
		'title': '',
		'imageId': '69827332',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004670&docid=69827334&x=5425',
		'title': '',
		'imageId': '69827334',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004670&docid=69827335&x=5425',
		'title': '',
		'imageId': '69827335',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004670&docid=69827336&x=5425',
		'title': '',
		'imageId': '69827336',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004670&docid=69827337&x=5425',
		'title': '',
		'imageId': '69827337',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4004670';

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