var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024516&x=415',
		'title': '',
		'imageId': '70024516',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024507&x=415',
		'title': '',
		'imageId': '70024507',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024514&x=415',
		'title': '',
		'imageId': '70024514',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024513&x=415',
		'title': '',
		'imageId': '70024513',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024511&x=415',
		'title': '',
		'imageId': '70024511',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024512&x=415',
		'title': '',
		'imageId': '70024512',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024515&x=415',
		'title': '',
		'imageId': '70024515',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024521&x=415',
		'title': '',
		'imageId': '70024521',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024517&x=415',
		'title': '',
		'imageId': '70024517',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024519&x=415',
		'title': '',
		'imageId': '70024519',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024518&x=415',
		'title': '',
		'imageId': '70024518',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024522&x=415',
		'title': '',
		'imageId': '70024522',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024520&x=415',
		'title': '',
		'imageId': '70024520',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024525&x=415',
		'title': '',
		'imageId': '70024525',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024523&x=415',
		'title': '',
		'imageId': '70024523',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024524&x=415',
		'title': '',
		'imageId': '70024524',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012827&docid=70024504&x=415',
		'title': '',
		'imageId': '70024504',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012827';

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