' + _self.settings.labels['errorMessage'] + '
';\n\t\t\t\t},\n\t\t\t\tlabels: {\n\t\t\t\t\t'errorMessage': 'Source could not be found...',\n\t\t\t\t\t'sequenceInfo.of': ' of ',\n\t\t\t\t\t'close': 'Close',\n\t\t\t\t\t'navigator.prev': 'Prev',\n\t\t\t\t\t'navigator.next': 'Next',\n \t\t\t\t\t'navigator.play': 'Play',\n\t\t\t\t\t'navigator.pause': 'Pause'\n\t\t\t\t},\n\t\t\t\tmarkup: function () {\n\t\t\t\t\t_self.objects.body.append(\n\t\t\t\t\t\t_self.objects.overlay = $(''),\n\t\t\t\t\t\t_self.objects.loading = $(''),\n\t\t\t\t\t\t_self.objects.case = $('')\n\t\t\t\t\t);\n\t\t\t\t\t_self.objects.case.after(\n\t\t\t\t\t\t_self.objects.close = $('' + _self.settings.labels['close'] + ''),\n\t\t\t\t\t\t_self.objects.nav = $('')\n\t\t\t\t\t);\n\t\t\t\t\t_self.objects.nav.append(\n\t\t\t\t\t\t_self.objects.prev = $('' + _self.settings.labels['navigator.prev'] + '').hide(),\n\t\t\t\t\t\t_self.objects.next = $('' + _self.settings.labels['navigator.next'] + '').hide(),\n\t\t\t\t\t\t_self.objects.play = $('' + _self.settings.labels['navigator.play'] + '').hide(),\n\t\t\t\t\t\t_self.objects.pause = $('' + _self.settings.labels['navigator.pause'] + '').hide()\n\t\t\t\t\t);\n\t\t\t\t\t_self.objects.case.append(\n\t\t\t\t\t\t_self.objects.content = $(''),\n\t\t\t\t\t\t_self.objects.info = $('')\n\t\t\t\t\t);\n\t\t\t\t\t_self.objects.content.append(\n\t\t\t\t\t\t_self.objects.contentInner = $('')\n\t\t\t\t\t);\n\t\t\t\t\t_self.objects.info.append(\n\t\t\t\t\t\t_self.objects.sequenceInfo = $(''),\n\t\t\t\t\t\t_self.objects.title = $(''),\n\t\t\t\t\t\t_self.objects.caption = $('')\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\tonInit: {},\n\t\t\t\tonStart: {},\n\t\t\t\tonBeforeCalculateDimensions: {},\n\t\t\t\tonAfterCalculateDimensions: {},\n\t\t\t\tonBeforeShow: {},\n\t\t\t\tonFinish: {},\n\t\t\t\tonResize: {},\n\t\t\t\tonClose: {},\n\t\t\t\tonCleanup: {}\n\t\t\t},\n\t\t\toptions,\n\t\t\t// Load options from data-lc-options attribute\n\t\t\t_self.origin.data ? _self.origin.data('lc-options') : {});\n\n\t\t\t_self.objects.document = $('html');\n\t\t\t_self.objects.body = $('body');\n\n\t\t\t// Call onInit hook functions\n\t\t\t_self._callHooks(_self.settings.onInit);\n\n\t\t\t_self.objectData = _self._setObjectData(this);\n\n\t\t\t_self._addElements();\n\t\t\t_self._open();\n\n\t\t\t_self.dimensions = _self.getViewportDimensions();\n\t\t},\n\n\t\t/**\n\t\t * Getter method for objects\n\t\t *\n\t\t * @param\t{string}\tname\n\t\t * @return\t{object}\n\t\t */\n\t\tget: function (name) {\n\t\t\treturn _self.objects[name];\n\t\t},\n\n\t\t/**\n\t\t * Getter method for objectData\n\t\t *\n\t\t * @return\t{object}\n\t\t */\n\t\tgetObjectData: function () {\n\t\t\treturn _self.objectData;\n\t\t},\n\n\t\t/**\n\t\t * Sets the object data\n\t\t *\n\t\t * @param\t{object}\tobject\n\t\t * @return\t{object}\tobjectData\n\t\t */\n\t\t_setObjectData: function (object) {\n\t\t \tvar $object = $(object),\n\t\t\t\tobjectData = {\n\t\t\t\tthis: $(object),\n\t\t\t\ttitle: _self.settings.title || $object.attr(_self._prefixAttributeName('title')) || $object.attr('title'),\n\t\t\t\tcaption: _self.settings.caption || $object.attr(_self._prefixAttributeName('caption')) || $object.children('img').attr('alt'),\n\t\t\t\turl: _self._determineUrl(),\n\t\t\t\trequestType: _self.settings.ajax.type,\n\t\t\t\trequestData: _self.settings.ajax.data,\n\t\t\t\trequestDataType: _self.settings.ajax.dataType,\n\t\t\t\trel: $object.attr(_self._determineAttributeSelector()),\n\t\t\t\ttype: _self.settings.type || _self._verifyDataType(_self._determineUrl()),\n\t\t\t\tisPartOfSequence: _self.settings.useAsCollection || _self._isPartOfSequence($object.attr(_self.settings.attr), ':'),\n\t\t\t\tisPartOfSequenceWithSlideshow: _self._isPartOfSequence($object.attr(_self.settings.attr), ':slideshow'),\n\t\t\t\tcurrentIndex: $(_self._determineAttributeSelector()).index($object),\n\t\t\t\tsequenceLength: $(_self._determineAttributeSelector()).length\n\t\t\t};\n\n\t\t\t// Add sequence info to objectData\n\t\t\tobjectData.sequenceInfo = (objectData.currentIndex + 1) + _self.settings.labels['sequenceInfo.of'] + objectData.sequenceLength;\n\n\t\t\t// Add next/prev index\n\t\t\tobjectData.prevIndex = objectData.currentIndex - 1;\n\t\t\tobjectData.nextIndex = objectData.currentIndex + 1;\n\n\t\t\treturn objectData;\n\t\t},\n\n\t\t/**\n\t\t * Prefixes a data attribute name with defined name from 'settings.attrPrefix'\n\t\t * to ensure more uniqueness for all lightcase related/used attributes.\n\t\t *\n\t\t * @param\t{string}\tname\n\t\t * @return\t{string}\n\t\t */\n\t\t_prefixAttributeName: function (name) {\n\t\t\treturn 'data-' + _self.settings.attrPrefix + name;\n\t\t},\n\n\t\t/**\n\t\t * Determines the link target considering 'settings.href' and data attributes\n\t\t * but also with a fallback to the default 'href' value.\n\t\t *\n\t\t * @return\t{string}\n\t\t */\n\t\t_determineLinkTarget: function () {\n\t\t\treturn _self.settings.href || $(_self.origin).attr(_self._prefixAttributeName('href')) || $(_self.origin).attr('href');\n\t\t},\n\n\t\t/**\n\t\t * Determines the attribute selector to use, depending on\n\t\t * whether categorized collections are beeing used or not.\n\t\t *\n\t\t * @return\t{string}\tselector\n\t\t */\n\t\t_determineAttributeSelector: function () {\n\t\t\tvar\t$origin = $(_self.origin),\n\t\t\t\tselector = '';\n\n\t\t\tif (typeof _self.cache.selector !== 'undefined') {\n\t\t\t\tselector = _self.cache.selector;\n\t\t\t} else if (_self.settings.useCategories === true && $origin.attr(_self._prefixAttributeName('categories'))) {\n\t\t\t\tvar\tcategories = $origin.attr(_self._prefixAttributeName('categories')).split(' ');\n\n\t\t\t\t$.each(categories, function (index, category) {\n\t\t\t\t\tif (index > 0) {\n\t\t\t\t\t\tselector += ',';\n\t\t\t\t\t}\n\t\t\t\t\tselector += '[' + _self._prefixAttributeName('categories') + '~=\"' + category + '\"]';\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tselector = '[' + _self.settings.attr + '=\"' + $origin.attr(_self.settings.attr) + '\"]';\n\t\t\t}\n\n\t\t\t_self.cache.selector = selector;\n\n\t\t\treturn selector;\n\t\t},\n\n\t\t/**\n\t\t * Determines the correct resource according to the\n\t\t * current viewport and density.\n\t\t *\n\t\t * @return\t{string}\turl\n\t\t */\n\t\t_determineUrl: function () {\n\t\t\tvar\tdataUrl = _self._verifyDataUrl(_self._determineLinkTarget()),\n\t\t\t\twidth = 0,\n\t\t\t\tdensity = 0,\n\t\t\t\tsupportLevel = '',\n\t\t\t\turl;\n\n\t\t\t$.each(dataUrl, function (index, src) {\n\t\t\t\tswitch (_self._verifyDataType(src.url)) {\n\t\t\t\t\tcase 'video':\n\t\t\t\t\t\tvar\tvideo = document.createElement('video'),\n\t\t\t\t\t\t\tvideoType = _self._verifyDataType(src.url) + '/' + _self._getFileUrlSuffix(src.url);\n\n\t\t\t\t\t\t// Check if browser can play this type of video format\n\t\t\t\t\t\tif (supportLevel !== 'probably' && supportLevel !== video.canPlayType(videoType) && video.canPlayType(videoType) !== '') {\n\t\t\t\t\t\t\tsupportLevel = video.canPlayType(videoType);\n\t\t\t\t\t\t\turl = src.url;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t// Check density\n\t\t\t\t\t\t\t_self._devicePixelRatio() >= src.density &&\n\t\t\t\t\t\t\tsrc.density >= density &&\n\t\t\t\t\t\t\t// Check viewport width\n\t\t\t\t\t\t\t_self._matchMedia()('screen and (min-width:' + src.width + 'px)').matches &&\n\t\t\t\t\t\t\tsrc.width >= width\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\twidth = src.width;\n\t\t\t\t\t\t\tdensity = src.density;\n\t\t\t\t\t\t\turl = src.url;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn url;\n\t\t},\n\n\t\t/**\n\t\t * Normalizes an url and returns information about the resource path,\n\t\t * the viewport width as well as density if defined.\n\t\t *\n\t\t * @param\t{string}\turl\tPath to resource in format of an url or srcset\n\t\t * @return\t{object}\n\t\t */\n\t\t_normalizeUrl: function (url) {\n\t\t\tvar srcExp = /^\\d+$/;\n\n\t\t\treturn url.split(',').map(function (str) {\n\t\t\t\tvar src = {\n\t\t\t\t\twidth: 0,\n\t\t\t\t\tdensity: 0\n\t\t\t\t};\n\n\t\t\t\tstr.trim().split(/\\s+/).forEach(function (url, i) {\n\t\t\t\t\tif (i === 0) {\n\t\t\t\t\t\treturn src.url = url;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar value = url.substring(0, url.length - 1),\n\t\t\t\t\t\tlastChar = url[url.length - 1],\n\t\t\t\t\t\tintVal = parseInt(value, 10),\n\t\t\t\t\t\tfloatVal = parseFloat(value);\n\t\t\t\t\tif (lastChar === 'w' && srcExp.test(value)) {\n\t\t\t\t\t\tsrc.width = intVal;\n\t\t\t\t\t} else if (lastChar === 'h' && srcExp.test(value)) {\n\t\t\t\t\t\tsrc.height = intVal;\n\t\t\t\t\t} else if (lastChar === 'x' && !isNaN(floatVal)) {\n\t\t\t\t\t\tsrc.density = floatVal;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn src;\n\t\t\t});\n\t\t},\n\n\t\t/**\n\t\t * Verifies if the link is part of a sequence\n\t\t *\n\t\t * @param\t{string}\trel\n\t\t * @param\t{string}\texpression\n\t\t * @return\t{boolean}\n\t\t */\n\t\t_isPartOfSequence: function (rel, expression) {\n\t\t\tvar getSimilarLinks = $('[' + _self.settings.attr + '=\"' + rel + '\"]'),\n\t\t\t\tregexp = new RegExp(expression);\n\n\t\t\treturn (regexp.test(rel) && getSimilarLinks.length > 1);\n\t\t},\n\n\t\t/**\n\t\t * Verifies if the slideshow should be enabled\n\t\t *\n\t\t * @return\t{boolean}\n\t\t */\n\t\tisSlideshowEnabled: function () {\n\t\t\treturn (_self.objectData.isPartOfSequence && (_self.settings.slideshow === true || _self.objectData.isPartOfSequenceWithSlideshow === true));\n\t\t},\n\n\t\t/**\n\t\t * Loads the new content to show\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_loadContent: function () {\n\t\t\tif (_self.cache.originalObject) {\n\t\t\t\t_self._restoreObject();\n\t\t\t}\n\n\t\t\t_self._createObject();\n\t\t},\n\n\t\t/**\n\t\t * Creates a new object\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_createObject: function () {\n\t\t\tvar $object;\n\n\t\t\t// Create object\n\t\t\tswitch (_self.objectData.type) {\n\t\t\t\tcase 'image':\n\t\t\t\t\t$object = $(new Image());\n\t\t\t\t\t$object.attr({\n\t\t\t\t\t\t// The time expression is required to prevent the binding of an image load\n\t\t\t\t\t\t'src': _self.objectData.url,\n\t\t\t\t\t\t'alt': _self.objectData.title\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'inline':\n\t\t\t\t\t$object = $('');\n\t\t\t\t\t$object.html(_self._cloneObject($(_self.objectData.url)));\n\n\t\t\t\t\t// Add custom attributes from _self.settings\n\t\t\t\t\t$.each(_self.settings.inline, function (name, value) {\n\t\t\t\t\t\t$object.attr(_self._prefixAttributeName(name), value);\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ajax':\n\t\t\t\t\t$object = $('');\n\n\t\t\t\t\t// Add custom attributes from _self.settings\n\t\t\t\t\t$.each(_self.settings.ajax, function (name, value) {\n\t\t\t\t\t\tif (name !== 'data') {\n\t\t\t\t\t\t\t$object.attr(_self._prefixAttributeName(name), value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'flash':\n\t\t\t\t\t$object = $('');\n\n\t\t\t\t\t// Add custom attributes from _self.settings\n\t\t\t\t\t$.each(_self.settings.flash, function (name, value) {\n\t\t\t\t\t\t$object.attr(name, value);\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'video':\n\t\t\t\t\t$object = $('');\n\t\t\t\t\t$object.attr('src', _self.objectData.url);\n\n\t\t\t\t\t// Add custom attributes from _self.settings\n\t\t\t\t\t$.each(_self.settings.video, function (name, value) {\n\t\t\t\t\t\t$object.attr(name, value);\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$object = $('');\n\t\t\t\t\t$object.attr({\n\t\t\t\t\t\t'src': _self.objectData.url\n\t\t\t\t\t});\n\n\t\t\t\t\t// Add custom attributes from _self.settings\n\t\t\t\t\t$.each(_self.settings.iframe, function (name, value) {\n\t\t\t\t\t\t$object.attr(name, value);\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t_self._addObject($object);\n\t\t\t_self._loadObject($object);\n\t\t},\n\n\t\t/**\n\t\t * Adds the new object to the markup\n\t\t *\n\t\t * @param\t{object}\t$object\n\t\t * @return\t{void}\n\t\t */\n\t\t_addObject: function ($object) {\n\t\t\t// Add object to content holder\n\t\t\t_self.objects.contentInner.html($object);\n\n\t\t\t// Start loading\n\t\t\t_self._loading('start');\n\n\t\t\t// Call onStart hook functions\n\t\t\t_self._callHooks(_self.settings.onStart);\n\n\t\t\t// Add sequenceInfo to the content holder or hide if its empty\n\t\t\tif (_self.settings.showSequenceInfo === true && _self.objectData.isPartOfSequence) {\n\t\t\t\t_self.objects.sequenceInfo.html(_self.objectData.sequenceInfo);\n\t\t\t\t_self.objects.sequenceInfo.show();\n\t\t\t} else {\n\t\t\t\t_self.objects.sequenceInfo.empty();\n\t\t\t\t_self.objects.sequenceInfo.hide();\n\t\t\t}\n\t\t\t// Add title to the content holder or hide if its empty\n\t\t\tif (_self.settings.showTitle === true && _self.objectData.title !== undefined && _self.objectData.title !== '') {\n\t\t\t\t_self.objects.title.html(_self.objectData.title);\n\t\t\t\t_self.objects.title.show();\n\t\t\t} else {\n\t\t\t\t_self.objects.title.empty();\n\t\t\t\t_self.objects.title.hide();\n\t\t\t}\n\t\t\t// Add caption to the content holder or hide if its empty\n\t\t\tif (_self.settings.showCaption === true && _self.objectData.caption !== undefined && _self.objectData.caption !== '') {\n\t\t\t\t_self.objects.caption.html(_self.objectData.caption);\n\t\t\t\t_self.objects.caption.show();\n\t\t\t} else {\n\t\t\t\t_self.objects.caption.empty();\n\t\t\t\t_self.objects.caption.hide();\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Loads the new object\n\t\t *\n\t\t * @param\t{object}\t$object\n\t\t * @return\t{void}\n\t\t */\n\t\t_loadObject: function ($object) {\n\t\t\t// Load the object\n\t\t\tswitch (_self.objectData.type) {\n\t\t\t\tcase 'inline':\n\t\t\t\t\tif ($(_self.objectData.url)) {\n\t\t\t\t\t\t_self._showContent($object);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t_self.error();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ajax':\n\t\t\t\t\t$.ajax(\n\t\t\t\t\t\t$.extend({}, _self.settings.ajax, {\n\t\t\t\t\t\t\turl: _self.objectData.url,\n\t\t\t\t\t\t\ttype: _self.objectData.requestType,\n\t\t\t\t\t\t\tdataType: _self.objectData.requestDataType,\n\t\t\t\t\t\t\tdata: _self.objectData.requestData,\n\t\t\t\t\t\t\tsuccess: function (data, textStatus, jqXHR) {\n\t\t\t\t\t\t\t\t// Check for X-Ajax-Location\n\t\t\t\t\t\t\t\tif (jqXHR.getResponseHeader('X-Ajax-Location')) {\n\t\t\t\t\t\t\t\t\t_self.objectData.url = jqXHR.getResponseHeader('X-Ajax-Location');\n\t\t\t\t\t\t\t\t\t_self._loadObject($object);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t// Unserialize if data is transferred as json\n\t\t\t\t\t\t\t\t\tif (_self.objectData.requestDataType === 'json') {\n\t\t\t\t\t\t\t\t\t\t_self.objectData.data = data;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$object.html(data);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t_self._showContent($object);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\terror: function (jqXHR, textStatus, errorThrown) {\n\t\t\t\t\t\t\t\t_self.error();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'flash':\n\t\t\t\t\t_self._showContent($object);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'video':\n\t\t\t\t\tif (typeof($object.get(0).canPlayType) === 'function' || _self.objects.case.find('video').length === 0) {\n\t\t\t\t\t\t_self._showContent($object);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t_self.error();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (_self.objectData.url) {\n\t\t\t\t\t\t$object.on('load', function () {\n\t\t\t\t\t\t\t_self._showContent($object);\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$object.on('error', function () {\n\t\t\t\t\t\t\t_self.error();\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\t_self.error();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Throws an error message if something went wrong\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\terror: function () {\n\t\t\t_self.objectData.type = 'error';\n\t\t\tvar $object = $('');\n\n\t\t\t$object.html(_self.settings.errorMessage);\n\t\t\t_self.objects.contentInner.html($object);\n\n\t\t\t_self._showContent(_self.objects.contentInner);\n\t\t},\n\n\t\t/**\n\t\t * Calculates the dimensions to fit content\n\t\t *\n\t\t * @param\t{object}\t$object\n\t\t * @return\t{void}\n\t\t */\n\t\t_calculateDimensions: function ($object) {\n\t\t\t_self._cleanupDimensions();\n\n\t\t\tif (!$object) return;\n\n\t\t\t// Set default dimensions\n\t\t\tvar dimensions = {\n\t\t\t\tratio: 1,\n\t\t\t\tobjectWidth: $object.attr('width') ? $object.attr('width') : $object.attr(_self._prefixAttributeName('width')),\n\t\t\t\tobjectHeight: $object.attr('height') ? $object.attr('height') : $object.attr(_self._prefixAttributeName('height'))\n\t\t\t};\n\n\t\t\tif (!_self.settings.disableShrink) {\n\t\t\t\t// Add calculated maximum width/height to dimensions\n\t\t\t\tdimensions.maxWidth = parseInt(_self.dimensions.windowWidth * _self.settings.shrinkFactor);\n\t\t\t\tdimensions.maxHeight = parseInt(_self.dimensions.windowHeight * _self.settings.shrinkFactor);\n\n\t\t\t\t// If the auto calculated maxWidth/maxHeight greather than the user-defined one, use that.\n\t\t\t\tif (dimensions.maxWidth > _self.settings.maxWidth) {\n\t\t\t\t\tdimensions.maxWidth = _self.settings.maxWidth;\n\t\t\t\t}\n\t\t\t\tif (dimensions.maxHeight > _self.settings.maxHeight) {\n\t\t\t\t\tdimensions.maxHeight = _self.settings.maxHeight;\n\t\t\t\t}\n\n\t\t\t\t// Calculate the difference between screen width/height and image width/height\n\t\t\t\tdimensions.differenceWidthAsPercent = parseInt(100 / dimensions.maxWidth * dimensions.objectWidth);\n\t\t\t\tdimensions.differenceHeightAsPercent = parseInt(100 / dimensions.maxHeight * dimensions.objectHeight);\n\n\t\t\t\tswitch (_self.objectData.type) {\n\t\t\t\t\tcase 'image':\n\t\t\t\t\tcase 'flash':\n\t\t\t\t\tcase 'video':\n\t\t\t\t\tcase 'iframe':\n\t\t\t\t\tcase 'ajax':\n\t\t\t\t\tcase 'inline':\n\t\t\t\t\t\tif (_self.objectData.type === 'image' || _self.settings.fixedRatio === true) {\n\t\t\t\t\t\t\tif (dimensions.differenceWidthAsPercent > 100 && dimensions.differenceWidthAsPercent > dimensions.differenceHeightAsPercent) {\n\t\t\t\t\t\t\t\tdimensions.objectWidth = dimensions.maxWidth;\n\t\t\t\t\t\t\t\tdimensions.objectHeight = parseInt(dimensions.objectHeight / dimensions.differenceWidthAsPercent * 100);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (dimensions.differenceHeightAsPercent > 100 && dimensions.differenceHeightAsPercent > dimensions.differenceWidthAsPercent) {\n\t\t\t\t\t\t\t\tdimensions.objectWidth = parseInt(dimensions.objectWidth / dimensions.differenceHeightAsPercent * 100);\n\t\t\t\t\t\t\t\tdimensions.objectHeight = dimensions.maxHeight;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (dimensions.differenceHeightAsPercent > 100 && dimensions.differenceWidthAsPercent < dimensions.differenceHeightAsPercent) {\n\t\t\t\t\t\t\t\tdimensions.objectWidth = parseInt(dimensions.maxWidth / dimensions.differenceHeightAsPercent * dimensions.differenceWidthAsPercent);\n\t\t\t\t\t\t\t\tdimensions.objectHeight = dimensions.maxHeight;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\tcase 'error':\n\t\t\t\t\t\tif (!isNaN(dimensions.objectWidth) && dimensions.objectWidth > dimensions.maxWidth) {\n\t\t\t\t\t\t\tdimensions.objectWidth = dimensions.maxWidth;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tif ((isNaN(dimensions.objectWidth) || dimensions.objectWidth > dimensions.maxWidth) && !_self.settings.forceWidth) {\n\t\t\t\t\t\t\tdimensions.objectWidth = dimensions.maxWidth;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (((isNaN(dimensions.objectHeight) && dimensions.objectHeight !== 'auto') || dimensions.objectHeight > dimensions.maxHeight) && !_self.settings.forceHeight) {\n\t\t\t\t\t\t\tdimensions.objectHeight = dimensions.maxHeight;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (_self.settings.forceWidth) {\n\t\t\t\ttry {\n\t\t\t\t\tdimensions.objectWidth = _self.settings[_self.objectData.type].width;\n\t\t\t\t} catch (e) {\n\t\t\t\t\tdimensions.objectWidth = _self.settings.width || dimensions.objectWidth;\n\t\t\t\t}\n\n\t\t\t\tdimensions.maxWidth = null;\n\t\t\t}\n\t\t\tif ($object.attr(_self._prefixAttributeName('max-width'))) {\n\t\t\t\tdimensions.maxWidth = $object.attr(_self._prefixAttributeName('max-width'));\n\t\t\t}\n\n\t\t\tif (_self.settings.forceHeight) {\n\t\t\t\ttry {\n\t\t\t\t\tdimensions.objectHeight = _self.settings[_self.objectData.type].height;\n\t\t\t\t} catch (e) {\n\t\t\t\t\tdimensions.objectHeight = _self.settings.height || dimensions.objectHeight;\n\t\t\t\t}\n\n\t\t\t\tdimensions.maxHeight = null;\n\t\t\t}\n\t\t\tif ($object.attr(_self._prefixAttributeName('max-height'))) {\n\t\t\t\tdimensions.maxHeight = $object.attr(_self._prefixAttributeName('max-height'));\n\t\t\t}\n\t\t\t_self._adjustDimensions($object, dimensions);\n\t\t},\n\n\t\t/**\n\t\t * Adjusts the dimensions\n\t\t *\n\t\t * @param\t{object}\t$object\n\t\t * @param\t{object}\tdimensions\n\t\t * @return\t{void}\n\t\t */\n\t\t_adjustDimensions: function ($object, dimensions) {\n\t\t\t// Adjust width and height\n\t\t\t$object.css({\n\t\t\t\t'width': dimensions.objectWidth,\n\t\t\t\t'height': dimensions.objectHeight,\n\t\t\t\t'max-width': dimensions.maxWidth,\n\t\t\t\t'max-height': dimensions.maxHeight\n\t\t\t});\n\n\t\t\t_self.objects.contentInner.css({\n\t\t\t\t'width': $object.outerWidth(),\n\t\t\t\t'height': $object.outerHeight(),\n\t\t\t\t'max-width': '100%'\n\t\t\t});\n\n\t\t\t_self.objects.case.css({\n\t\t\t\t'width': _self.objects.contentInner.outerWidth(),\n\t\t\t\t'max-width': '100%'\n\t\t\t});\n\n\t\t\t// Adjust margin\n\t\t\t_self.objects.case.css({\n\t\t\t\t'margin-top': parseInt(-(_self.objects.case.outerHeight() / 2)),\n\t\t\t\t'margin-left': parseInt(-(_self.objects.case.outerWidth() / 2))\n\t\t\t});\n\t\t},\n\n\t\t/**\n\t\t * Handles the _loading\n\t\t *\n\t\t * @param\t{string}\tprocess\n\t\t * @return\t{void}\n\t\t */\n\t\t_loading: function (process) {\n\t\t\tif (process === 'start') {\n\t\t\t\t_self.objects.case.addClass(_self.settings.classPrefix + 'loading');\n\t\t\t\t_self.objects.loading.show();\n\t\t\t} else if (process === 'end') {\n\t\t\t\t_self.objects.case.removeClass(_self.settings.classPrefix + 'loading');\n\t\t\t\t_self.objects.loading.hide();\n\t\t\t}\n\t\t},\n\n\n\t\t/**\n\t\t * Gets the client screen dimensions\n\t\t *\n\t\t * @return\t{object}\tdimensions\n\t\t */\n\t\tgetViewportDimensions: function () {\n\t\t\treturn {\n\t\t\t\twindowWidth: $(window).innerWidth(),\n\t\t\t\twindowHeight: $(window).innerHeight()\n\t\t\t};\n\t\t},\n\n\t\t/**\n\t\t * Verifies the url\n\t\t *\n\t\t * @param\t{string}\tdataUrl\n\t\t * @return\t{object}\tdataUrl\tClean url for processing content\n\t\t */\n\t\t_verifyDataUrl: function (dataUrl) {\n\t\t\tif (!dataUrl || dataUrl === undefined || dataUrl === '') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (dataUrl.indexOf('#') > -1) {\n\t\t\t\tdataUrl = dataUrl.split('#');\n\t\t\t\tdataUrl = '#' + dataUrl[dataUrl.length - 1];\n\t\t\t}\n\n\t\t\treturn _self._normalizeUrl(dataUrl.toString());\n\t\t},\n\n\t\t\t//\n\t\t/**\n\t\t * Tries to get the (file) suffix of an url\n\t\t *\n\t\t * @param\t{string}\turl\n\t\t * @return\t{string}\n\t\t */\n\t\t_getFileUrlSuffix: function (url) {\n\t\t\tvar re = /(?:\\.([^.]+))?$/;\n\t\t\treturn re.exec(url.toLowerCase())[1];\n\t\t},\n\n\t\t/**\n\t\t * Verifies the data type of the content to load\n\t\t *\n\t\t * @param\t{string}\t\t\turl\n\t\t * @return\t{string|boolean}\tArray key if expression matched, else false\n\t\t */\n\t\t_verifyDataType: function (url) {\n\t\t\tvar typeMapping = _self.settings.typeMapping;\n\n\t\t\t// Early abort if dataUrl couldn't be verified\n\t\t\tif (!url) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Verify the dataType of url according to typeMapping which\n\t\t\t// has been defined in settings.\n\t\t\tfor (var key in typeMapping) {\n\t\t\t\tif (typeMapping.hasOwnProperty(key)) {\n\t\t\t\t\tvar suffixArr = typeMapping[key].split(',');\n\n\t\t\t\t\tfor (var i = 0; i < suffixArr.length; i++) {\n\t\t\t\t\t\tvar suffix = suffixArr[i].toLowerCase(),\n\t\t\t\t\t\t\tregexp = new RegExp('\\.(' + suffix + ')$', 'i'),\n\t\t\t\t\t\t\tstr = url.toLowerCase().split('?')[0].substr(-5);\n\n\t\t\t\t\t\tif (regexp.test(str) === true || (key === 'inline' && (url.indexOf(suffix) > -1))) {\n\t\t\t\t\t\t\treturn key;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If no expression matched, return 'iframe'.\n\t\t\treturn 'iframe';\n\t\t},\n\n\t\t/**\n\t\t * Extends html markup with the essential tags\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_addElements: function () {\n\t\t\tif (typeof _self.objects.case !== 'undefined' && $('#' + _self.objects.case.attr('id')).length) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t_self.settings.markup();\n\t\t},\n\n\t\t/**\n\t\t * Shows the loaded content\n\t\t *\n\t\t * @param\t{object}\t$object\n\t\t * @return\t{void}\n\t\t */\n\t\t_showContent: function ($object) {\n\t\t\t// Add data attribute with the object type\n\t\t\t_self.objects.document.attr(_self._prefixAttributeName('type'), _self.objectData.type);\n\n\t\t\t_self.cache.object = $object;\n\n\t\t\t// Call onBeforeShow hook functions\n\t\t\t_self._callHooks(_self.settings.onBeforeShow);\n\n\t\t\tif (_self.settings.breakBeforeShow) return;\n\t\t\t_self.show();\n\t\t},\n\n\t\t/**\n\t\t * Starts the 'inTransition'\n\t\t * @return\t{void}\n\t\t */\n\t\t_startInTransition: function () {\n\t\t\tswitch (_self.transition.in()) {\n\t\t\t\tcase 'scrollTop':\n\t\t\t\tcase 'scrollRight':\n\t\t\t\tcase 'scrollBottom':\n\t\t\t\tcase 'scrollLeft':\n\t\t\t\tcase 'scrollHorizontal':\n\t\t\t\tcase 'scrollVertical':\n\t\t\t\t\t_self.transition.scroll(_self.objects.case, 'in', _self.settings.speedIn);\n\t\t\t\t\t_self.transition.fade(_self.objects.contentInner, 'in', _self.settings.speedIn);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'elastic':\n\t\t\t\t\tif (_self.objects.case.css('opacity') < 1) {\n\t\t\t\t\t\t_self.transition.zoom(_self.objects.case, 'in', _self.settings.speedIn);\n\t\t\t\t\t\t_self.transition.fade(_self.objects.contentInner, 'in', _self.settings.speedIn);\n\t\t\t\t}\n\t\t\t\tcase 'fade':\n\t\t\t\tcase 'fadeInline':\n\t\t\t\t\t_self.transition.fade(_self.objects.case, 'in', _self.settings.speedIn);\n\t\t\t\t\t_self.transition.fade(_self.objects.contentInner, 'in', _self.settings.speedIn);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t_self.transition.fade(_self.objects.case, 'in', 0);\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// End loading.\n\t\t\t_self._loading('end');\n\t\t\t_self.isBusy = false;\n\n\t\t\t// Set index of the first item opened\n\t\t\tif (!_self.cache.firstOpened) {\n\t\t\t\t_self.cache.firstOpened = _self.objectData.this;\n\t\t\t}\n\n\t\t\t// Fade in the info with delay\n\t\t\t_self.objects.info.hide();\n\t\t\tsetTimeout(function () {\n\t\t\t\t _self.transition.fade(_self.objects.info, 'in', _self.settings.speedIn);\n\t\t\t}, _self.settings.speedIn);\n\n\t\t\t// Call onFinish hook functions\n\t\t\t_self._callHooks(_self.settings.onFinish);\n\t\t},\n\n\t\t/**\n\t\t * Processes the content to show\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_processContent: function () {\n\t\t\t_self.isBusy = true;\n\n\t\t\t// Fade out the info at first\n\t\t\t_self.transition.fade(_self.objects.info, 'out', 0);\n\n\t\t\tswitch (_self.settings.transitionOut) {\n\t\t\t\tcase 'scrollTop':\n\t\t\t\tcase 'scrollRight':\n\t\t\t\tcase 'scrollBottom':\n\t\t\t\tcase 'scrollLeft':\n\t\t\t\tcase 'scrollVertical':\n\t\t\t\tcase 'scrollHorizontal':\n\t\t\t\t\tif (_self.objects.case.is(':hidden')) {\n\t\t\t\t\t\t_self.transition.fade(_self.objects.contentInner, 'out', 0);\n\t\t\t\t\t\t_self.transition.fade(_self.objects.case, 'out', 0, 0, function () {\n\t\t\t\t\t\t\t_self._loadContent();\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\t_self.transition.scroll(_self.objects.case, 'out', _self.settings.speedOut, function () {\n\t\t\t\t\t\t\t_self._loadContent();\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'fade':\n\t\t\t\t\tif (_self.objects.case.is(':hidden')) {\n\t\t\t\t\t\t_self.transition.fade(_self.objects.case, 'out', 0, 0, function () {\n\t\t\t\t\t\t\t_self._loadContent();\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\t_self.transition.fade(_self.objects.case, 'out', _self.settings.speedOut, 0, function () {\n\t\t\t\t\t\t\t_self._loadContent();\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'fadeInline':\n\t\t\t\tcase 'elastic':\n\t\t\t\t\tif (_self.objects.case.is(':hidden')) {\n\t\t\t\t\t\t_self.transition.fade(_self.objects.case, 'out', 0, 0, function () {\n\t\t\t\t\t\t\t_self._loadContent();\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\t_self.transition.fade(_self.objects.contentInner, 'out', _self.settings.speedOut, 0, function () {\n\t\t\t\t\t\t\t_self._loadContent();\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t_self.transition.fade(_self.objects.case, 'out', 0, 0, function () {\n\t\t\t\t\t\t_self._loadContent();\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Handles events for gallery buttons\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_handleEvents: function () {\n\t\t\t_self._unbindEvents();\n\n\t\t\t_self.objects.nav.children().not(_self.objects.close).hide();\n\n\t\t\t// If slideshow is enabled, show play/pause and start timeout.\n\t\t\tif (_self.isSlideshowEnabled()) {\n\t\t\t\t// Only start the timeout if slideshow autostart is enabled and slideshow is not pausing\n\t\t\t\tif (\n\t\t\t\t\t(_self.settings.slideshowAutoStart === true || _self.isSlideshowStarted) &&\n\t\t\t\t\t!_self.objects.nav.hasClass(_self.settings.classPrefix + 'paused')\n\t\t\t\t) {\n\t\t\t\t\t_self._startTimeout();\n\t\t\t\t} else {\n\t\t\t\t\t_self._stopTimeout();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (_self.settings.liveResize) {\n\t\t\t\t_self._watchResizeInteraction();\n\t\t\t}\n\n\t\t\t_self.objects.close.click(function (event) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\t_self.close();\n\t\t\t});\n\n\t\t\tif (_self.settings.closeOnOverlayClick === true) {\n\t\t\t\t_self.objects.overlay.css('cursor', 'pointer').click(function (event) {\n\t\t\t\t\tevent.preventDefault();\n\n\t\t\t\t\t_self.close();\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (_self.settings.useKeys === true) {\n\t\t\t\t_self._addKeyEvents();\n\t\t\t}\n\n\t\t\tif (_self.objectData.isPartOfSequence) {\n\t\t\t\t_self.objects.nav.attr(_self._prefixAttributeName('ispartofsequence'), true);\n\t\t\t\t_self.objects.nav.data('items', _self._setNavigation());\n\n\t\t\t\t_self.objects.prev.click(function (event) {\n\t\t\t\t\tevent.preventDefault();\n\n\t\t\t\t\tif (_self.settings.navigateEndless === true || !_self.item.isFirst()) {\n\t\t\t\t\t\t_self.objects.prev.unbind('click');\n\t\t\t\t\t\t_self.cache.action = 'prev';\n\t\t\t\t\t\t_self.objects.nav.data('items').prev.click();\n\n\t\t\t\t\t\tif (_self.isSlideshowEnabled()) {\n\t\t\t\t\t\t\t_self._stopTimeout();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t_self.objects.next.click(function (event) {\n\t\t\t\t\tevent.preventDefault();\n\n\t\t\t\t\tif (_self.settings.navigateEndless === true || !_self.item.isLast()) {\n\t\t\t\t\t\t_self.objects.next.unbind('click');\n\t\t\t\t\t\t_self.cache.action = 'next';\n\t\t\t\t\t\t_self.objects.nav.data('items').next.click();\n\n\t\t\t\t\t\tif (_self.isSlideshowEnabled()) {\n\t\t\t\t\t\t\t_self._stopTimeout();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tif (_self.isSlideshowEnabled()) {\n\t\t\t\t\t_self.objects.play.click(function (event) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t_self._startTimeout();\n\t\t\t\t\t});\n\t\t\t\t\t_self.objects.pause.click(function (event) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t_self._stopTimeout();\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t// Enable swiping if activated\n\t\t\t\tif (_self.settings.swipe === true) {\n\t\t\t\t\tif ($.isPlainObject($.event.special.swipeleft)) {\n\t\t\t\t\t\t_self.objects.case.on('swipeleft', function (event) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\t_self.objects.next.click();\n\t\t\t\t\t\t\tif (_self.isSlideshowEnabled()) {\n\t\t\t\t\t\t\t\t_self._stopTimeout();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tif ($.isPlainObject($.event.special.swiperight)) {\n\t\t\t\t\t\t_self.objects.case.on('swiperight', function (event) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\t_self.objects.prev.click();\n\t\t\t\t\t\t\tif (_self.isSlideshowEnabled()) {\n\t\t\t\t\t\t\t\t_self._stopTimeout();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Adds the key events\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_addKeyEvents: function () {\n\t\t\t$(document).bind('keyup.lightcase', function (event) {\n\t\t\t\t// Do nothing if lightcase is in process\n\t\t\t\tif (_self.isBusy) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tswitch (event.keyCode) {\n\t\t\t\t\t// Escape key\n\t\t\t\t\tcase 27:\n\t\t\t\t\t\t_self.objects.close.click();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t// Backward key\n\t\t\t\t\tcase 37:\n\t\t\t\t\t\tif (_self.objectData.isPartOfSequence) {\n\t\t\t\t\t\t\t_self.objects.prev.click();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t// Forward key\n\t\t\t\t\tcase 39:\n\t\t\t\t\t\tif (_self.objectData.isPartOfSequence) {\n\t\t\t\t\t\t\t_self.objects.next.click();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\t/**\n\t\t * Starts the slideshow timeout\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_startTimeout: function () {\n\t\t\t_self.isSlideshowStarted = true;\n\n\t\t\t_self.objects.play.hide();\n\t\t\t_self.objects.pause.show();\n\n\t\t\t_self.cache.action = 'next';\n\t\t\t_self.objects.nav.removeClass(_self.settings.classPrefix + 'paused');\n\n\t\t\t_self.timeout = setTimeout(function () {\n\t\t\t\t_self.objects.nav.data('items').next.click();\n\t\t\t}, _self.settings.timeout);\n\t\t},\n\n\t\t/**\n\t\t * Stops the slideshow timeout\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_stopTimeout: function () {\n\t\t\t_self.objects.play.show();\n\t\t\t_self.objects.pause.hide();\n\n\t\t\t_self.objects.nav.addClass(_self.settings.classPrefix + 'paused');\n\n\t\t\tclearTimeout(_self.timeout);\n\t\t},\n\n\t\t/**\n\t\t * Sets the navigator buttons (prev/next)\n\t\t *\n\t\t * @return\t{object}\titems\n\t\t */\n\t\t_setNavigation: function () {\n\t\t\tvar $links = $((_self.cache.selector || _self.settings.attr)),\n\t\t\t\tsequenceLength = _self.objectData.sequenceLength - 1,\n\t\t\t\titems = {\n\t\t\t\t\tprev: $links.eq(_self.objectData.prevIndex),\n\t\t\t\t\tnext: $links.eq(_self.objectData.nextIndex)\n\t\t\t\t};\n\n\t\t\tif (_self.objectData.currentIndex > 0) {\n\t\t\t\t_self.objects.prev.show();\n\t\t\t} else {\n\t\t\t\titems.prevItem = $links.eq(sequenceLength);\n\t\t\t}\n\t\t\tif (_self.objectData.nextIndex <= sequenceLength) {\n\t\t\t\t_self.objects.next.show();\n\t\t\t} else {\n\t\t\t\titems.next = $links.eq(0);\n\t\t\t}\n\n\t\t\tif (_self.settings.navigateEndless === true) {\n\t\t\t\t_self.objects.prev.show();\n\t\t\t\t_self.objects.next.show();\n\t\t\t}\n\n\t\t\treturn items;\n\t\t},\n\n\t\t/**\n\t\t * Item information/status\n\t\t *\n\t\t */\n\t\titem: {\n\t\t\t/**\n\t\t\t * Verifies if the current item is first item.\n\t\t\t *\n\t\t\t * @return\t{boolean}\n\t\t\t */\n\t\t\tisFirst: function () {\n\t\t\t\treturn (_self.objectData.currentIndex === 0);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Verifies if the current item is first item opened.\n\t\t\t *\n\t\t\t * @return\t{boolean}\n\t\t\t */\n\t\t\tisFirstOpened: function () {\n\t\t\t\treturn _self.objectData.this.is(_self.cache.firstOpened);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Verifies if the current item is last item.\n\t\t\t *\n\t\t\t * @return\t{boolean}\n\t\t\t */\n\t\t\tisLast: function () {\n\t\t\t\treturn (_self.objectData.currentIndex === (_self.objectData.sequenceLength - 1));\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Clones the object for inline elements\n\t\t *\n\t\t * @param\t{object}\t$object\n\t\t * @return\t{object}\t$clone\n\t\t */\n\t\t_cloneObject: function ($object) {\n\t\t\tvar $clone = $object.clone(),\n\t\t\t\tobjectId = $object.attr('id');\n\n\t\t\t// If element is hidden, cache the object and remove\n\t\t\tif ($object.is(':hidden')) {\n\t\t\t\t_self._cacheObjectData($object);\n\t\t\t\t$object.attr('id', _self.settings.idPrefix + 'temp-' + objectId).empty();\n\t\t\t} else {\n\t\t\t\t// Prevent duplicated id's\n\t\t\t\t$clone.removeAttr('id');\n\t\t\t}\n\n\t\t\treturn $clone.show();\n\t\t},\n\n\t\t/**\n\t\t * Verifies if it is a mobile device\n\t\t *\n\t\t * @return\t{boolean}\n\t\t */\n\t\tisMobileDevice: function () {\n\t\t\tvar deviceAgent = navigator.userAgent.toLowerCase(),\n\t\t\t\tagentId = deviceAgent.match(_self.settings.mobileMatchExpression);\n\n\t\t\treturn agentId ? true : false;\n\t\t},\n\n\t\t/**\n\t\t * Verifies if css transitions are supported\n\t\t *\n\t\t * @return\t{string|boolean}\tThe transition prefix if supported, else false.\n\t\t */\n\t\tisTransitionSupported: function () {\n\t\t\tvar body = _self.objects.body.get(0),\n\t\t\t\tisTransitionSupported = false,\n\t\t\t\ttransitionMapping = {\n\t\t\t\t\t'transition': '',\n\t\t\t\t\t'WebkitTransition': '-webkit-',\n\t\t\t\t\t'MozTransition': '-moz-',\n\t\t\t\t\t'OTransition': '-o-',\n\t\t\t\t\t'MsTransition': '-ms-'\n\t\t\t\t};\n\n\t\t\tfor (var key in transitionMapping) {\n\t\t\t\tif (transitionMapping.hasOwnProperty(key) && key in body.style) {\n\t\t\t\t\t_self.support.transition = transitionMapping[key];\n\t\t\t\t\tisTransitionSupported = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn isTransitionSupported;\n\t\t},\n\n\t\t/**\n\t\t * Transition types\n\t\t *\n\t\t */\n\t\ttransition: {\n\t\t\t/**\n\t\t\t * Returns the correct transition type according to the status of interaction.\n\t\t\t *\n\t\t\t * @return\t{string}\tTransition type\n\t\t\t */\n\t\t\tin: function () {\n\t\t\t\tif (_self.settings.transitionOpen && !_self.cache.firstOpened) {\n\t\t\t\t\treturn _self.settings.transitionOpen;\n\t\t\t\t}\n\t\t\t\treturn _self.settings.transitionIn;\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Fades in/out the object\n\t\t\t *\n\t\t\t * @param\t{object}\t$object\n\t\t\t * @param\t{string}\ttype\n\t\t\t * @param\t{number}\tspeed\n\t\t\t * @param\t{number}\topacity\n\t\t\t * @param\t{function}\tcallback\n\t\t\t * @return\t{void}\t\tAnimates an object\n\t\t\t */\n\t\t\tfade: function ($object, type, speed, opacity, callback) {\n\t\t\t\tvar isInTransition = type === 'in',\n\t\t\t\t\tstartTransition = {},\n\t\t\t\t\tstartOpacity = $object.css('opacity'),\n\t\t\t\t\tendTransition = {},\n\t\t\t\t\tendOpacity = opacity ? opacity: isInTransition ? 1 : 0;\n\n\t\t\t\tif (!_self.isOpen && isInTransition) return;\n\n\t\t\t\tstartTransition['opacity'] = startOpacity;\n\t\t\t\tendTransition['opacity'] = endOpacity;\n\n\t\t\t\t$object.css(_self.support.transition + 'transition', 'none');\n\t\t\t\t$object.css(startTransition).show();\n\n\t\t\t\t// Css transition\n\t\t\t\tif (_self.support.transitions) {\n\t\t\t\t\tendTransition[_self.support.transition + 'transition'] = speed + 'ms ease';\n\n\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t$object.css(endTransition);\n\n\t\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t\t$object.css(_self.support.transition + 'transition', '');\n\n\t\t\t\t\t\t\tif (callback && (_self.isOpen || !isInTransition)) {\n\t\t\t\t\t\t\t\tcallback();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, speed);\n\t\t\t\t\t}, 15);\n\t\t\t\t} else {\n\t\t\t\t\t// Fallback to js transition\n\t\t\t\t\t$object.stop();\n\t\t\t\t\t$object.animate(endTransition, speed, callback);\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Scrolls in/out the object\n\t\t\t *\n\t\t\t * @param\t{object}\t$object\n\t\t\t * @param\t{string}\ttype\n\t\t\t * @param\t{number}\tspeed\n\t\t\t * @param\t{function}\tcallback\n\t\t\t * @return\t{void}\t\tAnimates an object\n\t\t\t */\n\t\t\tscroll: function ($object, type, speed, callback) {\n\t\t\t\tvar isInTransition = type === 'in',\n\t\t\t\t\ttransition = isInTransition ? _self.settings.transitionIn : _self.settings.transitionOut,\n\t\t\t\t\tdirection = 'left',\n\t\t\t\t\tstartTransition = {},\n\t\t\t\t\tstartOpacity = isInTransition ? 0 : 1,\n\t\t\t\t\tstartOffset = isInTransition ? '-50%' : '50%',\n\t\t\t\t\tendTransition = {},\n\t\t\t\t\tendOpacity = isInTransition ? 1 : 0,\n\t\t\t\t\tendOffset = isInTransition ? '50%' : '-50%';\n\n\t\t\t\tif (!_self.isOpen && isInTransition) return;\n\n\t\t\t\tswitch (transition) {\n\t\t\t\t\tcase 'scrollTop':\n\t\t\t\t\t\tdirection = 'top';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'scrollRight':\n\t\t\t\t\t\tstartOffset = isInTransition ? '150%' : '50%';\n\t\t\t\t\t\tendOffset = isInTransition ? '50%' : '150%';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'scrollBottom':\n\t\t\t\t\t\tdirection = 'top';\n\t\t\t\t\t\tstartOffset = isInTransition ? '150%' : '50%';\n\t\t\t\t\t\tendOffset = isInTransition ? '50%' : '150%';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'scrollHorizontal':\n\t\t\t\t\t\tstartOffset = isInTransition ? '150%' : '50%';\n\t\t\t\t\t\tendOffset = isInTransition ? '50%' : '-50%';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'scrollVertical':\n\t\t\t\t\t\tdirection = 'top';\n\t\t\t\t\t\tstartOffset = isInTransition ? '-50%' : '50%';\n\t\t\t\t\t\tendOffset = isInTransition ? '50%' : '150%';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif (_self.cache.action === 'prev') {\n\t\t\t\t\tswitch (transition) {\n\t\t\t\t\t\tcase 'scrollHorizontal':\n\t\t\t\t\t\t\tstartOffset = isInTransition ? '-50%' : '50%';\n\t\t\t\t\t\t\tendOffset = isInTransition ? '50%' : '150%';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'scrollVertical':\n\t\t\t\t\t\t\tstartOffset = isInTransition ? '150%' : '50%';\n\t\t\t\t\t\t\tendOffset = isInTransition ? '50%' : '-50%';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tstartTransition['opacity'] = startOpacity;\n\t\t\t\tstartTransition[direction] = startOffset;\n\n\t\t\t\tendTransition['opacity'] = endOpacity;\n\t\t\t\tendTransition[direction] = endOffset;\n\n\t\t\t\t$object.css(_self.support.transition + 'transition', 'none');\n\t\t\t\t$object.css(startTransition).show();\n\n\t\t\t\t// Css transition\n\t\t\t\tif (_self.support.transitions) {\n\t\t\t\t\tendTransition[_self.support.transition + 'transition'] = speed + 'ms ease';\n\n\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t$object.css(endTransition);\n\n\t\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t\t$object.css(_self.support.transition + 'transition', '');\n\n\t\t\t\t\t\t\tif (callback && (_self.isOpen || !isInTransition)) {\n\t\t\t\t\t\t\t\tcallback();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, speed);\n\t\t\t\t\t}, 15);\n\t\t\t\t} else {\n\t\t\t\t\t// Fallback to js transition\n\t\t\t\t\t$object.stop();\n\t\t\t\t\t$object.animate(endTransition, speed, callback);\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Zooms in/out the object\n\t\t\t *\n\t\t\t * @param\t{object}\t$object\n\t\t\t * @param\t{string}\ttype\n\t\t\t * @param\t{number}\tspeed\n\t\t\t * @param\t{function}\tcallback\n\t\t\t * @return\t{void}\t\tAnimates an object\n\t\t\t */\n\t\t\tzoom: function ($object, type, speed, callback) {\n\t\t\t\tvar isInTransition = type === 'in',\n\t\t\t\t\tstartTransition = {},\n\t\t\t\t\tstartOpacity = $object.css('opacity'),\n\t\t\t\t\tstartScale = isInTransition ? 'scale(0.75)' : 'scale(1)',\n\t\t\t\t\tendTransition = {},\n\t\t\t\t\tendOpacity = isInTransition ? 1 : 0,\n\t\t\t\t\tendScale = isInTransition ? 'scale(1)' : 'scale(0.75)';\n\n\t\t\t\tif (!_self.isOpen && isInTransition) return;\n\n\t\t\t\tstartTransition['opacity'] = startOpacity;\n\t\t\t\tstartTransition[_self.support.transition + 'transform'] = startScale;\n\n\t\t\t\tendTransition['opacity'] = endOpacity;\n\n\t\t\t\t$object.css(_self.support.transition + 'transition', 'none');\n\t\t\t\t$object.css(startTransition).show();\n\n\t\t\t\t// Css transition\n\t\t\t\tif (_self.support.transitions) {\n\t\t\t\t\tendTransition[_self.support.transition + 'transform'] = endScale;\n\t\t\t\t\tendTransition[_self.support.transition + 'transition'] = speed + 'ms ease';\n\n\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t$object.css(endTransition);\n\n\t\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t\t$object.css(_self.support.transition + 'transform', '');\n\t\t\t\t\t\t\t$object.css(_self.support.transition + 'transition', '');\n\n\t\t\t\t\t\t\tif (callback && (_self.isOpen || !isInTransition)) {\n\t\t\t\t\t\t\t\tcallback();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, speed);\n\t\t\t\t\t}, 15);\n\t\t\t\t} else {\n\t\t\t\t\t// Fallback to js transition\n\t\t\t\t\t$object.stop();\n\t\t\t\t\t$object.animate(endTransition, speed, callback);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Calls all the registered functions of a specific hook\n\t\t *\n\t\t * @param\t{object}\thooks\n\t\t * @return\t{void}\n\t\t */\n\t\t_callHooks: function (hooks) {\n\t\t\tif (typeof(hooks) === 'object') {\n\t\t\t\t$.each(hooks, function(index, hook) {\n\t\t\t\t\tif (typeof(hook) === 'function') {\n\t\t\t\t\t\thook.call(_self.origin);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Caches the object data\n\t\t *\n\t\t * @param\t{object}\t$object\n\t\t * @return\t{void}\n\t\t */\n\t\t_cacheObjectData: function ($object) {\n\t\t\t$.data($object, 'cache', {\n\t\t\t\tid: $object.attr('id'),\n\t\t\t\tcontent: $object.html()\n\t\t\t});\n\n\t\t\t_self.cache.originalObject = $object;\n\t\t},\n\n\t\t/**\n\t\t * Restores the object from cache\n\t\t *\n\t\t * @return\tvoid\n\t\t */\n\t\t_restoreObject: function () {\n\t\t\tvar $object = $('[id^=\"' + _self.settings.idPrefix + 'temp-\"]');\n\n\t\t\t$object.attr('id', $.data(_self.cache.originalObject, 'cache').id);\n\t\t\t$object.html($.data(_self.cache.originalObject, 'cache').content);\n\t\t},\n\n\t\t/**\n\t\t * Executes functions for a window resize.\n\t\t * It stops an eventual timeout and recalculates dimensions.\n\t\t *\n\t\t * @param\t{object}\tdimensions\n\t\t * @return\t{void}\n\t\t */\n\t\tresize: function (event, dimensions) {\n\t\t\tif (!_self.isOpen) return;\n\n\t\t\tif (_self.isSlideshowEnabled()) {\n\t\t\t\t_self._stopTimeout();\n\t\t\t}\n\n\t\t\tif (typeof dimensions === 'object' && dimensions !== null) {\n\t\t\t\tif (dimensions.width) {\n\t\t\t\t\t_self.cache.object.attr(\n\t\t\t\t\t\t_self._prefixAttributeName('width'),\n\t\t\t\t\t\tdimensions.width\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tif (dimensions.maxWidth) {\n\t\t\t\t\t_self.cache.object.attr(\n\t\t\t\t\t\t_self._prefixAttributeName('max-width'),\n\t\t\t\t\t\tdimensions.maxWidth\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tif (dimensions.height) {\n\t\t\t\t\t_self.cache.object.attr(\n\t\t\t\t\t\t_self._prefixAttributeName('height'),\n\t\t\t\t\t\tdimensions.height\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tif (dimensions.maxHeight) {\n\t\t\t\t\t_self.cache.object.attr(\n\t\t\t\t\t\t_self._prefixAttributeName('max-height'),\n\t\t\t\t\t\tdimensions.maxHeight\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t_self.dimensions = _self.getViewportDimensions();\n\t\t\t_self._calculateDimensions(_self.cache.object);\n\n\t\t\t// Call onResize hook functions\n\t\t\t_self._callHooks(_self.settings.onResize);\n\t\t},\n\n\t\t/**\n\t\t * Watches for any resize interaction and caches the new sizes.\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_watchResizeInteraction: function () {\n\t\t\t$(window).resize(_self.resize);\n\t\t},\n\n\t\t/**\n\t\t * Stop watching any resize interaction related to _self.\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_unwatchResizeInteraction: function () {\n\t\t\t$(window).off('resize', _self.resize);\n\t\t},\n\n\t\t/**\n\t\t * Switches to the fullscreen mode\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_switchToFullScreenMode: function () {\n\t\t\t_self.settings.shrinkFactor = 1;\n\t\t\t_self.settings.overlayOpacity = 1;\n\n\t\t\t$('html').addClass(_self.settings.classPrefix + 'fullScreenMode');\n\t\t},\n\n\t\t/**\n\t\t * Enters into the lightcase view\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_open: function () {\n\t\t\t_self.isOpen = true;\n\n\t\t\t_self.support.transitions = _self.settings.cssTransitions ? _self.isTransitionSupported() : false;\n\t\t\t_self.support.mobileDevice = _self.isMobileDevice();\n\n\t\t\tif (_self.support.mobileDevice) {\n\t\t\t\t$('html').addClass(_self.settings.classPrefix + 'isMobileDevice');\n\n\t\t\t\tif (_self.settings.fullScreenModeForMobile) {\n\t\t\t\t\t_self._switchToFullScreenMode();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!_self.settings.transitionIn) {\n\t\t\t\t_self.settings.transitionIn = _self.settings.transition;\n\t\t\t}\n\t\t\tif (!_self.settings.transitionOut) {\n\t\t\t\t_self.settings.transitionOut = _self.settings.transition;\n\t\t\t}\n\n\t\t\tswitch (_self.transition.in()) {\n\t\t\t\tcase 'fade':\n\t\t\t\tcase 'fadeInline':\n\t\t\t\tcase 'elastic':\n\t\t\t\tcase 'scrollTop':\n\t\t\t\tcase 'scrollRight':\n\t\t\t\tcase 'scrollBottom':\n\t\t\t\tcase 'scrollLeft':\n\t\t\t\tcase 'scrollVertical':\n\t\t\t\tcase 'scrollHorizontal':\n\t\t\t\t\tif (_self.objects.case.is(':hidden')) {\n\t\t\t\t\t\t_self.objects.close.css('opacity', 0);\n\t\t\t\t\t\t_self.objects.overlay.css('opacity', 0);\n\t\t\t\t\t\t_self.objects.case.css('opacity', 0);\n\t\t\t\t\t\t_self.objects.contentInner.css('opacity', 0);\n\t\t\t\t\t}\n\t\t\t\t\t_self.transition.fade(_self.objects.overlay, 'in', _self.settings.speedIn, _self.settings.overlayOpacity, function () {\n\t\t\t\t\t\t_self.transition.fade(_self.objects.close, 'in', _self.settings.speedIn);\n\t\t\t\t\t\t_self._handleEvents();\n\t\t\t\t\t\t_self._processContent();\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t_self.transition.fade(_self.objects.overlay, 'in', 0, _self.settings.overlayOpacity, function () {\n\t\t\t\t\t\t_self.transition.fade(_self.objects.close, 'in', 0);\n\t\t\t\t\t\t_self._handleEvents();\n\t\t\t\t\t\t_self._processContent();\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t_self.objects.document.addClass(_self.settings.classPrefix + 'open');\n\t\t\t_self.objects.case.attr('aria-hidden', 'false');\n\t\t},\n\n\t\t/**\n\t\t * Shows the lightcase by starting the transition\n\t\t */\n\t\tshow: function () {\n\t\t\t// Call onCalculateDimensions hook functions\n\t\t\t_self._callHooks(_self.settings.onBeforeCalculateDimensions);\n\n\t\t\t_self._calculateDimensions(_self.cache.object);\n\n\t\t\t// Call onAfterCalculateDimensions hook functions\n\t\t\t_self._callHooks(_self.settings.onAfterCalculateDimensions);\n\n\t\t\t_self._startInTransition();\n\t\t},\n\n\t\t/**\n\t\t * Escapes from the lightcase view\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\tclose: function () {\n\t\t\t_self.isOpen = false;\n\n\t\t\tif (_self.isSlideshowEnabled()) {\n\t\t\t\t_self._stopTimeout();\n\t\t\t\t_self.isSlideshowStarted = false;\n\t\t\t\t_self.objects.nav.removeClass(_self.settings.classPrefix + 'paused');\n\t\t\t}\n\n\t\t\t_self.objects.loading.hide();\n\n\t\t\t_self._unbindEvents();\n\n\t\t\t_self._unwatchResizeInteraction();\n\n\t\t\t$('html').removeClass(_self.settings.classPrefix + 'open');\n\t\t\t_self.objects.case.attr('aria-hidden', 'true');\n\n\t\t\t_self.objects.nav.children().hide();\n\t\t\t_self.objects.close.hide();\n\n\t\t\t// Call onClose hook functions\n\t\t\t_self._callHooks(_self.settings.onClose);\n\n\t\t\t// Fade out the info at first\n\t\t\t_self.transition.fade(_self.objects.info, 'out', 0);\n\n\t\t\tswitch (_self.settings.transitionClose || _self.settings.transitionOut) {\n\t\t\t\tcase 'fade':\n\t\t\t\tcase 'fadeInline':\n\t\t\t\tcase 'scrollTop':\n\t\t\t\tcase 'scrollRight':\n\t\t\t\tcase 'scrollBottom':\n\t\t\t\tcase 'scrollLeft':\n\t\t\t\tcase 'scrollHorizontal':\n\t\t\t\tcase 'scrollVertical':\n\t\t\t\t\t_self.transition.fade(_self.objects.case, 'out', _self.settings.speedOut, 0, function () {\n\t\t\t\t\t\t_self.transition.fade(_self.objects.overlay, 'out', _self.settings.speedOut, 0, function () {\n\t\t\t\t\t\t\t_self.cleanup();\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'elastic':\n\t\t\t\t\t_self.transition.zoom(_self.objects.case, 'out', _self.settings.speedOut, function () {\n\t\t\t\t\t\t_self.transition.fade(_self.objects.overlay, 'out', _self.settings.speedOut, 0, function () {\n\t\t\t\t\t\t\t_self.cleanup();\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t_self.cleanup();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Unbinds all given events\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_unbindEvents: function () {\n\t\t\t// Unbind overlay event\n\t\t\t_self.objects.overlay.unbind('click');\n\n\t\t\t// Unbind key events\n\t\t\t$(document).unbind('keyup.lightcase');\n\n\t\t\t// Unbind swipe events\n\t\t\t_self.objects.case.unbind('swipeleft').unbind('swiperight');\n\n\t\t\t// Unbind navigator events\n\t\t\t_self.objects.prev.unbind('click');\n\t\t\t_self.objects.next.unbind('click');\n\t\t\t_self.objects.play.unbind('click');\n\t\t\t_self.objects.pause.unbind('click');\n\n\t\t\t// Unbind close event\n\t\t\t_self.objects.close.unbind('click');\n\t\t},\n\n\t\t/**\n\t\t * Cleans up the dimensions\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_cleanupDimensions: function () {\n\t\t\tvar opacity = _self.objects.contentInner.css('opacity');\n\n\t\t\t_self.objects.case.css({\n\t\t\t\t'width': '',\n\t\t\t\t'height': '',\n\t\t\t\t'top': '',\n\t\t\t\t'left': '',\n\t\t\t\t'margin-top': '',\n\t\t\t\t'margin-left': ''\n\t\t\t});\n\n\t\t\t_self.objects.contentInner.removeAttr('style').css('opacity', opacity);\n\t\t\t_self.objects.contentInner.children().removeAttr('style');\n\t\t},\n\n\t\t/**\n\t\t * Cleanup after aborting lightcase\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\tcleanup: function () {\n\t\t\t_self._cleanupDimensions();\n\n\t\t\t_self.objects.loading.hide();\n\t\t\t_self.objects.overlay.hide();\n\t\t\t_self.objects.case.hide();\n\t\t\t_self.objects.prev.hide();\n\t\t\t_self.objects.next.hide();\n\t\t\t_self.objects.play.hide();\n\t\t\t_self.objects.pause.hide();\n\n\t\t\t_self.objects.document.removeAttr(_self._prefixAttributeName('type'));\n\t\t\t_self.objects.nav.removeAttr(_self._prefixAttributeName('ispartofsequence'));\n\n\t\t\t_self.objects.contentInner.empty().hide();\n\t\t\t_self.objects.info.children().empty();\n\n\t\t\tif (_self.cache.originalObject) {\n\t\t\t\t_self._restoreObject();\n\t\t\t}\n\n\t\t\t// Call onCleanup hook functions\n\t\t\t_self._callHooks(_self.settings.onCleanup);\n\n\t\t\t// Restore cache\n\t\t\t_self.cache = {};\n\t\t},\n\n\t\t/**\n\t\t * Returns the supported match media or undefined if the browser\n\t\t * doesn't support match media.\n\t\t *\n\t\t * @return\t{mixed}\n\t\t */\n\t\t_matchMedia: function () {\n\t\t\treturn window.matchMedia || window.msMatchMedia;\n\t\t},\n\n\t\t/**\n\t\t * Returns the devicePixelRatio if supported. Else, it simply returns\n\t\t * 1 as the default.\n\t\t *\n\t\t * @return\t{number}\n\t\t */\n\t\t_devicePixelRatio: function () {\n\t\t\treturn window.devicePixelRatio || 1;\n\t\t},\n\n\t\t/**\n\t\t * Checks if method is public\n\t\t *\n\t\t * @return\t{boolean}\n\t\t */\n\t\t_isPublicMethod: function (method) {\n\t\t\treturn (typeof _self[method] === 'function' && method.charAt(0) !== '_');\n\t\t},\n\n\t\t/**\n\t\t * Exports all public methods to be accessible, callable\n\t\t * from global scope.\n\t\t *\n\t\t * @return\t{void}\n\t\t */\n\t\t_export: function () {\n\t\t\twindow.lightcase = {};\n\n\t\t\t$.each(_self, function (property) {\n\t\t\t\tif (_self._isPublicMethod(property)) {\n\t\t\t\t\tlightcase[property] = _self[property];\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n\n\t_self._export();\n\n\t$.fn.lightcase = function (method) {\n\t\t// Method calling logic (only public methods are applied)\n\t\tif (_self._isPublicMethod(method)) {\n\t\t\treturn _self[method].apply(this, Array.prototype.slice.call(arguments, 1));\n\t\t} else if (typeof method === 'object' || !method) {\n\t\t\treturn _self.init.apply(this, arguments);\n\t\t} else {\n\t\t\t$.error('Method ' + method + ' does not exist on jQuery.lightcase');\n\t\t}\n\t};\n})(jQuery);\n","/*!\n * @preserve\n *\n * Readmore.js jQuery plugin\n * Author: @jed_foster\n * Project home: http://jedfoster.github.io/Readmore.js\n * Licensed under the MIT license\n *\n * Debounce function from http://davidwalsh.name/javascript-debounce-function\n */\n\n/* global jQuery */\n\n(function(factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD\n define(['jquery'], factory);\n } else if (typeof exports === 'object') {\n // CommonJS\n module.exports = factory(require('jquery'));\n } else {\n // Browser globals\n factory(jQuery);\n }\n}(function($) {\n 'use strict';\n\n var readmore = 'readmore',\n defaults = {\n speed: 100,\n collapsedHeight: 200,\n heightMargin: 16,\n moreLink: 'Read More',\n lessLink: 'Close',\n embedCSS: true,\n blockCSS: 'display: block; width: 100%;',\n startOpen: false,\n\n // callbacks\n blockProcessed: function() {},\n beforeToggle: function() {},\n afterToggle: function() {}\n },\n cssEmbedded = {},\n uniqueIdCounter = 0;\n\n function debounce(func, wait, immediate) {\n var timeout;\n\n return function() {\n var context = this, args = arguments;\n var later = function() {\n timeout = null;\n if (! immediate) {\n func.apply(context, args);\n }\n };\n var callNow = immediate && !timeout;\n\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n\n if (callNow) {\n func.apply(context, args);\n }\n };\n }\n\n function uniqueId(prefix) {\n var id = ++uniqueIdCounter;\n\n return String(prefix === null ? 'rmjs-' : prefix) + id;\n }\n\n function setBoxHeights(element) {\n var el = element.clone().css({\n height: 'auto',\n width: element.width(),\n maxHeight: 'none',\n overflow: 'hidden'\n }).insertAfter(element),\n expandedHeight = el.outerHeight(),\n cssMaxHeight = parseInt(el.css({maxHeight: ''}).css('max-height').replace(/[^-\\d\\.]/g, ''), 10),\n defaultHeight = element.data('defaultHeight');\n\n el.remove();\n\n var collapsedHeight = cssMaxHeight || element.data('collapsedHeight') || defaultHeight;\n\n // Store our measurements.\n element.data({\n expandedHeight: expandedHeight,\n maxHeight: cssMaxHeight,\n collapsedHeight: collapsedHeight\n })\n // and disable any `max-height` property set in CSS\n .css({\n maxHeight: 'none'\n });\n }\n\n var resizeBoxes = debounce(function() {\n $('[data-readmore]').each(function() {\n var current = $(this),\n isExpanded = (current.attr('aria-expanded') === 'true');\n\n setBoxHeights(current);\n\n current.css({\n height: current.data( (isExpanded ? 'expandedHeight' : 'collapsedHeight') )\n });\n });\n }, 100);\n\n function embedCSS(options) {\n if (! cssEmbedded[options.selector]) {\n var styles = ' ';\n\n if (options.embedCSS && options.blockCSS !== '') {\n styles += options.selector + ' + [data-readmore-toggle], ' +\n options.selector + '[data-readmore]{' +\n options.blockCSS +\n '}';\n }\n\n // Include the transition CSS even if embedCSS is false\n styles += options.selector + '[data-readmore]{' +\n 'transition: height ' + options.speed + 'ms;' +\n 'overflow: hidden;' +\n '}';\n\n (function(d, u) {\n var css = d.createElement('style');\n css.type = 'text/css';\n\n if (css.styleSheet) {\n css.styleSheet.cssText = u;\n }\n else {\n css.appendChild(d.createTextNode(u));\n }\n\n d.getElementsByTagName('head')[0].appendChild(css);\n }(document, styles));\n\n cssEmbedded[options.selector] = true;\n }\n }\n\n function Readmore(element, options) {\n this.element = element;\n\n this.options = $.extend({}, defaults, options);\n\n embedCSS(this.options);\n\n this._defaults = defaults;\n this._name = readmore;\n\n this.init();\n\n // IE8 chokes on `window.addEventListener`, so need to test for support.\n if (window.addEventListener) {\n // Need to resize boxes when the page has fully loaded.\n window.addEventListener('load', resizeBoxes);\n window.addEventListener('resize', resizeBoxes);\n }\n else {\n window.attachEvent('load', resizeBoxes);\n window.attachEvent('resize', resizeBoxes);\n }\n }\n\n\n Readmore.prototype = {\n init: function() {\n var current = $(this.element);\n\n current.data({\n defaultHeight: this.options.collapsedHeight,\n heightMargin: this.options.heightMargin\n });\n\n setBoxHeights(current);\n\n var collapsedHeight = current.data('collapsedHeight'),\n heightMargin = current.data('heightMargin');\n\n if (current.outerHeight(true) <= collapsedHeight + heightMargin) {\n // The block is shorter than the limit, so there's no need to truncate it.\n if (this.options.blockProcessed && typeof this.options.blockProcessed === 'function') {\n this.options.blockProcessed(current, false);\n }\n return true;\n }\n else {\n var id = current.attr('id') || uniqueId(),\n useLink = this.options.startOpen ? this.options.lessLink : this.options.moreLink;\n\n current.attr({\n 'data-readmore': '',\n 'aria-expanded': this.options.startOpen,\n 'id': id\n });\n\n current.after($(useLink)\n .on('click', (function(_this) {\n return function(event) {\n _this.toggle(this, current[0], event);\n };\n })(this))\n .attr({\n 'data-readmore-toggle': id,\n 'aria-controls': id\n }));\n\n if (! this.options.startOpen) {\n current.css({\n height: collapsedHeight\n });\n }\n\n if (this.options.blockProcessed && typeof this.options.blockProcessed === 'function') {\n this.options.blockProcessed(current, true);\n }\n }\n },\n\n toggle: function(trigger, element, event) {\n if (event) {\n event.preventDefault();\n }\n\n if (! trigger) {\n trigger = $('[aria-controls=\"' + this.element.id + '\"]')[0];\n }\n\n if (! element) {\n element = this.element;\n }\n\n var $element = $(element),\n newHeight = '',\n newLink = '',\n expanded = false,\n collapsedHeight = $element.data('collapsedHeight');\n\n if ($element.height() <= collapsedHeight) {\n newHeight = $element.data('expandedHeight') + 'px';\n newLink = 'lessLink';\n expanded = true;\n }\n else {\n newHeight = collapsedHeight;\n newLink = 'moreLink';\n }\n\n // Fire beforeToggle callback\n // Since we determined the new \"expanded\" state above we're now out of sync\n // with our true current state, so we need to flip the value of `expanded`\n if (this.options.beforeToggle && typeof this.options.beforeToggle === 'function') {\n this.options.beforeToggle(trigger, $element, ! expanded);\n }\n\n $element.css({'height': newHeight});\n\n // Fire afterToggle callback\n $element.on('transitionend', (function(_this) {\n return function() {\n if (_this.options.afterToggle && typeof _this.options.afterToggle === 'function') {\n _this.options.afterToggle(trigger, $element, expanded);\n }\n\n $(this).attr({\n 'aria-expanded': expanded\n }).off('transitionend');\n };\n })(this));\n\n $(trigger).replaceWith($(this.options[newLink])\n .on('click', (function(_this) {\n return function(event) {\n _this.toggle(this, element, event);\n };\n })(this))\n .attr({\n 'data-readmore-toggle': $element.attr('id'),\n 'aria-controls': $element.attr('id')\n }));\n },\n\n destroy: function() {\n $(this.element).each(function() {\n var current = $(this);\n\n current.attr({\n 'data-readmore': null,\n 'aria-expanded': null\n })\n .css({\n maxHeight: '',\n height: ''\n })\n .next('[data-readmore-toggle]')\n .remove();\n\n current.removeData();\n });\n }\n };\n\n\n $.fn.readmore = function(options) {\n var args = arguments,\n selector = this.selector;\n\n options = options || {};\n\n if (typeof options === 'object') {\n return this.each(function() {\n if ($.data(this, 'plugin_' + readmore)) {\n var instance = $.data(this, 'plugin_' + readmore);\n instance.destroy.apply(instance);\n }\n\n options.selector = selector;\n\n $.data(this, 'plugin_' + readmore, new Readmore(this, options));\n });\n }\n else if (typeof options === 'string' && options[0] !== '_' && options !== 'init') {\n return this.each(function () {\n var instance = $.data(this, 'plugin_' + readmore);\n if (instance instanceof Readmore && typeof instance[options] === 'function') {\n instance[options].apply(instance, Array.prototype.slice.call(args, 1));\n }\n });\n }\n };\n\n}));\n\n","/*\n _ _ _ _\n ___| (_) ___| | __ (_)___\n/ __| | |/ __| |/ / | / __|\n\\__ \\ | | (__| < _ | \\__ \\\n|___/_|_|\\___|_|\\_(_)/ |___/\n |__/\n\n Version: 1.8.1\n Author: Ken Wheeler\n Website: http://kenwheeler.github.io\n Docs: http://kenwheeler.github.io/slick\n Repo: http://github.com/kenwheeler/slick\n Issues: http://github.com/kenwheeler/slick/issues\n\n */\n/* global window, document, define, jQuery, setInterval, clearInterval */\n;(function(factory) {\n 'use strict';\n if (typeof define === 'function' && define.amd) {\n define(['jquery'], factory);\n } else if (typeof exports !== 'undefined') {\n module.exports = factory(require('jquery'));\n } else {\n factory(jQuery);\n }\n\n}(function($) {\n 'use strict';\n var Slick = window.Slick || {};\n\n Slick = (function() {\n\n var instanceUid = 0;\n\n function Slick(element, settings) {\n\n var _ = this, dataSettings;\n\n _.defaults = {\n accessibility: true,\n adaptiveHeight: false,\n appendArrows: $(element),\n appendDots: $(element),\n arrows: true,\n asNavFor: null,\n prevArrow: '',\n nextArrow: '',\n autoplay: false,\n autoplaySpeed: 3000,\n centerMode: false,\n centerPadding: '50px',\n cssEase: 'ease',\n customPaging: function(slider, i) {\n return $('').text(i + 1);\n },\n dots: false,\n dotsClass: 'slick-dots',\n draggable: true,\n easing: 'linear',\n edgeFriction: 0.35,\n fade: false,\n focusOnSelect: false,\n focusOnChange: false,\n infinite: true,\n initialSlide: 0,\n lazyLoad: 'ondemand',\n mobileFirst: false,\n pauseOnHover: true,\n pauseOnFocus: true,\n pauseOnDotsHover: false,\n respondTo: 'window',\n responsive: null,\n rows: 1,\n rtl: false,\n slide: '',\n slidesPerRow: 1,\n slidesToShow: 1,\n slidesToScroll: 1,\n speed: 500,\n swipe: true,\n swipeToSlide: false,\n touchMove: true,\n touchThreshold: 5,\n useCSS: true,\n useTransform: true,\n variableWidth: false,\n vertical: false,\n verticalSwiping: false,\n waitForAnimate: true,\n zIndex: 1000\n };\n\n _.initials = {\n animating: false,\n dragging: false,\n autoPlayTimer: null,\n currentDirection: 0,\n currentLeft: null,\n currentSlide: 0,\n direction: 1,\n $dots: null,\n listWidth: null,\n listHeight: null,\n loadIndex: 0,\n $nextArrow: null,\n $prevArrow: null,\n scrolling: false,\n slideCount: null,\n slideWidth: null,\n $slideTrack: null,\n $slides: null,\n sliding: false,\n slideOffset: 0,\n swipeLeft: null,\n swiping: false,\n $list: null,\n touchObject: {},\n transformsEnabled: false,\n unslicked: false\n };\n\n $.extend(_, _.initials);\n\n _.activeBreakpoint = null;\n _.animType = null;\n _.animProp = null;\n _.breakpoints = [];\n _.breakpointSettings = [];\n _.cssTransitions = false;\n _.focussed = false;\n _.interrupted = false;\n _.hidden = 'hidden';\n _.paused = true;\n _.positionProp = null;\n _.respondTo = null;\n _.rowCount = 1;\n _.shouldClick = true;\n _.$slider = $(element);\n _.$slidesCache = null;\n _.transformType = null;\n _.transitionType = null;\n _.visibilityChange = 'visibilitychange';\n _.windowWidth = 0;\n _.windowTimer = null;\n\n dataSettings = $(element).data('slick') || {};\n\n _.options = $.extend({}, _.defaults, settings, dataSettings);\n\n _.currentSlide = _.options.initialSlide;\n\n _.originalSettings = _.options;\n\n if (typeof document.mozHidden !== 'undefined') {\n _.hidden = 'mozHidden';\n _.visibilityChange = 'mozvisibilitychange';\n } else if (typeof document.webkitHidden !== 'undefined') {\n _.hidden = 'webkitHidden';\n _.visibilityChange = 'webkitvisibilitychange';\n }\n\n _.autoPlay = $.proxy(_.autoPlay, _);\n _.autoPlayClear = $.proxy(_.autoPlayClear, _);\n _.autoPlayIterator = $.proxy(_.autoPlayIterator, _);\n _.changeSlide = $.proxy(_.changeSlide, _);\n _.clickHandler = $.proxy(_.clickHandler, _);\n _.selectHandler = $.proxy(_.selectHandler, _);\n _.setPosition = $.proxy(_.setPosition, _);\n _.swipeHandler = $.proxy(_.swipeHandler, _);\n _.dragHandler = $.proxy(_.dragHandler, _);\n _.keyHandler = $.proxy(_.keyHandler, _);\n\n _.instanceUid = instanceUid++;\n\n // A simple way to check for HTML strings\n // Strict HTML recognition (must start with <)\n // Extracted from jQuery v1.11 source\n _.htmlExpr = /^(?:\\s*(<[\\w\\W]+>)[^>]*)$/;\n\n\n _.registerBreakpoints();\n _.init(true);\n\n }\n\n return Slick;\n\n }());\n\n Slick.prototype.activateADA = function() {\n var _ = this;\n\n _.$slideTrack.find('.slick-active').attr({\n 'aria-hidden': 'false'\n }).find('a, input, button, select').attr({\n 'tabindex': '0'\n });\n\n };\n\n Slick.prototype.addSlide = Slick.prototype.slickAdd = function(markup, index, addBefore) {\n\n var _ = this;\n\n if (typeof(index) === 'boolean') {\n addBefore = index;\n index = null;\n } else if (index < 0 || (index >= _.slideCount)) {\n return false;\n }\n\n _.unload();\n\n if (typeof(index) === 'number') {\n if (index === 0 && _.$slides.length === 0) {\n $(markup).appendTo(_.$slideTrack);\n } else if (addBefore) {\n $(markup).insertBefore(_.$slides.eq(index));\n } else {\n $(markup).insertAfter(_.$slides.eq(index));\n }\n } else {\n if (addBefore === true) {\n $(markup).prependTo(_.$slideTrack);\n } else {\n $(markup).appendTo(_.$slideTrack);\n }\n }\n\n _.$slides = _.$slideTrack.children(this.options.slide);\n\n _.$slideTrack.children(this.options.slide).detach();\n\n _.$slideTrack.append(_.$slides);\n\n _.$slides.each(function(index, element) {\n $(element).attr('data-slick-index', index);\n });\n\n _.$slidesCache = _.$slides;\n\n _.reinit();\n\n };\n\n Slick.prototype.animateHeight = function() {\n var _ = this;\n if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {\n var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);\n _.$list.animate({\n height: targetHeight\n }, _.options.speed);\n }\n };\n\n Slick.prototype.animateSlide = function(targetLeft, callback) {\n\n var animProps = {},\n _ = this;\n\n _.animateHeight();\n\n if (_.options.rtl === true && _.options.vertical === false) {\n targetLeft = -targetLeft;\n }\n if (_.transformsEnabled === false) {\n if (_.options.vertical === false) {\n _.$slideTrack.animate({\n left: targetLeft\n }, _.options.speed, _.options.easing, callback);\n } else {\n _.$slideTrack.animate({\n top: targetLeft\n }, _.options.speed, _.options.easing, callback);\n }\n\n } else {\n\n if (_.cssTransitions === false) {\n if (_.options.rtl === true) {\n _.currentLeft = -(_.currentLeft);\n }\n $({\n animStart: _.currentLeft\n }).animate({\n animStart: targetLeft\n }, {\n duration: _.options.speed,\n easing: _.options.easing,\n step: function(now) {\n now = Math.ceil(now);\n if (_.options.vertical === false) {\n animProps[_.animType] = 'translate(' +\n now + 'px, 0px)';\n _.$slideTrack.css(animProps);\n } else {\n animProps[_.animType] = 'translate(0px,' +\n now + 'px)';\n _.$slideTrack.css(animProps);\n }\n },\n complete: function() {\n if (callback) {\n callback.call();\n }\n }\n });\n\n } else {\n\n _.applyTransition();\n targetLeft = Math.ceil(targetLeft);\n\n if (_.options.vertical === false) {\n animProps[_.animType] = 'translate3d(' + targetLeft + 'px, 0px, 0px)';\n } else {\n animProps[_.animType] = 'translate3d(0px,' + targetLeft + 'px, 0px)';\n }\n _.$slideTrack.css(animProps);\n\n if (callback) {\n setTimeout(function() {\n\n _.disableTransition();\n\n callback.call();\n }, _.options.speed);\n }\n\n }\n\n }\n\n };\n\n Slick.prototype.getNavTarget = function() {\n\n var _ = this,\n asNavFor = _.options.asNavFor;\n\n if ( asNavFor && asNavFor !== null ) {\n asNavFor = $(asNavFor).not(_.$slider);\n }\n\n return asNavFor;\n\n };\n\n Slick.prototype.asNavFor = function(index) {\n\n var _ = this,\n asNavFor = _.getNavTarget();\n\n if ( asNavFor !== null && typeof asNavFor === 'object' ) {\n asNavFor.each(function() {\n var target = $(this).slick('getSlick');\n if(!target.unslicked) {\n target.slideHandler(index, true);\n }\n });\n }\n\n };\n\n Slick.prototype.applyTransition = function(slide) {\n\n var _ = this,\n transition = {};\n\n if (_.options.fade === false) {\n transition[_.transitionType] = _.transformType + ' ' + _.options.speed + 'ms ' + _.options.cssEase;\n } else {\n transition[_.transitionType] = 'opacity ' + _.options.speed + 'ms ' + _.options.cssEase;\n }\n\n if (_.options.fade === false) {\n _.$slideTrack.css(transition);\n } else {\n _.$slides.eq(slide).css(transition);\n }\n\n };\n\n Slick.prototype.autoPlay = function() {\n\n var _ = this;\n\n _.autoPlayClear();\n\n if ( _.slideCount > _.options.slidesToShow ) {\n _.autoPlayTimer = setInterval( _.autoPlayIterator, _.options.autoplaySpeed );\n }\n\n };\n\n Slick.prototype.autoPlayClear = function() {\n\n var _ = this;\n\n if (_.autoPlayTimer) {\n clearInterval(_.autoPlayTimer);\n }\n\n };\n\n Slick.prototype.autoPlayIterator = function() {\n\n var _ = this,\n slideTo = _.currentSlide + _.options.slidesToScroll;\n\n if ( !_.paused && !_.interrupted && !_.focussed ) {\n\n if ( _.options.infinite === false ) {\n\n if ( _.direction === 1 && ( _.currentSlide + 1 ) === ( _.slideCount - 1 )) {\n _.direction = 0;\n }\n\n else if ( _.direction === 0 ) {\n\n slideTo = _.currentSlide - _.options.slidesToScroll;\n\n if ( _.currentSlide - 1 === 0 ) {\n _.direction = 1;\n }\n\n }\n\n }\n\n _.slideHandler( slideTo );\n\n }\n\n };\n\n Slick.prototype.buildArrows = function() {\n\n var _ = this;\n\n if (_.options.arrows === true ) {\n\n _.$prevArrow = $(_.options.prevArrow).addClass('slick-arrow');\n _.$nextArrow = $(_.options.nextArrow).addClass('slick-arrow');\n\n if( _.slideCount > _.options.slidesToShow ) {\n\n _.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');\n _.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');\n\n if (_.htmlExpr.test(_.options.prevArrow)) {\n _.$prevArrow.prependTo(_.options.appendArrows);\n }\n\n if (_.htmlExpr.test(_.options.nextArrow)) {\n _.$nextArrow.appendTo(_.options.appendArrows);\n }\n\n if (_.options.infinite !== true) {\n _.$prevArrow\n .addClass('slick-disabled')\n .attr('aria-disabled', 'true');\n }\n\n } else {\n\n _.$prevArrow.add( _.$nextArrow )\n\n .addClass('slick-hidden')\n .attr({\n 'aria-disabled': 'true',\n 'tabindex': '-1'\n });\n\n }\n\n }\n\n };\n\n Slick.prototype.buildDots = function() {\n\n var _ = this,\n i, dot;\n\n if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {\n\n _.$slider.addClass('slick-dotted');\n\n dot = $('