var varArray = [
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957268?x=951',
		'title': 'TV #1 - Samsung 55\"',
		'imageId': '71957268',
		'alt' : 'TV #1 - Samsung 55\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957269?x=951',
		'title': 'TV #1 - Samsung 55\"',
		'imageId': '71957269',
		'alt' : 'TV #1 - Samsung 55\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957271?x=951',
		'title': 'TV #1 - Samsung 55\"',
		'imageId': '71957271',
		'alt' : 'TV #1 - Samsung 55\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957277?x=951',
		'title': 'TV #1 - Samsung 55\"',
		'imageId': '71957277',
		'alt' : 'TV #1 - Samsung 55\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957279?x=951',
		'title': 'TV #2 - Sharp 60\"',
		'imageId': '71957279',
		'alt' : 'TV #2 - Sharp 60\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957283?x=951',
		'title': 'TV #2 - Sharp 60\"',
		'imageId': '71957283',
		'alt' : 'TV #2 - Sharp 60\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957284?x=951',
		'title': 'TV #2 - Sharp 60\"',
		'imageId': '71957284',
		'alt' : 'TV #2 - Sharp 60\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957285?x=951',
		'title': 'TV #2 - Sharp 60\"',
		'imageId': '71957285',
		'alt' : 'TV #2 - Sharp 60\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957293?x=951',
		'title': 'TV #2 - Sharp 60\"',
		'imageId': '71957293',
		'alt' : 'TV #2 - Sharp 60\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957298?x=951',
		'title': 'TV #3- Sharp 60\"',
		'imageId': '71957298',
		'alt' : 'TV #3- Sharp 60\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957300?x=951',
		'title': 'TV #3- Sharp 60\"',
		'imageId': '71957300',
		'alt' : 'TV #3- Sharp 60\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957301?x=951',
		'title': 'TV #3- Sharp 60\"',
		'imageId': '71957301',
		'alt' : 'TV #3- Sharp 60\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957302?x=951',
		'title': 'TV #3- Sharp 60\"',
		'imageId': '71957302',
		'alt' : 'TV #3- Sharp 60\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957307?x=951',
		'title': 'TV #3- Sharp 60\"',
		'imageId': '71957307',
		'alt' : 'TV #3- Sharp 60\"',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957313?x=951',
		'title': '',
		'imageId': '71957313',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957316?x=951',
		'title': '',
		'imageId': '71957316',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': 'https://d37qv0n5b4mbzm.cloudfront.net/sms/docviewer/cdnaucdoc/img/4090498/71957309?x=951',
		'title': '',
		'imageId': '71957309',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4090498';

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