  var myWidth = 0, myHeight = 0;  if( typeof( window.innerWidth ) == 'number' ) {    /*Non-IE*/    myWidth = window.innerWidth;    myHeight = window.innerHeight;  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {    /*IE 6+ in 'standards compliant mode'*/    myWidth = document.documentElement.clientWidth;    myHeight = document.documentElement.clientHeight;  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {    /*IE 4 compatible*/    myWidth = document.body.clientWidth;    myHeight = document.body.clientHeight;  }if (myWidth > 1024) {document.write('<link class="1280" rel="stylesheet" type="text/css" href="/html/themes/mec_uda/css/1280.css">');}else if (myWidth <= 1024) {document.write('<link class="1024" rel="stylesheet" type="text/css" href="/html/themes/mec_uda/css/1024.css">');}	else {document.write('<link class="1024" rel="stylesheet" type="text/css" href="/html/themes/mec_uda/css/1024.css">');}function blinkIt() { if (!document.all) return; else {   for(i=0;i<document.all.tags('blink').length;i++){      s=document.all.tags('blink')[i];      s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';   } }}function clock() {var digital = new Date();var hours = digital.getHours();var minutes = digital.getMinutes();var seconds = digital.getSeconds();var amOrPm = "a.m";if (hours >= 12) amOrPm = "p.m";if (hours > 12) hours = hours - 12;if (hours == 0) hours = 12;if (minutes <= 9) minutes = "0" + minutes;if (seconds <= 9) seconds = "0" + seconds;dispTime = hours + ":" + minutes + ":" + seconds + " " + amOrPm;document.getElementById('pendule').innerHTML = dispTime;blinkIt(); setTimeout("clock()", 500);}/*window.onload=clock;*/setTimeout("clock()", 500);var min=8;var max=18;function increaseFontSize() {   var p = document.getElementsByTagName('p');   for(i=0;i<p.length;i++) {      if(p[i].style.fontSize) {         var s = parseInt(p[i].style.fontSize.replace("px",""));      } else {         var s = 12;      }      if(s!=max) {         s += 1;      }      p[i].style.fontSize = s+"px"   }}function decreaseFontSize() {   var p = document.getElementsByTagName('p');   for(i=0;i<p.length;i++) {      if(p[i].style.fontSize) {         var s = parseInt(p[i].style.fontSize.replace("px",""));      } else {         var s = 12;      }      if(s!=min) {         s -= 1;      }      p[i].style.fontSize = s+"px"   }   }function mainmenu(){jQuery(" #nav ul ").css({display: "none"}); jQuery(" #nav li").hover(function(){jQuery(this).find('ul:first:hidden').css({visibility: "visible",display: "none"}).fadeIn(100);},function(){jQuery(this).find('ul:first').fadeOut(100);});}jQuery(document).ready(function(){mainmenu();}); jQuery(document).ready(/*This function gets loaded when all the HTML, not including the portlets, isloaded.*/function() {});Liferay.Portlet.ready(/*This function gets loaded after each and every portlet on the page.portletId: the current portlet's idjQueryObj: the jQuery wrapped object of the current portlet*/function(portletId, jQueryObj) {});jQuery(document).last(/*This function gets loaded when everything, including the portlets, is onthe page.*/function() {});function toggle (id) {var post = document.getElementById(id);if (post.className=="portletshown") { post.className="portlethidden"; } else { post.className="portletshown"; }}function changeLocation (targetURL) {window.location = targetURL;}var size;var defaultFontSize = 11;var currentFontSize = size;	var Color;var defaultColor = 'black';var currentColor = Color;	var prefsLoaded = false;function setFontPlus(id){size = document.getElementById(id).style.fontSize;if(size == "" || size == null) {size = 13;} else {size = size.substr(0,2);}if(size < 15) {if(size == 14) {size = eval(size) + 2;} else {size = eval(size) + 1;}var fontSize = size + "px";document.getElementById(id).style.fontSize=fontSizechangecss('#nav li a','font-size',fontSize);changecss('.portlet-title','font-size',fontSize);changecss('.journal-content-article','font-size',fontSize);changecss('.content_font','font-size',fontSize);changecss('.title2_font','font-size',fontSize);changecss('#portlet-wrapper-56_INSTANCE_xaD8 .portlet-title,#portlet-wrapper-56_INSTANCE_ZDcF .portlet-title,#portlet-wrapper-56_INSTANCE_6cyX .portlet-title','font-size',fontSize);}}function setFontMinus(id){size = document.getElementById(id).style.fontSize;if(size == "" || size == null) {size = 11; } else {size = size.substr(0,2);} if(size > 11) {if(size == 17) {size = eval(size) - 2;} else {size = eval(size) - 1;}var fontSize = size + "px";document.getElementById(id).style.fontSize=fontSizechangecss('.content_font','font-size',fontSize);changecss('.title2_font','font-size',fontSize);	changecss('#nav li a','font-size',fontSize);changecss('.portlet-title','font-size',fontSize);changecss('.journal-content-article','font-size',fontSize);changecss('#portlet-wrapper-56_INSTANCE_xaD8 .portlet-title,#portlet-wrapper-56_INSTANCE_ZDcF .portlet-title,#portlet-wrapper-56_INSTANCE_6cyX .portlet-title','font-size',fontSize);}}function revertStyles(){Color='';changecss('.portlet-title','color','black');changecss('#nav a','color','#ffffff');changecss('body','color','black');changecss('a','color','blue');changecss('a:hover','color','#7EACD6');changecss('.title2_font','color','#0000FF');changecss('.content_font','color','#000000');var isIE6 = navigator.userAgent.toLowerCase().indexOf('msie 6') != -1;if( !isIE6 ){changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color','black');}}function revertFontStyles(id){size = document.getElementById(id).style.fontSize;if(size == "" || size == null) {size = 11; } else {size = size.substr(0,2);} if(size > 10) {if(size == 16) {size = 11;} else {size = 11;}var fontSize = size + "px";document.getElementById(id).style.fontSize=fontSize}changecss('.portlet-title','font-size','10px');changecss('#portlet-wrapper-56_INSTANCE_xaD8 .portlet-title,#portlet-wrapper-56_INSTANCE_ZDcF .portlet-title,#portlet-wrapper-56_INSTANCE_6cyX .portlet-title','font-size','12px');changecss('#nav li a','font-size','12px');changecss('.journal-content-article','font-size','11px;');changecss('.content_font','font-size','11px;');changecss('.title2_font','font-size','11px;');}function createCookie(name,value,days) {  if (days) {    var date = new Date();    date.setTime(date.getTime()+(days*24*60*60*1000));    var expires = "; expires="+date.toGMTString();  }  else expires = "";  document.cookie = name+"="+value+expires+"; path=/";};function readCookie(name) {  var nameEQ = name + "=";  var ca = document.cookie.split(';');  for(var i=0;i < ca.length;i++) {    var c = ca[i];    while (c.charAt(0)==' ') c = c.substring(1,c.length);    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);  }  return null;};function setUserOptions(){if(!prefsLoaded){cookie = readCookie("fontSize");size = cookie ? cookie : 11;setFontSize(size);cookieColor = readCookie("color");Color = cookieColor ? cookieColor : 'black';if(Color=='red'){fontRed();}else if(Color=='blue'){fontBlue();}else if(Color=='green'){fontGreen();}else if(Color=='orange'){fontOrange();}else{//revertStyles();}prefsLoaded = true;}}setTimeout("setUserOptions()", 500);/*window.onload = setUserOptions;*/window.onunload = saveSettings;function saveSettings(){  createCookie("color", Color, 365);  createCookie("fontSize", size, 365); }function setFontSize(fontSize){document.getElementById('wrapper').style.fontSize = fontSize + 'px';};function changecss(theClass,element,value) {/*Last Updated on May 21, 2008 documentation for this script at http://www.shawnolson.net/a/503/altering-css-class-attributes-with-javascript.html*/ var cssRules; if (document.all) { cssRules = 'rules'; } else if (document.getElementById) { cssRules = 'cssRules'; } var added = false; for (var S = 0; S < document.styleSheets.length; S++){ for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) { if (document.styleSheets[S][cssRules][R].selectorText == theClass) { if(document.styleSheets[S][cssRules][R].style[element]){ document.styleSheets[S][cssRules][R].style[element] = value; added=true; break; } } } if(!added){ if(document.styleSheets[S].insertRule){ document.styleSheets[S].insertRule(theClass+' { '+element+': '+value+'; }',document.styleSheets[S][cssRules].length); } else if (document.styleSheets[S].addRule) { document.styleSheets[S].addRule(theClass,element+': '+value+';'); } } }}function fontRed(){Color='red';changecss('body','color',Color);changecss('a','color',Color);changecss('#nav a','color',Color);changecss('a:hover','color',Color);changecss('.title2_font','color',Color);changecss('.content_font','color',Color);var isIE6 = navigator.userAgent.toLowerCase().indexOf('msie 6') != -1;if( !isIE6 ){changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color',Color);}}function fontBlue(){Color='blue';changecss('body','color',Color);changecss('a','color',Color);changecss('#nav a','color',Color);changecss('a:hover','color',Color);changecss('.title2_font','color',Color);changecss('.content_font','color',Color);var isIE6 = navigator.userAgent.toLowerCase().indexOf('msie 6') != -1;if( !isIE6 ){changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color',Color);}}function fontGreen(){Color='green';changecss('body','color',Color);changecss('a','color',Color);changecss('#nav a','color',Color);changecss('a:hover','color',Color);changecss('.title2_font','color',Color);changecss('.content_font','color',Color);var isIE6 = navigator.userAgent.toLowerCase().indexOf('msie 6') != -1;if( !isIE6 ){changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color',Color);}}function fontOrange(){Color='orange';changecss('body','color',Color);changecss('a','color',Color);changecss('#nav a','color',Color);changecss('a:hover','color',Color);changecss('.title2_font','color',Color);changecss('.content_font','color',Color);var isIE6 = navigator.userAgent.toLowerCase().indexOf('msie 6') != -1;if( !isIE6 ){changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color',Color);}}/************************************************ Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)* This notice MUST stay intact for legal use* Visit http://www.dynamicdrive.com/ for this script and 100s more.***********************************************/function pausescroller(content, divId, divClass, delay){this.content=content this.tickerid=divId this.delay=delay this.mouseoverBol=0 this.hiddendivpointer=1 document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')var scrollerinstance=thisif (window.addEventListener) window.addEventListener("load", function(){scrollerinstance.initialize()}, false)else if (window.attachEvent) window.attachEvent("onload", function(){scrollerinstance.initialize()})else if (document.getElementById) setTimeout(function(){scrollerinstance.initialize()}, 500)}pausescroller.prototype.initialize=function(){this.tickerdiv=document.getElementById(this.tickerid)this.visiblediv=document.getElementById(this.tickerid+"1")this.hiddendiv=document.getElementById(this.tickerid+"2")this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"this.getinline(this.visiblediv, this.hiddendiv)this.hiddendiv.style.visibility="visible"var scrollerinstance=thisdocument.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}if (window.attachEvent) window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})setTimeout(function(){scrollerinstance.animateup()}, this.delay)}pausescroller.prototype.animateup=function(){var scrollerinstance=thisif (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+3)){this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-3+"px"this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-3+"px"setTimeout(function(){scrollerinstance.animateup()}, 50)}else{this.getinline(this.hiddendiv, this.visiblediv)this.swapdivs()setTimeout(function(){scrollerinstance.setmessage()}, this.delay)}}pausescroller.prototype.swapdivs=function(){var tempcontainer=this.visibledivthis.visiblediv=this.hiddendivthis.hiddendiv=tempcontainer}pausescroller.prototype.getinline=function(div1, div2){div1.style.top=this.visibledivtop+"px"div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"}pausescroller.prototype.setmessage=function(){var scrollerinstance=thisif (this.mouseoverBol==1) setTimeout(function(){scrollerinstance.setmessage()}, 100)else{var i=this.hiddendivpointervar ceiling=this.content.lengththis.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]this.animateup()}}pausescroller.getCSSpadding=function(tickerobj){ if (tickerobj.currentStyle)return tickerobj.currentStyle["paddingTop"]else if (window.getComputedStyle) return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")elsereturn 0}