
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - first_input_focus.js - */
// http://www.menttes.com.ar/portal_javascripts/first_input_focus.js?original=1
(function($){$(function(){if($("form div.error :input:first").focus().length) return;$("form.enableAutoFocus :input:not(.formTabs):visible:first").focus()})})(jQuery);

/* - accessibility.js - */
// http://www.menttes.com.ar/portal_javascripts/accessibility.js?original=1
function setBaseFontSize(f,r){var b=jQuery('body');if(r){b.removeClass('smallText').removeClass('largeText');createCookie("fontsize",f,365)}b.addClass(f)};(function($){$(function(){var f=readCookie("fontsize");if(f)setBaseFontSize(f,0)})})(jQuery);

/* - styleswitcher.js - */
// http://www.menttes.com.ar/portal_javascripts/styleswitcher.js?original=1
function setActiveStyleSheet(title,reset){jQuery('link[rel*=style][title]').attr('disabled',true).find('[title='+title+']').attr('disabled',false);if(reset) createCookie("wstyle",title,365)};jQuery(function(){var style=readCookie("wstyle");if(style!=null) setActiveStyleSheet(style,0)});

/* - toc.js - */
// http://www.menttes.com.ar/portal_javascripts/toc.js?original=1
(function($){$(function(){var dest=$('dl.toc dd.portletItem');var content=getContentArea();if(!content||!dest.length) return;dest.empty();var location=window.location.href;if(window.location.hash)
location=location.substring(0,location.lastIndexOf(window.location.hash));var stack=[];$(content).find('*').not('.comment > h3').filter(function(){return/^h[1234]$/.test(this.tagName.toLowerCase())}).not('.documentFirstHeading').each(function(i){var level=this.nodeName.charAt(1)-1;while(stack.length<level){var ol=$('<ol>');if(stack.length){var li=$(stack[stack.length-1]).children('li:last');if(!li.length)
li=$('<li>').appendTo($(stack[stack.length-1]));li.append(ol)}
stack.push(ol)}
while(stack.length>level) stack.pop();$(this).before($('<a name="section-'+i+'" />'));$('<li>').append($('<a />').attr('href',location+'#section-'+i).text($(this).text())).appendTo($(stack[stack.length-1]))});if(stack.length){$('dl.toc').show();oltoc=$(stack[0]);numdigits=oltoc.children().length.toString().length;oltoc.addClass("TOC"+numdigits+"Digit");dest.append(oltoc);var wlh=window.location.hash;if(wlh){var target=$(wlh);target=target.length&&target||$('[name='+wlh.slice(1)+']');var targetOffset=target.offset();if(targetOffset)
$('html,body').animate({scrollTop:targetOffset.top},0)}}})})(jQuery);

