var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4003478&docid=69796021&x=1343',
		'title': '',
		'imageId': '69796021',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003478&docid=69796022&x=1343',
		'title': '',
		'imageId': '69796022',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003478&docid=69796023&x=1343',
		'title': '',
		'imageId': '69796023',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003478&docid=69796024&x=1343',
		'title': '',
		'imageId': '69796024',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003478&docid=69796031&x=1343',
		'title': '',
		'imageId': '69796031',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003478&docid=69796032&x=1343',
		'title': '',
		'imageId': '69796032',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003478&docid=69796033&x=1343',
		'title': '',
		'imageId': '69796033',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003478&docid=69796038&x=1343',
		'title': '',
		'imageId': '69796038',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003478&docid=69796020&x=1343',
		'title': '',
		'imageId': '69796020',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4003478&docid=69796019&x=1343',
		'title': '',
		'imageId': '69796019',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4003478';

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