﻿function onKeyUpSumit_Handler(C,D,A,B){if((window.event&&window.event.keyCode==13)||(C.keyCode==13)){ClickCount(A,D,D+"EnterKey");
B.submit()}}function ClickCount(A,D,E){var C=readCookie("tidsso","Anonymous");if(C!="Anonymous"){var F="QW5vbnltb3Vz";
C=readCookie("TIDR",F);C=unescape(C);C=d64(C)}var B=document.getElementById("gifTrx");
if(B!=null){B.src=A+"?UserName="+C+"&Module="+D+"&Element="+E+"&d="+new Date().getTime()
}}function d64(A){var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var F="";var D,L,H="";var J,G,B,I="";var K=0;var E=/[^A-Za-z0-9\+\/\=]/g;A=A.replace(/[^A-Za-z0-9\+\/\=]/g,"");
do{J=C.indexOf(A.charAt(K++));G=C.indexOf(A.charAt(K++));B=C.indexOf(A.charAt(K++));
I=C.indexOf(A.charAt(K++));D=(J<<2)|(G>>4);L=((G&15)<<4)|(B>>2);H=((B&3)<<6)|I;F=F+String.fromCharCode(D);
if(B!=64){F=F+String.fromCharCode(L)}if(I!=64){F=F+String.fromCharCode(H)}D=L=H="";
J=G=B=I=""}while(K<A.length);return F};function addEvent(E,C,D,B){if(E.addEventListener){E.addEventListener(C,D,B);return true
}else{if(E.attachEvent){var A=E.attachEvent("on"+C,D);return A}else{return false}}}addEvent(window,"load",init,false);
function init(){var C=document.getElementsByTagName("input");for(var B=0;B<C.length;
B++){var A=C[B];if(A.type=="text"&&A.className.match(/\bcleardefault\b/)){addEvent(A,"focus",clearDefaultText,false);
addEvent(A,"blur",replaceDefaultText,false);if(A.value!=""){A.defaultText=A.value
}}}}function clearDefaultText(B){var A=window.event?window.event.srcElement:B?B.target:null;
if(!A){return}if(A.value==A.defaultText){A.value=""}}function replaceDefaultText(B){var A=window.event?window.event.srcElement:B?B.target:null;
if(!A){return}if(A.value==""&&A.defaultText){A.value=A.defaultText}};function SwitchVisibilityControl(B,A){if(B!=null){B.style.display=A}}function SetFocusInControl(A){if(A!=null){A.focus()
}}function onShoppingKeyUp_Handler(B,A){if((window.event&&window.event.keyCode==13)||(B.keyCode==13)){SubmitForm(A)
}}function SubmitForm(A){document.forms[0].action=A;document.forms[0].submit()}function ClearSearchCriteria(A){document.getElementById(A).value=""
}function getOnlyChildControls(C,B){var A=new Array();if(C.childNodes!=null){for(var D=0;
D<C.childNodes.length;D++){if(C.childNodes[D].nodeName==B.toUpperCase()){A.push(C.childNodes[D])
}}}return A}function ShowChannelContent(B){var C=B.options;if(C!=null){var A=document.location.pathname+"?ModuleId="+C[C.selectedIndex].value;
document.location.href=A}}function SearchSelectedValue(C,E){var A=document.getElementById(C);
var D=A.options;if(D!=null){for(var B=0;B<D.length;B++){if(D[B].value==E){D[B].selected=true;
break}}}};var FEEDS_ANCHOR_SHOW_INFO="despl";var FEEDS_ANCHOR_HIDE_INFO="pleg";var _feedsCurrentLiContainerName="";
var _feedsCurrentImgWaitingName="";var _feedsCurrentDivContainerName="";var _urlGif;
var _moduleFeeds;function GetFeed(H,F,G,E,D,B,A){SetFeedsGlobalVarsValues(H,E,D,B,A);
hideFeedsContainers();$("#ulFeeds > li > a").removeClass().addClass(FEEDS_ANCHOR_HIDE_INFO);
$("#"+_feedsCurrentLiContainerName+" a:first").removeClass().addClass(FEEDS_ANCHOR_SHOW_INFO);
if($("#"+_feedsCurrentLiContainerName+" #"+_feedsCurrentDivContainerName+" ul").length==0){showWaitUI();
var C="/Services/HomeService.svc/GetFeeds";$.getJSON(C,"sourceSite="+F+"&sourceTypeStr="+G,GetFeed_Complete)
}else{showResultsUI()}}function GetFeed_Complete(A){var B=A.d;if(B!=null){$("#"+_feedsCurrentDivContainerName).html(AddFeedList(B))
}else{$("#"+_feedsCurrentDivContainerName).html(GetDefaultError())}showResultsUI()
}function AddFeedList(E){var C="<ul class='list_feeds'>#FEEDS_ITEMS#</ul>";var F="<li><a href='#FEEDS_HREF#' title='#FEEDS_TITLE#'target='_blank' onmousedown=ClickCount('#URL_GIF#','#MODULE_ID#','FeedItem')>#FEEDS_TITLE#</a></li>";
var H="<li><a href='#FEEDS_HREF#' title='#FEEDS_TITLE#'target='_blank' onmousedown=ClickCount('#URL_GIF#','#MODULE_ID#','FeedItem')>#FEEDS_TITLE#</a></li>";
var B="";for(var A=0;A<E.Items.length;A++){var D=E.Items[A];var G=null;if(A==0){G=F
}else{G=H}G=G.replace(/#FEEDS_HREF#/gi,D.HRef);G=G.replace(/#FEEDS_TITLE#/gi,D.Content.Text);
G=G.replace(/#URL_GIF#/gi,_urlGif);G=G.replace(/#MODULE_ID#/gi,_moduleFeeds);B+=G
}C=C.replace(/#FEEDS_ITEMS#/gi,B);return C}function GetDefaultError(){return"<ul class='list_feeds'><li>Feed actualmente no disponible.</li></ul>"
}function hideFeedsContainers(){$("#ulFeeds li div").hide()}function showResultsUI(){$("#"+_feedsCurrentLiContainerName+" #"+_feedsCurrentImgWaitingName).hide();
$("#"+_feedsCurrentLiContainerName+" #"+_feedsCurrentDivContainerName).show()}function showWaitUI(){$("#"+_feedsCurrentLiContainerName+" #"+_feedsCurrentImgWaitingName).show();
$("#"+_feedsCurrentLiContainerName+" #"+_feedsCurrentDivContainerName).hide()}function SetFeedsGlobalVarsValues(C,E,A,B,D){_feedsCurrentLiContainerName=C;
_feedsCurrentImgWaitingName=E;_feedsCurrentDivContainerName=A;_urlGif=B;_moduleFeeds=D
};function datosClickCount(){mi_array=new Array();mi_array[0]=nombreFuncion;mi_array[1]=urlGif;
mi_array[2]=modulo;mi_array[3]=id_enlace;return mi_array}function rutaXml(){var A="/home/swf/xml_galeria_portada.xml";
return A};$("document").ready(function(){initHoroscopeControl()});function initHoroscopeControl(){suscribeHoroscopeEvents();
bindTitle()}function suscribeHoroscopeEvents(){$("#horoscopo select").change(ddlHoroscopesChange_Handler)
}function ddlHoroscopesChange_Handler(){$("#horoscopo p").hide();$("#horoscopo p:nth-child("+(this.selectedIndex+1)+")").addClass(getParsedString(getSignByUrl()).toLowerCase()).show();
bindTitle();writeCookie("Horoscope",getSignByUrl())}function bindTitle(){var A=new Array(new Array("Aries","(20/03 - 18/04)"),new Array("Tauro","(19/04 - 19/05)"),new Array("Géminis","(20/05 - 20/06)"),new Array("Cáncer","(21/06 - 21/07)"),new Array("Leo","(22/07 - 21/08)"),new Array("Virgo","(22/08 - 21/09)"),new Array("Libra","(22/09 - 22/10)"),new Array("Escorpio","(23/10 - 20/11)"),new Array("Sagitario","(21/11 - 20/12)"),new Array("Capricornio","(21/12 - 19/01)"),new Array("Acuario","(20/01 - 18/02)"),new Array("Piscis","(19/02 - 19/03)"));
var B=$("#horoscopo select").get(0).selectedIndex;$("#horoscopo label a").attr("href",$("#horoscopo select").val());
$("#horoscopo label a").text(A[B][0]);$("#horoscopo label span").text(A[B][1])}function getParsedString(A){A=A.replace(/á/gi,"a");
A=A.replace(/é/gi,"e");A=A.replace(/í/gi,"i");A=A.replace(/ó/gi,"o");A=A.replace(/ú/gi,"u");
return A}function getSignByUrl(){var A="Aries";switch($("#horoscopo select").val()){case"http://astrocentro.terra.es/terra/HPAstroNonPerso.aspx?astSign=0":A="Aries";
break;case"http: //astrocentro.terra.es/terra/HPAstroNonPerso.aspx?astSign=1":A="Tauro";
break;case"http://astrocentro.terra.es/terra/HPAstroNonPerso.aspx?astSign=2":A="Geminis";
break;case"http://astrocentro.terra.es/terra/HPAstroNonPerso.aspx?astSign=3":A="Cancer";
break;case"http://astrocentro.terra.es/terra/HPAstroNonPerso.aspx?astSign=4":A="Leo";
break;case"http://astrocentro.terra.es/terra/HPAstroNonPerso.aspx?astSign=5":A="Virgo";
break;case"http://astrocentro.terra.es/terra/HPAstroNonPerso.aspx?astSign=6":A="Libra";
break;case"http://astrocentro.terra.es/terra/HPAstroNonPerso.aspx?astSign=7":A="Escorpio";
break;case"http://astrocentro.terra.es/terra/HPAstroNonPerso.aspx?astSign=8":A="Sagitario";
break;case"http://astrocentro.terra.es/terra/HPAstroNonPerso.aspx?astSign=9":A="Capricornio";
break;case"http://astrocentro.terra.es/terra/HPAstroNonPerso.aspx?astSign=10":A="Acuario";
break;case"http://astrocentro.terra.es/terra/HPAstroNonPerso.aspx?astSign=11":A="Piscis";
break}return A};function writeCookie(A,D){var B=new Date();B.setTime(B.getTime()+(50*365*24*60*60*1000));
var C="; expires="+B.toGMTString();document.cookie=A+"="+D+C+"; path=/; domain=.terra.es"
}function readCookie(A,D){var F=A+"=";var B=document.cookie.split(";");for(var E=0;
E<B.length;E++){var C=B[E];while(C.charAt(0)==" "){C=C.substring(1,C.length)}if(C.indexOf(F)==0){return C.substring(F.length,C.length)
}}return D};var Internet={currentIndex:0,divElementsName:new Array(),showNext:function(){if(Internet.currentIndex<(Internet.newsList().length)-1){Internet.currentIndex++;
Internet.show();Internet.collapse(Internet.currentIndex-1)}},showPrevious:function(){if(Internet.currentIndex>0){Internet.currentIndex--;
Internet.show();Internet.collapse(Internet.currentIndex+1)}},collapse:function(A){Internet.getDiv(A).css("display","none")
},show:function(){Internet.getDiv(Internet.currentIndex).css("display","block")},getDiv:function(A){return $("#"+Internet.newsList()[A])
},newsList:function(){return Internet.divElementsName}};var TerraToday={currentIndex:0,divElementsName:new Array(),showNext:function(){if(TerraToday.currentIndex<(TerraToday.newsList().length)-1){TerraToday.currentIndex++;
TerraToday.show();TerraToday.collapse(TerraToday.currentIndex-1)}},showPrevious:function(){if(TerraToday.currentIndex>0){TerraToday.currentIndex--;
TerraToday.show();TerraToday.collapse(TerraToday.currentIndex+1)}},collapse:function(A){TerraToday.getDiv(A).css("display","none")
},show:function(){TerraToday.getDiv(TerraToday.currentIndex).css("display","block")
},getDiv:function(A){return $("#"+TerraToday.newsList()[A])},newsList:function(){return TerraToday.divElementsName
}};var SEARCH_PATTERM_KEY="SEARCH_PATTERM";var _searchControlTargetUrl="";function onSearchControlKeyUp_Handler(A,C,B){ClickCount(B,C,"SearchEnterKey");
Search(A)}function Search(A){var B=document.getElementById(A);if(_searchControlTargetUrl==""){SetDefaultTargetUrl(B)
}if(_searchControlTargetUrl!=null){window.location=GetParseUrl(B,_searchControlTargetUrl)
}}function GetTargetURL(B){var A=B.getElementsByTagName("a");for(var C=0;C<A.length;
C++){if(A[C].style.fontWeight=="bold"){return A[C].href}}return null}function SetDefaultTargetUrl(B){var C="";
var A=B.getElementsByTagName("a");if(A.length!=0){C=A[0].href;SetTargetUrl(C)}}function GetParseUrl(C,A){var D=GetInputControls(C,"text");
var F=new String(A);var B=/SEARCH_PATTERM/gi;var E=D.value;return F.replace(B,E)}function SelectSearchType(F,B){var E=document.getElementById(F);
var A=document.getElementById(B);var D=GetInputControls(A,"text");var C=GetInputControls(A,"button");
InitMenuControl(A);C.value=E.title;E.style.fontWeight="bold";SetTargetUrl(E.href);
D.focus();return false}function GetInputControls(C,D){var A=C.getElementsByTagName("input");
for(var B=0;B<A.length;B++){if(A[B].type==D){return A[B]}}return null}function InitMenuControl(B){var A=B.getElementsByTagName("a");
for(var C=0;C<A.length;C++){if(A[C].id!=""){var D=document.getElementById(A[C].id);
D.style.fontWeight=""}}}function SetTargetUrl(A){_searchControlTargetUrl=A};function ShowTerraID(){var A=GetUser();var E=document.getElementById("loginidok");
var B=document.getElementById("headerid");var C=document.getElementById("loginid");
var D=document.getElementById("llamada");if(A!="Anonymous"){D.innerHTML="<strong><p>¡Hola "+A.split("@")[0]+"!</p></strong>";
E.style.display="block";B.style.display="block";C.style.display="none"}else{E.style.display="none";
B.style.display="none";C.style.display="block"}};var _sponsoredContainerObjectName="";var _sponsorCurrentListitemObjectName="";var _sponsoredCurrentObjectName="";
function SelectContent(C,A,B){SetSponsoredGlobalVarsValue(C,A,B);SelectCorrectListItem();
HideSponsoredConent();ShowSponsoredContent()}function ShowSponsoredContent(){var A=document.getElementById(_sponsoredCurrentObjectName);
if(A==null){return}SwitchVisibilityControl(A,"")}function SelectCorrectListItem(){var A=document.getElementById(_sponsoredContainerObjectName);
if(A==null){return}ResetListItems(A.getElementsByTagName("li"));SelectListItem()}function SelectListItem(){var A=document.getElementById(_sponsorCurrentListitemObjectName);
var B=null;var C=null;if(A==null){return}C=getOnlyChildControls(A,"a");if(C!=null&&C.length!=0){B=C[0];
B.style.backgroundColor="#FFFFFF";B.style.fontWeight="bold"}}function ResetListItems(C){for(var B=0;
B<C.length;B++){var D=getOnlyChildControls(C[B],"a");if(D!=null&&D.length!=0){for(var A=0;
A<D.length;A++){D[A].style.fontWeight="";D[A].style.backgroundColor=""}}}}function HideSponsoredConent(){var B=document.getElementById(_sponsoredContainerObjectName);
var A=null;if(B==null){return}A=getOnlyChildControls(B,"div");if(A!=null&&A.length!=0){for(var D=0;
D<A.length;D++){var C=A[D];SwitchVisibilityControl(C,"none")}}}function SetSponsoredGlobalVarsValue(C,A,B){_sponsoredContainerObjectName=A;
_sponsorCurrentListitemObjectName=C;_sponsoredCurrentObjectName=B};function getNewSubmitForm(){var A=document.createElement("form");document.body.appendChild(A);
A.method="post";return A}function onTerraIDKeyUp_Handler(D,C,A,B){if((window.event&&window.event.keyCode==13)||(D.keyCode==13)){createFormAndSubmit(C,A,B)
}}function createNewFormElement(B,D,C){var A=document.createElement("input");A.setAttribute("name",D);
A.setAttribute("type","hidden");B.appendChild(A);A.value=C;return A}function createFormAndSubmit(C,A,B){if(!document.getElementById){return
}var E=document.getElementById(C);var F=document.getElementById(A);if(E==null||F==null||B==null){return
}var D=getNewSubmitForm();createNewFormElement(D,"IDToken1",E.value);createNewFormElement(D,"IDToken2",F.value);
createNewFormElement(D,"goto",location.href);D.action=B;D.submit()}function OnClickLogout(){document.cookie=".ASPXAUTH=deleted; path=/";
var A=new Terra.Home.Services.HomeService();A.Logout()};var _weatherItemsTargetLinkHRef="";var _weatherItemsTargetLinkTitle="";var _moduleWeather="";
var _urlGif="";var _searchPattern="";var _Prev1Text="";var _Prev1Title="";var _Prev1Href="";
var _Prev2Text="";var _Prev2Title="";var _Prev2Href="";var _divWaitId="imgSearchWaiting";
var _divWeatherInfo="divWeatherInfo";var _divSearchResults="divResults";var _divSearchNoResults="divNoResults";
var _divWeatherError="divWeatError";var _divWeatherLinks="divWeatherLinks";$("document").ready(function(){initWeatherControl()
});function initWeatherControl(){suscribeWeatherEvents()}function suscribeWeatherEvents(){$("#tiempo fieldset input[type=text]").click(function(){this.value=""
})}function SearchCities(E,D,A,C){SetWeatherGlobalVarsValues(E,D,A,C);if($("#tiempo fieldset input[type=text]").val()==""){return
}_searchPattern=$("#tiempo fieldset input[type=text]").val();$("#tiempo fieldset input[type=text]").val("").focus();
ShowProgressBar();var B="/Services/HomeService.svc/GetCities";$.getJSON(B,"searchPatterm="+_searchPattern,onGetCities_Complete)
}function SelectedItem(B){ShowProgressBar();writeCookie("WeatherCity",B);var A="/Services/HomeService.svc/GetWeatherByCityId";
$.getJSON(A,"cityId="+B,onGetWeatherByCityId_Complete)}function onKeyUp_Handler(K,B,A,F,J,D,C,I,G,E,H){_Prev1Text=D;
_Prev1Href=I;_Prev1Title=C;_Prev2Text=G;_Prev2Href=H;_Prev2Title=E;if((window.event&&window.event.keyCode==13)||(K.keyCode==13)){SetWeatherGlobalVarsValues(null,null,B,A);
ClickCount(_urlGif,_moduleWeather,"WeatherEnterKey");SearchCities(F,J,B,A)}}function onGetCities_Complete(B){var C=B.d;
if(C.length!=0){if(C.length==1){SelectedItem(C[0].Id)}else{var A="";A=GetHTMLResultTitle();
A+=GetHTMLResultItemList(C);$("#"+_divSearchResults).html(A);ShowResultsDiv()}}else{ShowErrorDiv()
}}function onGetWeatherByCityId_Complete(B){var E=B.d;if(E==null){onWeather_Error(E);
return}var A="";var D="";D=ParseWeatherTargetTitleHref(E.City);A=GetHTMLTitleLink(E.City,D);
A+=GetHTMLWeatherItemList(E.Forecast);A=A.replace(/#HREF#/gi,D);A=A.replace(/#URL_GIF#/gi,_urlGif);
A=A.replace(/#MODULE_ID#/gi,_moduleWeather);$("#"+_divWeatherInfo).html(A);var C="";
C=GetHTMLPrevTitleLink(E.City);$("#"+_divWeatherLinks).html(C);ShowWeatherDiv();ShowWeatherLinksDiv()
}function onWeather_Error(A){ShowGenericErrorDiv()}function GetHTMLResultTitle(){var A="<p class='res'>Resultados para la cadena <strong>#SEARCH_PATTERM#</strong></p>";
var B=A;B=B.replace(/#SEARCH_PATTERM#/gi,_searchPattern);return B}function GetHTMLResultItemList(C){var D="<ul class='cont2'>#ITEMS_LIST#</ul>";
var E=D;var B="";for(var A=0;A<C.length;A++){B+=GetHTMLResultItemTemplate(C[A].Id,C[A].Name)
}E=E.replace(/#ITEMS_LIST#/gi,B);return E}function GetHTMLResultItemTemplate(C,A){var B="<li><a href='javascript:void(0)' title='Ver el tiempo en #CITY_NAME#' rel='nofollow' onclick=SelectedItem('#CITY_ID#'); onmousedown=ClickCount('#URL_GIF#','#MODULE_ID#','WeatherCity')>#CITY_NAME#</a></li>";
var D=B;D=D.replace(/#CITY_ID#/gi,C);D=D.replace(/#CITY_NAME#/gi,A);D=D.replace(/#URL_GIF#/gi,_urlGif);
D=D.replace(/#MODULE_ID#/gi,_moduleWeather);return D}function GetHTMLWeatherItemList(F){var E="<ul class='cont'>#ITEM_LIST#</ul>";
var G=E;var D="";var A="";var B="";if(F==null){return}A="<li><a title='#PHRASE_DESCRIPTION#' href='#HREF#' onmousedown=ClickCount('#URL_GIF#','#MODULE_ID#','WatherCity')><img alt='#PHRASE_DESCRIPTION#' src='/home/img/tiempo/#ICON_NAME#.jpg'/><p><strong>#DATE#</strong><br/>#LOW_TEMP#º / #HIGH_TEMP#º</p></a></li>";
B="<li><a title='#PHRASE_DESCRIPTION#' href='#HREF#' onmousedown=ClickCount('#URL_GIF#','#MODULE_ID#','WatherCity')><img alt='#PHRASE_DESCRIPTION#' src='/home/img/tiempo/#ICON_NAME#.jpg'/><p>#DATE#<br/>#LOW_TEMP#º / #HIGH_TEMP#º</p></a></li>";
for(var C=0;C<F.length;C++){if(C==0){D+=GetHTMLWeatherItemTemplate(F[C],A)}else{D+=GetHTMLWeatherItemTemplate(F[C],B)
}}G=G.replace(/#ITEM_LIST#/gi,D);return G}function GetHTMLWeatherItemTemplate(C,B){var A=B;
A=A.replace(/#PHRASE_DESCRIPTION#/gi,C.Phrase);A=A.replace(/#ICON_NAME#/gi,C.Icon);
A=A.replace(/#DATE#/gi,C.Date);A=A.replace(/#LOW_TEMP#/gi,C.LowTempCelsius);A=A.replace(/#HIGH_TEMP#/gi,C.HighTempCelsius);
return A}function GetHTMLTitleLink(C){var A="<p class='res'><a title='#TITLE#' href='#HREF#' onmousedown=ClickCount('#URL_GIF#','#MODULE_ID#','WatherCity')>#CITY_NAME#</a></p>";
var B=A;var D="";D=ParseWeatherTargetTitleTitle(C);B=B.replace(/#CITY_NAME#/gi,C.Name);
B=B.replace(/#TITLE#/gi,D);return B}function GetHTMLPrevTitleLink(E){var F="<ul><li class='izq'><a title='#TITLE#' href='#HREF#'>#TEXT#</a></li>";
var G="<li class='der'><a title='#TITLE#' href='#HREF#'>#TEXT#</a></li></ul>";var A="";
A=ParsePrev1Title(E);var H="";H=ParsePrev2Title(E);var B="";B=ParsePrev1Href(E);var C="";
C=ParsePrev2Href(E);F=F.replace(/#HREF#/gi,B);F=F.replace(/#TITLE#/gi,A);F=F.replace(/#TEXT#/gi,_Prev1Text);
G=G.replace(/#HREF#/gi,C);G=G.replace(/#TITLE#/gi,H);G=G.replace(/#TEXT#/gi,_Prev2Text);
var D=F+G;return D}function ParseWeatherTargetTitleHref(A){var B=_weatherItemsTargetLinkHRef;
B=B.replace(/CITY_CODE/gi,A.Id);return B}function ParseWeatherTargetTitleTitle(B){var A=_weatherItemsTargetLinkTitle;
A=A.replace(/CITY_NAME/gi,B.Name);return A}function ParsePrev1Title(B){var A=_Prev1Title;
A=A.replace(/CITY_NAME/gi,B.Name);return A}function ParsePrev2Title(B){var A=_Prev2Title;
A=A.replace(/CITY_NAME/gi,B.Name);return A}function ParsePrev1Href(A){var B=_Prev1Href;
B=B.replace(/CITY_CODE/gi,A.Id);return B}function ParsePrev2Href(A){var B=_Prev2Href;
B=B.replace(/CITY_CODE/gi,A.Id);return B}function ShowProgressBar(){hideWeatherDivs();
$("#"+_divWaitId).show()}function ShowWeatherDiv(){hideWeatherDivs();$("#"+_divWeatherInfo).show()
}function ShowResultsDiv(){hideWeatherDivs();$("#"+_divSearchResults).show()}function ShowErrorDiv(){hideWeatherDivs();
$("#"+_divSearchNoResults).show()}function ShowGenericErrorDiv(){hideWeatherDivs();
$("#"+_divWeatherError).show()}function ShowWeatherLinksDiv(){$("#"+_divWeatherLinks).show()
}function hideWeatherDivs(){$("#tiempo div[id]").hide()}function SetWeatherGlobalVarsValues(D,C,A,B){if((C!=null&&C!="")&&(C!=_weatherItemsTargetLinkHRef)){_weatherItemsTargetLinkHRef=C
}if((D!=null&&D!="")&&(_weatherItemsTargetLinkTitle!=D)){_weatherItemsTargetLinkTitle=D
}if((A!=null&&A!="")&&(_urlGif!=A)){_urlGif=A}if((B!=null&&B!="")&&(_moduleWeather!=B)){_moduleWeather=B
}};