/*
 * fancyBox - jQuery Plugin
 * version: 2.0.3 (29/11/2011)
 * @requires jQuery v1.6 or later
 * Examples at http://fancyapps.com/fancybox/
 * License: www.fancyapps.com/fancybox/#license
 * Copyright 2011 Janis Skarnelis - janis@fancyapps.com
 */
(function(a,b,c){var d=c(a),e=c(b),f=c.fancybox=function(){f.open.apply(this,arguments)},g=false,h=null;c.extend(f,{version:"2.0.3",defaults:{padding:15,margin:20,width:800,height:600,minWidth:200,minHeight:200,maxWidth:9999,maxHeight:9999,autoSize:true,fitToView:true,aspectRatio:false,topRatio:.5,fixed:!c.browser.msie||c.browser.version>6,scrolling:"auto",wrapCSS:"fancybox-default",arrows:true,closeBtn:true,closeClick:false,nextClick:false,mouseWheel:true,autoPlay:false,playSpeed:3e3,modal:false,loop:true,ajax:{},keys:{next:[13,32,34,39,40],prev:[8,33,37,38],close:[27]},index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe class="fancybox-iframe" name="fancybox-frame{rnd}" frameborder="0" hspace="0" '+(c.browser.msie?'allowtransparency="true""':"")+' scrolling="{scrolling}" src="{href}"></iframe>',swf:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{href}" /><embed src="{href}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="100%" height="100%" wmode="transparent"></embed></object>',error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<div title="Close" class="fancybox-item fancybox-close"></div>',next:'<a title="Next" class="fancybox-item fancybox-next"><span></span></a>',prev:'<a title="Previous" class="fancybox-item fancybox-prev"><span></span></a>'},openEffect:"elastic",openSpeed:500,openEasing:"swing",openOpacity:true,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:500,closeEasing:"swing",closeOpacity:true,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:300,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:300,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:{speedIn:0,speedOut:0,opacity:.85,css:{cursor:"pointer","background-color":"rgba(0, 0, 0, 0.85)"},closeClick:true},title:{type:"float"}},onCancel:c.noop,beforeLoad:c.noop,afterLoad:c.noop,beforeShow:c.noop,afterShow:c.noop,beforeClose:c.noop,afterClose:c.noop},group:{},opts:{},coming:null,current:null,isOpen:false,isOpened:false,wrap:null,outer:null,inner:null,player:{timer:null,isActive:false},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,b){if(!c.isArray(a)){a=[a]}if(!a.length){return}f.close(true);f.opts=c.extend(true,{},f.defaults,b);f.group=a;f._start(f.opts.index||0)},cancel:function(){if(f.coming&&false===f.trigger("onCancel")){return}f.coming=null;f.hideLoading();if(f.ajaxLoad){f.ajaxLoad.abort()}f.ajaxLoad=null;if(f.imgPreload){f.imgPreload.onload=f.imgPreload.onabort=f.imgPreload.onerror=null}},close:function(a){f.cancel();if(!f.current||false===f.trigger("beforeClose")){return}f.unbindEvents();if(!f.isOpen||a&&a[0]===true){c(".fancybox-wrap").stop().trigger("onReset").remove();f._afterZoomOut()}else{f.isOpen=f.isOpened=false;c(".fancybox-item").remove();f.wrap.stop(true).removeClass("fancybox-opened");f.inner.css("overflow","hidden");f.transitions[f.current.closeMethod]()}},play:function(a){var b=function(){clearTimeout(f.player.timer)},d=function(){b();if(f.current&&f.player.isActive){f.player.timer=setTimeout(f.next,f.current.playSpeed)}},e=function(){b();c("body").unbind(".player");f.player.isActive=false;f.trigger("onPlayEnd")},g=function(){if(f.current&&(f.current.loop||f.current.index<f.group.length-1)){f.player.isActive=true;d();c("body").bind({"onCancel.player afterShow.player onUpdate.player":d,"beforeClose.player":e,"beforeLoad.player":b});f.trigger("onPlayStart")}};if(f.player.isActive||a&&a[0]===false){e()}else{g()}},next:function(){if(f.current){f.jumpto(f.current.index+1)}},prev:function(){if(f.current){f.jumpto(f.current.index-1)}},jumpto:function(a){if(!f.current){return}a=parseInt(a,10);if(f.group.length>1&&f.current.loop){if(a>=f.group.length){a=0}else if(a<0){a=f.group.length-1}}if(typeof f.group[a]!=="undefined"){f.cancel();f._start(a)}},reposition:function(a){if(f.isOpen){f.wrap.css(f._getPosition(a))}},update:function(){if(f.isOpen){if(!g){h=setInterval(function(){if(g){g=false;clearTimeout(h);if(f.current){if(f.current.autoSize){f.inner.height("auto");f.current.height=f.inner.height()}f._setDimension();if(f.current.canGrow){f.inner.height("auto")}f.reposition();f.trigger("onUpdate")}}},100)}g=true}},toggle:function(){if(f.isOpen){f.current.fitToView=!f.current.fitToView;f.update()}},hideLoading:function(){c("#fancybox-loading").remove()},showLoading:function(){f.hideLoading();c('<div id="fancybox-loading"></div>').click(f.cancel).appendTo("body")},getViewport:function(){return{x:d.scrollLeft(),y:d.scrollTop(),w:d.width(),h:d.height()}},unbindEvents:function(){if(f.wrap){f.wrap.unbind(".fb")}e.unbind(".fb");d.unbind(".fb")},bindEvents:function(){var a=f.current,b=a.keys;if(!a){return}d.bind("resize.fb, orientationchange.fb",f.update);if(b){e.bind("keydown.fb",function(a){if(c.inArray(a.target.tagName.toLowerCase(),["input","textarea","select","button"])>-1){return}if(c.inArray(a.keyCode,b.close)>-1){f.close();a.preventDefault()}else if(c.inArray(a.keyCode,b.next)>-1){f.next();a.preventDefault()}else if(c.inArray(a.keyCode,b.prev)>-1){f.prev();a.preventDefault()}})}if(c.fn.mousewheel&&a.mouseWheel&&f.group.length>1){f.wrap.bind("mousewheel.fb",function(a,b){if(c(a.target).get(0).clientHeight===0||c(a.target).get(0).scrollHeight===c(a.target).get(0).clientHeight){a.preventDefault();f[b>0?"prev":"next"]()}})}},trigger:function(a){var b,d=c.inArray(a,["onCancel","beforeLoad","afterLoad"])>-1?"coming":"current";if(!f[d]){return}if(c.isFunction(f[d][a])){b=f[d][a].apply(f[d],Array.prototype.slice.call(arguments,1))}if(b===false){return false}if(f[d].helpers){c.each(f[d].helpers,function(b,d){if(d&&typeof f.helpers[b]!=="undefined"&&c.isFunction(f.helpers[b][a])){f.helpers[b][a](d)}})}c.event.trigger(a+".fb")},isImage:function(a){return a&&a.match(/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i)},isSWF:function(a){return a&&a.match(/\.(swf)(.*)?$/i)},_start:function(a){var b=f.group[a]||null,d,e,g,h,i=c.extend(true,{},f.opts,c.isPlainObject(b)?b:{},{index:a,element:b});if(typeof i.margin==="number"){i.margin=[i.margin,i.margin,i.margin,i.margin]}if(i.modal){c.extend(true,i,{closeBtn:false,closeClick:false,nextClick:false,arrows:false,mouseWheel:false,keys:null,helpers:{overlay:{css:{cursor:"auto"},closeClick:false}}})}f.coming=i;if(false===f.trigger("beforeLoad")){f.coming=null;return}if(typeof b==="object"&&(b.nodeType||b instanceof c)){d=true;i.href=c(b).attr("href")||i.href;i.title=c(b).attr("title")||i.title;if(c.metadata){c.extend(i,c(b).metadata())}}g=i.type;e=i.href;if(!g){if(d){h=c(b).data("fancybox-type");if(!h&&b.className){h=b.className.match(/fancybox\.(\w+)/);h=h?h[1]:false}}if(h){g=h}else if(e){if(f.isImage(e)){g="image"}else if(f.isSWF(e)){g="swf"}else if(e.match(/^#/)){g="inline"}}if(!g){g=d?"inline":"html"}i.type=g}if(g==="inline"||g==="html"){if(!i.content){i.content=g==="inline"&&e?c(e):b}if(!i.content.length){g=null}}else{i.href=e||b;if(!i.href){g=null}}i.group=f.group;if(g==="image"){f._loadImage()}else if(g==="ajax"){f._loadAjax()}else if(g){f._afterLoad()}else{f._error()}},_error:function(){f.coming.type="html";f.coming.minHeight=0;f.coming.autoSize=true;f.coming.content=f.coming.tpl.error;f._afterLoad()},_loadImage:function(){f.imgPreload=new Image;f.imgPreload.onload=function(){this.onload=this.onerror=null;f.coming.width=this.width;f.coming.height=this.height;f._afterLoad()};f.imgPreload.onerror=function(){this.onload=this.onerror=null;f._error()};f.imgPreload.src=f.coming.href;if(!f.imgPreload.complete){f.showLoading()}},_loadAjax:function(){f.showLoading();f.ajaxLoad=c.ajax(c.extend({},f.coming.ajax,{url:f.coming.href,error:function(a,b,c){if(b!=="abort"){f.coming.content=c;f._error()}else{f.hideLoading()}},success:function(a,b,c){if(b==="success"){f.coming.content=a;f._afterLoad()}}}))},_afterLoad:function(){f.hideLoading();if(!f.coming||false===f.trigger("afterLoad",f.current)){f.coming=false;return}if(f.isOpened){c(".fancybox-item").remove();f.wrap.stop(true).removeClass("fancybox-opened");f.inner.css("overflow","hidden");f.transitions[f.current.prevMethod]()}else{c(".fancybox-wrap").stop().trigger("onReset").remove();f.trigger("afterClose")}f.unbindEvents();f.isOpen=false;f.current=f.coming;f.coming=false;f.wrap=c(f.current.tpl.wrap).addClass("fancybox-tmp "+f.current.wrapCSS).appendTo("body");f.outer=c(".fancybox-outer",f.wrap).css("padding",f.current.padding+"px");f.inner=c(".fancybox-inner",f.wrap);f._setContent();f.trigger("beforeShow");f._setDimension();f.wrap.hide().removeClass("fancybox-tmp");f.bindEvents();f.transitions[f.isOpened?f.current.nextMethod:f.current.openMethod]()},_setContent:function(){var a,b,d=f.current,e=d.type;switch(e){case"inline":case"ajax":case"html":if(e==="inline"){a=d.content.show().detach();if(a.parent().hasClass("fancybox-inner")){a.parents(".fancybox-wrap").trigger("onReset").remove()}c(f.wrap).bind("onReset",function(){a.appendTo("body").hide()})}else{a=d.content}if(d.autoSize){b=c('<div class="fancybox-tmp"></div>').appendTo(c("body")).append(a);d.width=b.outerWidth();d.height=b.outerHeight(true);a=b.contents().detach();b.remove()}break;case"image":a=d.tpl.image.replace("{href}",d.href);d.aspectRatio=true;break;case"swf":a=d.tpl.swf.replace(/\{width\}/g,d.width).replace(/\{height\}/g,d.height).replace(/\{href\}/g,d.href);break;case"iframe":a=d.tpl.iframe.replace("{href}",d.href).replace("{scrolling}",d.scrolling).replace("{rnd}",(new Date).getTime());break}if(c.inArray(e,["image","swf","iframe"])>-1){d.autoSize=false;d.scrolling=false}f.inner.append(a)},_setDimension:function(){var a=f.current,b=f.getViewport(),d=a.margin,e=a.padding*2,g=a.width+e,h=a.height+e,i=a.width/a.height,j=a.maxWidth,k=a.maxHeight,l=a.minWidth,m=a.minHeight,n,o;b.w-=d[1]+d[3];b.h-=d[0]+d[2];if(g.toString().indexOf("%")>-1){g=b.w*parseFloat(g)/100}if(h.toString().indexOf("%")>-1){h=b.h*parseFloat(h)/100}if(a.fitToView){j=Math.min(b.w,j);k=Math.min(b.h,k)}j=Math.max(l,j);k=Math.max(m,k);if(a.aspectRatio){if(g>j){g=j;h=(g-e)/i+e}if(h>k){h=k;g=(h-e)*i+e}if(g<l){g=l;h=(g-e)/i+e}if(h<m){h=m;g=(h-e)*i+e}}else{g=Math.max(l,Math.min(g,j));h=Math.max(m,Math.min(h,k))}g=Math.round(g);h=Math.round(h);c(f.wrap.add(f.outer).add(f.inner)).width("auto").height("auto");f.inner.width(g-e).height(h-e);f.wrap.width(g);n=f.wrap.height();if(g>j||n>k){while((g>j||n>k)&&g>l&&n>m){h=h-10;if(a.aspectRatio){g=Math.round((h-e)*i+e);if(g<l){g=l;h=(g-e)/i+e}}else{g=g-10}f.inner.width(g-e).height(h-e);f.wrap.width(g);n=f.wrap.height()}}a.dim={width:g,height:n};a.canGrow=a.autoSize&&h>m&&h<k;a.canShrink=false;a.canExpand=false;if(g-e<a.width||h-e<a.height){a.canExpand=true}else if((g>b.w||n>b.h)&&g>l&&h>m){a.canShrink=true}o=n-e;f.innerSpace=o-f.inner.height();f.outerSpace=o-f.outer.height()},_getPosition:function(a){var b=f.getViewport(),c=f.current.margin,d=f.wrap.width()+c[1]+c[3],e=f.wrap.height()+c[0]+c[2],g={position:"absolute",top:c[0]+b.y,left:c[3]+b.x};if(f.current.fixed&&(!a||a[0]===false)&&e<=b.h&&d<=b.w){g={position:"fixed",top:c[0],left:c[3]}}g.top=Math.ceil(Math.max(g.top,g.top+(b.h-e)*f.current.topRatio))+"px";g.left=Math.ceil(Math.max(g.left,g.left+(b.w-d)*.5))+"px";return g},_afterZoomIn:function(){var a=f.current;f.isOpen=f.isOpened=true;f.wrap.addClass("fancybox-opened").css("overflow","visible");f.update();f.inner.css("overflow",a.scrolling==="auto"?"auto":a.scrolling==="yes"?"scroll":"hidden");if(a.closeClick||a.nextClick){f.inner.bind("click.fb",a.nextClick?f.next:f.close)}if(a.closeBtn){c(f.current.tpl.closeBtn).appendTo(f.wrap).bind("click.fb",f.close)}if(a.arrows&&f.group.length>1){if(a.loop||a.index>0){c(a.tpl.prev).appendTo(f.wrap).bind("click.fb",f.prev)}if(a.loop||a.index<f.group.length-1){c(a.tpl.next).appendTo(f.wrap).bind("click.fb",f.next)}}f.trigger("afterShow");if(f.opts.autoPlay&&!f.player.isActive){f.opts.autoPlay=false;f.play()}},_afterZoomOut:function(){f.trigger("afterClose");f.wrap.trigger("onReset").remove();c.extend(f,{group:{},opts:{},current:null,isOpened:false,isOpen:false,wrap:null,outer:null,inner:null})}});f.transitions={getOrigPosition:function(){var a=f.current.element,b={},d=50,e=50,g,h;if(a&&a.nodeName&&c(a).is(":visible")){g=c(a).find("img:first");if(g.length){b=g.offset();d=g.outerWidth();e=g.outerHeight()}else{b=c(a).offset()}}else{h=f.getViewport();b.top=h.y+(h.h-e)*.5;b.left=h.x+(h.w-d)*.5}b={top:Math.ceil(b.top)+"px",left:Math.ceil(b.left)+"px",width:Math.ceil(d)+"px",height:Math.ceil(e)+"px"};return b},step:function(a,b){var c,d,e;if(b.prop==="width"||b.prop==="height"){d=e=Math.ceil(a-f.current.padding*2);if(b.prop==="height"){c=(a-b.start)/(b.end-b.start);if(b.start>b.end){c=1-c}d-=f.innerSpace*c;e-=f.outerSpace*c}f.inner[b.prop](d);f.outer[b.prop](e)}},zoomIn:function(){var a=f.current,b,d,e=a.dim;if(a.openEffect==="elastic"){d=c.extend({},e,f._getPosition(true));delete d.position;b=this.getOrigPosition();if(a.openOpacity){b.opacity=0;d.opacity=1}f.wrap.css(b).show().animate(d,{duration:a.openSpeed,easing:a.openEasing,step:this.step,complete:f._afterZoomIn})}else{f.wrap.css(c.extend({},e,f._getPosition()));if(a.openEffect==="fade"){f.wrap.fadeIn(a.openSpeed,f._afterZoomIn)}else{f.wrap.show();f._afterZoomIn()}}},zoomOut:function(){var a=f.current,b;if(a.closeEffect==="elastic"){if(f.wrap.css("position")==="fixed"){f.wrap.css(f._getPosition(true))}b=this.getOrigPosition();if(a.closeOpacity){b.opacity=0}f.wrap.animate(b,{duration:a.closeSpeed,easing:a.closeEasing,step:this.step,complete:f._afterZoomOut})}else{f.wrap.fadeOut(a.closeEffect==="fade"?a.closeSpeed:0,f._afterZoomOut)}},changeIn:function(){var a=f.current,b;if(f.current.nextEffect==="elastic"){b=f._getPosition(true);b.opacity=0;b.top=parseInt(b.top,10)-200+"px";f.wrap.css(b).show().animate({opacity:1,top:"+=200px"},{duration:a.nextSpeed,complete:f._afterZoomIn})}else{f.wrap.css(f._getPosition());if(a.nextEffect==="fade"){f.wrap.hide().fadeIn(a.nextSpeed,f._afterZoomIn)}else{f.wrap.show();f._afterZoomIn()}}},changeOut:function(){function a(){c(this).trigger("onReset").remove()}f.wrap.removeClass("fancybox-opened");if(f.current.prevEffect==="elastic"){f.wrap.animate({opacity:0,top:"+=200px"},{duration:f.current.prevSpeed,complete:a})}else{f.wrap.fadeOut(f.current.prevEffect==="fade"?f.current.prevSpeed:0,a)}}};f.helpers.overlay={overlay:null,update:function(){var a,f,g;this.overlay.width(0).height(0);if(c.browser.msie){f=Math.max(b.documentElement.scrollWidth,b.body.scrollWidth);g=Math.max(b.documentElement.offsetWidth,b.body.offsetWidth);a=f<g?d.width():f}else{a=e.width()}this.overlay.width(a).height(e.height())},beforeShow:function(a){if(this.overlay){return}this.overlay=c('<div id="fancybox-overlay"></div>').css(a.css||{background:"black"}).appendTo("body");this.update();if(a.closeClick){this.overlay.bind("click.fb",f.close)}d.bind("resize.fb",c.proxy(this.update,this));this.overlay.fadeTo(a.speedIn||"fast",a.opacity||1)},onUpdate:function(){this.update()},afterClose:function(a){if(this.overlay){this.overlay.fadeOut(a.speedOut||"fast",function(){c(this).remove()})}this.overlay=null}};f.helpers.title={beforeShow:function(a){var b,d=f.current.title;if(d){b=c('<div class="fancybox-title fancybox-title-'+a.type+'-wrap">'+d+"</div>").appendTo("body");if(a.type==="float"){b.width(b.width());b.wrapInner('<span class="child"></span>');f.current.margin[2]+=Math.abs(parseInt(b.css("margin-bottom"),10))}b.appendTo(a.type==="over"?f.inner:a.type==="outside"?f.wrap:f.outer)}}};c.fn.fancybox=function(a){function g(a){var e=[],g=false,h=c(this).data("fancybox-group");a.preventDefault();if(typeof h!=="undefined"){g=h?"data-fancybox-group":false}else if(this.rel&&this.rel!==""&&this.rel!=="nofollow"){h=this.rel;g="rel"}if(g){e=d.length?c(d).filter("["+g+'="'+h+'"]'):c("["+g+'="'+h+'"]')}if(e.length){b.index=e.index(this);f.open(e.get(),b)}else{f.open(this,b)}return false}var b=a||{},d=this.selector||"";if(d){e.undelegate(d,"click.fb-start").delegate(d,"click.fb-start",g)}else{c(this).unbind("click.fb-start").bind("click.fb-start",g)}return this}})(window,document,jQuery);

/**
 * Cookie plugin
 */
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(36)};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[2-9a-hj-p]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('j.5=function(8,9,2){6(e 9!=\'undefined\'){2=2||{};6(9===k){9=\'\';2.3=-1}4 3=\'\';6(2.3&&(e 2.3==\'l\'||2.3.m)){4 7;6(e 2.3==\'l\'){7=new Date();7.setTime(7.getTime()+(2.3*24*n*n*1000))}o{7=2.3}3=\'; 3=\'+7.m()}4 a=2.a?\'; a=\'+(2.a):\'\';4 b=2.b?\'; b=\'+(2.b):\'\';4 c=2.c?\'; c\':\'\';d.5=[8,\'=\',encodeURIComponent(9),3,a,b,c].join(\'\')}o{4 f=k;6(d.5&&d.5!=\'\'){4 g=d.5.split(\';\');for(4 i=0;i<g.h;i++){4 5=j.trim(g[i]);6(5.p(0,8.h+1)==(8+\'=\')){f=decodeURIComponent(5.p(8.h+1));break}}}return f}};',[],26,'||options|expires|var|cookie|if|date|name|value|path|domain|secure|document|typeof|cookieValue|cookies|length||jQuery|null|number|toUTCString|60|else|substring'.split('|'),0,{}))

/**
 * jQuery.Preload
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[3-9a-df-hj-zA-P]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';(8($){g $9=$.9=8(6,4){5(6.x)6=$(6);4=$.extend({},$9.y,4);g p=$.map(6,8(a){5(!a)b;5(a.x)b 4.z+a+4.A;g h=a.7||a.href;5(typeof 4.q==\'string\'&&a.7)a.7=4.q;5(h&&4.B)h=h.r(4.B,4.r);b h||C});g 3={D:0,E:0,c:0,s:0,k:p.length};5(!3.k)b t();g d=\'<f/>\',F=4.G;while(--F>0)d+=\'<f/>\';d=$(d).u(l).H(l).bind(\'I\',l).each(m);8 l(e){3.v=e.type==\'u\';3.w=j.7;g n=3.6=6[j.J];3[3.v?\'D\':\'E\']++;3.s++;5(4.q&&n.7)n.7=3.v?3.w:4.notFound||n.7;5(4.K)4.K(3);5(3.s<3.k)m(0,j);else{5(d.o)d.o(\'u\').o(\'H\').o(\'I\');d=C;t()}};8 m(i,f,L){5($.browser.msie&&3.c&&3.c%$9.M==0&&!L){setTimeout(8(){m(i,f,true)},0);b N}5(3.c==3.k)b N;f.J=3.c;f.7=p[3.c++];5(4.O){3.w=f.7;3.6=6[3.c-1];4.O(3)}};8 t(){5(4.P)4.P(3)}};$9.M=14;$9.y={G:2,z:\'\',A:\'\',r:\'\'};$.fn.9=8(4){$9(j,4);b j}})(jQuery);',[],52,'|||data|settings|if|original|src|function|preload|source|return|next|imgs||img|var|url||this|total|handler|fetch|orig|unbind|sources|placeholder|replace|done|finish|load|found|image|split|defaults|base|ext|find|null|loaded|failed|thres|threshold|error|abort|index|onComplete|retry|gap|false|onRequest|onFinish'.split('|'),0,{}))

/**
 * jQuery-Plugin "preloadCssImages"
 */

eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([3-9a-fhj-zA-Z]|1\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';e.preloadCssImages=n(b){b=e.extend({x:N,o:N,O:999,P:2},b);3 allImgs=[],8=0,4=[],d,y;n p(){clearTimeout(y);5(4&&4.9&&4[8]){8++;5(b.x){3 Q=(4[8])?\'Now R: <c>\'+4[8].q(\'/\')[4[8].q(\'/\').9-1]:\'R S\';e(b.x).html(\'<c r="numLoaded">\'+8+\'</c> of <c r="numTotal">\'+4.9+\'</c> 8 (<c r="percentLoaded">\'+(8/4.9*100).T(0)+\'%</c>) <c r="currentImg">\'+Q+\'</c></c>\')}5(b.o){3 z=e(b.o).width();e(b.o).css(\'background-position\',-(z-(z*8/4.9).T(0))+\'px 50%\')}A()}}n A(){5(4&&4.9&&4[8]){3 s=new Image();s.src=4[8];5(!s.S){e(s).bind(\'error load onreadystatechange\',p)}B{p()}y=U(p,b.O)}}n C(7,t){3 D=V,k=[],E=[],f;3 6=7.9;u(6--){3 F=\'\';5(t&&t[6]){f=t[6]}B{3 W=(7[6].v)?7[6].v:\'window.location.v\';3 G=W.q(\'/\');G.X();f=G.Y(\'/\');5(f){f+=\'/\'}}5(7[6].H||7[6].Z){d=(7[6].H)?7[6].H:7[6].Z;3 h=d.9;u(h--){5(d[h].I&&d[h].I.10){3 J=d[h].I.10;5(J.toLowerCase().indexOf(\'url\')!=-1){F+=J}}B 5(d[h].11){k.w(d[h].11);D=true}}}3 j=F.K(/[^\\("]+\\.(gif|jpg|jpeg|png)/g);5(j){3 i=j.9;u(i--){3 L=(j[i].12(0)==\'/\'||j[i].K(\'://\'))?j[i]:f+j[i];5(e.inArray(L,4)==-1){4.w(L)}}}5(!D&&7[6].l&&7[6].l.9){for(3 m=0,13=7[6].l.9;m<13;m++){3 a=7[6].l[m].v;a=a.q(\'/\');a.X();a=a.Y(\'/\');5(a){a+=\'/\'}3 14=(a.12(0)==\'/\'||a.K(\'://\'))?a:f+a;E.w(14);k.w(7[6].l[m])}}}5(k.9){C(k,E);15 V}3 M=b.P;u(M--){U(A,M)}}C(document.styleSheets);15 4};',[],68,'|||var|imgUrls|if|sheetIndex|sheets|loaded|length|iHref|settings|span|thisSheetRules|jQuery|baseURL||ruleIndex||tmpImage|imported|imports|iImport|function|statusBarEl|onImgComplete|split|class|img|urls|while|href|push|statusTextEl|errorTimer|barWidth|loadImgs|else|parseCSS|w3cImport|importedSrc|cssPile|baseURLarr|cssRules|style|text|match|imgSrc|downloads|null|errorDelay|simultaneousCacheLoading|nowloading|Loading|complete|toFixed|setTimeout|false|csshref|pop|join|rules|cssText|styleSheet|charAt|importLen|iSrc|return'.split('|'),0,{}))

/* -------------------------------------------------- *
 * ToggleVal 3.0
** -------------------------------------------------- */
;eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(5($){$.l.e=5(2){4(!2||t 2==\'G\'){2=$.r({},$.l.e.B,2)}E 4(t 2==\'J\'&&2.I()==\'g\'){s g=m}b 0.H(5(){4(g){$(0).u(\'v.8\').u(\'F.8\').M(\'1\');b a}s 1=\'\';P(2.z){i\'f\':4($(0).9(\'f\')){1=$(0).9(\'f\');$(0).3(1)}j;i\'k\':4($(0).9(\'c\')){1=$(\'k[q="\'+$(0).9(\'c\')+\'"]\').o();$(0).3(1)}j;i\'N\':1=2.o;$(0).3(1);j;C:1=$(0).3()}$(0).d(\'8\').6(\'1\',1);4(2.x==m&&$(0).9(\'c\')){$(\'k[q="\'+$(0).9(\'c\')+\'"]\').L()}$(0).y(\'v.8\',5(){4($(0).3()==$(0).6(\'1\')){$(0).3(\'\')}$(0).d(2.h)}).y(\'F.8\',5(){4($(0).3()==\'\'&&!2.p){$(0).3($(0).6(\'1\'))}$(0).D(2.h);4($(0).3()!=\'\'&&$(0).3()!=$(0).6(\'1\')){$(0).d(2.n)}E{$(0).D(2.n)}})})};$.l.e.B={h:\'A-Q\',n:\'A-w\',z:\'C\',o:K,x:a,p:a};$.r($.O[\':\'],{8:5(7){b $(7).6(\'1\')||a},w:5(7){4($(7).6(\'1\')&&$(7).3()!=$(7).6(\'1\')){b m}b a}})})(R);',54,54,'this|defText|theOptions|val|if|function|data|elem|toggleval|attr|false|return|id|addClass|toggleVal|title|destroy|focusClass|case|break|label|fn|true|changedClass|text|sticky|for|extend|var|typeof|unbind|focus|changed|removeLabels|bind|populateFrom|tv|defaults|default|removeClass|else|blur|object|each|toLowerCase|string|null|remove|removeData|custom|expr|switch|focused|jQuery'.split('|'),0,{}));

/*
 * jQuery Corners 0.3
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('1m.2s.2t=11(C){x N="2u";x V=B(C);x F=13;1B{F=(1n.23.10.2v!==24);x Y=1T.1U.1L("2w");y(Y>=0){F=13}}1C(E){}x W=13;1B{W=(1n.23.10.2x!==24);x Y=1T.1U.1L("2y");y(Y>=0&&1d(1T.1U.1e(Y+8))<3){W=13}}1C(E){}1f 1u.1M(11(b,h){$e=1m(h);y($e.2z(N)){1f}$e.2A(N);x a=/{(.*)}/.25(h.1V);x c=a?B(a[1],V):V;x j=h.2B.26();y(j=="27"){h=O(h)}y(F&&c.1o){K(h,c)}1g{y(W&&c.1p&&(c.15==c.12)){M(h,c)}1g{x d=D(h.1v);x f=D(h);28(j){19"a":19"27":Z(h,c,d,f);1a;2C:R(h,c,d,f);1a}}}});11 K(d,c){x a=""+c.15+"1b "+c.12+"1b";x b=1m(d);y(c.1i){b.14("2D",a)}y(c.1c){b.14("2E",a)}y(c.1j){b.14("2F",a)}y(c.1k){b.14("2G",a)}}11 M(d,c){x a=""+c.15+"1b";x b=1m(d);y(c.1i){b.14("-1N-1D-1O-2H",a)}y(c.1c){b.14("-1N-1D-1O-2I",a)}y(c.1j){b.14("-1N-1D-1O-2J",a)}y(c.1k){b.14("-1N-1D-1O-2K",a)}}11 Z(k,n,l,a){x m=S("2L");x i=S("2M");m.1h(i);x j=S("1c");x d=S("1W","1q");j.1h(d);x h=S("1c");x c=T(k,n,S("1W"));h.1h(c);x f=S("1c");x b=S("1W","1r");f.1h(b);y(n.1i||n.1c){i.1h(j);X(d,n,l,a,17)}i.1h(h);y(n.1j||n.1k){i.1h(f);X(b,n,l,a,13)}k.1h(m);y(1m.2N.2O){m.1w=Q}k.10.1X="1Y"}11 Q(){y(!1u.1v.1w){1u.1v.2P()}}11 O(c){x b=1n.1t("a");b.29=c.29;b.1V=c.1V;y(c.1w){b.2a="2Q:";b.1w=c.1w}1g{1m(c).2b("2c").1M(11(){b.2a=1u.2R});b.1w=I}x a=1n.2S(c.2T);b.1h(a);c.1v.2U(b,c);1f b}11 I(){1m(1u).2b("2c").1M(11(){1u.2V()});1f 13}11 R(d,a,b,c){x f=T(d,a,1n.1t("1E"));d.1h(f);y(a.1i||a.1c){X(d,a,b,c,17)}y(a.1j||a.1k){X(d,a,b,c,13)}}11 T(j,i,k){x b=1m(j);x l;2W(l=j.1F){k.1h(l)}y(j.10.1x){x f=1d(b.14("1x"));k.10.1x=f+"1b";f+=1d(b.14("1l-1q"))+1d(b.14("1l-1r"));j.10.1x=f+"1b"}y(j.10.1P){x a=1d(b.14("1P"));k.10.1P=a+"1b";a+=1d(b.14("1l-1G"))+1d(b.14("1l-1H"));j.10.1P=a+"1b"}k.10.2X=b.14("1l-1G");k.10.2Y=b.14("1l-1H");y(i.1i||i.1c){k.10.2d=U(j,i,b.14("1l-1q"),17)}1g{k.10.2d=b.14("1l-1q")}y(i.1j||i.1k){k.10.2e=U(j,i,b.14("1l-1r"),13)}1g{k.10.2e=b.14("1l-1r")}j.10.1l=0;1f k}11 U(f,a,d,c){y(d.1L("1b")<0){1B{2f.2g("%s 1l 2Z 30 31",(c?"1q":"1r"),f)}1C(b){}d=a.12+"1b"}d=1d(d);y(d-a.12<0){1B{2f.2g("%s 1l 32 %2h 1I %2h 33:",(c?"1q":"1r"),d,a.12,f)}1C(b){}d=a.12}1f d-a.12+"1b"}11 S(b,a){x c=1n.1t(b);c.10.1D="2i";c.10.34="35";c.10.36=0;c.10.1l=0;c.10.1Z=0;y(a){c.10.37=a}1f c}11 D(b){1B{x d=1m.14(b,"38-39");y(d.3a(/^(1s|3b\\(0,\\s*0,\\s*0,\\s*0\\))$/i)&&b.1v){1f D(b.1v)}y(d==3c){1f"#2j"}y(d.1L("3d")>-1){d=A(d)}y(d.1Q==4){d=L(d)}1f d}1C(a){1f"#2j"}}11 L(a){1f"#"+a.1e(1,2)+a.1e(1,2)+a.1e(2,3)+a.1e(2,3)+a.1e(3,4)+a.1e(3,4)}11 A(h){x a=3e;x d="";x b;x e=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;x f=e.25(h);1I(b=1;b<4;b++){d+=("0"+1d(f[b]).1R(16)).3f(-2)}1f"#"+d}11 B(b,d){x b=b||"";x c={15:5,12:5,1i:13,1c:13,1j:13,1k:13,1o:17,1p:17,1s:13};y(d){c.15=d.15;c.12=d.12;c.1o=d.1o;c.1s=d.1s;c.1p=d.1p}x a=13;x e=13;1m.1M(b.3g(" "),11(f,j){j=j.26();x h=1d(j);y(h>0&&j==h+"1b"){c.12=h;y(!a){c.15=h}a=17}1g{28(j){19"20-3h":c.1o=c.1p=13;1a;19"1o":c.1o=17;1a;19"20-1o":c.1o=13;1a;19"1p":c.1p=17;1a;19"20-1p":c.1p=13;1a;19"3i-3j":c.1s=13;1a;19"1s":c.1s=17;1a;19"1q":e=c.1i=c.1c=17;1a;19"1H":e=c.1c=c.1k=17;1a;19"1r":e=c.1j=c.1k=17;1a;19"1G":e=c.1i=c.1j=17;1a;19"1q-1G":e=c.1i=17;1a;19"1q-1H":e=c.1c=17;1a;19"1r-1G":e=c.1j=17;1a;19"1r-1H":e=c.1k=17;1a}}});y(!e){y(!d){c.1i=c.1c=c.1j=c.1k=17}1g{c.1i=d.1i;c.1c=d.1c;c.1j=d.1j;c.1k=d.1k}}1f c}11 P(f,d,h){x e=2k(1d("1y"+f.1e(1,3)),1d("1y"+f.1e(3,5)),1d("1y"+f.1e(5,7)));x c=2k(1d("1y"+d.1e(1,3)),1d("1y"+d.1e(3,5)),1d("1y"+d.1e(5,7)));r="0"+18.21(e[0]+(c[0]-e[0])*h).1R(16);g="0"+18.21(e[1]+(c[1]-e[1])*h).1R(16);d="0"+18.21(e[2]+(c[2]-e[2])*h).1R(16);1f"#"+r.1e(r.1Q-2)+g.1e(g.1Q-2)+d.1e(d.1Q-2)}11 X(f,a,b,d,c){y(a.1s){G(f,a,b,c)}1g{J(f,a,b,d,c)}}11 J(k,z,p,a,n){x h,f;x l=1n.1t("1E");l.10.2l="1J";l.10.2m=p;x b=0;1I(h=1;h<=z.12;h++){x u,t,q;1K=18.1z(1-18.1A(1-h/z.12,2))*z.15;x c=z.15-18.3k(1K);x w=18.2n(b);x v=z.15-c-w;x o=1n.1t("1E");x m=l;o.10.1Z="2o "+c+"1b";o.10.1x="1J";o.10.1X="1Y";1I(f=1;f<=v;f++){y(f==1){y(f==v){u=((1K+b)*0.5)-w}1g{t=18.1z(1-18.1A(1-(c+1)/z.15,2))*z.12;u=(t-(z.12-h))*(1K-w-v+1)*0.5}}1g{y(f==v){t=18.1z(1-18.1A((z.15-c-f+1)/z.15,2))*z.12;u=1-(1-(t-(z.12-h)))*(1-(b-w))*0.5}1g{q=18.1z(1-18.1A((z.15-c-f)/z.15,2))*z.12;t=18.1z(1-18.1A((z.15-c-f+1)/z.15,2))*z.12;u=((t+q)*0.5)-(z.12-h)}}H(z,o,m,n,P(p,a,u));m=o;x o=m.2p(13);o.10.1Z="2o 1J"}H(z,o,m,n,a);b=1K}y(n){k.1S(l,k.1F)}1g{k.1h(l)}}11 H(c,a,e,d,b){y(d&&!c.1i){a.10.2q=0}y(d&&!c.1c){a.10.2r=0}y(!d&&!c.1j){a.10.2q=0}y(!d&&!c.1k){a.10.2r=0}a.10.2m=b;y(d){e.1h(a)}1g{e.1S(a,e.1F)}}11 G(c,o,l,h){x f=1n.1t("1E");f.10.2l="1J";x a=1n.1t("1E");a.10.1X="1Y";a.10.1x="1J";a.10.3l=l;a.10.3m="2i 3n";x m=o.15-1;x j=o.12-1;y(!j){j=1}1I(x b=0;b<o.12;b++){x n=m-18.2n(18.1z(1-18.1A(1-b/j,2))*m);y(b==2&&o.15==6&&o.12==6){n=2}x k=a.2p(13);k.10.22="0 "+n+"1b";y(h){k.10.22="0 "+(o.1c?n:0)+"1b 0 "+(o.1i?n:0)+"1b"}1g{k.10.22="0 "+(o.1k?n:0)+"1b 0 "+(o.1j?n:0)+"1b"}h?f.1h(k):f.1S(k,f.1F)}y(h){c.1S(f,c.1F)}1g{c.1h(f)}}};',62,210,'|||||||||||||||||||||||||||||||||var|if||||||||||||||||||||||||||||style|function|sizey|false|css|sizex||true|Math|case|break|px|tr|parseInt|substring|return|else|appendChild|tl|bl|br|padding|jQuery|document|webkit|mozilla|top|bottom|transparent|createElement|this|parentNode|onclick|height|0x|sqrt|pow|try|catch|border|div|firstChild|left|right|for|1px|arc|indexOf|each|moz|radius|width|length|toString|insertBefore|navigator|userAgent|className|td|overflow|hidden|margin|no|round|borderWidth|body|undefined|exec|toLowerCase|input|switch|id|href|parent|form|paddingTop|paddingBottom|console|error|ipx|none|ffffff|Array|fontSize|backgroundColor|floor|0px|cloneNode|marginLeft|marginRight|fn|corners|rounded_by_jQuery_corners|WebkitBorderRadius|Chrome|MozBorderRadius|Firefox|hasClass|addClass|nodeName|default|WebkitBorderTopLeftRadius|WebkitBorderTopRightRadius|WebkitBorderBottomLeftRadius|WebkitBorderBottomRightRadius|topleft|topright|bottomleft|bottomright|table|tbody|browser|msie|click|javascript|action|createTextNode|value|replaceChild|submit|while|paddingLeft|paddingRight|not|in|pixels|is|corner|borderCollapse|collapse|borderSpacing|verticalAlign|background|color|match|rgba|null|rgb|255|slice|split|native|anti|alias|ceil|borderColor|borderStyle|solid'.split('|'),0,{}));


/* RIVP 2009 */

/* FUNCTIONS ON ALL PAGES */
function myInitPages() {
    jQuery('body').addClass('hasJS');
	jQuery('#prelude').addClass('offLeft');
	jQuery('.toTop a').click( function() {
    	jQuery('html, body').animate({scrollTop:0}, 'slow');
		return false;
    });
}

/* PRELOAD CSS IMG AND ROLLOVER IMG */
function preloadImg() {
	if (!jQuery.cookie('preloadImgsCookie')) {
        jQuery('.swapImg').preload({
		    //onComplete: completeLoad,
			find: '-off',
		    replace: '-on'
		});
		jQuery.preloadCssImages();
		jQuery.cookie('preloadImgsCookie', 'PreloadImg', { path: '/', expires: 10});
	}
	/*function completeLoad( data ){
	 	update( data );
		jQuery('#image-loaded').html( data.image );
	};
	function update( data ){
		jQuery('#done').html( ''+data.done );
		jQuery('#total').html( ''+data.total );
		jQuery('#loaded').html( ''+data.loaded );
		jQuery('#failed').html( ''+data.failed );
	};*/
}

/* TOGGLEVAL ON INPUTS */
myToggleVal = function(elt) {
	jQuery(elt).toggleVal();
}

/* SAME HEIGHT ON BLOCKS (ALL BROWSERS) */
mySameHeight = function(elt) {
	var heightBlockMax=0;
	jQuery(elt).each(function(){ if( jQuery(this).height() > heightBlockMax ) heightBlockMax = jQuery(this).height(); }); // get max height
	if (jQuery.browser.msie) {
		jQuery(elt).each(function(){ jQuery(this).css("height",heightBlockMax); }); // assign max height
	} else {
		jQuery(elt).each(function(){ jQuery(this).css("min-height",heightBlockMax); }); // assign max height
	}
	heightBlockMax=0;
}

/* ENABLE ROLLOVER ON TARGETED IMAGES (ALL BROWSERS) */
function imgRollover(elt) {
    jQuery(elt).each( function() {
		jQuery(this).hover(
			function() {
				jQuery(this).attr("src", jQuery(this).attr("src").replace("-off","-on"));
			},
			function () {
				jQuery(this).attr("src", jQuery(this).attr("src").replace("-on","-off"));
			}
		);
	});
}

/* SPECIAL BLOCKS */
function specialBlocks(elt,elt2) {
	var outsideClass = '.'+elt2;
	jQuery(elt).each(function() {
		var id2Move = jQuery(this).attr('id');
        jQuery(this).wrap('<div class="'+elt2+'"></div>');
		jQuery(this).parent(outsideClass).attr('id',id2Move);
		jQuery(this).removeAttr('id');
	});
}

/* FONT SIZING TOOL */
function fontTools(elt,placeHolder) {
	jQuery(placeHolder).append('<p id="fontTools"><img src="/blog/themes/rivp-2009/img/bt-font-plus-off.png" class="fontPlus swapImg" title="'+MSG_FONT_PLUS+'" alt="a+" /> <img src="/blog/themes/rivp-2009/img/bt-font-minus-off.png" class="fontMinus swapImg" title="'+MSG_FONT_MINUS+'" alt="a-" /> <img src="/blog/themes/rivp-2009/img/bt-font-reset-off.png" class="fontReset swapImg" title="'+MSG_FONT_RESET+'" alt="a" /></p><!-- #fontTools -->');
	imgRollover('.swapImg');
 	// Reset Font Size
	var originalFontSize = jQuery(elt).css('font-size');
	jQuery(".fontReset").click(function(){
		jQuery(elt).css('font-size', originalFontSize);
	});
	// Increase Font Size
	jQuery(".fontPlus").click(function(){
		var currentFontSize = jQuery(elt).css('font-size');
		var currentFontSizeNum = parseFloat(currentFontSize, 10);
		var newFontSize = currentFontSizeNum*1.25;
		jQuery(elt).css('font-size', newFontSize);
		return false;
	});
	// Decrease Font Size
	jQuery(".fontMinus").click(function(){
		var currentFontSize = jQuery(elt).css('font-size');
		var currentFontSizeNum = parseFloat(currentFontSize, 10);
		var newFontSize = currentFontSizeNum*0.8;
		jQuery(elt).css('font-size', newFontSize);
		return false;
	});
}

/* ACCORDION ON TOCs */
function tocAccordion(elt,wordLinkContainer,closeLinkText,openLinkText,closedText,OpenedText) {
    var container = '#'+elt;
    var elt = '.'+elt;
	jQuery(container).prepend('<p id="'+wordLinkContainer+'"><span class="openLink">'+openLinkText+'</span> | <span class="closeLink active">'+closeLinkText+'</span></p>');
	jQuery(elt).addClass('activeGlossary');
	jQuery(elt).children('dd').corners("10px bottom").hide();
	jQuery(elt).children('dt').attr('title',closedText).corners("10px top");
	jQuery(elt).children('dt.active').attr('title',OpenedText).next('dd').show().addClass('active');
	jQuery(elt).children('dt').click(function() {
		jQuery(this).toggleClass('active').next('dd').slideToggle('slow').toggleClass('active');
        if (jQuery(this).attr('class')=="active") {
        	jQuery(this).attr('title',OpenedText);
		} else {
        	jQuery(this).attr('title',closedText);
		}
		if (jQuery(elt).children('dt.active').size() > 0) {
			jQuery('#'+wordLinkContainer+' .closeLink').removeClass('active');
			jQuery('#'+wordLinkContainer+' .openLink').removeClass('active');
		} else {
			jQuery('#'+wordLinkContainer+' .closeLink').addClass('active');
		}
	});
	jQuery('#'+wordLinkContainer+' .openLink').click(function() {
		jQuery(elt).children('dd').slideDown('slow').addClass('active');
		jQuery(elt).children('dt').addClass('active').attr('title',OpenedText);
		jQuery(this).addClass('active');
		jQuery('#'+wordLinkContainer+' .closeLink').removeClass('active');
	});
	jQuery('#'+wordLinkContainer+' .closeLink').click(function() {
		jQuery(elt).children('dd').slideUp('slow').removeClass('active');
		jQuery(elt).children('dt').removeClass('active').attr('title',closedText);
		jQuery(this).addClass('active');
		jQuery('#'+wordLinkContainer+' .openLink').removeClass('active');
	});
}

/* LATNAV "ACCORDION" */
function myLatNavAccordion(elt,closedText,openedText) {
	jQuery(elt).children('dd').hide();
	jQuery(elt).children('dt').attr('title',closedText);
	jQuery(elt).children('dt.active').attr('title',openedText).next('dd').show();
	jQuery(elt).children('dt[class!=active]').click(function() {
		jQuery(this).attr('title',closedText).toggleClass('active').next('dd').slideToggle('slow');
	});
	jQuery(elt).children('dt[class=active]').click(function() {
		jQuery(this).attr('title',openedText).toggleClass('active').next('dd').slideToggle('slow');
	});
}

/* Only initialize functions for all pages if needed */
jQuery(document).ready(function() {

	initMyInitPages = myInitPages();

   	/* PRELOAD CSS IMG AND ROLLOVER IMG */
	// initPreloadImg = preloadImg();

    /* ENABLE ROLLOVER ON TARGETED IMAGES (ALL BROWSERS) */
	if (jQuery('.swapImg').size() > 0) { initImgRollover = imgRollover('.swapImg'); }

    /* TOGGLEVAL ON INPUTS */
	if (jQuery('input.swapValue').size() > 0) { initMyToggleVal = myToggleVal('input.swapValue'); }

	/* FONT SIZING TOOL */
	initFontTools = fontTools("#container","#pageTools");

    /* SPECIAL BLOCKS */
	if (jQuery('.blockInside').size() > 0) { initSpecialBlock = specialBlocks('.blockInside','blockOutside'); }

    /* SAME HEIGHT + SPECIAL BLOCKS ON HOME */
	if (jQuery('.dc-home').size() > 0) {
		initMySameHeight = mySameHeight('#homeOthers .homeOtherDescr');
		jQuery('.blockInside').corners("10px top");
	}

	/* SPECIAL BLOCKS EVERYWHERE ELSE */
	if (jQuery('.dc-post').size() > 0) {
		specialBlocks('.post-content blockquote','blockquoteOutside');
		if (jQuery('.mainNbrs li').size() > 1) { initMySameHeight = mySameHeight('.mainNbrs li'); }
	}

	/* SPECIAL BLOCKS ON PRESENTATION PAGES */
	if (jQuery('.dc-category-prez').size() > 0) {
		jQuery('#presArtNbr2').corners("10px");
		jQuery('#presArtNbr3').corners("10px");
	}

    /* TOC ACCORDION */
	if (jQuery('#multitoc').size() > 0) { initTocAccordion = tocAccordion('multitoc','linkToggleAllWords',MSG_HIDE_ALL, MSG_SHOW_ALL, MSG_SHOW_LIST, MSG_HIDE_LIST); }

	/* LATNAV "ACCORDION" */
	if (jQuery('#latNav dl').size() > 0 && (jQuery('body').attr('id') != 'locHome')) { initMyLatNavAccordion = myLatNavAccordion('#latNav dl',MSG_SHOW_LIST,MSG_HIDE_LIST); }

    /* SAME HEIGHT ON N4 CAT LISTINGS IN CAT PAGES */
	if (jQuery('.dc-category').size() > 0) { initMySameHeight = mySameHeight('#goFurther .levelBelow'); }

    /* SAME HEIGHT ON SITEMAP */
	if (jQuery('.dc-sitemap').size() > 0) { initMySameHeight = mySameHeight('#sitemapBlock .sitemapCols'); }

    /* LINKS TO POPUPS IN LOCA COMMERCES */
	if (jQuery('.locPopupLink').size() > 0) {
		$('.locPopupLink').each(function () {
			jQuery(this).attr('href', jQuery(this).attr('href')+'?mode=popup');
		});
		$('.locPopupLink').fancybox({
			padding: 0,
			autoSize: false,
			fitToView: false,
			width: 910,
			height: 580,
			scrolling: 'no',
			type: 'iframe',
			helpers: {
				overlay: {
					opacity: 0.5,
					css: {
						'background-color': 'rgba(23, 104, 138, 0.5)' //Browsers who don`t support rgba will fall back to default color value defined at CSS file
					}
				}
			},
			openEffect: 'fade'
		});
	}


});














//END 
