/*
 CCAttribution-ShareAlike 2.5 Brazil - http://creativecommons.org/licenses/by-sa/2.5/br/deed.en_US
 @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
*/
window.log=function(){log.history=log.history||[];log.history.push(arguments);arguments.callee=arguments.callee.caller;this.console&&console.log(Array.prototype.slice.call(arguments))};(function(b){function a(){}for(var m="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),e;e=m.pop();)b[e]=b[e]||a})(window.console=window.console||{});
(function(b){function a(a){var e={},g=/^jQuery\d+$/;b.each(a.attributes,function(b,l){if(l.specified&&!g.test(l.name))e[l.name]=l.value});return e}function m(){var a=b(this);a.val()===a.attr("placeholder")&&a.hasClass("placeholder")&&(a.data("placeholder-password")?a.hide().next().attr("id",a.removeAttr("id").data("placeholder-id")).show().focus():a.val("").removeClass("placeholder"))}function e(){var e,h=b(this),g=this.id;if(h.val()===""){if(h.is(":password")){if(!h.data("placeholder-textinput")){try{e=
h.clone().attr({type:"text"})}catch(i){e=b("<input>").attr(b.extend(a(this),{type:"text"}))}e.removeAttr("name").data("placeholder-password",true).data("placeholder-id",g).bind("focus.placeholder",m);h.data("placeholder-textinput",e).data("placeholder-id",g).before(e)}h=h.removeAttr("id").hide().prev().attr("id",g).show()}h.addClass("placeholder").val(h.attr("placeholder"))}else h.removeClass("placeholder")}var i="placeholder"in document.createElement("input"),j="placeholder"in document.createElement("textarea");
i&&j?(b.fn.placeholder=function(){return this},b.fn.placeholder.input=b.fn.placeholder.textarea=true):(b.fn.placeholder=function(){return this.filter((i?"textarea":":input")+"[placeholder]").bind("focus.placeholder",m).bind("blur.placeholder",e).trigger("blur.placeholder").end()},b.fn.placeholder.input=i,b.fn.placeholder.textarea=j);b(function(){b("form").bind("submit.placeholder",function(){var a=b(".placeholder",this).each(m);setTimeout(function(){a.each(e)},10)})});b(window).bind("unload.placeholder",
function(){b(".placeholder").val("")})})(jQuery);
(function(){function b(l,b){if(b)for(var a in b)b.hasOwnProperty(a)&&(l[a]=b[a]);return l}function a(b,a){var d=[],c;for(c in b)b.hasOwnProperty(c)&&(d[c]=a(b[c]));return d}function m(a,f,d){if(g.isSupported(f.version))a.innerHTML=g.getHTML(f,d);else if(f.expressInstall&&g.isSupported([6,65]))a.innerHTML=g.getHTML(b(f,{src:f.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else{if(!a.innerHTML.replace(/\s/g,"")&&(a.innerHTML="<h2>Flash version "+f.version+
" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(a.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+i+"'>here</a></p>"),a.tagName=="A"))a.onclick=function(){location.href=i};if(f.onFail){var c=f.onFail.call(this);if(typeof c=="string")a.innerHTML=c}}e&&(window[f.id]=document.getElementById(f.id));b(this,{getRoot:function(){return a},getOptions:function(){return f},getConf:function(){return d},
getApi:function(){return a.firstChild}})}var e=document.all,i="http://www.adobe.com/go/getflashplayer",j=typeof jQuery=="function",n=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,h={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});
window.flashembed=function(a,f,d){typeof a=="string"&&(a=document.getElementById(a.replace("#","")));if(a)return typeof f=="string"&&(f={src:f}),new m(a,b(b({},h),f),d)};var g=b(window.flashembed,{conf:h,getVersion:function(){var a,b;try{b=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(d){try{b=(a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"))&&a.GetVariable("$version")}catch(c){try{b=(a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))&&a.GetVariable("$version")}catch(e){}}}return(b=
n.exec(b))?[b[1],b[3]]:[0,0]},asString:function(b){if(b===null||b===void 0)return null;var f=typeof b;f=="object"&&b.push&&(f="array");switch(f){case "string":return b=b.replace(RegExp('(["\\\\])',"g"),"\\$1"),b=b.replace(/^\s?(\d+\.?\d+)%/,"$1pct"),'"'+b+'"';case "array":return"["+a(b,function(b){return g.asString(b)}).join(",")+"]";case "function":return'"function()"';case "object":var f=[],d;for(d in b)b.hasOwnProperty(d)&&f.push('"'+d+'":'+g.asString(b[d]));return"{"+f.join(",")+"}"}return String(b).replace(/\s/g,
" ").replace(/\'/g,'"')},getHTML:function(a,f){var a=b({},a),d='<object width="'+a.width+'" height="'+a.height+'" id="'+a.id+'" name="'+a.id+'"';a.cachebusting&&(a.src+=(a.src.indexOf("?")!=-1?"&":"?")+Math.random());d+=a.w3c||!e?' data="'+a.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';d+=">";if(a.w3c||e)d+='<param name="movie" value="'+a.src+'" />';a.width=a.height=a.id=a.w3c=a.src=null;a.onFail=a.version=a.expressInstall=null;for(var c in a)a[c]&&
(d+='<param name="'+c+'" value="'+a[c]+'" />');a="";if(f){for(var o in f)f[o]&&(c=f[o],a+=o+"="+(/function|object/.test(typeof c)?g.asString(c):c)+"&");a=a.slice(0,-1);d+='<param name="flashvars" value=\''+a+"' />"}d+="</object>";return d},isSupported:function(a){return k[0]>a[0]||k[0]==a[0]&&k[1]>=a[1]}}),k=g.getVersion();if(j)jQuery.tools=jQuery.tools||{version:"1.2.5"},jQuery.tools.flashembed={conf:h},jQuery.fn.flashembed=function(a,b){return this.each(function(){$(this).data("flashembed",flashembed(this,
a,b))})}})();
(function(b){b.fn.hoverIntent=function(a,m){var e={sensitivity:7,interval:100,timeout:0},e=b.extend(e,m?{over:a,out:m}:a),i,j,n,h,g=function(a){i=a.pageX;j=a.pageY},k=function(a,d){d.hoverIntent_t=clearTimeout(d.hoverIntent_t);if(Math.abs(n-i)+Math.abs(h-j)<e.sensitivity)return b(d).unbind("mousemove",g),d.hoverIntent_s=1,e.over.apply(d,[a]);else n=i,h=j,d.hoverIntent_t=setTimeout(function(){k(a,d)},e.interval)},l=function(a){var d=jQuery.extend({},a),c=this;if(c.hoverIntent_t)c.hoverIntent_t=clearTimeout(c.hoverIntent_t);
if(a.type=="mouseenter"){if(n=d.pageX,h=d.pageY,b(c).bind("mousemove",g),c.hoverIntent_s!=1)c.hoverIntent_t=setTimeout(function(){k(d,c)},e.interval)}else if(b(c).unbind("mousemove",g),c.hoverIntent_s==1)c.hoverIntent_t=setTimeout(function(){c.hoverIntent_t=clearTimeout(c.hoverIntent_t);c.hoverIntent_s=0;e.out.apply(c,[d])},e.timeout)};return this.bind("mouseenter",l).bind("mouseleave",l)}})(jQuery);
(function(b){b.fn.lightBox=function(a){function m(){b("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+a.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+
a.imageBtnClose+'"></a></div></div></div></div>');var c=k();b("#jquery-overlay").css({backgroundColor:a.overlayBgColor,opacity:a.overlayOpacity,width:c[0],height:c[1]}).fadeIn();var f=l();b("#jquery-lightbox").css({top:f[1]+c[3]/10,left:f[0]}).show();b("#jquery-overlay,#jquery-lightbox").click(function(){g()});b("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){g();return false});b(window).resize(function(){var a=k();b("#jquery-overlay").css({width:a[0],height:a[1]});var c=l();
b("#jquery-lightbox").css({top:c[1]+a[3]/10,left:c[0]})})}function e(){b("#lightbox-loading").show();a.fixedNavigation?b("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide():b("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide();var c=new Image;c.onload=function(){b("#lightbox-image").attr("src",a.imageArray[a.activeImage][0]);i(c.width,c.height);c.onload=
function(){}};c.src=a.imageArray[a.activeImage][0]}function i(c,d){var e=b("#lightbox-container-image-box").width(),g=b("#lightbox-container-image-box").height(),h=c+a.containerBorderSize*2,i=d+a.containerBorderSize*2;e-=h;g-=i;b("#lightbox-container-image-box").animate({width:h,height:i},a.containerResizeSpeed,function(){j()});e==0&&g==0&&(b.browser.msie?f(250):f(100));b("#lightbox-container-image-data-box").css({width:c});b("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:d+a.containerBorderSize*
2})}function j(){b("#lightbox-loading").hide();b("#lightbox-image").fadeIn(function(){b("#lightbox-container-image-data-box").slideDown("fast");b("#lightbox-image-details-caption").hide();a.imageArray[a.activeImage][1]&&b("#lightbox-image-details-caption").html(a.imageArray[a.activeImage][1]).show();a.imageArray.length>1&&b("#lightbox-image-details-currentNumber").html(a.txtImage+" "+(a.activeImage+1)+" "+a.txtOf+" "+a.imageArray.length).show();n()});if(a.imageArray.length-1>a.activeImage)objNext=
new Image,objNext.src=a.imageArray[a.activeImage+1][0];if(a.activeImage>0)objPrev=new Image,objPrev.src=a.imageArray[a.activeImage-1][0]}function n(){b("#lightbox-nav").show();b("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({background:"transparent url("+a.imageBlank+") no-repeat"});a.activeImage!=0&&(a.fixedNavigation?b("#lightbox-nav-btnPrev").css({background:"url("+a.imageBtnPrev+") left 15% no-repeat"}).unbind().bind("click",function(){a.activeImage-=1;e();return false}):b("#lightbox-nav-btnPrev").unbind().hover(function(){b(this).css({background:"url("+
a.imageBtnPrev+") left 15% no-repeat"})},function(){b(this).css({background:"transparent url("+a.imageBlank+") no-repeat"})}).show().bind("click",function(){a.activeImage-=1;e();return false}));a.activeImage!=a.imageArray.length-1&&(a.fixedNavigation?b("#lightbox-nav-btnNext").css({background:"url("+a.imageBtnNext+") right 15% no-repeat"}).unbind().bind("click",function(){a.activeImage+=1;e();return false}):b("#lightbox-nav-btnNext").unbind().hover(function(){b(this).css({background:"url("+a.imageBtnNext+
") right 15% no-repeat"})},function(){b(this).css({background:"transparent url("+a.imageBlank+") no-repeat"})}).show().bind("click",function(){a.activeImage+=1;e();return false}));h()}function h(){b(document).keydown(function(c){c==null?(keycode=event.keyCode,escapeKey=27):(keycode=c.keyCode,escapeKey=c.DOM_VK_ESCAPE);key=String.fromCharCode(keycode).toLowerCase();(key==a.keyToClose||key=="x"||keycode==escapeKey)&&g();if((key==a.keyToPrev||keycode==37)&&a.activeImage!=0)a.activeImage-=1,e(),b(document).unbind();
if((key==a.keyToNext||keycode==39)&&a.activeImage!=a.imageArray.length-1)a.activeImage+=1,e(),b(document).unbind()})}function g(){b("#jquery-lightbox").remove();b("#jquery-overlay").fadeOut(function(){b("#jquery-overlay").remove()});b("embed, object, select").css({visibility:"visible"})}function k(){var a,b;window.innerHeight&&window.scrollMaxY?(a=window.innerWidth+window.scrollMaxX,b=window.innerHeight+window.scrollMaxY):document.body.scrollHeight>document.body.offsetHeight?(a=document.body.scrollWidth,
b=document.body.scrollHeight):(a=document.body.offsetWidth,b=document.body.offsetHeight);var f,d;if(self.innerHeight)f=document.documentElement.clientWidth?document.documentElement.clientWidth:self.innerWidth,d=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)f=document.documentElement.clientWidth,d=document.documentElement.clientHeight;else if(document.body)f=document.body.clientWidth,d=document.body.clientHeight;pageHeight=b<d?d:b;pageWidth=a<f?a:f;return arrayPageSize=
[pageWidth,pageHeight,f,d]}function l(){var a,b;if(self.pageYOffset)b=self.pageYOffset,a=self.pageXOffset;else if(document.documentElement&&document.documentElement.scrollTop)b=document.documentElement.scrollTop,a=document.documentElement.scrollLeft;else if(document.body)b=document.body.scrollTop,a=document.body.scrollLeft;return arrayPageScroll=[a,b]}function f(a){var b=new Date;do var f=new Date;while(f-b<a)}var a=jQuery.extend({overlayBgColor:"#000",overlayOpacity:0.8,fixedNavigation:false,imageLoading:"http://vlstatic.com/images/gallery/lightbox-ico-loading.gif",
imageBtnPrev:"http://vlstatic.com/images/gallery/lightbox-btn-prev.gif",imageBtnNext:"http://vlstatic.com/images/gallery/lightbox-btn-next.gif",imageBtnClose:"http://vlstatic.com/images/gallery/lightbox-btn-close.gif",imageBlank:"http://vlstatic.com/images/gallery/lightbox-blank.gif",containerBorderSize:10,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0},a),d=this;return this.unbind("click").click(function(){b("embed, object, select").css({visibility:"hidden"});
m();a.imageArray.length=0;a.activeImage=0;if(d.length==1)a.imageArray.push([this.getAttribute("href"),this.getAttribute("title")]);else for(var c=0;c<d.length;c++)a.imageArray.push([d[c].getAttribute("href"),d[c].getAttribute("title")]);for(;a.imageArray[a.activeImage][0]!=this.getAttribute("href");)a.activeImage++;e();return false})}})(jQuery);
(function(b,a,m){function e(){n=a[h](function(){i.each(function(){var a=b(this),d=a.width(),c=a.height(),e=b.data(this,k);if(d!==e.w||c!==e.h)a.trigger(g,[e.w=d,e.h=c])});e()},j[l])}var i=b([]),j=b.resize=b.extend(b.resize,{}),n,h="setTimeout",g="resize",k=g+"-special-event",l="delay";j[l]=250;j.throttleWindow=true;b.event.special[g]={setup:function(){if(!j.throttleWindow&&this[h])return false;var a=b(this);i=i.add(a);b.data(this,k,{w:a.width(),h:a.height()});i.length===1&&e()},teardown:function(){if(!j.throttleWindow&&
this[h])return false;var a=b(this);i=i.not(a);a.removeData(k);i.length||clearTimeout(n)},add:function(a){function d(a,d,e){var f=b(this),g=b.data(this,k);g.w=d!==m?d:f.width();g.h=e!==m?e:f.height();c.apply(this,arguments)}if(!j.throttleWindow&&this[h])return false;var c;if(b.isFunction(a))return c=a,d;else c=a.handler,a.handler=d}}})(jQuery,this);
