!function(i){"use strict";i.ThreeSixty=function(e,r){var n,o=this,t=[];o.$el=i(e),o.el=e,o.$el.data("ThreeSixty",o),o.init=function(){(n=i.extend({},i.ThreeSixty.defaultOptions,r)).disableSpin&&(n.currentFrame=1,n.endFrame=1),o.initProgress(),o.loadImages()},o.resize=function(){},o.initProgress=function(){o.$el.css({width:n.width+"px",height:n.height+"px","background-image":"none !important"}),n.styles&&o.$el.css(n.styles),o.responsive(),o.$el.find(n.progress).css({marginTop:n.height/2-15+"px"}),o.$el.find(n.progress).fadeIn("slow"),o.$el.find(n.imgList).hide()},o.loadImages=function(){var e=document.createElement("li"),r=n.zeroBased?0:1,r=n.imgArray?n.imgArray[n.loadedImages]:n.domain+n.imagePath+n.filePrefix+o.zeroPad(n.loadedImages+r)+n.ext+(o.browser.isIE()?"?"+(new Date).getTime():""),r=i("").attr("src",r).addClass("previous-image").appendTo(e);t.push(r),o.$el.find(n.imgList).append(e),i(r).load(function(){o.imageLoaded()})},o.imageLoaded=function(){n.loadedImages+=1,i(n.progress+" span").text(Math.floor(n.loadedImages/n.totalFrames*100)+"%"),n.loadedImages>=n.totalFrames?(n.disableSpin&&t[0].removeClass("previous-image").addClass("current-image"),i(n.progress).fadeOut("slow",function(){i(this).hide(),o.showImages(),o.showNavigation()})):o.loadImages()},o.showImages=function(){o.$el.find(".txtC").fadeIn(),o.$el.find(n.imgList).fadeIn(),o.ready=!0,n.ready=!0,n.drag&&o.initEvents(),o.refresh(),o.initPlugins(),n.onReady(),setTimeout(function(){o.responsive()},50)},o.initPlugins=function(){i.each(n.plugins,function(e,r){if("function"!=typeof i[r])throw new Error(r+" not available.");i[r].call(o,o.$el,n)})},o.showNavigation=function(){var e,r,t,a;n.navigation&&!n.navigation_init&&(e=i("