var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047322&x=228',
		'title': '',
		'imageId': '70047322',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047325&x=228',
		'title': '',
		'imageId': '70047325',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047335&x=228',
		'title': '',
		'imageId': '70047335',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047326&x=228',
		'title': '',
		'imageId': '70047326',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047338&x=228',
		'title': '',
		'imageId': '70047338',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047319&x=228',
		'title': '',
		'imageId': '70047319',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047321&x=228',
		'title': '',
		'imageId': '70047321',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047333&x=228',
		'title': '',
		'imageId': '70047333',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047320&x=228',
		'title': '',
		'imageId': '70047320',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047328&x=228',
		'title': '',
		'imageId': '70047328',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047324&x=228',
		'title': '',
		'imageId': '70047324',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047332&x=228',
		'title': '',
		'imageId': '70047332',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047331&x=228',
		'title': '',
		'imageId': '70047331',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047340&x=228',
		'title': '',
		'imageId': '70047340',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047323&x=228',
		'title': '',
		'imageId': '70047323',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047318&x=228',
		'title': '',
		'imageId': '70047318',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047327&x=228',
		'title': '',
		'imageId': '70047327',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047329&x=228',
		'title': '',
		'imageId': '70047329',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047330&x=228',
		'title': '',
		'imageId': '70047330',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047337&x=228',
		'title': '',
		'imageId': '70047337',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047334&x=228',
		'title': '',
		'imageId': '70047334',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047336&x=228',
		'title': '',
		'imageId': '70047336',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4013414&docid=70047339&x=228',
		'title': '',
		'imageId': '70047339',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4013414';

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