var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=665545&docid=4455703&x=015',
		'title': '',
		'imageId': '4455703',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665545&docid=4455718&x=015',
		'title': '',
		'imageId': '4455718',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665545&docid=4455724&x=015',
		'title': '',
		'imageId': '4455724',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665545&docid=4455730&x=015',
		'title': '',
		'imageId': '4455730',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665545&docid=4455736&x=015',
		'title': '',
		'imageId': '4455736',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665545&docid=4455744&x=015',
		'title': '',
		'imageId': '4455744',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665545&docid=4455749&x=015',
		'title': '',
		'imageId': '4455749',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665545&docid=4455761&x=015',
		'title': '',
		'imageId': '4455761',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665545&docid=4455764&x=015',
		'title': '',
		'imageId': '4455764',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665545&docid=4455776&x=015',
		'title': '',
		'imageId': '4455776',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=665545&docid=4455779&x=015',
		'title': '',
		'imageId': '4455779',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #665545';

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