Posted on Leave a comment

National Jute Board


0&&f.options.skinsfolder[f.options.skinsfolder.length-1]!=”/”){f.options.skinsfolder+=”/”}if(f.options.skinsfolder.charAt(0)!=”/”&&f.options.skinsfolder.substring(0,5)!=”http:”&&f.options.skinsfolder.substring(0,6)!=”https:”){f.options.skinsfolder=f.options.jsfolder+f.options.skinsfolder}var v;var u;var o=””;var r=f.options.freemark.split(“,”);for(v=0;v1){if(f.options.descriptioncss.charAt(0)==”{“){f.options.descriptioncss=f.options.descriptioncss.substring(1)}if(f.options.descriptioncss.charAt(f.options.descriptioncss.length-1)==”}”){f.options.descriptioncss=f.options.descriptioncss.substring(0,f.options.descriptioncss.length-1)}}f.options.errorcss=a.trim(f.options.errorcss);if(f.options.errorcss.length>1){if(f.options.errorcss.charAt(0)==”{“){f.options.errorcss=f.options.errorcss.substring(1)}if(f.options.errorcss.charAt(f.options.errorcss.length-1)==”}”){f.options.errorcss=f.options.errorcss.substring(0,f.options.errorcss.length-1)}}var l=”.html5-hide {display:none !important;} #carousel-html5-lightbox #html5-text {“+f.options.titlecss+”}”;l+=”#carousel-html5-lightbox .html5-description {“+f.options.descriptioncss+”}”;l+=”#carousel-html5-lightbox .html5-error {“+f.options.errorcss+”}”;if(f.options.navarrowsalwaysshowontouch||f.options.alwaysshownavarrows){l+=”#carousel-html5-lightbox .html5-prev-touch {left:0px;top:50%;margin-top:-16px;margin-left:-32px;} #carousel-html5-lightbox .html5-next-touch {right:0px;top:50%;margin-top:-16px;margin-right:-32px;}”;l+=”@media (max-width: “+f.options.navarrowsbottomscreenwidth+”px) { #carousel-html5-lightbox .html5-prev-touch {top:100%;left:0;margin:0;} #carousel-html5-lightbox .html5-next-touch {top:100%;right:0;margin:0;} }”}l+=”#carousel-html5-lightbox .html5-prev-fullscreen {display:block;} #carousel-html5-lightbox .html5-next-fullscreen {display:block;} #carousel-html5-lightbox .html5-prev-bottom-fullscreen {display:none;} #carousel-html5-lightbox .html5-next-bottom-fullscreen {display:none;}”;l+=”@media (max-width: “+f.options.navarrowsbottomscreenwidth+”px) {#carousel-html5-lightbox .html5-prev-fullscreen {display:none;} #carousel-html5-lightbox .html5-next-fullscreen {display:none;} #carousel-html5-lightbox .html5-prev-bottom-fullscreen {display:block;} #carousel-html5-lightbox .html5-next-bottom-fullscreen {display:block;} }”;if(f.options.titlestyle==”right”){l+=”#carousel-html5-lightbox #html5-elem-wrap {width:”+f.options.imagepercentage+”%;height:100%;} #carousel-html5-lightbox #html5-elem-data-box {min-height:100%;}”;l+=”@media (max-width: “+f.options.sidetobottomscreenwidth+”px) {#carousel-html5-lightbox #html5-elem-wrap {width:100%;height:auto;} #carousel-html5-lightbox #html5-elem-data-box {width:100%;height:auto;min-height:0;}}”}else{if(f.options.titlestyle==”left”){l+=”#carousel-html5-lightbox #html5-elem-wrap {height:100%;} #carousel-html5-lightbox #html5-elem-data-box {width:”+String(100-f.options.imagepercentage)+”%;min-height:100%;}”;l+=”@media (max-width: “+f.options.sidetobottomscreenwidth+”px) {#carousel-html5-lightbox #html5-elem-wrap {width:100%;height:auto;} #carousel-html5-lightbox #html5-elem-data-box {width:100%;height:auto;min-height:0;}}”}}a(“head”).append(“”+l+””);f.$lightbox=a(“]]>

The requested content cannot be loaded.
Please try again later.

“);f.$lightbox.css({position:f.options.supportCSSPositionFixed&&f.options.responsive&&!f.options.iequirksmode?”fixed”:”absolute”});f.$lightbox.appendTo(“body”);f.$lightboxBox=a(“#html5-lightbox-box”,f.$lightbox);f.$elem=a(“#html5-elem-box”,f.$lightbox);f.$elemWrap=a(“#html5-elem-wrap”,f.$lightbox);f.$loading=a(“#html5-loading”,f.$lightbox);f.$error=a(“#html5-error”,f.$lightbox);f.$image=a(“#html5-image”,f.$lightbox);var e=””;if(f.options.titlestyle==”left”){f.$elem.prepend(e)}else{f.$elem.append(e)}f.$elemData=a(“#html5-elem-data-box”,f.$lightbox);f.$text=a(“#html5-text”,f.$lightbox);if(f.options.borderradius>0){f.$elem.css({“border-radius”:f.options.borderradius+”px”,”-moz-border-radius”:f.options.borderradius+”px”,”-webkit-border-radius”:f.options.borderradius+”px”});if(f.options.titlestyle==”inside”){f.$elemWrap.css({“border-radius”:f.options.borderradius+”px”,”-moz-border-radius”:f.options.borderradius+”px”,”-webkit-border-radius”:f.options.borderradius+”px”})}else{if(f.options.titlestyle==”bottom”){f.$elemWrap.css({“border-top-left-radius”:f.options.borderradius+”px”,”-moz-top-left-border-radius”:f.options.borderradius+”px”,”-webkit-top-left-border-radius”:f.options.borderradius+”px”,”border-top-right-radius”:f.options.borderradius+”px”,”-moz-top-right-border-radius”:f.options.borderradius+”px”,”-webkit-top-right-border-radius”:f.options.borderradius+”px”});f.$elemData.css({“border-bottom-left-radius”:f.options.borderradius+”px”,”-moz-top-bottom-border-radius”:f.options.borderradius+”px”,”-webkit-bottom-left-border-radius”:f.options.borderradius+”px”,”border-bottom-right-radius”:f.options.borderradius+”px”,”-moz-bottom-right-border-radius”:f.options.borderradius+”px”,”-webkit-bottom-right-border-radius”:f.options.borderradius+”px”})}}}if(f.options.titlestyle==”right”||f.options.titlestyle==”left”){f.$lightboxBox.css({“background-color”:f.options.bgcolor});if(f.options.titlestyle==”right”){f.$elemWrap.css({position:”relative”,”float”:”left”});f.$elemData.css({position:”relative”,overflow:”hidden”,padding:f.options.bordersize+”px”})}else{f.$elemWrap.css({position:”relative”,overflow:”hidden”});f.$elemData.css({position:”relative”,”float”:”left”,padding:f.options.bordersize+”px”})}}else{if(f.options.titlestyle==”inside”){f.$elemData.css({position:”absolute”,margin:f.options.bordersize+”px”,bottom:0,left:0,”background-color”:”#333″,”background-color”:”rgba(51, 51, 51, 0.6)”});f.$text.css({padding:f.options.bordersize+”px “+2*f.options.bordersize+”px”})}else{f.$elemData.css({position:”relative”,width:”100%”,height:f.options.barautoheight?”auto”:f.options.barheight+”px”,padding:”0 0 “+f.options.bordersize+”px 0″,”background-color”:f.options.bgcolor,”text-align”:”left”});f.$text.css({margin:”0 “+f.options.bordersize+”px”})}}if(f.options.fullscreenmode){f.$lightbox.append(““);f.$next=a(“.html5-next-fullscreen”,f.$lightbox);f.$prev=a(“.html5-prev-fullscreen”,f.$lightbox);f.$lightboxBox.append(““);f.$nextbottom=a(“.html5-next-bottom-fullscreen”,f.$lightbox);f.$prevbottom=a(“.html5-prev-bottom-fullscreen”,f.$lightbox);f.$nextbottom.click(function(){f.nextArrowClicked()});f.$prevbottom.click(function(){f.prevArrowClicked()});f.$lightbox.append(““);f.$close=a(“#html5-close-fullscreen”,f.$lightbox)}else{f.$elemWrap.append(““);f.$next=a(“#html5-next”,f.$lightbox);f.$prev=a(“#html5-prev”,f.$lightbox);if(f.options.isTouch&&f.options.navarrowsalwaysshowontouch||f.options.alwaysshownavarrows){f.$lightboxBox.append(““);f.$nexttouch=a(“.html5-next-touch”,f.$lightbox);f.$prevtouch=a(“.html5-prev-touch”,f.$lightbox);f.$nexttouch.click(function(){f.nextArrowClicked()});f.$prevtouch.click(function(){f.prevArrowClicked()})}f.$lightboxBox.append(““);f.$close=a(“#html5-close”,f.$lightbox)}f.$watermark=a(“#html5-watermark”,f.$lightbox);if(f.options.stamp){f.$watermark.html(““)}else{if(f.options.watermark){var i=”“;if(f.options.watermarklink){i=”“+i+”“}f.$watermark.html(i)}}if(f.options.closeonoverlay){a(“#html5-lightbox-overlay”,f.$lightbox).click(f.finish)}f.$close.click(f.finish);f.$next.click(function(){f.nextArrowClicked()});f.$prev.click(function(){f.prevArrowClicked()});a(window).resize(function(){clearTimeout(f.options.resizeTimeout);f.options.resizeTimeout=setTimeout(function(){f.resizeWindow()},500)});a(window).scroll(function(){f.scrollBox()});a(window).bind(“orientationchange”,function(B){if(f.options.isMobile){f.resizeWindow()}});if(f.options.isIPhone){f.options.windowInnerHeight=window.innerHeight;setInterval(function(){if(f.options.windowInnerHeight!=window.innerHeight){f.options.windowInnerHeight=window.innerHeight;f.resizeWindow()}},500)}if(f.options.enabletouchswipe){f.enableSwipe()}};f.slideTimer=function(i,G,D){var e=this;e.timeout=i;var C=50;var E=null;var B=0;var H=false;var F=false;var l=false;this.pause=function(){if(F){H=true;clearInterval(E)}};this.resume=function(I){if(l&&!I){return}l=false;if(F&&H){H=false;E=setInterval(function(){B+=C;if(B>e.timeout){clearInterval(E);if(G){G()}}if(D){D(B/e.timeout)}},C)}};this.stop=function(){clearInterval(E);if(D){D(-1)}B=0;H=false;F=false};this.start=function(){B=0;H=false;F=true;E=setInterval(function(){B+=C;if(B>e.timeout){clearInterval(E);if(G){G()}}if(D){D(B/e.timeout)}},C)};this.startandpause=function(){B=0;H=true;F=true;l=true};return this};f.updateTimer=function(i){var e=Math.round(i*100);if(e>100){e=100}if(e=f.options.curElem){if(f.options.onfirstarrowclicked&&window[f.options.onfirstarrowclicked]&&typeof window[f.options.onfirstarrowclicked]==”function”){window[f.options.onfirstarrowclicked]()}}f.gotoSlide(-2)};f.calcNextPrevElem=function(){f.options.nextElem=-1;f.options.prevElem=-1;f.options.inGroup=false;f.options.groupIndex=0;f.options.groupCount=0;var B=f.elemArray[f.options.curElem][w];for(var l=0;l=0){for(e=f.options.curElem-1;e>=0;e–){if(f.matchGroup(C,f.elemArray[e][w])){f.options.prevElem=e;break}}if(f.options.prevElemf.options.curElem;e–){if(f.matchGroup(C,f.elemArray[e][w])){f.options.prevElem=e;break}}}}}if(f.options.nextElem>=0||f.options.prevElem>=0){f.options.inGroup=true}};f.calcBoxPosition=function(G,D){var e=G+2*f.options.bordersize;var F=D+2*f.options.bordersize;var B=window.innerHeight?window.innerHeight:a(window).height();var l=Math.round((B-f.options.navheight)/2-F/2);if(f.options.titlestyle==”bottom”){l-=Math.round(f.options.barheight/2)}var C=a(window).width()E?i-E:0}}return[e,F,l]};f.hideNavArrows=function(){var e=false;var i=false;if(f.options.inGroup){if(f.options.arrowloop||!f.options.arrowloop&&f.options.prevElem”)});e.src=l};f.matchGroup=function(E,C){if(!E||!C){return false}var D=E.split(“:”);var l=C.split(“:”);var e=false;for(var B in D){if(a.inArray(D[B],l)>-1){e=true;break}}return e};f.showNavigation=function(){if(!f.options.shownavigation){return}if(!f.currentElem||!f.currentElem[w]){return}var D;var G=false;var F=f.currentElem[w];for(D=0;D0){G=true;break}}}if(!G){return}f.options.navheight=f.options.thumbheight+f.options.thumbtopmargin+f.options.thumbbottommargin;if(a(“.html5-nav”).length>0){return}a(“body”).append(“”);var C=0;for(D=0;D0){a(“.html5-nav-list”).append(“”);this.loadThumbnail(f.elemArray[D][m],C);C++}}}a(“.html5-nav-thumb”).hover(function(){a(this).css({opacity:1});a(this).css({border:f.options.thumbborder+”px solid “+f.options.thumbhighlightbordercolor})},function(){a(this).css({opacity:f.options.thumbopacity});a(this).css({border:f.options.thumbborder+”px solid “+f.options.thumbbordercolor})});a(“.html5-nav-thumb”).click(function(){var i=a(this).data(“arrayindex”);if(i>=0){f.gotoSlide(i)}});f.options.totalwidth=C*(f.options.thumbgap+f.options.thumbwidth+2*f.options.thumbborder);a(“.html5-nav-list”).css({display:”block”,position:”relative”,”margin-left”:0,width:f.options.totalwidth+”px”}).append(“”);var E=a(“.html5-nav-mask”);var B=a(“.html5-nav-prev”);var e=a(“.html5-nav-next”);B.click(function(){var I=a(“.html5-nav-list”);var i=a(“.html5-nav-next”);var H=a(window).width();var K=H-2*f.options.navbuttonwidth;var J=parseInt(I.css(“margin-left”))+K;if(J>=0){J=0;a(this).css({“background-position”:”center left”})}else{a(this).css({“background-position”:”center right”})}if(J=0){H.css({“background-position”:”center left”})}else{H.css({“background-position”:”center right”})}I.animate({“margin-left”:J})});var l=a(window).width();if(f.options.totalwidth0){B+=i}}if(f.options.inGroup){if(f.options.showtitleprefix){B=f.options.titleprefix.replace(“%NUM”,f.options.groupIndex+1).replace(“%TOTAL”,f.options.groupCount)+” “+B}if(f.options.showplaybutton){B=” “+B}}if(f.options.showdescription&&l&&l.length>0){B+=’

‘+l+”

“}f.$text.html(B);if(f.options.inGroup&&f.options.showplaybutton){if(f.autosliding){a(“#html5-play”,f.$lightbox).hide();a(“#html5-pause”,f.$lightbox).show()}else{a(“#html5-play”,f.$lightbox).show();a(“#html5-pause”,f.$lightbox).hide()}a(“#html5-play”,f.$lightbox).click(function(){a(“#html5-play”,f.$lightbox).hide();a(“#html5-pause”,f.$lightbox).show();if(f.slideTimeout){f.slideTimeout.stop();f.slideTimeout.start();f.autosliding=true}});a(“#html5-pause”,f.$lightbox).click(function(){a(“#html5-play”,f.$lightbox).show();a(“#html5-pause”,f.$lightbox).hide();if(f.slideTimeout){f.slideTimeout.stop();f.autosliding=false}})}},f.showImage=function(B,l,D){var C,e;if(B[c]){C=B[c]}else{C=l;B[c]=l}if(B[y]){e=B[y]}else{e=D;B[y]=D}var i=f.calcElemSize({w:C,h:e},true);f.resizeLightbox(i.w,i.h,true,function(){f.showTitle(i.w,B[p],B[q]);var E=!f.options.showtimer||!f.options.inGroup?””:””;f.$image.show();f.$image.html(““+E+””);f.$elem.fadeIn(f.options.fadespeed,function(){f.showData()});if(f.autosliding){f.slideTimeout.stop();f.slideTimeout.start()}})};f.showSWF=function(l){var i=l[c]?l[c]:k;var B=l[y]?l[y]:t;var e=f.calcElemSize({w:i,h:B},true);i=e.w;B=e.h;f.resizeLightbox(i,B,true,function(){f.showTitle(e.w,l[p],l[q]);f.$image.html(“”).show();f.embedFlash(a(“#html5lightbox-swf”),l[g],”window”,{width:i,height:B});f.$elem.show();f.showData();if(f.autosliding){f.slideTimeout.stop();f.slideTimeout.start()}})};f.showVideo=function(l){f.slideTimeout.stop();var i=l[c]?l[c]:k;var B=l[y]?l[y]:t;var e=f.calcElemSize({w:i,h:B},true);i=e.w;B=e.h;f.resizeLightbox(i,B,true,function(){f.showTitle(e.w,l[p],l[q]);f.$image.html(“”).show();var E=false;if(f.options.isIE678||l[s]==8||f.options.isIE9&&f.options.useflashonie9||f.options.isIE10&&f.options.useflashonie10||f.options.isIE11&&f.options.useflashonie11){E=false}else{if(f.options.isMobile){E=true}else{if((f.options.html5player||!f.options.flashInstalled)&&f.options.html5VideoSupported){if(!f.options.isFirefox&&!f.options.isOpera||(f.options.isFirefox||f.options.isOpera)&&(l[n]||l[j])){E=true}}}}if(E){var C=l[g];if(f.options.isFirefox||f.options.isOpera||!C){C=l[j]?l[j]:l[n]}f.embedHTML5Video(a(“#html5lightbox-video”),C,f.options.autoplay)}else{var D=l[g];if(D.charAt(0)!=”/”&&D.substring(0,5)!=”http:”&&D.substring(0,6)!=”https:”){D=f.options.htmlfolder+D}f.embedFlash(a(“#html5lightbox-video”),f.options.jsfolder+”html5boxplayer.swf”,”transparent”,{width:i,height:B,jsobjectname:”html5Lightbox”,hidecontrols:f.options.videohidecontrols?”1″:”0″,hideplaybutton:”0″,videofile:D,hdfile:””,ishd:”0″,defaultvolume:f.options.defaultvideovolume,autoplay:f.options.autoplay?”1″:”0″,errorcss:”.html5box-error”+f.options.errorcss,id:0})}f.$elem.show();f.showData()})};f.loadNext=function(){a(window).trigger(“html5lightbox.videofinished”);if(f.autosliding){f.gotoSlide(-1)}};f.getYoutubeParams=function(l){var e={};if(l.indexOf(“?”)”).show();var D=l[g];if(l[s]==3){D=f.prepareYoutubeHref(D)}if(l[s]==9){D=f.prepareDailymotionHref(D)}if(f.options.autoplay){if(D.indexOf(“?”)”);f.$elem.show();f.showData();if(l[s]==3&&typeof YT===”object”&&typeof YT.Player===”function”){new YT.Player(“html5boxiframevideo”,{events:{onStateChange:function(F){if(F.data==YT.PlayerState.ENDED){a(window).trigger(“html5lightbox.videofinished”);if(f.autosliding){f.gotoSlide(-1)}}}}})}else{if(l[s]==4&&typeof $f===”function”){var C=a(“#html5boxiframevideo”)[0];var E=$f(C);E.addEvent(“ready”,function(){E.addEvent(“finish”,function(F){a(window).trigger(“html5lightbox.videofinished”);if(f.autosliding){f.gotoSlide(-1)}})})}}})};f.showPDF=function(e){};f.showMP3=function(e){};f.showDiv=function(B){var e=a(window).width();var C=window.innerHeight?window.innerHeight:a(window).height();var l=B[c]?B[c]:e;var D=B[y]?B[y]:C-f.options.navheight;var i=f.calcElemSize({w:l,h:D},false);l=i.w;D=i.h;f.resizeLightbox(l,D,true,function(){f.$loading.hide();f.showTitle(i.w,B[p],B[q]);f.$image.html(“”).show();var E=B[g];if(a(E).length>0){a(“#html5lightbox-div”).html(a(E).html())}else{a(“#html5lightbox-div”).html(“

The specified div ID does not exist.

“)}f.$elem.show();f.showData();if(f.autosliding){f.slideTimeout.stop();f.slideTimeout.start()}})};f.showWeb=function(B){var e=a(window).width();var C=window.innerHeight?window.innerHeight:a(window).height();var l=B[c]?B[c]:e;var D=B[y]?B[y]:C-f.options.navheight;var i=f.calcElemSize({w:l,h:D},false);l=i.w;D=i.h;f.resizeLightbox(l,D,true,function(){f.$loading.hide();f.showTitle(i.w,B[p],B[q]);f.$image.html(“”).show();a(“#html5lightbox-web”).html(““);f.$elem.show();f.showData();if(f.autosliding){f.slideTimeout.stop();f.slideTimeout.start()}})};f.scrollBox=function(){if(!f.options.supportCSSPositionFixed){f.$lightbox.css(“top”,a(window).scrollTop())}};f.resizeWindow=function(){if(!f.currentElem){return}if(!f.options.responsive){return}var C=a(window).width();var E=window.innerHeight?window.innerHeight:a(window).height();var D,J,i;if(f.currentElem[s]==7||f.currentElem[s]==10){D=f.currentElem[c]?f.currentElem[c]:C;J=f.currentElem[y]?f.currentElem[y]:E-f.options.navheight;i=false}else{D=f.currentElem[c]?f.currentElem[c]:k;J=f.currentElem[y]?f.currentElem[y]:t;i=true}var K=f.calcElemSize({w:D,h:J},i);var I=f.calcBoxPosition(K.w,K.h);var e=I[0];var H=I[1];var B=I[2];f.$lightboxBox.css({“margin-top”:B});if(f.options.titlestyle==”left”||f.options.titlestyle==”right”){f.$lightboxBox.css({width:e,height:H})}else{f.$lightboxBox.css({width:e,height:”auto”});f.$elemWrap.css({width:e,height:H})}if(f.options.titlestyle==”inside”){f.$elemData.css({width:K.w+”px”})}if(a(“.html5-nav”).lengthf.options.sidetobottomscreenwidth){D.w=D.w*100/f.options.imagepercentage}var C=a(window).width()B){if(l){D.w=Math.round(D.w*B/D.h)}D.h=B}var i=e-2*f.options.bordersize-2*f.options.bordermargin;if(f.options.fullscreenmode&&e>f.options.navarrowsbottomscreenwidth||(f.options.isTouch&&f.options.navarrowsalwaysshowontouch||f.options.alwaysshownavarrows)&&e>f.options.navarrowsbottomscreenwidth){i-=64}if(D.w>i){if(l){D.h=Math.round(D.h*i/D.w)}D.w=i}return D};f.showData=function(){if(f.$text.text().length>0){f.$elemData.show()}if(f.options.titlestyle==”bottom”||f.options.titlestyle==”inside”){f.$lightboxBox.css({height:”auto”})}if(f.$text.text().length>0&&f.options.titlestyle==”bottom”){f.$elemData.css({“max-height”:f.options.barheight+”px”})}a(“#html5-lightbox-overlay”,f.$lightbox).css({height:Math.max(a(window).height(),a(document).height())});a(window).trigger(“html5lightbox.lightboxopened”)};f.resizeLightbox=function(C,G,i,D){f.hideNavArrows();var F=f.calcBoxPosition(C,G);var e=F[0];var E=F[1];var l=F[2];f.$loading.hide();f.$watermark.hide();if(f.options.nextElem=f.options.curElem){if(f.options.onfirstitem&&window[f.options.onfirstitem]&&typeof window[f.options.onfirstitem]==”function”){window[f.options.onfirstitem](f.currentElem)}}if(!f.options.fullscreenmode&&(!f.options.isTouch||!f.options.navarrowsalwaysshowontouch)&&!f.options.alwaysshownavarrows){f.$elem.bind(“mouseenter mousemove”,function(){if(f.options.arrowloop&&f.options.prevElem>=0||!f.options.arrowloop&&f.options.prevElem>=0&&f.options.prevElem=0||!f.options.arrowloop&&f.options.nextElem>=0&&f.options.nextElem>f.options.curElem){f.$next.fadeIn()}});f.$elem.bind(“mouseleave”,function(){f.$next.fadeOut();f.$prev.fadeOut()})}f.$lightboxBox.css({“margin-top”:l});if(f.options.titlestyle==”left”||f.options.titlestyle==”right”){var B=i?f.options.resizespeed:0;if(e==f.$lightboxBox.width()&&E==f.$lightboxBox.height()){B=0}f.$lightboxBox.animate({width:e},B).animate({height:E},B,function(){f.onAnimateFinish(D)})}else{var B=i?f.options.resizespeed:0;if(e==f.$elemWrap.width()&&E==f.$elemWrap.height()){B=0}f.$lightboxBox.css({width:e,height:”auto”});f.$elemWrap.animate({width:e},B).animate({height:E},B,function(){f.onAnimateFinish(D)})}};f.onAnimateFinish=function(e){f.$loading.show();f.$watermark.show();f.$close.show();f.$elem.css({“background-color”:f.options.bgcolor});e()};f.reset=function(){if(f.options.stamp){f.$watermark.hide()}f.showing=false;f.$image.empty();f.$text.empty();f.$error.hide();f.$loading.hide();f.$image.hide();if(f.options.titlestyle==”bottom”||f.options.titlestyle==”inside”){f.$elemData.hide()}if(!f.options.fullscreenmode){f.$close.hide()}f.$elem.css({“background-color”:””})};f.resetNavigation=function(){f.options.navheight=0;a(“.html5-nav”).remove()};f.finish=function(){if(a(“#html5-lightbox-video”,f.$lightbox).length){a(“#html5-lightbox-video”,f.$lightbox).attr(“src”,””)}a(“head”).find(“style”).each(function(){if(a(this).data(“creator”)==”carousel-html5-lightbox”){a(this).remove()}});f.slideTimeout.stop();f.reset();f.resetNavigation();f.$lightbox.remove();f.showObjects();if(f.options.oncloselightbox&&window[f.options.oncloselightbox]&&typeof window[f.options.oncloselightbox]==”function”){window[f.options.oncloselightbox](f.currentElem)}if(f.onLightboxClosed&&typeof f.onLightboxClosed==”function”){f.onLightboxClosed(f.currentElem)}};f.pauseSlide=function(){};f.playSlide=function(){};f.gotoSlide=function(e){if(e==-1){if(f.options.nextElem=0){f.options.curElem=e}}}if(f.autosliding){f.slideTimeout.stop()}f.calcNextPrevElem();f.reset();f.loadCurElem()};f.supportKeyboard=function(){a(document).keyup(function(i){if(!f.showing){return}if(f.options.supportesckey&&i.keyCode==27){f.finish()}else{if(f.options.supportarrowkeys){if(i.keyCode==39){f.gotoSlide(-1)}else{if(i.keyCode==37){f.gotoSlide(-2)}}}}})};f.enableSwipe=function(){f.$elem.carouselTouchSwipe({preventWebBrowser:false,swipeLeft:function(){f.gotoSlide(-1)},swipeRight:function(){f.gotoSlide(-2)}})};f.hideObjects=function(){a(“select, embed, object”).css({visibility:”hidden”})};f.showObjects=function(){a(“select, embed, object”).css({visibility:”visible”})};f.embedHTML5Video=function(l,i,e){l.html(“”);if(!f.options.nativehtml5controls){a(“video”,l).data(“src”,i);a(“video”,l).acHTML5VideoControls(f.options.skinsfolder,f,f.options.videohidecontrols,false,f.options.defaultvideovolume)}a(“video”,l).unbind(“ended”).bind(“ended”,function(){a(window).trigger(“html5lightbox.videofinished”);if(f.autosliding){f.gotoSlide(-1)}})};f.embedFlash=function(E,D,B,C){if(f.options.flashInstalled){var i={pluginspage:”http://www.adobe.com/go/getflashplayer”,quality:”high”,allowFullScreen:”true”,allowScriptAccess:”always”,type:”application/x-shockwave-flash”};i.width=”100%”;i.height=”100%”;i.src=D;i.flashVars=a.param(C);i.wmode=B;var l=””;for(var e in i){l+=e+”=”+i[e]+” “}E.html(“”)}else{E.html(“

The required Adobe Flash Player plugin is not installed

Get Adobe Flash player“)}};f.checkType=function(e){if(!e){return -1}if(e.match(/.(jpg|gif|png|bmp|jpeg)(.*)?$/i)){return 0}if(e.match(/[^.].(swf)s*$/i)){return 1}if(e.match(/.(mp4|m4v|ogv|ogg|webm)(.*)?$/i)){return 2}if(e.match(/://.*(youtube.com)/i)||e.match(/://.*(youtu.be)/i)){return 3}if(e.match(/://.*(vimeo.com)/i)){return 4}if(e.match(/://.*(dailymotion.com)/i)||e.match(/://.*(dai.ly)/i)){return 9}if(e.match(/[^.].(pdf)s*$/i)){return 5}if(e.match(/[^.].(mp3)s*$/i)){return 6}if(e.match(/[^.].(flv)s*$/i)){return 8}if(e.match(/#w+/i)){return 10}return 7};f.showLightbox=function(F,B,G,C,K,l,H,i,I){f.options=a.extend(f.options,f.defaultoptions);f.init();f.reset();f.$lightbox.show();if(!f.options.supportCSSPositionFixed){f.$lightbox.css(“top”,a(window).scrollTop())}var J=f.calcBoxPosition(f.options.loadingwidth,f.options.loadingheight);var e=J[0];var E=J[1];var D=J[2];f.$lightboxBox.css({“margin-top”:D});if(f.options.titlestyle==”left”||f.options.titlestyle==”right”){f.$lightboxBox.css({width:e,height:E})}else{f.$lightboxBox.css({width:e,height:”auto”});f.$elemWrap.css({width:e,height:E})}f.loadElem(new Array(F,B,G,null,C,K,l,H,i,I))};f.addItem=function(l,C,F,B,G,i,D,e,E){type=f.checkType(l);f.elemArray.push(new Array(type,l,C,F,B,G,i,D,e,E))};f.showItem=function(B){f.options=a.extend(f.options,f.defaultoptions);f.init();if(f.elemArray.length”);if(!i){g.after(t);t.css({position:”absolute”,top:”50%”,left:”50%”,display:”block”,cursor:”pointer”,width:64,height:64,”margin-left”:-32,”margin-top”:-32,”background-image”:”url(‘”+p+”html5boxplayer_playvideo.png’)”,”background-position”:”center center”,”background-repeat”:”no-repeat”}).bind(D,function(){g.get(0).play()})}var f=a(“”);var C=a(“”);g.after(C);g.after(f);f.css({display:”none”,position:”fixed”,left:0,top:0,bottom:0,right:0,”z-index”:2147483647});C.css({display:”block”,position:”absolute”,width:”100%”,height:R,left:0,bottom:0,right:0,”max-width”:”640px”,margin:”0 auto”});var E=function(){S=true};g.bind(D,function(){S=true}).hover(function(){S=true},function(){S=false});if(!k){setInterval(function(){if(S){C.show();S=false;clearTimeout(m);m=setTimeout(function(){if(!g.get(0).paused){C.fadeOut()}},5000)}},250)}a(“.html5boxVideoControlsBg”,C).css({display:”block”,position:”absolute”,width:”100%”,height:”100%”,left:0,top:0,”background-color”:”#000000″,opacity:0.7,filter:”alpha(opacity=70)”});a(“.html5boxPlayPause”,C).css({display:”block”,position:”relative”,width:T+”px”,height:T+”px”,margin:Math.floor((R-T)/2),”float”:”left”});var A=a(“.html5boxPlay”,C);var B=a(“.html5boxPause”,C);A.css({display:”block”,position:”absolute”,top:0,left:0,width:T+”px”,height:T+”px”,cursor:”pointer”,”background-image”:”url(‘”+p+”html5boxplayer_playpause.png’)”,”background-position”:”top left”}).hover(function(){a(this).css({“background-position”:”bottom left”})},function(){a(this).css({“background-position”:”top left”})}).bind(D,function(){g.get(0).play()});B.css({display:”none”,position:”absolute”,top:0,left:0,width:T+”px”,height:T+”px”,cursor:”pointer”,”background-image”:”url(‘”+p+”html5boxplayer_playpause.png’)”,”background-position”:”top right”}).hover(function(){a(this).css({“background-position”:”bottom right”})},function(){a(this).css({“background-position”:”top right”})}).bind(D,function(){g.get(0).pause()});var Q=a(“.html5boxTimeCurrent”,C);var z=a(“.html5boxTimeTotal”,C);var K=a(“.html5boxSeeker”,C);var d=a(“.html5boxSeekerPlay”,C);var V=a(“.html5boxSeekerBuffer”,C);var x=a(“.html5boxSeekerHandler”,C);Q.css({display:”block”,position:”relative”,”float”:”left”,”line-height”:R+”px”,”font-weight”:”normal”,”font-size”:”12px”,margin:”0 8px”,”font-family”:”Arial, Helvetica, sans-serif”,color:”#fff”});z.css({display:”block”,position:”relative”,”float”:”right”,”line-height”:R+”px”,”font-weight”:”normal”,”font-size”:”12px”,margin:”0 8px”,”font-family”:”Arial, Helvetica, sans-serif”,color:”#fff”});K.css({display:”block”,cursor:”pointer”,overflow:”hidden”,position:”relative”,height:”10px”,”background-color”:”#222″,margin:Math.floor((R-10)/2)+”px 4px”}).bind(u,function(h){var af=l?h.originalEvent.touches[0]:h;var ae=af.pageX-K.offset().left;d.css({width:ae});g.get(0).currentTime=ae*g.get(0).duration/K.width();K.bind(F,function(ag){var ai=l?ag.originalEvent.touches[0]:ag;var ah=ai.pageX-K.offset().left;d.css({width:ah});g.get(0).currentTime=ah*g.get(0).duration/K.width()})}).bind(X,function(){K.unbind(F)});V.css({display:”block”,position:”absolute”,left:0,top:0,height:”100%”,”background-color”:”#444″});d.css({display:”block”,position:”absolute”,left:0,top:0,height:”100%”,”background-color”:”#fcc500″});if(!i&&(g.get(0).requestFullscreen||g.get(0).webkitRequestFullScreen||g.get(0).mozRequestFullScreen||g.get(0).webkitEnterFullScreen||g.get(0).msRequestFullscreen)){var Y=function(e){if(e){if(g.get(0).requestFullscreen){g.get(0).requestFullscreen()}else{if(g.get(0).webkitRequestFullScreen){g.get(0).webkitRequestFullScreen()}else{if(g.get(0).mozRequestFullScreen){g.get(0).mozRequestFullScreen()}else{if(g.get(0).webkitEnterFullScreen){g.get(0).webkitEnterFullScreen()}}}}if(g.get(0).msRequestFullscreen){g.get(0).msRequestFullscreen()}}else{if(document.cancelFullScreen){document.cancelFullScreen()}else{if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else{if(document.webkitCancelFullScreen){document.webkitCancelFullScreen()}else{if(document.webkitExitFullscreen){document.webkitExitFullscreen()}else{if(document.msExitFullscreen){document.msExitFullscreen()}}}}}}};var s=function(h){C.css({position:h?”fixed”:”absolute”});var e=P.css(“background-position”)?P.css(“background-position”).split(” “)[1]:P.css(“background-position-y”);P.css({“background-position”:(h?”right”:”left”)+” “+e});f.css({display:h?”block”:”none”});if(h){a(document).bind(“mousemove”,E);C.css({“z-index”:2147483647})}else{a(document).unbind(“mousemove”,E);C.css({“z-index”:””})}};document.addEventListener(“fullscreenchange”,function(){j=document.fullscreen;s(document.fullscreen)},false);document.addEventListener(“mozfullscreenchange”,function(){j=document.mozFullScreen;s(document.mozFullScreen)},false);document.addEventListener(“webkitfullscreenchange”,function(){j=document.webkitIsFullScreen;s(document.webkitIsFullScreen)},false);g.get(0).addEventListener(“webkitbeginfullscreen”,function(){j=true},false);g.get(0).addEventListener(“webkitendfullscreen”,function(){j=false},false);a(“head”).append(“”);var P=a(“.html5boxFullscreen”,C);P.css({display:”block”,position:”relative”,”float”:”right”,width:T+”px”,height:T+”px”,margin:Math.floor((R-T)/2),cursor:”pointer”,”background-image”:”url(‘”+p+”html5boxplayer_fullscreen.png’)”,”background-position”:”left top”}).hover(function(){var e=a(this).css(“background-position”)?a(this).css(“background-position”).split(” “)[0]:a(this).css(“background-position-x”);a(this).css({“background-position”:e+” bottom”})},function(){var e=a(this).css(“background-position”)?a(this).css(“background-position”).split(” “)[0]:a(this).css(“background-position-x”);a(this).css({“background-position”:e+” top”})}).bind(D,function(){j=!j;Y(j)})}if(b){var r=a(“.html5boxHD”,C);r.css({display:”block”,position:”relative”,”float”:”right”,width:T+”px”,height:T+”px”,margin:Math.floor((R-T)/2),cursor:”pointer”,”background-image”:”url(‘”+p+”html5boxplayer_hd.png’)”,”background-position”:(n?”right”:”left”)+” center”}).bind(D,function(){n=!n;a(this).css({“background-position”:(n?”right”:”left”)+” center”});o.isHd=n;var e=g.get(0).isPaused;g.get(0).setAttribute(“src”,(n?b:v)+”#t=”+g.get(0).currentTime);if(!e){g.get(0).play()}else{if(!i){g.get(0).pause()}}})}g.get(0).volume=w;var J=w==0?1:w;var O=g.get(0).volume;g.get(0).volume=O/2+0.1;if(g.get(0).volume===O/2+0.1){g.get(0).volume=O;var N=a(“.html5boxVolume”,C);var c=a(“.html5boxVolumeButton”,C);var U=a(“.html5boxVolumeBar”,C);var M=a(“.html5boxVolumeBarBg”,C);var G=a(“.html5boxVolumeBarActive”,C);N.css({display:”block”,position:”relative”,”float”:”right”,width:T+”px”,height:T+”px”,margin:Math.floor((R-T)/2)}).hover(function(){clearTimeout(W);var e=g.get(0).volume;G.css({height:Math.round(e*100)+”%”});U.show()},function(){clearTimeout(W);W=setTimeout(function(){U.hide()},1000)});c.css({display:”block”,position:”absolute”,top:0,left:0,width:T+”px”,height:T+”px”,cursor:”pointer”,”background-image”:”url(‘”+p+”html5boxplayer_volume.png’)”,”background-position”:”top “+(O>0?”left”:”right”)}).hover(function(){var e=a(this).css(“background-position”)?a(this).css(“background-position”).split(” “)[0]:a(this).css(“background-position-x”);a(this).css({“background-position”:e+” bottom”})},function(){var e=a(this).css(“background-position”)?a(this).css(“background-position”).split(” “)[0]:a(this).css(“background-position-x”);a(this).css({“background-position”:e+” top”})}).bind(D,function(){var e=g.get(0).volume;if(e>0){J=e;e=0}else{e=J}var h=a(this).css(“background-position”)?a(this).css(“background-position”).split(” “)[1]:a(this).css(“background-position-y”);c.css({“background-position”:(e>0?”left”:”right”)+” “+h});g.get(0).volume=e;G.css({height:Math.round(e*100)+”%”})});U.css({display:”none”,position:”absolute”,left:4,bottom:”100%”,width:24,height:80,”margin-bottom”:Math.floor((R-T)/2),”background-color”:”#000000″,opacity:0.7,filter:”alpha(opacity=70)”});M.css({display:”block”,position:”relative”,width:10,height:68,margin:7,cursor:”pointer”,”background-color”:”#222″});G.css({display:”block”,position:”absolute”,bottom:0,left:0,width:”100%”,height:”100%”,”background-color”:”#fcc500″});M.bind(u,function(ae){var af=l?ae.originalEvent.touches[0]:ae;var h=1-(af.pageY-M.offset().top)/M.height();h=h>1?1:h0?”top”:”bottom”)});g.get(0).volume=h;M.bind(F,function(ah){var ai=l?ah.originalEvent.touches[0]:ah;var ag=1-(ai.pageY-M.offset().top)/M.height();ag=ag>1?1:ag0?”top”:”bottom”)});g.get(0).volume=ag})}).bind(X,function(){M.unbind(F)})}var L=function(ak){var ai=Math.floor(ak/3600);var ah=ai0){aj=ah+”:”+aj}return aj};if(ac){t.hide()}if(k){C.hide()}var I=function(){if(!ac){t.hide()}if(!k){A.hide();B.show()}};var H=function(){if(!ac){t.show()}if(!k){C.show();clearTimeout(m);A.show();B.hide()}};var y=function(){a(window).trigger(“html5lightbox.videoended”);if(!ac){t.show()}if(!k){C.show();clearTimeout(m);A.show();B.hide()}};var q=function(){var h=g.get(0).currentTime;if(h){Q.text(L(h));var ae=g.get(0).duration;if(ae){z.text(L(ae));if(!ad){var e=K.width();var af=Math.round(e*h/ae);d.css({width:af});x.css({left:af})}}}};var aa=function(){if(g.get(0).buffered&&g.get(0).buffered.length>0&&!isNaN(g.get(0).buffered.end(0))&&!isNaN(g.get(0).duration)){var e=K.width();V.css({width:Math.round(e*g.get(0).buffered.end(0)/g.get(0).duration)})}};try{g.bind(“play”,I);g.bind(“pause”,H);g.bind(“ended”,y);g.bind(“timeupdate”,q);g.bind(“progress”,aa)}catch(ab){}}})(jQuery);function ASTimer(c,b,d){var e=50;var f=null;var a=0;this.pause=function(){clearInterval(f)};this.resume=function(){clearInterval(f);if(c>0){f=setInterval(function(){a+=e;if(a>c){clearInterval(f);if(b){b()}}if(d){d(a/c)}},e)}else{if(b){b()}}};this.stop=function(){clearInterval(f);if(d){d(-1)}a=0};this.start=function(){a=0;clearInterval(f);if(c>0){f=setInterval(function(){a+=e;if(a>c){clearInterval(f);if(b){b()}}if(d){d(a/c)}},e)}else{if(b){b()}}}}var ACPlatforms={flashInstalled:function(){var b=false;try{if(new ActiveXObject(“ShockwaveFlash.ShockwaveFlash”)){b=true}}catch(a){if(navigator.mimeTypes[“application/x-shockwave-flash”]){b=true}}return b},html5VideoSupported:function(){return !!document.createElement(“video”).canPlayType},isChrome:function(){return navigator.userAgent.match(/Chrome/i)!=null},isFirefox:function(){return navigator.userAgent.match(/Firefox/i)!=null},isOpera:function(){return navigator.userAgent.match(/Opera/i)!=null||navigator.userAgent.match(/OPR//i)!=null},isSafari:function(){return navigator.userAgent.match(/Safari/i)!=null},isAndroid:function(){return navigator.userAgent.match(/Android/i)!=null},isIPad:function(){return navigator.userAgent.match(/iPad/i)!=null},isIPhone:function(){return navigator.userAgent.match(/iPod/i)!=null||navigator.userAgent.match(/iPhone/i)!=null},isIOS:function(){return this.isIPad()||this.isIPhone()},isIE9:function(){return navigator.userAgent.match(/MSIE/i)!=null&&this.html5VideoSupported()&&!this.isOpera()},isIE8:function(){return navigator.userAgent.match(/MSIE 8/i)!=null&&!this.isOpera()},isIE7:function(){return navigator.userAgent.match(/MSIE 7/i)!=null&&!this.isOpera()},isIE6:function(){return navigator.userAgent.match(/MSIE 6/i)!=null&&!this.isOpera()},isIE678:function(){return this.isIE6()||this.isIE7()||this.isIE8()},isIE6789:function(){return this.isIE6()||this.isIE7()||this.isIE8()||this.isIE9()},css33dTransformSupported:function(){return !this.isIE6()&&!this.isIE7()&&!this.isIE8()&&!this.isIE9()&&!this.isOpera()},applyBrowserStyles:function(b,d){var a={};for(var c in b){a[c]=b[c];a[“-webkit-“+c]=d?”-webkit-“+b[c]:b[c];a[“-moz-“+c]=d?”-moz-“+b[c]:b[c];a[“-ms-“+c]=d?”-ms-“+b[c]:b[c];a[“-o-“+c]=d?”-o-“+b[c]:b[c]}return a}};(function(a){a.fn.wonderplugincarousel=function(c){var q=0,v=1,i=2,j=3,r=4,p=5,d=6,f=7,w=8,o=9,s=10;var g=1,b=2,u=3,y=4,h=5,m=6,e=7,k=8,t=9,l=10;var n=function(z,A,B){this.container=z;this.options=A;this.id=B;this.transitionTimeout=null;this.arrowTimeout=null;a(“.amazingcarousel-engine”).css({display:”none”});this.lightboxArray=[];this.visibleItems=this.options.visibleitems;this.itemSize=this.options.width;this.currentItem=0;this.elemLength=0;this.elemTotalCount=0;this.animProp={};this.transitionTimerId=null;this.transitionTiming=0;this.initData(this.init)};n.prototype={initData:function(z){this.readTags();z(this)},readTags:function(){var A=a(“li.amazingcarousel-item”,this.container);this.elemLength=A.length;this.elemTotalCount=this.elemLength;var C;if(this.options.random){for(C=this.elemLength-1;C>0;C–){var B=Math.floor(Math.random()*C);A.eq(B).insertBefore(A.eq(C));A.eq(C).insertBefore(A.eq(B))}A=a(“li.amazingcarousel-item”,this.container)}A.each(function(D){a(this).data(“itemIndex”,D)});if(this.elemLength>1&&this.options.circular){var z=Math.min(this.options.visibleitems*2,this.elemLength);for(C=0;C

Source

Leave a Reply

Your email address will not be published.