/*
 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
*/
(function(b){b.fn.extend({outerHTML:function(c){if(typeof c==="string"){var a=b(this);a.parent();return function(){var d=a.find("img");d.length>0&&d.remove();var f;b(c).map(function(){f=b(this);a.replaceWith(f)});return f}()}else return b("<div />").append(b(this).clone()).html()}})})(jQuery);
jQuery.cookie=function(b,c,a){if(arguments.length>1&&String(c)!=="[object Object]"){a=jQuery.extend({},a);if(c===null||c===void 0)a.expires=-1;if(typeof a.expires==="number"){var d=a.expires,f=a.expires=new Date;f.setDate(f.getDate()+d)}c=String(c);return document.cookie=[encodeURIComponent(b),"=",a.raw?c:encodeURIComponent(c),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}a=c||{};f=a.raw?function(b){return b}:
decodeURIComponent;return(d=RegExp("(?:^|; )"+encodeURIComponent(b)+"=([^;]*)").exec(document.cookie))?f(d[1]):null};
(function(b){b.event.special.mousewheel={setup:function(){var c=b.event.special.mousewheel.handler;b.browser.mozilla&&b(this).bind("mousemove.mousewheel",function(a){b.data(this,"mwcursorposdata",{pageX:a.pageX,pageY:a.pageY,clientX:a.clientX,clientY:a.clientY})});this.addEventListener?this.addEventListener(b.browser.mozilla?"DOMMouseScroll":"mousewheel",c,!1):this.onmousewheel=c},teardown:function(){var c=b.event.special.mousewheel.handler;b(this).unbind("mousemove.mousewheel");this.removeEventListener?
this.removeEventListener(b.browser.mozilla?"DOMMouseScroll":"mousewheel",c,!1):this.onmousewheel=function(){};b.removeData(this,"mwcursorposdata")},handler:function(c){var a=Array.prototype.slice.call(arguments,1),d=0,c=b.event.fix(c||window.event);b.extend(c,b.data(this,"mwcursorposdata")||{});c.wheelDelta&&(d=c.wheelDelta/120);c.detail&&(d=-c.detail/3);b.browser.opera&&(d=-c.wheelDelta);c.data=c.data||{};c.type="mousewheel";a.unshift(d);a.unshift(c);return b.event.handle.apply(this,a)}};b.fn.extend({mousewheel:function(b){return b?
this.bind("mousewheel",b):this.trigger("mousewheel")},unmousewheel:function(b){return this.unbind("mousewheel",b)}})})(jQuery);
(function(){function b(b,a){if(a)for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}function c(b){if(b===null||b===void 0)return!1;var a=typeof b;return a==="object"&&b.push?"array":a}function a(b,a){var c=[],d;for(d in b)b.hasOwnProperty(d)&&(c[d]=a(b[d]));return c}function d(b){switch(c(b)){case "string":return b=b.replace(RegExp('(["\\\\])',"g"),"\\$1"),b=b.replace(/^\s?(\d+)%/,"$1pct"),'"'+b+'"';case "array":return"["+a(b,function(b){return d(b)}).join(",")+"]";case "function":return'"function ()"';
case "object":var g=[],e;for(e in b)b.hasOwnProperty(e)&&g.push('"'+e+'":'+d(b[e]));return"{"+g.join(",")+"}"}return String(b).replace(/\s/g," ").replace(/\'/g,'"')}function f(a,c){var e=b({},a),f=document.all,h='<object width="'+e.width+'" height="'+e.height+'"';if(f&&!e.id)e.id="_"+(""+Math.random()).substring(9);e.id&&(h+=' id="'+e.id+'"');e.cachebusting&&(e.src+=(e.src.indexOf("?")!==-1?"&":"?")+Math.random());h+=e.w3c||!f?' data="'+e.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
h+=">";if(e.w3c||f)h+='<param name="movie" value="'+e.src+'" />';e.width=e.height=e.id=e.w3c=e.src=null;for(var i in e)e[i]!==null&&(h+='<param name="'+i+'" value="'+e[i]+'" />');e="";if(c){for(var k in c)c[k]!==null&&(e+=k+"="+(typeof c[k]==="object"?d(c[k]):c[k])+"&");e=e.substring(0,e.length-1);h+='<param name="flashvars" value=\''+e+"' />"}h+="</object>";return h}function i(a,c,e){var d=flashembed.getVersion();b(this,{getContainer:function(){return a},getConf:function(){return c},getVersion:function(){return d},
getFlashvars:function(){return e},getApi:function(){return a.firstChild},getHTML:function(){return f(c,e)}});var h=c.version,i=c.expressInstall,k=!h||flashembed.isSupported(h);if(k)c.onFail=c.version=c.expressInstall=null,a.innerHTML=f(c,e);else if(h&&i&&flashembed.isSupported([6,65]))b(c,{src:i}),e={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title},a.innerHTML=f(c,e);else if(a.innerHTML.replace(/\s/g,"")===""&&(a.innerHTML="<h2>Flash version "+h+" or greater is required</h2><h3>"+
(d[0]>0?"Your version is "+d:"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='http://www.adobe.com/go/getflashplayer'>here</a></p>"),a.tagName==="A"))a.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"};if(!k&&c.onFail&&(h=c.onFail.call(this),typeof h==="string"))a.innerHTML=h;document.all&&(window[c.id]=document.getElementById(c.id))}var l={width:"100%",height:"100%",allowfullscreen:!0,
allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:!1,cachebusting:!1};jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:l};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(a,c,e){if(typeof a==="string"){var d=document.getElementById(a);if(d)a=d;else{jQuery(function(){flashembed(a,c,e)});return}}if(a)return typeof c===
"string"&&(c={src:c}),d=b({},l),b(d,c),new i(a,d,e)};b(window.flashembed,{getVersion:function(){var b=[0,0],a;if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]==="object")a=navigator.plugins["Shockwave Flash"].description,typeof a!=="undefined"&&(a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),b=parseInt(a.replace(/^(.*)\..*$/,"$1"),10),a=/r/.test(a)?parseInt(a.replace(/^.*r(.*)$/,"$1"),10):0,b=[b,a]);else if(window.ActiveXObject){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(c){try{a=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),b=[6,0],a.AllowScriptAccess="always"}catch(d){if(b[0]===6)return b}try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(f){}}typeof a==="object"&&(a=a.GetVariable("$version"),typeof a!="undefined"&&(a=a.replace(/^\S+\s+(.*)$/,"$1").split(","),b=[parseInt(a[0],10),parseInt(a[2],10)]))}return b},isSupported:function(a){var b=flashembed.getVersion();return b[0]>a[0]||b[0]==a[0]&&b[1]>=a[1]},asString:d,getHTML:f});jQuery.fn.flashembed=function(a,
b){var c=null;this.each(function(){c=flashembed(this,a,b)});return a.api===!1?this:c}})();
(function(b){function c(d){a=b(d.newsList).data("newsTicker");if(a.currentItem>a.newsItemCounter)a.currentItem=0;else if(a.currentItem<0)a.currentItem=a.newsItemCounter;a.currentPosition===0&&(a.newsLinks[a.currentItem].length>0?(b(a.newsList).empty().append("<li><a></a></li>"),b(a.newsList+" li a").attr(a.newsAttributes[a.currentItem])):b(a.newsList).empty().append("<li></li>"));var f;if(a.animating){var i;i=a.currentPosition%2===0?a.placeHolder1:a.placeHolder2;a.currentPosition<a.newsItems[a.currentItem].length?
(f=a.newsItems[a.currentItem].substring(0,a.currentPosition),a.newsLinks[a.currentItem].length>0?b(a.newsList+" li a").text(f+i):b(a.newsList+" li").text(f+i),a.currentPosition++,setTimeout(function(){c(d);d=null},a.tickerRate)):(a.newsLinks[a.currentItem].length>0?b(a.newsList+" li a").text(a.newsItems[a.currentItem]):b(a.newsList+" li").text(a.newsItems[a.currentItem]),setTimeout(function(){if(a.animating)a.currentPosition=0,a.currentItem++,c(d),d=null},a.loopDelay))}else f=a.newsItems[a.currentItem],
a.newsLinks[a.currentItem].length>0?b(a.newsList+" li a").text(f):b(a.newsList+" li").text(f)}var a;jQuery.fn.newsTicker=function(d){var d=jQuery.extend({},jQuery.fn.newsTicker.defaults,d),f=[],i=[],l=[],j=0;b(d.newsList+" li").hide();b(d.newsList+" li").each(function(){if(b(this).children("a").length){f[j]=b(this).children("a").text();i[j]=b(this).children("a").attr("href");for(var a={},c=b(this).children("a")[0].attributes,d=0;d<c.length;d++)a[c[d].nodeName]=c[d].nodeValue;l[j]=a}else f[j]=b(this).text(),
i[j]="",l[j]="";j++});var g=b(d.newsList);g.data("newsTicker",{newsList:d.newsList,tickerRate:d.tickerRate,startDelay:d.startDelay,loopDelay:d.loopDelay,placeHolder1:d.placeHolder1,placeHolder2:d.placeHolder2,controls:d.controls,ownControls:d.ownControls,stopOnHover:d.stopOnHover,resumeOffHover:d.resumeOffHover,newsItems:f,newsLinks:i,newsAttributes:l,newsItemCounter:j-1,currentItem:0,currentPosition:0,firstRun:1}).bind({stop:function(){a=g.data("newsTicker");if(a.animating)a.animating=!1},play:function(){a=
g.data("newsTicker");if(!a.animating)a.animating=!0,setTimeout(function(){c(a);a=null},a.startDelay)},resume:function(){a=g.data("newsTicker");if(!a.animating)a.animating=!0,a.currentPosition=0,a.currentItem++,c(a)},next:function(){a=g.data("newsTicker");b(a.newsList).trigger("stop");a.currentPosition=0;a.currentItem++;c(a)},previous:function(){a=g.data("newsTicker");b(a.newsList).trigger("stop");a.currentPosition=0;a.currentItem--;c(a)}});d.stopOnHover&&(g.bind({mouseover:function(){a=g.data("newsTicker");
a.animating&&(b(a.newsList).trigger("stop"),a.controls&&(b(".stop").hide(),b(".resume").show()))}}),d.resumeOffHover&&g.bind({mouseout:function(){a=g.data("newsTicker");a.animating||b(a.newsList).trigger("resume")}}));a=g.data("newsTicker");if(a.controls||a.ownControls)a.ownControls||b('<ul class="ticker-controls"><li class="play"><a href="#play">Play</a></li><li class="resume"><a href="#resume">Resume</a></li><li class="stop"><a href="#stop">Stop</a></li><li class="previous"><a href="#previous">Previous</a></li><li class="next"><a href="#next">Next</a></li></ul>').insertAfter(b(a.newsList)),
b(".play").hide(),b(".resume").hide(),b(".play").click(function(c){b(a.newsList).trigger("play");b(".play").hide();b(".resume").hide();b(".stop").show();c.preventDefault()}),b(".resume").click(function(c){b(a.newsList).trigger("resume");b(".play").hide();b(".resume").hide();b(".stop").show();c.preventDefault()}),b(".stop").click(function(c){b(a.newsList).trigger("stop");b(".stop").hide();b(".resume").show();c.preventDefault()}),b(".previous").click(function(c){b(a.newsList).trigger("previous");b(".stop").hide();
b(".resume").show();c.preventDefault()}),b(".next").click(function(c){b(a.newsList).trigger("next");b(".stop").hide();b(".resume").show();c.preventDefault()});b(a.newsList).trigger("play")};jQuery.fn.newsTicker.defaults={newsList:"#news",tickerRate:80,startDelay:100,loopDelay:3E3,placeHolder1:" |",placeHolder2:"_",controls:!0,ownControls:!1,stopOnHover:!0,resumeOffHover:!1}})(jQuery);
(function(b){b.fn.lightBox=function(c){function a(){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="'+c.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="'+
c.imageBtnClose+'"></a></div></div></div></div>');var a=e();b("#jquery-overlay").css({backgroundColor:c.overlayBgColor,opacity:c.overlayOpacity,width:a[0],height:a[1]}).fadeIn();var d=n();b("#jquery-lightbox").css({top:d[1]+a[3]/10,left:d[0]}).show();b("#jquery-overlay,#jquery-lightbox").click(function(){g()});b("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){g();return!1});b(window).resize(function(){var a=e();b("#jquery-overlay").css({width:a[0],height:a[1]});var c=n();b("#jquery-lightbox").css({top:c[1]+
a[3]/10,left:c[0]})})}function d(){b("#lightbox-loading").show();c.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 a=new Image;a.onload=function(){b("#lightbox-image").attr("src",c.imageArray[c.activeImage][0]);f(a.width,a.height);a.onload=function(){}};a.src=c.imageArray[c.activeImage][0]}
function f(a,d){var e=b("#lightbox-container-image-box").width(),f=b("#lightbox-container-image-box").height(),g=a+c.containerBorderSize*2,j=d+c.containerBorderSize*2;e-=g;f-=j;b("#lightbox-container-image-box").animate({width:g,height:j},c.containerResizeSpeed,function(){i()});e==0&&f==0&&(b.browser.msie?h(250):h(100));b("#lightbox-container-image-data-box").css({width:a});b("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:d+c.containerBorderSize*2})}function i(){b("#lightbox-loading").hide();
b("#lightbox-image").fadeIn(function(){b("#lightbox-container-image-data-box").slideDown("fast");b("#lightbox-image-details-caption").hide();c.imageArray[c.activeImage][1]&&b("#lightbox-image-details-caption").html(c.imageArray[c.activeImage][1]).show();c.imageArray.length>1&&b("#lightbox-image-details-currentNumber").html(c.txtImage+" "+(c.activeImage+1)+" "+c.txtOf+" "+c.imageArray.length).show();l()});if(c.imageArray.length-1>c.activeImage)objNext=new Image,objNext.src=c.imageArray[c.activeImage+
1][0];if(c.activeImage>0)objPrev=new Image,objPrev.src=c.imageArray[c.activeImage-1][0]}function l(){b("#lightbox-nav").show();b("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({background:"transparent url("+c.imageBlank+") no-repeat"});c.activeImage!=0&&(c.fixedNavigation?b("#lightbox-nav-btnPrev").css({background:"url("+c.imageBtnPrev+") left 15% no-repeat"}).unbind().bind("click",function(){c.activeImage-=1;d();return!1}):b("#lightbox-nav-btnPrev").unbind().hover(function(){b(this).css({background:"url("+
c.imageBtnPrev+") left 15% no-repeat"})},function(){b(this).css({background:"transparent url("+c.imageBlank+") no-repeat"})}).show().bind("click",function(){c.activeImage-=1;d();return!1}));c.activeImage!=c.imageArray.length-1&&(c.fixedNavigation?b("#lightbox-nav-btnNext").css({background:"url("+c.imageBtnNext+") right 15% no-repeat"}).unbind().bind("click",function(){c.activeImage+=1;d();return!1}):b("#lightbox-nav-btnNext").unbind().hover(function(){b(this).css({background:"url("+c.imageBtnNext+
") right 15% no-repeat"})},function(){b(this).css({background:"transparent url("+c.imageBlank+") no-repeat"})}).show().bind("click",function(){c.activeImage+=1;d();return!1}));j()}function j(){b(document).keydown(function(a){a==null?(keycode=event.keyCode,escapeKey=27):(keycode=a.keyCode,escapeKey=a.DOM_VK_ESCAPE);key=String.fromCharCode(keycode).toLowerCase();(key==c.keyToClose||key=="x"||keycode==escapeKey)&&g();if((key==c.keyToPrev||keycode==37)&&c.activeImage!=0)c.activeImage-=1,d(),b(document).unbind();
if((key==c.keyToNext||keycode==39)&&c.activeImage!=c.imageArray.length-1)c.activeImage+=1,d(),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 e(){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 c,d;if(self.innerHeight)c=document.documentElement.clientWidth?document.documentElement.clientWidth:self.innerWidth,d=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)c=document.documentElement.clientWidth,d=document.documentElement.clientHeight;else if(document.body)c=document.body.clientWidth,d=document.body.clientHeight;pageHeight=b<d?d:b;pageWidth=a<c?a:c;return arrayPageSize=
[pageWidth,pageHeight,c,d]}function n(){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 h(a){var b=new Date;do var c=new Date;while(c-b<a)}var c=jQuery.extend({overlayBgColor:"#000",overlayOpacity:0.8,fixedNavigation:!1,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},c),m=this;return this.unbind("click").click(function(){b("embed, object, select").css({visibility:"hidden"});
a();c.imageArray.length=0;c.activeImage=0;if(m.length==1)c.imageArray.push([this.getAttribute("href"),this.getAttribute("title")]);else for(var e=0;e<m.length;e++)c.imageArray.push([m[e].getAttribute("href"),m[e].getAttribute("title")]);for(;c.imageArray[c.activeImage][0]!=this.getAttribute("href");)c.activeImage++;d();return!1})}})(jQuery);
