var SITCCMS={version:"1.0",contenedor:"",isSet:function(A){return(typeof A!="undefined")},habCEAS:function(){return(typeof jQuery!="undefined")},DS:"",VS:"",setDS:function(A){this.DS=A},setVS:function(A){this.VS=A},showPreLoading:function(){try{this.gId("pm_carga").show()}catch(A){}},hidePreLoading:function(){try{this.gId("pm_carga").hide()}catch(A){}},showAlert:function(A){alert(A)},setNoHab:function(B,A){this.gId(B).attr("disabled",A)},showConfirm:function(A){if(this.habCEAS()){$("#_ven").addClass("flora");$("#_ven").dialog({modal:true,overlay:{opacity:0.5,background:"black"},buttons:{Ok:function(){alert("Ok");$("#_ven").removeClass("flora")},Cancel:function(){$(this).dialog("close");$("#_ven").removeClass("flora")}}})}else{return confirm(A)}},showError:function(){alert("EL SIT ha detectado un error.\nPor favor intentelo nuevamente.\nSi el error persiste por favor comuniquese con el administrador del SIT.")},showErrorF:function(A){alert("EL SIT ha detectado una falla.\nPor favor intentelo nuevamente.\nSi el error persiste por favor tome nota del siguiente detalle de la falla y comuniquese con el administrador del SIT :\n"+A)},showErrorE:function(A){alert("EL SIT ha detectado una excepcion.\nSi el error persiste por favor tome nota del siguiente detalle de la excepcion y comuniquese con el administrador del SIT :\n"+A)},showDialog:function(){},showWindow:function(A,B,D){var C=window.open(A,B,D)},sepHTML:"@#@",gId:function(A){if(jQuery){return $("#"+A)}},gIdd:function(A){return document.getElementById(A)},gValor:function(A){return this.gId(A).val()},setValor:function(B,A){if(this.habCEAS()){this.gId(B).val(A)}else{this.gIdd(B).value=A}},gC:function(){return JQuery},cargado:function(A){$().ready(A)},getPanelLoading:function(A){return'<div style="background-color:white;height:55px;vertical-align:middle;text-align:center"><br><img src="'+A+'/img/prelb2.gif"></div>'},redirect:function(A){window.location=A},texto_etiquetas:new Array("div","td","tr","p","b","table","strong","emphasis","a","h1","h2","h3","h4","h5","h6","pre","sub","sup","i","th","cp","ul","ol","li","dt","dd"),texto_pxArray:new Array("10","12","16","20","24","30"),texto_emArray:new Array("0.7","0.9","1.0","1.5","2.0","2.5"),texto_tamTextoInicial:1,cambiarTamTexto:function(G,E){var D="px";if(!document.getElementById){return }var C=this.texto_tamTextoInicial;C+=E;if(C<0){C=0}if(C>6){C=6}this.texto_tamTextoInicial=C;var F=document.getElementById(G);for(var B=0;B<this.texto_etiquetas.length;B++){var A=F.getElementsByTagName(this.texto_etiquetas[B]);for(k=0;k<A.length;k++){A[k].style.fontSize=(D=="px")?this.texto_pxArray[C]+D:this.texto_emArray[C]+D}}return false},imprimir:function(C){var B=document.getElementById(C);var A=window.open("","winPrinItem","Width=500,Height=620,Resizable=yes,Scrollbars=yes,statusbar=no,MenuBar=no");A.document.open();A.document.write("<html><head><title>Santa Cruz, Patagonia - www.santacruzpatagonia.gov.ar</title><style>.no-imp{visibility:hidden;width:0px;height:0px;}</style></head><body onLoad='window.print()' style='background:white'>");A.document.write($(C).html());A.document.write("</body></html>");A.document.close()}};