var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4025766&docid=70349338&x=3526',
		'title': '',
		'imageId': '70349338',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4025766&docid=70349350&x=3526',
		'title': '',
		'imageId': '70349350',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4025766&docid=70349387&x=3526',
		'title': '',
		'imageId': '70349387',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4025766&docid=70349390&x=3526',
		'title': '',
		'imageId': '70349390',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4025766&docid=70349393&x=3526',
		'title': '',
		'imageId': '70349393',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4025766&docid=70349396&x=3526',
		'title': '',
		'imageId': '70349396',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4025766&docid=70349399&x=3526',
		'title': '',
		'imageId': '70349399',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4025766&docid=70349402&x=3526',
		'title': '',
		'imageId': '70349402',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4025766&docid=70349405&x=3526',
		'title': '',
		'imageId': '70349405',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4025766&docid=70349413&x=3526',
		'title': '',
		'imageId': '70349413',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4025766';

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