var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837740&x=1922',
		'title': '',
		'imageId': '69837740',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837745&x=1922',
		'title': '',
		'imageId': '69837745',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837746&x=1922',
		'title': '',
		'imageId': '69837746',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837741&x=1922',
		'title': '',
		'imageId': '69837741',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837749&x=1922',
		'title': '',
		'imageId': '69837749',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837751&x=1922',
		'title': '',
		'imageId': '69837751',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837755&x=1922',
		'title': '',
		'imageId': '69837755',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837756&x=1922',
		'title': '',
		'imageId': '69837756',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837752&x=1922',
		'title': '',
		'imageId': '69837752',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837742&x=1922',
		'title': '',
		'imageId': '69837742',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837748&x=1922',
		'title': '',
		'imageId': '69837748',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837753&x=1922',
		'title': '',
		'imageId': '69837753',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837750&x=1922',
		'title': '',
		'imageId': '69837750',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837744&x=1922',
		'title': '',
		'imageId': '69837744',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837743&x=1922',
		'title': '',
		'imageId': '69837743',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837754&x=1922',
		'title': '',
		'imageId': '69837754',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69837747&x=1922',
		'title': '',
		'imageId': '69837747',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69987260&x=1922',
		'title': '',
		'imageId': '69987260',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69987263&x=1922',
		'title': '',
		'imageId': '69987263',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69987262&x=1922',
		'title': '',
		'imageId': '69987262',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69987259&x=1922',
		'title': '',
		'imageId': '69987259',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004987&docid=69987261&x=1922',
		'title': '',
		'imageId': '69987261',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4004987';

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