function AdjustFloatElem(){var c=document.getElementById("floatph");var b=c.offsetWidth;var e=document.body.offsetWidth;var d=c.offsetHeight;var a=document.body.offsetHeight;if(b>0&&e>0&&d>0&&a>0){if(c.style.left==""||c.style.left=="0"){c.style.left=Math.floor(Math.max(e-b,0)/2)}if(c.style.top==""||c.style.top=="0"){c.style.top=Math.floor(Math.max(a-d,0)/2)}}else{setTimeout("AdjustFloatElem()",10)}}var dontforce=false;function SetFocusAtElement(aId){if(dontforce){return}try{var aId_Counter=eval("window.Counter_"+aId);if(aId_Counter==null){aId_Counter=0}var e=null;e=document.getElementById(aId);if(!(e==null||typeof e=="undefined")){e.focus()}if(aId_Counter<20){window.setTimeout("SetFocusAtElement('"+aId+"')",100)}aId_Counter++;eval("window.Counter_"+aId+"="+aId_Counter)}catch(aa){setTimeout("SetFocusAtElement('"+aId+"')",1000)}}function GetCookie(d){var b=document.cookie.split("; ");for(var c=0;c<b.length;c++){var a=b[c].split("=");if(d==a[0]){return unescape(a[1])}}return null}function SetCookie(d,a,c){var b=new Date();b.setTime(b.getTime()+(c*1000));document.cookie=d+"="+escape(a)+((c==null)?"":"; expires="+b.toGMTString())+"; path=/"}function S4(){return(((1+Math.random())*65536)|0).toString(16).substring(1)}function GetNewGUID(){try{var a=0;for(var b=0;b<=window.history.length;b++){a+=Math.random()}}catch(c){}return(S4()+S4()+S4()+S4()+S4()+S4()+S4()+S4()).toUpperCase()}function ValidateAnonymousSession(b){try{var a=GetCookie(b);if(a==null||a==""){SetCookie(b,GetNewGUID())}}catch(c){}}function GetScreenRes(){var b=null;try{if(window.screen.width!=null&&window.screen.height!=null&&window.screen.width>0&&window.screen.height>0){b=window.screen.width+"x"+window.screen.height}}catch(a){}return(b==null?"NO":b)}function FlashCallback(aArg){eval("fc_"+aArg+"();")}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&document.getElementById){a=document.getElementById(f)}return a}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}function criarjanela(b,a,d){dontforce=true;if(b!="#"){if(criarjanela.arguments.length>=2){if((a!=null)&&(a!="")){var c=a.split(" ");if(c.length!=0){nm=c[0]}else{nm=""}}else{nm=""}}else{nm=""}if(criarjanela.arguments.length==3){param=d}else{param="toolbar=no,location=no,directories=no,status=no,menubar=0,scrollbars=0,copyhistory=yes,width=194,height=177"}win=window.open(b,nm,param)}}function criarJanela(b,a,c){criarjanela(b,a,c)}function gotoURL(a){var b=a.value;if(a.value!="#"){window.open(a.value,"_blank","width=900,height=550,toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes")}}function SearchPressedEnter(a){if(a==null){a=window.event}var c=a.keyCode?a.keyCode:a.which?a.which:a.charCode;if(c==13){var b=$(document).data("saytLocation");if(b!=null&&b!=""){window.location=b;setTimeout("window.location.reload();",1000)}else{SubmitSearchForm()}}}function SubmitSearchForm(){document.searchForm.q.value=document.getElementById("textSearch").value;document.body.style.cursor="wait";document.searchForm.submit()}function f_scrollTop(){return f_filterResults(window.pageYOffset?window.pageYOffset:0,document.documentElement?document.documentElement.scrollTop:0,document.body?document.body.scrollTop:0)}function f_filterResults(d,b,a){var c=d?d:0;if(b&&(!c||(c>b))){c=b}return a&&(!c||(c>a))?a:c}function UserAgentIsIpad(){return(navigator.userAgent.match(/iPad/i)!=null||navigator.userAgent.match(/iPhone/i)!=null||navigator.userAgent.match(/iPod/i)!=null)};