var swfobject=function(){var Z="undefined",P="object",B="Shockwave Flash",h="ShockwaveFlash.ShockwaveFlash",W="application/x-shockwave-flash",K="SWFObjectExprInst",G=window,g=document,N=navigator,f=[],H=[],Q=null,L=null,T=null,S=false,C=false;var a=function(){var l=typeof g.getElementById!=Z&&typeof g.getElementsByTagName!=Z&&typeof g.createElement!=Z&&typeof g.appendChild!=Z&&typeof g.replaceChild!=Z&&typeof g.removeChild!=Z&&typeof g.cloneNode!=Z,t=[0,0,0],n=null;if(typeof N.plugins!=Z&&typeof N.plugins[B]==P){n=N.plugins[B].description;if(n){n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1");t[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10);t[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10);t[2]=/r/.test(n)?parseInt(n.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof G.ActiveXObject!=Z){var o=null,s=false;try{o=new ActiveXObject(h+".7")}catch(k){try{o=new ActiveXObject(h+".6");t=[6,0,21];o.AllowScriptAccess="always"}catch(k){if(t[0]==6){s=true}}if(!s){try{o=new ActiveXObject(h)}catch(k){}}}if(!s&&o){try{n=o.GetVariable("$version");if(n){n=n.split(" ")[1].split(",");t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]}}catch(k){}}}}var v=N.userAgent.toLowerCase(),j=N.platform.toLowerCase(),r=/webkit/.test(v)?parseFloat(v.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=false,q=j?/win/.test(j):/win/.test(v),m=j?/mac/.test(j):/mac/.test(v);/*@cc_on i=true;@if(@_win32)q=true;@elif(@_mac)m=true;@end@*/return{w3cdom:l,pv:t,webkit:r,ie:i,win:q,mac:m}}();var e=function(){if(!a.w3cdom){return}J(I);if(a.ie&&a.win){try{g.write("<script id=__ie_ondomload defer=true src=//:><\/script>");var i=c("__ie_ondomload");if(i){i.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);V()}}}}catch(j){}}if(a.webkit&&typeof g.readyState!=Z){Q=setInterval(function(){if(/loaded|complete/.test(g.readyState)){V()}},10)}if(typeof g.addEventListener!=Z){g.addEventListener("DOMContentLoaded",V,null)}M(V)}();function V(){if(S){return}if(a.ie&&a.win){var m=Y("span");try{var l=g.getElementsByTagName("body")[0].appendChild(m);l.parentNode.removeChild(l)}catch(n){return}}S=true;if(Q){clearInterval(Q);Q=null}var j=f.length;for(var k=0;k<j;k++){f[k]()}}function J(i){if(S){i()}else{f[f.length]=i}}function M(j){if(typeof G.addEventListener!=Z){G.addEventListener("load",j,false)}else{if(typeof g.addEventListener!=Z){g.addEventListener("load",j,false)}else{if(typeof G.attachEvent!=Z){G.attachEvent("onload",j)}else{if(typeof G.onload=="function"){var i=G.onload;G.onload=function(){i();j()}}else{G.onload=j}}}}}function I(){var l=H.length;for(var j=0;j<l;j++){var m=H[j].id;if(a.pv[0]>0){var k=c(m);if(k){H[j].width=k.getAttribute("width")?k.getAttribute("width"):"0";H[j].height=k.getAttribute("height")?k.getAttribute("height"):"0";if(O(H[j].swfVersion)){if(a.webkit&&a.webkit<312){U(k)}X(m,true)}else{if(H[j].expressInstall&&!C&&O("6.0.65")&&(a.win||a.mac)){D(H[j])}else{d(k)}}}}else{X(m,true)}}}function U(m){var k=m.getElementsByTagName(P)[0];if(k){var p=Y("embed"),r=k.attributes;if(r){var o=r.length;for(var n=0;n<o;n++){if(r[n].nodeName.toLowerCase()=="data"){p.setAttribute("src",r[n].nodeValue)}else{p.setAttribute(r[n].nodeName,r[n].nodeValue)}}}var q=k.childNodes;if(q){var s=q.length;for(var l=0;l<s;l++){if(q[l].nodeType==1&&q[l].nodeName.toLowerCase()=="param"){p.setAttribute(q[l].getAttribute("name"),q[l].getAttribute("value"))}}}m.parentNode.replaceChild(p,m)}}function F(i){if(a.ie&&a.win&&O("8.0.0")){G.attachEvent("onunload",function(){var k=c(i);if(k){for(var j in k){if(typeof k[j]=="function"){k[j]=function(){}}}k.parentNode.removeChild(k)}})}}function D(j){C=true;var o=c(j.id);if(o){if(j.altContentId){var l=c(j.altContentId);if(l){L=l;T=j.altContentId}}else{L=b(o)}if(!(/%$/.test(j.width))&&parseInt(j.width,10)<310){j.width="310"}if(!(/%$/.test(j.height))&&parseInt(j.height,10)<137){j.height="137"}g.title=g.title.slice(0,47)+" - Flash Player Installation";var n=a.ie&&a.win?"ActiveX":"PlugIn",k=g.title,m="MMredirectURL="+G.location+"&MMplayerType="+n+"&MMdoctitle="+k,p=j.id;if(a.ie&&a.win&&o.readyState!=4){var i=Y("div");p+="SWFObjectNew";i.setAttribute("id",p);o.parentNode.insertBefore(i,o);o.style.display="none";G.attachEvent("onload",function(){o.parentNode.removeChild(o)})}R({data:j.expressInstall,id:K,width:j.width,height:j.height},{flashvars:m},p)}}function d(j){if(a.ie&&a.win&&j.readyState!=4){var i=Y("div");j.parentNode.insertBefore(i,j);i.parentNode.replaceChild(b(j),i);j.style.display="none";G.attachEvent("onload",function(){j.parentNode.removeChild(j)})}else{j.parentNode.replaceChild(b(j),j)}}function b(n){var m=Y("div");if(a.win&&a.ie){m.innerHTML=n.innerHTML}else{var k=n.getElementsByTagName(P)[0];if(k){var o=k.childNodes;if(o){var j=o.length;for(var l=0;l<j;l++){if(!(o[l].nodeType==1&&o[l].nodeName.toLowerCase()=="param")&&!(o[l].nodeType==8)){m.appendChild(o[l].cloneNode(true))}}}}}return m}function R(AE,AC,q){var p,t=c(q);if(typeof AE.id==Z){AE.id=q}if(a.ie&&a.win){var AD="";for(var z in AE){if(AE[z]!=Object.prototype[z]){if(z=="data"){AC.movie=AE[z]}else{if(z.toLowerCase()=="styleclass"){AD+=' class="'+AE[z]+'"'}else{if(z!="classid"){AD+=" "+z+'="'+AE[z]+'"'}}}}}var AB="";for(var y in AC){if(AC[y]!=Object.prototype[y]){AB+='<param name="'+y+'" value="'+AC[y]+'" />'}}t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AD+">"+AB+"</object>";F(AE.id);p=c(AE.id)}else{if(a.webkit&&a.webkit<312){var AA=Y("embed");AA.setAttribute("type",W);for(var x in AE){if(AE[x]!=Object.prototype[x]){if(x=="data"){AA.setAttribute("src",AE[x])}else{if(x.toLowerCase()=="styleclass"){AA.setAttribute("class",AE[x])}else{if(x!="classid"){AA.setAttribute(x,AE[x])}}}}}for(var w in AC){if(AC[w]!=Object.prototype[w]){if(w!="movie"){AA.setAttribute(w,AC[w])}}}t.parentNode.replaceChild(AA,t);p=AA}else{var s=Y(P);s.setAttribute("type",W);for(var v in AE){if(AE[v]!=Object.prototype[v]){if(v.toLowerCase()=="styleclass"){s.setAttribute("class",AE[v])}else{if(v!="classid"){s.setAttribute(v,AE[v])}}}}for(var u in AC){if(AC[u]!=Object.prototype[u]&&u!="movie"){E(s,u,AC[u])}}t.parentNode.replaceChild(s,t);p=s}}return p}function E(k,i,j){var l=Y("param");l.setAttribute("name",i);l.setAttribute("value",j);k.appendChild(l)}function c(i){return g.getElementById(i)}function Y(i){return g.createElement(i)}function O(k){var j=a.pv,i=k.split(".");i[0]=parseInt(i[0],10);i[1]=parseInt(i[1],10);i[2]=parseInt(i[2],10);return(j[0]>i[0]||(j[0]==i[0]&&j[1]>i[1])||(j[0]==i[0]&&j[1]==i[1]&&j[2]>=i[2]))?true:false}function A(m,j){if(a.ie&&a.mac){return}var l=g.getElementsByTagName("head")[0],k=Y("style");k.setAttribute("type","text/css");k.setAttribute("media","screen");if(!(a.ie&&a.win)&&typeof g.createTextNode!=Z){k.appendChild(g.createTextNode(m+" {"+j+"}"))}l.appendChild(k);if(a.ie&&a.win&&typeof g.styleSheets!=Z&&g.styleSheets.length>0){var i=g.styleSheets[g.styleSheets.length-1];if(typeof i.addRule==P){i.addRule(m,j)}}}function X(k,i){var j=i?"visible":"hidden";if(S){c(k).style.visibility=j}else{A("#"+k,"visibility:"+j)}}return{registerObject:function(l,i,k){if(!a.w3cdom||!l||!i){return}var j={};j.id=l;j.swfVersion=i;j.expressInstall=k?k:false;H[H.length]=j;X(l,false)},getObjectById:function(l){var i=null;if(a.w3cdom&&S){var j=c(l);if(j){var k=j.getElementsByTagName(P)[0];if(!k||(k&&typeof j.SetVariable!=Z)){i=j}else{if(typeof k.SetVariable!=Z){i=k}}}}return i},embedSWF:function(n,u,r,t,j,m,k,p,s){if(!a.w3cdom||!n||!u||!r||!t||!j){return}r+="";t+="";if(O(j)){X(u,false);var q=(typeof s==P)?s:{};q.data=n;q.width=r;q.height=t;var o=(typeof p==P)?p:{};if(typeof k==P){for(var l in k){if(k[l]!=Object.prototype[l]){if(typeof o.flashvars!=Z){o.flashvars+="&"+l+"="+k[l]}else{o.flashvars=l+"="+k[l]}}}}J(function(){R(q,o,u);if(q.id==u){X(u,true)}})}else{if(m&&!C&&O("6.0.65")&&(a.win||a.mac)){X(u,false);J(function(){var i={};i.id=i.altContentId=u;i.width=r;i.height=t;i.expressInstall=m;D(i)})}}},getFlashPlayerVersion:function(){return{major:a.pv[0],minor:a.pv[1],release:a.pv[2]}},hasFlashPlayerVersion:O,createSWF:function(k,j,i){if(a.w3cdom&&S){return R(k,j,i)}else{return undefined}},createCSS:function(j,i){if(a.w3cdom){A(j,i)}},addDomLoadEvent:J,addLoadEvent:M,getQueryParamValue:function(m){var l=g.location.search||g.location.hash;if(m==null){return l}if(l){var k=l.substring(1).split("&");for(var j=0;j<k.length;j++){if(k[j].substring(0,k[j].indexOf("="))==m){return k[j].substring((k[j].indexOf("=")+1))}}}return""},expressInstallCallback:function(){if(C&&L){var i=c(K);if(i){i.parentNode.replaceChild(L,i);if(T){X(T,true);if(a.ie&&a.win){L.style.display="block"}}L=null;T=null;C=false}}}}}();;function Trim2(str){return str.replace(/^\s+|\s+$/g,"");}
function getfocus1(){document.getElementById('txtSearch').style.background='#ffffff';document.form_separadores.txtSearch.style.color='#9C744B'
if(document.form_separadores.txtSearch.value==defeito){document.form_separadores.txtSearch.value='';}}
function lostfocus1(){if(document.form_separadores.txtSearch.value==''){document.form_separadores.txtSearch.value=defeito;document.form_separadores.txtSearch.style.color='#CCCCCC';}}
var defeito='';function activar_separador(action_form,nome,input_nome,valor_por_defeito){aparecer='sim';if(input_nome!='keywords'){aparecer='nao';}
document.getElementById('txtSearch').style.background='#ffffff';var e=document.getElementById('ul_tabs');e=e.getElementsByTagName('li');i=0;while(i<e.length){e[i].id="";i++;}
nome.id='Tab1';document.getElementById('form_separadores').action=action_form;document.getElementById('txtSearch').name=input_nome;if(((Trim2(document.getElementById('txtSearch').value))=='')||((Trim2(document.getElementById('txtSearch').value))==defeito)){document.getElementById('txtSearch').value=valor_por_defeito;if(action_form=='pesquisa_web.php')
document.getElementById('txtSearch').style.background="#ffffff url('http://www.google.com/coop/intl/pt/images/google_custom_search_watermark.gif') 10px no-repeat";}
defeito=valor_por_defeito;}
function load_pagina(action_form,input_nome,valor_por_defeito){document.getElementById('form_separadores').action=action_form;document.getElementById('txtSearch').name=input_nome;document.getElementById('txtSearch').value=valor_por_defeito;defeito=valor_por_defeito;}
function activar_selected(num_tab){var e=document.getElementById('ul_tabs');e=e.getElementsByTagName('li');e[num_tab].id="Tab1";}
function verificar_input(){if((Trim2(document.getElementById('txtSearch').value)=='')||(document.getElementById('txtSearch').value==defeito))
return false;return true;;};var useBSNns;if(useBSNns)
{if(typeof(bsn)=="undefined")
bsn={}
_bsn=bsn;}
else
{_bsn=this;}
if(typeof(_bsn.Autosuggest)=="undefined")
_bsn.Autosuggest={}
_bsn.AutoSuggest=function(fldID,param)
{if(!document.getElementById)
return false;this.fld=_bsn.DOM.getElement(fldID);if(!this.fld)
return false;this.sInput="";this.nInputChars=0;this.aSuggestions=[];this.iHighlighted=0;this.oP=(param)?param:{};if(!this.oP.minchars)this.oP.minchars=1;if(!this.oP.method)this.oP.meth="get";if(!this.oP.varname)this.oP.varname="input";if(!this.oP.className)this.oP.className="autosuggest";if(!this.oP.timeout)this.oP.timeout=2500;if(!this.oP.delay)this.oP.delay=500;if(!this.oP.offsety)this.oP.offsety=-5;if(!this.oP.shownoresults)this.oP.shownoresults=false;if(!this.oP.noresults)this.oP.noresults="Sem sugestões";if(!this.oP.maxheight&&this.oP.maxheight!==0)this.oP.maxheight=250;if(!this.oP.cache&&this.oP.cache!=false)this.oP.cache=true;var pointer=this;this.fld.onkeypress=function(ev){return pointer.onKeyPress(ev);}
this.fld.onkeyup=function(ev){return pointer.onKeyUp(ev);}
this.fld.setAttribute("autocomplete","off");}
_bsn.AutoSuggest.prototype.onKeyPress=function(ev)
{var key=(window.event)?window.event.keyCode:ev.keyCode;var RETURN=13;var TAB=9;var ESC=27;var bubble=true;switch(key)
{case RETURN:this.setHighlightedValue();bubble=true;break;case ESC:this.clearSuggestions();break;}
return bubble;}
_bsn.AutoSuggest.prototype.onKeyUp=function(ev)
{var key=(window.event)?window.event.keyCode:ev.keyCode;var ARRUP=38;var ARRDN=40;var bubble=true;switch(key)
{case ARRUP:this.changeHighlight(key);bubble=false;break;case ARRDN:this.changeHighlight(key);bubble=false;break;default:this.getSuggestions(this.fld.value);}
return bubble;}
_bsn.AutoSuggest.prototype.getSuggestions=function(val)
{if(val==this.sInput)
return false;if(val.length<this.oP.minchars)
{this.sInput="";return false;}
if(val.length>this.nInputChars&&this.aSuggestions.length&&this.oP.cache)
{var arr=[];for(var i=0;i<this.aSuggestions.length;i++)
{if(this.aSuggestions[i].value.substr(0,val.length).toLowerCase()==val.toLowerCase())
arr.push(this.aSuggestions[i]);}
this.sInput=val;this.nInputChars=val.length;this.aSuggestions=arr;this.createList(this.aSuggestions);return false;}
else
{this.sInput=val;this.nInputChars=val.length;var pointer=this;clearTimeout(this.ajID);this.ajID=setTimeout(function(){pointer.doAjaxRequest()},this.oP.delay);}
return false;}
_bsn.AutoSuggest.prototype.doAjaxRequest=function()
{var pointer=this;var url=this.oP.script+this.oP.varname+"="+escape(this.fld.value);var meth=this.oP.meth;var onSuccessFunc=function(req){pointer.setSuggestions(req)};var onErrorFunc=function(status){alert("AJAX error: "+status);};var myAjax=new _bsn.Ajax();myAjax.makeRequest(url,meth,onSuccessFunc,onErrorFunc);}
_bsn.AutoSuggest.prototype.setSuggestions=function(req)
{this.aSuggestions=[];if(this.oP.json)
{var jsondata=eval('('+req.responseText+')');for(var i=0;i<jsondata.results.length;i++)
{this.aSuggestions.push({'id':jsondata.results[i].id,'value':jsondata.results[i].value,'info':jsondata.results[i].info});}}
else
{var xml=req.responseXML;var results=xml.getElementsByTagName('results')[0].childNodes;for(var i=0;i<results.length;i++)
{if(results[i].hasChildNodes())
this.aSuggestions.push({'id':results[i].getAttribute('id'),'value':results[i].childNodes[0].nodeValue,'info':results[i].getAttribute('info')});}}
this.idAs="as_"+this.fld.id;this.createList(this.aSuggestions);}
_bsn.AutoSuggest.prototype.createList=function(arr)
{var pointer=this;_bsn.DOM.removeElement(this.idAs);this.killTimeout();var div=_bsn.DOM.createElement("div",{id:this.idAs,className:this.oP.className});var hcorner=_bsn.DOM.createElement("div",{className:"as_corner"});var hbar=_bsn.DOM.createElement("div",{className:"as_bar"});var header=_bsn.DOM.createElement("div",{className:"as_header"});header.appendChild(hcorner);header.appendChild(hbar);div.appendChild(header);var ul=_bsn.DOM.createElement("ul",{id:"as_ul"});for(var i=0;i<arr.length;i++)
{var val=arr[i].value;var st=val.toLowerCase().indexOf(this.sInput.toLowerCase());var output=val.substring(0,st)+"<em>"+val.substring(st,st+this.sInput.length)+"</em>"+val.substring(st+this.sInput.length);var span=_bsn.DOM.createElement("span",{},output,true);if(arr[i].info!="")
{var br=_bsn.DOM.createElement("br",{});span.appendChild(br);var small=_bsn.DOM.createElement("small",{},arr[i].info);span.appendChild(small);}
var a=_bsn.DOM.createElement("a",{href:"#"});var tl=_bsn.DOM.createElement("span",{className:"tl"}," ");var tr=_bsn.DOM.createElement("span",{className:"tr"}," ");a.appendChild(tl);a.appendChild(tr);a.appendChild(span);a.name=i+1;a.onclick=function(){pointer.setHighlightedValue();document.form_separadores.submit();return false;}
a.onmouseover=function(){pointer.setHighlight(this.name);}
var li=_bsn.DOM.createElement("li",{},a);ul.appendChild(li);}
if(arr.length==0)
{var li=_bsn.DOM.createElement("li",{className:"as_warning"},this.oP.noresults);ul.appendChild(li);}
div.appendChild(ul);var fcorner=_bsn.DOM.createElement("div",{className:"as_corner"});var fbar=_bsn.DOM.createElement("div",{className:"as_bar"});var footer=_bsn.DOM.createElement("div",{className:"as_footer"});footer.appendChild(fcorner);footer.appendChild(fbar);div.appendChild(footer);var pos=_bsn.DOM.getPos(this.fld);div.style.left=pos.x+"px";div.style.top=(pos.y+this.fld.offsetHeight+this.oP.offsety)+"px";div.style.width=this.fld.offsetWidth+"px";div.onmouseover=function(){pointer.killTimeout()}
div.onmouseout=function(){pointer.resetTimeout()}
if(aparecer=='sim'){document.getElementsByTagName("body")[0].appendChild(div);}
this.iHighlighted=0;var pointer=this;this.toID=setTimeout(function(){pointer.clearSuggestions()},this.oP.timeout);}
_bsn.AutoSuggest.prototype.changeHighlight=function(key)
{var list=_bsn.DOM.getElement("as_ul");if(!list)
return false;var n;if(key==40)
n=this.iHighlighted+1;else if(key==38)
n=this.iHighlighted-1;if(n>list.childNodes.length)
n=list.childNodes.length;if(n<1)
n=1;this.setHighlight(n);}
_bsn.AutoSuggest.prototype.setHighlight=function(n)
{var list=_bsn.DOM.getElement("as_ul");if(!list)
return false;if(this.iHighlighted>0)
this.clearHighlight();this.iHighlighted=Number(n);list.childNodes[this.iHighlighted-1].className="as_highlight";this.killTimeout();}
_bsn.AutoSuggest.prototype.clearHighlight=function()
{var list=_bsn.DOM.getElement("as_ul");if(!list)
return false;if(this.iHighlighted>0)
{list.childNodes[this.iHighlighted-1].className="";this.iHighlighted=0;}}
_bsn.AutoSuggest.prototype.setHighlightedValue=function()
{if(this.iHighlighted)
{this.sInput=this.fld.value=this.aSuggestions[this.iHighlighted-1].value;this.fld.focus();if(this.fld.selectionStart)
this.fld.setSelectionRange(this.sInput.length,this.sInput.length);this.clearSuggestions();if(typeof(this.oP.callback)=="function")
this.oP.callback(this.aSuggestions[this.iHighlighted-1]);}}
_bsn.AutoSuggest.prototype.killTimeout=function()
{clearTimeout(this.toID);}
_bsn.AutoSuggest.prototype.resetTimeout=function()
{clearTimeout(this.toID);var pointer=this;this.toID=setTimeout(function(){pointer.clearSuggestions()},1000);}
_bsn.AutoSuggest.prototype.clearSuggestions=function()
{this.killTimeout();var ele=_bsn.DOM.getElement(this.idAs);var pointer=this;if(ele)
{var fade=new _bsn.Fader(ele,1,0,250,function(){_bsn.DOM.removeElement(pointer.idAs)});}}
if(typeof(_bsn.Ajax)=="undefined")
_bsn.Ajax={}
_bsn.Ajax=function()
{this.req={};this.isIE=false;}
_bsn.Ajax.prototype.makeRequest=function(url,meth,onComp,onErr)
{if(meth!="POST")
meth="GET";this.onComplete=onComp;this.onError=onErr;var pointer=this;if(window.XMLHttpRequest)
{this.req=new XMLHttpRequest();this.req.onreadystatechange=function(){pointer.processReqChange()};this.req.open("GET",url,true);this.req.send(null);}
else if(window.ActiveXObject)
{this.req=new ActiveXObject("Microsoft.XMLHTTP");if(this.req)
{this.req.onreadystatechange=function(){pointer.processReqChange()};this.req.open(meth,url,true);this.req.send();}}}
_bsn.Ajax.prototype.processReqChange=function()
{if(this.req.readyState==4){if(this.req.status==200)
{this.onComplete(this.req);}else{this.onError(this.req.status);}}}
if(typeof(_bsn.DOM)=="undefined")
_bsn.DOM={}
_bsn.DOM.createElement=function(type,attr,cont,html)
{var ne=document.createElement(type);if(!ne)
return false;for(var a in attr)
ne[a]=attr[a];if(typeof(cont)=="string"&&!html)
ne.appendChild(document.createTextNode(cont));else if(typeof(cont)=="string"&&html)
ne.innerHTML=cont;else if(typeof(cont)=="object")
ne.appendChild(cont);return ne;}
_bsn.DOM.clearElement=function(id)
{var ele=this.getElement(id);if(!ele)
return false;while(ele.childNodes.length)
ele.removeChild(ele.childNodes[0]);return true;}
_bsn.DOM.removeElement=function(ele)
{var e=this.getElement(ele);if(!e)
return false;else if(e.parentNode.removeChild(e))
return true;else
return false;}
_bsn.DOM.replaceContent=function(id,cont,html)
{var ele=this.getElement(id);if(!ele)
return false;this.clearElement(ele);if(typeof(cont)=="string"&&!html)
ele.appendChild(document.createTextNode(cont));else if(typeof(cont)=="string"&&html)
ele.innerHTML=cont;else if(typeof(cont)=="object")
ele.appendChild(cont);}
_bsn.DOM.getElement=function(ele)
{if(typeof(ele)=="undefined")
{return false;}
else if(typeof(ele)=="string")
{var re=document.getElementById(ele);if(!re)
return false;else if(typeof(re.appendChild)!="undefined"){return re;}else{return false;}}
else if(typeof(ele.appendChild)!="undefined")
return ele;else
return false;}
_bsn.DOM.appendChildren=function(id,arr)
{var ele=this.getElement(id);if(!ele)
return false;if(typeof(arr)!="object")
return false;for(var i=0;i<arr.length;i++)
{var cont=arr[i];if(typeof(cont)=="string")
ele.appendChild(document.createTextNode(cont));else if(typeof(cont)=="object")
ele.appendChild(cont);}}
_bsn.DOM.getPos=function(ele)
{var ele=this.getElement(ele);var obj=ele;var curleft=0;if(obj.offsetParent)
{while(obj.offsetParent)
{curleft+=obj.offsetLeft
obj=obj.offsetParent;}}
else if(obj.x)
curleft+=obj.x;var obj=ele;var curtop=0;if(obj.offsetParent)
{while(obj.offsetParent)
{curtop+=obj.offsetTop
obj=obj.offsetParent;}}
else if(obj.y)
curtop+=obj.y;return{x:curleft,y:curtop}}
if(typeof(_bsn.Fader)=="undefined")
_bsn.Fader={}
_bsn.Fader=function(ele,from,to,fadetime,callback)
{if(!ele)
return false;this.ele=ele;this.from=from;this.to=to;this.callback=callback;this.nDur=fadetime;this.nInt=50;this.nTime=0;var p=this;this.nID=setInterval(function(){p._fade()},this.nInt);}
_bsn.Fader.prototype._fade=function()
{this.nTime+=this.nInt;var ieop=Math.round(this._tween(this.nTime,this.from,this.to,this.nDur)*100);var op=ieop/100;if(this.ele.filters)
{try
{this.ele.filters.item("DXImageTransform.Microsoft.Alpha").opacity=ieop;}catch(e){this.ele.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+ieop+')';}}
else
{this.ele.style.opacity=op;}
if(this.nTime==this.nDur)
{clearInterval(this.nID);if(this.callback!=undefined)
this.callback();}}
_bsn.Fader.prototype._tween=function(t,b,c,d)
{return b+((c-b)*(t/d));};function Trim(str){return str.replace(/^\s+|\s+$/g,"");}
function getfocus(nome,texto,defeito){document.newsletter[nome].style.color='#000000'
if(document.newsletter[nome].value==defeito){document.newsletter[nome].value='';}}
function lostfocus(nome,texto,defeito){if(Trim(document.newsletter[nome].value)==''){document.newsletter[nome].value=defeito;document.newsletter[nome].style.color='#CCCCCC';}}