/*
 * Copyright 2009,2010 C. Amengual. This bundle may contain code by Remy Sharp, Dav Glass, and Fred Palmer.
 */
(function(){if(!
/*@cc_on!@*/
0){return}var e="abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(","),i=e.length;while(i--){document.createElement(e[i])}})();if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}String.prototype.removeAccents=function(){var a={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ò":"O","Ó":"O","Ô":"O","Ö":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ñ":"N","Ç":"C"};return this.replace(/[ÀÁÂÃÄÅÆÈÉÊËÌÍÎÏÒÓÔÖÙÚÛÜÑÇ]/gi,function(b){var c=a[b.toUpperCase()];if(b===b.toLowerCase()){c=c.toLowerCase()}return c})};var CA={};function CA_getText(a){if(document.all){return a.innerText}else{return a.textContent}}var T_printf=function(){var b=arguments.length;var a=arguments[0];for(var c=1;c<b;c++){var e="\\{"+(c-1)+"\\}";var d=new RegExp(e,"g");a=a.replace(d,arguments[c])}return a};var CA_break_frame=function(){if(self.location.hostname!=top.location.hostname){top.location.replace(window.location.href)}};function is_js_search_engine(){var c=["Googlebot","Slurp","msnbot","Twiceler"];var b=navigator.userAgent;for(var a in c){if(b.indexOf(c[a])>=0){return 1}}return 0}var CA_logOnConsole=function(a){if(typeof(console)!=="undefined"&&console!==null){console.log(a)}};var CA_noTranscoder=function(){return navigator.userAgent.indexOf("Google Wireless Transcoder")<0};var CA_noRobotOrTranscoder=function(){return(is_js_search_engine()===0&&CA_noTranscoder())};var CA_inputFilterInteger=function(b){var a=YAHOO.util.Event.getCharCode(b);if(a!==8&&a!==9&&(a<48||a>57)&&(a<35||a>37)&&a!=39&&a!=45&&a!=46){b.returnValue=false;YAHOO.util.Event.preventDefault(b);return false}else{b.returnValue=true;return true}};var CA_inputFilterAlphanum=function(b){var a=YAHOO.util.Event.getCharCode(b);if((57>=a&&a>=48)||(105>=a&&a>=96)||(90>=a&&a>=65)||(40>=a&&a>=37)||(a===8)||a===9||(a===46)||(a===13)||(a===32)){b.returnValue=true;return true}else{b.returnValue=false;YAHOO.util.Event.preventDefault(b);return false}};var CA_addInputFilterInteger=function(a){YAHOO.util.Event.on(a,"keypress",CA_inputFilterInteger)};function CA_getDocumentLanguage(){var a=document.childNodes;for(var b in a){if(a[b].nodeType==1&&a[b].nodeName=="HTML"){return a[b].getAttribute("lang")}}return"en"}window.ca_document_language=CA_getDocumentLanguage();CA_break_frame();YAHOO.namespace("ca.astro");var ca_txt_local_time;if(window.ca_document_language=="es"){ca_txt_local_time="t. oficial"}else{if(window.ca_document_language=="pt"){ca_txt_local_time="local"}else{if(window.ca_document_language=="it"){ca_txt_local_time="t. ufficiali"}else{ca_txt_local_time="local"}}}var monthnames={en:[],es:[],it:[],pt:[]};var monthname3={en:[],es:[],it:[],pt:[]};monthnames.en=["January","February","March","April","May","June","July","August","September","October","November","December"];monthname3.en=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];monthnames.es=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];monthname3.es=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"];monthnames.it=["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"];monthname3.it=["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"];monthnames.pt=["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"];monthname3.pt=["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"];function utc_offset_es(){if(CA_noRobotOrTranscoder()){var c=new Date();var b=c.getTimezoneOffset()/60;var a;if(b===0){if(window.ca_document_language=="es"){a="Si su ordenador está bien configurado, actualmente la hora oficial en su zona coincide con el UTC."}else{if(window.ca_document_language=="pt"){a="Se o seu computador está configurado corretamente, atualmente o tempo legal da sua área coincide com o UTC."}else{if(window.ca_document_language=="en"){a="If your computer is correctly configured, your current local time matches UTC."}else{if(window.ca_document_language=="it"){a="Se il suo computer è configurato correttamente, l'ora ufficiale nella sua zona oraria coincide con l'UTC."}else{return}}}}}else{if(window.ca_document_language=="es"){a="Probablemente, con el horario actual obtendrá la hora oficial en su zona "}else{if(window.ca_document_language=="pt"){a="Provavelmente, com o atual horário você irá obter o tempo legal na sua área "}else{if(window.ca_document_language=="en"){a="You'll probably find your current local time in your timezone "}else{if(window.ca_document_language=="it"){a="Probabilmente, con il calendario attuale otterrà l'ora legale nel suo fuso orario "}}}}if(b<0){if(window.ca_document_language=="es"){a+="sumando"}else{if(window.ca_document_language=="pt"){a+="adicionando"}else{if(window.ca_document_language=="en"){a+="by adding"}else{if(window.ca_document_language=="it"){a+="con l'aggiunta di"}}}}}else{if(window.ca_document_language=="es"){a+="restando"}else{if(window.ca_document_language=="pt"){a+="restando"}else{if(window.ca_document_language=="en"){a+="by substracting"}else{if(window.ca_document_language=="it"){a+="sottraendo"}}}}}if(!a){return}b=Math.abs(b);a+=" "+b;if(window.ca_document_language=="es"){a+=" horas al tiempo UTC."}else{if(window.ca_document_language=="pt"){a+=" horas ao tempo UTC."}else{if(window.ca_document_language=="en"){a+=" hours to UTC."}else{if(window.ca_document_language=="it"){a+=" ore alle tempo UTC."}}}}}document.getElementById("utc_offset_text").innerHTML=a}}Math.signum=function(a){if(a>0){return 1}else{if(a<0){return -1}else{return 0}}};Math.TWOPI=(Math.PI+Math.PI);Math.HALFPI=Math.PI/2;Math.DR=Math.PI/180;CA.ITRSPlace=function(g,b,d,a){var e=typeof g;if(e==="string"){this.latitude=parseFloat(g)}else{this.latitude=g}var f=typeof b;if(f==="string"){this.longitude=parseFloat(b)}else{this.longitude=b}this.setAltitude=function(h){var i=typeof h;if(i!=="undefined"&&h!==null){if(i==="string"){this.altitude=parseFloat(h)}else{this.altitude=h}}else{this.altitude=0}};this.setAltitude(d);this.getLatitude=function(){return this.latitude};this.getLongitude=function(){return this.longitude};this.getAltitude=function(){return this.altitude};var c;if(typeof a!=="undefined"&&a!==null){c=a}this.isNameSet=function(){return typeof c!=="undefined"};this.getName=function(){return c};this.getNameString=function(){return this.isNameSet()?c:"?"};this.setName=function(h){c=h};this.serialize=function(){return this.latitude.toFixed(5)+":"+this.longitude.toFixed(5)+":"+this.altitude.toString()+":"+this.getNameString()}};CA.ITRSPlace.parse=function(c){var a;if(typeof c==="string"){var b=c.split(":");b[0]=parseFloat(b[0]);b[1]=parseFloat(b[1]);a=new CA.ITRSPlace(b[0],b[1]);if(b.length>2){a.setAltitude(parseFloat(b[2]));if(b.length>3){a.setName(b[3])}}}return a};Math.CA_Angle=function(a){this.angle=a;this.setDMS=function(f,e,b,c){this.angle=f*(e+(b+c/60)/60)*Math.DR};this.setDM=function(e,c,b){this.angle=e*(c+b/60)*Math.DR};this.setDegrees=function(b){this.angle=b*Math.DR};this.setHms=function(d,b,c){this.angle=(d+(b+c/60)/60)*Math.DR*15};this.setHm=function(c,b){this.angle=(c+b/60)*Math.DR*15};this.toDegrees=function(){return(this.angle/Math.DR)};this.doubleValue=function(){return this.angle};this.toHours=function(){return this.angle/Math.DR/15};this.toAngleDms=function(){var c=Math.signum(this.angle);var b=Math.abs(this.angle)/Math.DR;var e=Math.floor(b);b=(b-e)*60;var d=Math.floor(b);b=(b-d)*60;return new Math.CA_AngleDms(c,e,d,b)};this.toTimeHms=function(){var b=this.moduleTwoPI()/Math.DR/15;var d=Math.floor(b);b=(b-d)*60;var c=Math.floor(b);b=(b-c)*60;return new Math.CA_TimeHms(d,c,b)};this.moduleTwoPI=function(){this.angle=this.angle-Math.floor(this.angle/Math.TWOPI)*Math.TWOPI;if(this.angle<0){this.angle+=Math.TWOPI}return this.angle};this.modulePI=function(){this.angle=this.angle-Math.floor(this.angle/Math.TWOPI)*Math.TWOPI;if(this.angle>Math.PI){this.angle-=Math.TWOPI}if(this.angle<=-Math.PI){this.angle+=Math.TWOPI}return this.angle};this.sin=function(){return Math.sin(this.angle)};this.cos=function(){return Math.cos(this.angle)};this.tan=function(){return Math.tan(this.angle)}};Math.CA_AngleDms=function(a,d,b,c){this.sign=a;this.deg=d;this.minu=b;if(typeof c!=="undefined"){this.sec=c}else{this.sec=0}this.setFullDegrees=function(g){this.sign=Math.signum(g);var e=Math.abs(g);this.deg=Math.floor(e);var f=(e-this.deg)*60;this.minu=Math.floor(f);this.sec=(f-this.minu)*60};this.getDegrees=function(){return this.deg};this.getMinutes=function(){return this.minu};this.getSeconds=function(){return this.sec};this.getAngle=function(){return new Math.CA_Angle(this.toRadians())};this.setSeconds=function(g){this.sign=Math.signum(g);var e=Math.abs(g)/60;var h=Math.floor(e);this.sec=(e-h)*60;var f=h/60;this.deg=Math.floor(f);this.minu=Math.floor((f-d)*60)};this.toFullDegrees=function(){return this.sign*(this.deg+(this.minu+this.sec/60)/60)};this.toRadians=function(){return this.toFullDegrees()*Math.DR};this.toDmsWithSign=function(n,f,l){if(!l){l=0}var j;if(this.sign<0){j=f}else{j=n}var o=this.getDegrees();var h=this.getMinutes();var e=this.getSeconds().toFixed(l);if(e.match(/^60/)){h++;e="00";if(l>0){e+=".";for(var k=0;k<l;k++){e+="0"}}if(h>=60){h=0;o++;if(o>=360){o=0;j=n}}}if(e.length==1+(l===0?0:l+1)){e="0"+e}var p=h.toFixed(0);if(p.length==1){p="0"+p}var m=o.toFixed(0);if(m.length==1){m="0"+m}var g=new StringBuffer();g.append(j).append(m).append("°").append(" ").append(p).append("'").append(" ").append(e).append('"');return g.toString()};this.toDms=function(e){return this.toDmsWithSign("+","-",e)};this.toLatDms=function(e){return this.toDmsWithSign("N ","S ",e)};this.toLonDms=function(e){return this.toDmsWithSign("E ","W ",e)};this.toDmWithSign=function(m,e,k){if(!k){k=0}var g;if(this.sign<0){g=e}else{g=m}var h=(this.minu+this.sec/60).toFixed(k);if(h.length==1+(k===0?0:k+1)){h="0"+h}var n=this.getDegrees();if(h.match(/^60/)){n++;h="00";if(k>0){h+=".";for(var j=0;j<k;j++){h+="0"}}if(n>=360){n=0;g=m}}var l=n.toFixed(0);if(l.length==1){l="0"+l}var f=new StringBuffer();f.append(g).append(l).append("°").append(" ").append(h).append("'");return f.toString()};this.toDm=function(e){return this.toDmWithSign("+","-",e)};this.toLatDm=function(e){return this.toDmWithSign("N ","S ",e)};this.toLonDm=function(e){return this.toDmWithSign("E ","W ",e)};this.toString=function(){return this.toDms()}};Math.CA_TimeHms=function(a,c,b){this.setHms=function(e,h,f){var g;this.hour=g;this.minute=0;this.second=0;if(typeof h!=="undefined"&&h!==null){this.minute=h;this.hour=e;if(typeof f!=="undefined"&&f!==null){this.second=f}}else{if(typeof e!=="undefined"&&e!==null){this.hour=Math.floor(e);var d=(e-this.hour)*60;this.minute=Math.floor(d);this.second=(d-this.minute)*60}}};this.setHms(a,c,b);this.setTime=function(d){this.setHms(d.getHours(),d.getMinutes(),d.getSeconds())};this.setUTCTime=function(d){this.setHms(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds())};this.getHour=function(){return this.hour};this.getMinute=function(){return this.minute};this.getMinutes=function(){return this.minute+this.second/60};this.getSeconds=function(){return this.second};this.setSeconds=function(d){this.second=d};this.equals=function(d){return this.hour===d.hour&&this.minute===d.minute&&this.second===d.second};this.toHms=function(e){if(!e){e=0}var j=this.getHour();var k=this.getMinute();var d=this.getSeconds().toFixed(e);if(d.match(/^60/)){k++;d="00";if(e>0){d+=".";for(var h=0;h<e;h++){d+="0"}}if(k>=60){k=0;j++;if(j>=24){j=0}}}if(d.length==1+(e===0?0:e+1)){d="0"+d}var l=k.toFixed(0);if(l.length==1){l="0"+l}var g=j.toFixed(0);if(g.length==1){g="0"+g}var f=new StringBuffer();f.append(g).append(":").append(l).append(":").append(d);return f.toString()};this.toHm=function(d){if(!d){d=0}var h=this.getMinutes().toFixed(d);if(h.length==1+(d===0?0:d+1)){h="0"+h}var j=this.getHour();if(h.match(/^60/)){j++;h="00";if(d>0){h+=".";for(var g=0;g<d;g++){h+="0"}}if(j>=24){j=0}}var f=j.toFixed(0);if(f.length==1){f="0"+f}var e=new StringBuffer();e.append(f).append(":").append(h);return e.toString()};this.toRadians=function(){return(this.hour+(this.minute+this.second/60)/60)*15*Math.DR};this.getAngle=function(){return new Math.CA_Angle(this.toRadians())};this.toString=function(){return this.toHms()}};var CA_latlon_cookie_name="latlon0";var CA_storePositionAsCookies=function(a){var c=new Date();c.setDate(c.getDate()+20);var b=Base64.encode(a.serialize());YAHOO.util.Cookie.set(CA_latlon_cookie_name,b,{path:"/",expires:c})};var CA_retrievePositionFromCookies=function(){if(document.cookie.length>0){var b=YAHOO.util.Cookie.get(CA_latlon_cookie_name);if(b!==null){var a=CA.ITRSPlace.parse(Base64.decode(b));return a}}return null};var CA_retrievePosition=function(){var a=null;try{if(window.localStorage){var c=localStorage.getItem("itrsplace1");if(c!==null){a=CA.ITRSPlace.parse(c)}}if(a===null){a=CA_retrievePositionFromCookies()}}catch(b){CA_logOnConsole(b);a=CA_retrievePositionFromCookies()}return a};var CA_storePosition=function(a){try{if(window.localStorage){localStorage.setItem("itrsplace1",a.serialize())}else{CA_storePositionAsCookies(a)}}catch(b){CA_storePositionAsCookies(a)}};var CA_ServerGeolocation={afterSuccess:function(b,a){},afterFailure:function(){},onSuccess:function(f){var d=f.responseText;if(d.length>1&&d.charAt(0)=="G"){var a=Base64.decode(d.slice(1));var c=a.split(/\t/);var g=parseFloat(c[6]);var e=parseFloat(c[7]);var b=new CA.ITRSPlace(g,e,0);CA_storePosition(b);this.afterSuccess(b)}else{CA_logOnConsole("Server geolocation failed.");this.afterFailure()}},onFailure:function(a){this.logResult(a.statusText);this.afterFailure()},logResult:function(a){CA_logOnConsole(a)},requestGeolocation:function(a,b){this.afterSuccess=a;this.afterFailure=b;YAHOO.util.Connect.asyncRequest("POST","http://"+window.location.host+"/servlet/gldata",callbackServerGeolocation)}};var callbackServerGeolocation={success:CA_ServerGeolocation.onSuccess,failure:CA_ServerGeolocation.onFailure,timeout:3000,scope:CA_ServerGeolocation};var CA_module2PI=function(b){return b-Math.floor(b/Math.TWOPI)*Math.TWOPI};var CA_module=function(d,c){return d-Math.floor(d/c)*c};var CA_earthRotationAngle=function(b){var a=0.2794832545973+1.160576171193697e-8*b.getTime();a=(a-Math.floor(a))*Math.TWOPI;if(a<0){a+=Math.TWOPI}return a};function DatetimeRow(){var h;var c=".";var b;var a;var g;var d;function e(m,j){m.normalize();var i=m.childNodes;b.className=i[0].className;a.className=i[1].className;var l=parseInt(CA_getText(i[0]).replace(/^0/,""))-1;var k=parseInt(CA_getText(i[2]).replace(/^0/,""));j.appendChild(b);j.appendChild(document.createTextNode(" "));j.appendChild(a);h.setUTCFullYear(parseInt(document.getElementById("mide_year").innerHTML));h.setUTCMonth(l);h.setUTCDate(k)}function f(l,q){l.normalize();var s=l.childNodes;var m=parseInt(CA_getText(s[0]).replace(/^0/,""));q.appendChild(g);var j;var n;var r=s.length;for(n=1;n<r;n++){var o=s.item(n).nodeType;if(o==1){j=CA_getText(s.item(n)).replace(/^0/,"");q.appendChild(d)}else{if(o==3||o==4){q.appendChild(s.item(n).cloneNode(false))}}}if(j.match(/\d,\d/)){c=",";j=j.replace(",",".")}var p=parseFloat(j);var k=Math.floor(p);h.setUTCHours(m);h.setUTCMinutes(k);h.setUTCSeconds((p-k)*60)}DatetimeRow.prototype.expand=function(o){h=new Date();b=document.createElement("span");a=document.createElement("span");g=document.createElement("span");d=document.createElement("span");var l=o.getElementsByTagName("td");var k=document.createElement("td");e(l.item(1),k);k.className="date";var n=document.createElement("td");f(l.item(2),n);o.appendChild(k);n.className="time";o.appendChild(n);var p=h.getMonth().toString();if(p.length==1){p="0"+p}b.innerHTML=p;var j=h.getDate().toString();if(j.length==1){j="0"+j}a.innerHTML=j;var i=h.getHours().toString();if(i.length==1){i="0"+i}g.innerHTML=i;var m=(h.getMinutes()+h.getSeconds()/60).toFixed(1);if(m.charAt(1)=="."){m="0"+m}if(c==","){m=m.replace(".",",")}d.innerHTML=m;return h}}function CA_expandTimeTable(g){var f=document.getElementById(g).getElementsByTagName("tr");for(var d=0;d<f.length;d++){if(f.item(d).className.indexOf("header")>=0){var b=f[d].getElementsByTagName("th");if(b.length==3){var e=document.createElement("th");e.colSpan="2";var a=CA_getText(b.item(2));a=a.replace(/\(?UTC?\)?/,"");e.innerHTML=CA_getText(b.item(1))+" ("+ca_txt_local_time+") "+a;f[d].appendChild(e)}}else{var c=new DatetimeRow();c.expand(f.item(d))}}}var CA_EclunaVis=function(){var y=432;var j=3;var o=document.getElementById("ecvp1h");var z=document.getElementById("ecvmxh");var l=document.getElementById("ecvp4h");var q=[o,z,l];var g=document.getElementById("ecvu1h");var c=document.getElementById("ecvu4h");var b;if(g!==null){if(YAHOO.util.Dom.getStyle(g.parentNode,"display")!=="none"){j+=2;q.push(g);q.push(c)}else{b=g.parentNode;g=null;b.parentNode.removeChild(b);b=c.parentNode;c=null;b.parentNode.removeChild(b)}}var f=document.getElementById("ecvu2h");var d=document.getElementById("ecvu3h");if(f!==null){if(YAHOO.util.Dom.getStyle(f.parentNode,"display")!=="none"){j+=2;q.push(f);q.push(d)}else{b=f.parentNode;f=null;b.parentNode.removeChild(b);b=d.parentNode;d=null;b.parentNode.removeChild(b)}}var x=document.getElementById("eclvisg");var u=q.length;var k=0;var A=YAHOO.util.Dom.getStyle(x,"height");if(A!==null){var t=A.match(/(\d+)px$/);if(t){k=parseInt(t[1])}}if(k===0){k=y}var B=Math.floor(k/j-3).toFixed(0)+"px";var n=function(i){i.style.height=B};for(var w=0;w<u;w++){n(q[w])}var s=function(D){for(var C=0;C<u;C++){q[C].className=""}D.className="selphase"};x.rowSpan=j.toString();var a=function(i){x.className="ecvp1";s(this)};var e=function(i){x.className="ecvu1";s(this)};var h=function(i){x.className="ecvu2";s(this)};var m=function(i){x.className="ecvu3";s(this)};var v=function(i){x.className="";s(this)};var r=function(i){x.className="ecvu4";s(this)};var p=function(i){x.className="ecvp4";s(this)};this.setUp=function(){YAHOO.util.Event.addListener(o,"mouseover",a);if(g!==null){YAHOO.util.Event.addListener(g,"mouseover",e)}if(f!==null){YAHOO.util.Event.addListener(f,"mouseover",h)}YAHOO.util.Event.addListener(z,"mouseover",v);if(d!==null){YAHOO.util.Event.addListener(d,"mouseover",m)}if(c!==null){YAHOO.util.Event.addListener(c,"mouseover",r)}YAHOO.util.Event.addListener(l,"mouseover",p)}};var CA_setEclipseVis=function(){var a=new CA_EclunaVis();a.setUp()};YAHOO.util.Event.onDOMReady(CA_setEclipseVis);
