wSTR='<table width="100%" style="height: 100%"><tr><td align="middle" valign="center"><center><img src="imgs/wb.gif" border="0"></center></td></tr></table>';function mSTR(a){return'<table width="100%" style="height: 100%"><tr><td align="middle" valign="center">'+a+'</td></tr></table>'}var NUM_JANELAS=256;dPTR=new Array();dAPTR=new Array();WM_MOUSEDOWN=1;WM_MOUSEUP=2;WM_MOUSEMOVE=3;WM_MOUSEOVER=4;WM_MOUSEOUT=6;WM_GETFOCUS=7;WM_RESIZE=8;WM_RESIZEW=9;WM_MOUSELEFTBUTTON=1;WM_MOUSERIGHTBUTTON=2;WM_MOUSEMIDDLEBUTTON=3;WMS_NOP=0;WMS_MOVING=1;WMS_RESIZING=2;WMS_RESIZINGW=3;WMF_CLOSE=0x01;WMF_MAXIMIZE=0x02;WMF_RESIZEABLE=0x04;WMF_MODAL=0x08;WMF_MOVEABLE=0x10;WMF_CENTERED=0x20;WMF_ASIFRAME=0x40;WMF_NOTITLE=0x80;WMF_NOFOCUS=0x100;WMF_ONTOP=0x200;WMF_RESIZEABLEW=0x400;WMF_MINIMIZE=0x800;wh=null;wnd_over=null;wlh=null;wnd_counter=0;wnd_ignore_nextcmd=0;wnd_ignore_nextmsgdown=0;ONFOCUS_DELAY=1000;anchorpoint_X=0;anchorpoint_Y=0;secs='';timerID=null;timerRunning=false;std_posX=20;std_posY=20;std_ancX=0;std_ancY=0;std_ang=20;std_arrange='default';function returnfalse(e){return false}function returntrue(){return true}function rand(n){return(Math.floor(Math.random()*n+1))}function cit(a){pl=dt.indexOf(a)+1;ts=a;return pl}function getBrowserLanguage(){la='en';if(browser=='Netscape')la=navigator.language;else la=navigator.browserLanguage;if(la=='pt-BR')la='ptbr';else if(la=='pt-br')la='ptbr';else if(la=='en-US')la='en';return la}dt=navigator.userAgent.toLowerCase();OS='';version='';ts='';br='';if(cit('konqueror')){br="Konqueror";OS="Linux"}else if(cit('safari'))br="Safari";else if(cit('omniweb'))br="OmniWeb";else if(cit('opera'))br="Opera";else if(cit('webtv'))br="WebTV";else if(cit('icab'))br="iCab";else if(cit('msie'))br="IE";else if(!cit('compatible')){br="Netscape";version=dt.charAt(8)}else br="padrao";browser=br;var language=getBrowserLanguage();function getAllChildren(e){return e.all?e.all:e.getElementsByTagName('*')}function getClassB(a,e){bb=getAllChildren(e);for(S=0;S<bb.length;S++)if(bb[S].className==a)return bb[S];return null}function getChild(a,b){ce=null;ch=a.childNodes;for(i=0;i<ch.length;i++){if(ch.item(i).id==b){ce=ch.item(i);break}}return ce}function getSubChild(a,b){var c=null;if(a.id==b){return a};var d=a.childNodes;for(var i=0;i<d.length;i++){if(d.item(i).tagName==undefined)continue;var e=null;e=getSubChild(d.item(i),b);if(e!=null)return e}return null}function getSubChildT(a,b,c,d){var e=null;if(d==1){if(a.id==b){return a}}else{if(a.tagName==b){return a}}var f=a.childNodes;for(var i=0;i<f.length;i++){if(f.item(i).tagName==undefined)continue;var g=null;g=getSubChildT(f.item(i),b,1,d);if(g!=null)return g}if(c!=1){if(a.parentNode!=null){g=getSubChildT(a.parentNode,b,d);if(g!=null)return g}}return null}function getChild_HREF(a,b){ce=null;ch=a.childNodes;for(i=0;i<ch.length;i++){if(ch.item(i).href==childName){ce=ch.item(i);break}}return ce}function loadDynamicCSS(a){AddContent('mDs_debug','msg_debug','Importing CSS: '+a+'<br>','dbg_scroll');if(document.createStyleSheet){oS=document.createStyleSheet(a)}else{oS=document.createElement("STYLE");oS.type="text/css";oS.id=a;txt=document.createTextNode("@import url("+a+");");oS.appendChild(txt);document.getElementsByTagName("head")[0].appendChild(oS)}}function removeDynamicCSS(a){if(document.createStyleSheet){d=document.getElementsByTagName('head')[0];od=getChild_HREF(d,a);d.removeChild(od)}else{d=document.getElementsByTagName('head')[0];od=getChild(d,a);d.removeChild(od)}}function RemoveElement(a,b){olddiv=document.getElementById(a);d=olddiv.parentNode;d.removeChild(olddiv)}function FindComp(a){ni=document.getElementById(a);if(ni)return ni;return null}function GetPosition(a){ni=document.getElementById(a);ret=new Array();ret[0]=ni.offsetTop;ret[1]=ni.offsetLeft;return ret}function ResizeWindow(a){ni=document.getElementById(a);ba=getChild(ni,"wnd");if(ba==null)return;ba.style.left=0+'px';ba.style.top=0+'px';ba.style.width=ni.offsetWidth+'px';ba.style.height=ni.offsetHeight+'px';pShadow=getSubChild(ba,"shadow_offset");if(pShadow==null)return;pContent=getSubChild(ba,"content_offset");if(pContent==null)return;pContentWnd=getSubChild(ba,"wndcontent");if(pContentWnd==null)return;pNE=getSubChild(ba,"NE");if(pNE==null)return;pNE.style.left=(ba.offsetWidth-pNE.offsetWidth+pShadow.offsetWidth)+'px';pNW=getSubChild(ba,"NW");if(pNW==null)return;pN=getSubChild(ba,"N");if(pN==null)return;pN.style.left=pNW.offsetWidth+'px';pN.style.width=(ba.offsetWidth-pNW.offsetWidth-pNE.offsetWidth+pShadow.offsetWidth)+'px';pSW=getSubChild(ba,"SW");if(pSW==null)return;pSW.style.top=ba.offsetHeight-pSW.offsetHeight+pShadow.offsetHeight+'px';pSE=getSubChild(ba,"SE");if(pSE==null)return;pSE.style.top=(ba.offsetHeight-pSE.offsetHeight+pShadow.offsetHeight)+'px';pSE.style.left=(ba.offsetWidth-pSE.offsetWidth+pShadow.offsetWidth)+'px';pW=getSubChild(ba,"W");if(pW==null)return;pW.style.top=pNW.offsetHeight+'px';pW.style.height=(ba.offsetHeight-pNW.offsetHeight-pSW.offsetHeight+pShadow.offsetHeight)+'px';pE=getSubChild(ba,"E");if(pE==null)return;pE.style.top=pNE.offsetHeight+'px';pE.style.left=(ba.offsetWidth-pE.offsetWidth+pShadow.offsetWidth)+'px';pE.style.height=(ba.offsetHeight-pNE.offsetHeight-pSE.offsetHeight+pShadow.offsetHeight)+'px';pS=getSubChild(ba,"S");if(pS==null)return;pS.style.top=(ba.offsetHeight-pS.offsetHeight+pShadow.offsetHeight)+'px';pS.style.left=pSW.offsetWidth+'px';pS.style.width=(ba.offsetWidth-pSW.offsetWidth-pSE.offsetWidth+pShadow.offsetWidth)+'px';pC=getSubChild(ba,"WNDC");if(pC==null)return;pC.style.top=(pNW.offsetHeight)+'px';pC.style.left=(pW.offsetWidth)+'px';pC.style.width=(ba.offsetWidth-pW.offsetWidth-pE.offsetWidth+pShadow.offsetWidth)+'px';pC.style.height=(ba.offsetHeight-pN.offsetHeight-pS.offsetHeight+pShadow.offsetHeight)+'px';pContentWnd.style.top=(pContent.offsetTop)+'px';pContentWnd.style.left=(pContent.offsetLeft)+'px';pContentWnd.style.width=(ba.offsetWidth-pContent.offsetWidth)+'px';pContentWnd.style.height=(ba.offsetHeight-pContent.offsetHeight)+'px'}function MoveWindow(a,x,y){win=dPTR[dAPTR[a]];if(y!='*')win.layer_obj.style.top=y+'px';if(x!='*')win.layer_obj.style.left=x+'px';win.X=y;win.Y=x}function ResizeWindowBy(a,w,h){win=dPTR[dAPTR[a]];if(w!='*'){win.layer_obj.style.width=w+'px';win.width=win.layer_obj.offsetWidth}if(h!='*'){win.layer_obj.style.height=h+'px';win.height=win.layer_obj.offsetHeight}ResizeWindow(win.layer_obj.id)}function SetContent(a,b){if(dPTR[dAPTR[a]]==null)return null;if(dPTR[dAPTR[a]].layer_obj.id!=a)return-1;ni=dPTR[dAPTR[a]].layer_obj;ba=getSubChild(ni,"wndcontent");if(ba!=null){ba.innerHTML=b}}function FindContent(a,b){if(dPTR[dAPTR[a]]==null)return null;if(dPTR[dAPTR[a]].layer_obj.id!=a)return-1;ni=dPTR[dAPTR[a]].layer_obj;ba=getSubChild(ni,"wndcontent");if(b==1){ba.innerHTML=''};return ba}function AddContent(a,b,c,d){var d=(d==null)?"":d;ni=document.getElementById(a);if(!ni)return;ba=getSubChild(ni,"wndcontent");if(d!="")ba=getChild(ba,d);var e=document.createElement('div');var f=a+'_'+b;e.setAttribute('id',f);e.innerHTML=c;ba.appendChild(e)}function RemoveContent(a,b){ni=document.getElementById(a);ba=getChild(ni,"wndcontent");ca=getChild(ba,b);if(ca){ba.removeChild(ca)}}function getMousePosition(e){if(!e){e=window.event}if(!e||(typeof(e.pageX)!='number'&&typeof(e.clientX)!='number')){return[0,0]}if(typeof(e.pageX)=='number'){xcoord=e.pageX;ycoord=e.pageY}else{xcoord=e.clientX;ycoord=e.clientY;if(!((window.navigator.userAgent.indexOf('Opera')+1)||(window.ScriptEngine&&ScriptEngine().indexOf('InScript')+1)||window.navigator.vendor=='KDE')){if(document.documentElement&&(document.documentElement.scrollTop||document.documentElement.scrollLeft)){xcoord+=document.documentElement.scrollLeft;ycoord+=document.documentElement.scrollTop}else if(document.body&&(document.body.scrollTop||document.body.scrollLeft)){xcoord+=document.body.scrollLeft;ycoord+=document.body.scrollTop}}}return[xcoord,ycoord]}function Return_ID(){return this.ID}function Desktop_Window(){this.par1=0;this.par2=0;this.ID=0;this.layer_obj=null;this.parent_id="";this.Return_ID=Return_ID;this.action=0;this.width=0;this.height=0;this.X=0;this.Y=0;this.estatica=false;this.centralizada=false;this.conteudo_externo=false;this.semfocus=false;this.mX;this.mY,this.lX,this.lY,this.fn_focus,this.fn_resize,this.fn_move,this.ontop=false}function StopTimer(){if(timerRunning)clearTimeout(timerID);timerRunning=false}function StartTimer(a,b){if(timerRunning)clearTimeout(timerID);timerRunning=true;timerID=self.setTimeout(b,a)}function UpdateWindow(){StopTimer()}function ClearPassiveObject(){wnd_over=null}function SetPassiveObject(a){id_ptr=dAPTR[a];if(dPTR[id_ptr]){wnd_over=dPTR[id_ptr]}}function CanFocus(a){id_ptr=dAPTR[a];if(dPTR[id_ptr]){if(dPTR[id_ptr].semfocus==true)return true}return false}function SetFocusObject(a){if(wh==dPTR[dAPTR[a]])return;BringToFront(a);id_ptr=dAPTR[a];if(dPTR[id_ptr])wh=dPTR[id_ptr]}function SendMessage(){if(arguments.length==0)return;if(wnd_ignore_nextcmd==1){wnd_ignore_nextcmd=0;return true}message=arguments[0];switch(message){case WM_MOUSEDOWN:{if(wnd_ignore_nextmsgdown==1){wnd_ignore_nextmsgdown=0;return true}mbutton=0;if(arguments[1]==null)mbutton=event.button;else mbutton=arguments[1].which;switch(mbutton){case WM_MOUSELEFTBUTTON:posicao=getMousePosition(arguments[1]);if(wh!=null){document.onselectstart=new Function("return false");document.ondragstart=new Function("return false");if(wh.action==WMS_RESIZING){anchorpoint_X=posicao[0];anchorpoint_Y=posicao[1];return false}if(wh.action==WMS_RESIZINGW){anchorpoint_X=posicao[0];anchorpoint_Y=posicao[1];return false}if(wh.estatica==false){wh.action=WMS_MOVING;anchorpoint_X=posicao[0];anchorpoint_Y=posicao[1];if(browser=="Netscape"){wh.layer_obj.style.setProperty('-moz-user-select','none','')}if(browser=="Opera"){wh.layer_obj.style.setProperty('-user-select','none','')}return false}return true}break}return true}break;case WM_MOUSEUP:document.onselectstart=new Function("return true");document.ondragstart=new Function("return true");mbutton=0;if(wh){if(wh.fn_focus)wh.fn_focus();if(browser=="Netscape"){wh.layer_obj.style.setProperty('-moz-user-select','','')}}document.body.style.cursor='default';if(arguments[1]==null)mbutton=event.button;else mbutton=arguments[1].which;switch(mbutton){case WM_MOUSELEFTBUTTON:if(wh!=null){wh.action=WMS_NOP;wlh=wh;wh=null;return true}return true;break}break;case WM_GETFOCUS:if(arguments[1])SetFocusObject(arguments[1]);break;case WM_RESIZE:if(arguments[1])SetFocusObject(arguments[1]);if(wh!=null){wh.action=WMS_RESIZING;return true}break;case WM_RESIZEW:if(arguments[1])SetFocusObject(arguments[1]);if(wh!=null){wh.action=WMS_RESIZINGW;return true}break;case WM_MOUSEOVER:if(arguments[1])SetPassiveObject(arguments[1]);StartTimer(ONFOCUS_DELAY,UpdateWindow);break;case WM_MOUSEOUT:ClearPassiveObject();StopTimer();break;case WM_MOUSEMOVE:posicao=getMousePosition(arguments[1]);if(wh!=null){switch(wh.action){case WMS_NOP:return false;break;case WMS_MOVING:{if(wh.state==1){return}if(browser!='Opera')document.body.style.cursor='move';offset_X=wh.layer_obj.offsetLeft-anchorpoint_X;offset_Y=wh.layer_obj.offsetTop-anchorpoint_Y;wh.layer_obj.style.left=(posicao[0]+offset_X)+'px';wh.layer_obj.style.top=(posicao[1]+offset_Y)+'px';wh.X=(posicao[0]+offset_X);wh.Y=(posicao[1]+offset_Y);anchorpoint_X=posicao[0];anchorpoint_Y=posicao[1];if(wh.fn_move)wh.fn_move();return true}case WMS_RESIZING:{offset_X=anchorpoint_X;if(wh.state==1){return}document.body.style.cursor='nw-resize';width_atual=wh.layer_obj.offsetWidth;if(width_atual+(posicao[0]-anchorpoint_X)>wh.mX){var a=width_atual+(posicao[0]-anchorpoint_X)+'px';wh.layer_obj.style.width=a;anchorpoint_X=posicao[0]}offset_Y=anchorpoint_Y;height_atual=parseInt(wh.layer_obj.style.height);if(height_atual+(posicao[1]-anchorpoint_Y)>wh.mY){wh.layer_obj.style.height=height_atual+(posicao[1]-anchorpoint_Y)+'px';anchorpoint_Y=posicao[1]}else{wh.layer_obj.style.height=wh.mY+'px'}wh.width=wh.layer_obj.offsetWidth;wh.height=wh.layer_obj.offsetHeight;ResizeWindow(wh.layer_obj.id);if(wh.fn_resize)wh.fn_resize();return true}case WMS_RESIZINGW:{offset_X=anchorpoint_X;if(wh.state==1){return}document.body.style.cursor='w-resize';width_atual=wh.layer_obj.offsetWidth;if(width_atual+(posicao[0]-anchorpoint_X)>wh.mX){var a=width_atual+(posicao[0]-anchorpoint_X)+'px';wh.layer_obj.style.width=a;anchorpoint_X=posicao[0]}wh.width=wh.layer_obj.offsetWidth;ResizeWindow(wh.layer_obj.id);if(wh.fn_resize)wh.fn_resize();return true}}}return true;break}return false}function Restore(a){id_ptr=dAPTR[a];if(dPTR[id_ptr]){objeto=dPTR[id_ptr];objeto.state=0;ni=document.getElementById(a);ni.style.top=objeto.Y+'px';ni.style.left=objeto.X+'px';ni.style.width=objeto.width+'px';ni.style.height=objeto.height+'px'}ResizeWindow(a)}function Maximize(a){ni=document.getElementById(a);cW=document.body.clientWidth;cH=document.body.clientHeight;id_ptr=dAPTR[a];if(dPTR[id_ptr]){objeto=dPTR[id_ptr];if(objeto.state==1){return}objeto.width=ni.offsetWidth;objeto.height=ni.offsetHeight;objeto.X=ni.offsetLeft;objeto.Y=ni.offsetTop;objeto.state=1}ni.style.top=2+'px';ni.style.left=2+'px';ni.style.width=cW-4+'px';ni.style.height=cH-4+'px';ResizeWindow(a)}function Maximize_OR_Restore(a){BringToFront(a);id_ptr=dAPTR[a];if(dPTR[id_ptr]){objeto=dPTR[id_ptr];if(objeto.state==1)Restore(a);else Maximize(a)}}function iGetZ(a){return parseInt(a.layer_obj.style.zIndex)}function iSetZ(a,z){a.layer_obj.style.zIndex=z}function FindFirstZ(n,a){ij=0;z=0;c=dPTR.length;if(n)c=n;min_z=1000000;for(ij=c;ij<dPTR.length;ij++){if(dPTR[ij]){var b=iGetZ(dPTR[ij]);if(a==false){if((b<min_z)&&(b<1000))min_z=b}else{if((b<min_z)&&(b>=1000))min_z=b}}}if(min_z==1000000)min_z=-1;return min_z}function FindLastZ(n,a){ij=0;z=0;c=0;if(n)c=n;high_z=0;if(a)high_z=999;for(ij=c;ij<dPTR.length;ij++){if(dPTR[ij]){var b=iGetZ(dPTR[ij]);if(a==false){if((b>high_z)&&(b<1000))high_z=b}else{if((b>high_z)&&(b>=1000))high_z=b}}}return high_z}function Internal_ComparatorSortZ(a,b){if(iGetZ(a)<iGetZ(b))return-1;if(iGetZ(a)>iGetZ(b))return 1;return 0}function Internal_ComparatorSortID(a,b){if(!dPTR[a])return 0;if(!dPTR[b])return 0;if(dPTR[a].Return_ID()<dPTR[b].Return_ID())return-1;if(dPTR[a].Return_ID()>dPTR[b].Return_ID())return 1;return 0}function Remap_Windows(){i=0;for(i=0;i<dPTR.length;i++){if(dPTR[i]){tmp_id=dPTR[i].layer_obj.id;dAPTR[tmp_id]=i}}}function BringToFront(a){dPTR.sort(Internal_ComparatorSortZ);b=0;tmp_i=0;for(i=0;i<dPTR.length;i++){if(dPTR[i]){if(a==dPTR[i].layer_obj.id){tmp_i=i;break}}}prox_z=1;prox_high_z=1000;for(i=0;i<dPTR.length;i++){if(dPTR[i]){var b=iGetZ(dPTR[i]);if(b<1000){if(i==tmp_i)continue;iSetZ(dPTR[i],prox_z);prox_z++}else if(b>=1000){iSetZ(dPTR[i],prox_high_z);prox_high_z++}}}var c=iGetZ(dPTR[tmp_i]);if(c<1000){iSetZ(dPTR[tmp_i],prox_z)}Remap_Windows();return}function CloseWindow(a,b){i=0;id_j=dAPTR[b];if(dPTR[id_j]!=null){RemoveElement(b,a);dPTR.splice(id_j,1);Remap_Windows()}}function CreateWindowA(hPai,id_janela,hNome,classeCSS,ptX,ptY,iLargura,iAltura,flags,conteudo,mX,mY,lX,lY,opacity_value,subtheme){var opacity_value=(opacity_value==null)?null:opacity_value;var subtheme=(subtheme==null)?"border":subtheme;ni=document.getElementById(hPai);ndi=document.createElement('div');divIdName=hPai+"_"+id_janela;ndi.setAttribute('id',divIdName);ndi.className=classeCSS;W_tmp=iLargura;H_tmp=iAltura;var pos_X=ptX;var pos_Y=ptY;cW=document.body.clientWidth;cH=document.body.clientHeight;if(flags&WMF_CENTERED){pos_X=(cW/2)-(W_tmp/2);pos_Y=(cH/2)-(H_tmp/2)}if((pos_X==-1)&&(pos_Y==-1)){if(std_arrange=='default'){pos_X=std_posX;pos_Y=std_posY;if((pos_Y!=20)&&((pos_Y+iAltura+10)>cH)){pos_Y=20;std_posY=20}if((pos_X!=20)&&((pos_X+iLargura+10)>cW)){pos_X=20;std_posX=20}std_posX+=20;std_posY+=20;if(std_posX>cW)std_posX=20;if(std_posY>cH)std_posY=20}else if(std_arrange=='rounded'){pos_X=(cW/2)-25-(50*Math.cos(std_ang*Math.PI/180));pos_Y=(cH/2)-25+(50*Math.sin(std_ang*Math.PI/180));std_ang+=20}else if(std_arrange=='htiled'){pos_X=std_posX;std_posX+=iLargura+4}else if(std_arrange=='htiledB'){pos_X=std_posX;pos_Y=std_ancY;if((pos_X+iLargura+4)>cW){pos_X=std_ancX;std_posX=std_ancX}std_posX+=iLargura+4}}if(std_arrange=='default'){var off_Y=(document.documentElement&&document.documentElement.scrollTop)?document.documentElement.scrollTop:document.body.scrollTop;var off_X=(document.documentElement&&document.documentElement.scrollLeft)?document.documentElement.scrollLeft:document.body.scrollLeft;if(br!='Netscape'){pos_Y+=off_Y;pos_X+=off_X}}next_z=0;next_z=FindLastZ(0,false)+1;if(flags&WMF_ONTOP){next_z=FindLastZ(0,true)+1}ndi.style.cssText="position:absolute; left:"+pos_X+"px; top:"+pos_Y+"px; width:"+W_tmp+"px; height:"+H_tmp+"px; z-index: "+next_z+";";ndi.onmousedown=new Function('SendMessage(WM_GETFOCUS,this.id);');ndi.onmouseover=new Function('SendMessage(WM_MOUSEOVER,this.id);');ndi.onmouseout=new Function('SendMessage(WM_MOUSEOUT,this.id);');conteudo_html=conteudo;if(flags&WMF_ASIFRAME)conteudo_html='<iframe width="100%" height="100%" style="visibility: hidden" id="wndcontentI" src="'+conteudo+'" frameborder="0" scrolling="no"></iframe>';resize_html='';resizew_html='';if(flags&WMF_RESIZEABLE)resize_html='<div class="RB" style="z-index:3;"><div class="RZ" ><img src="'+classeCSS+'/imgs/default.png" onmousedown="return SendMessage(WM_RESIZE,\''+divIdName+'\');" style="cursor: nw-resize;-moz-user-select: none;"></div></div>';if(flags&WMF_RESIZEABLEW)resizew_html='<div class="RM" style="z-index:3;"><div class="RZM"><img src="'+classeCSS+'/imgs/default.png" style="cursor: w-resize;-moz-user-select: none;" onmousedown="return SendMessage(WM_RESIZEW,\''+divIdName+'\');"></div></div>';close_html='';if(flags&WMF_CLOSE)close_html='<div class="CLOSE"><img src="'+classeCSS+'/imgs/default.png" style="cursor: pointer"  onmousedown="wnd_ignore_nextcmd=1;" onclick="CloseWindow(\''+hPai+'\', \''+divIdName+'\');"></div>';max_html='';min_html='';if(flags&WMF_MAXIMIZE)max_html='<div class="MAN" style="z-index:3;"><img src="'+classeCSS+'/imgs/default.png"></div>';if(flags&WMF_MINIMIZE)min_html='<div class="MIN" style="z-index:3;"><img src="'+classeCSS+'/imgs/default.png"></div>';titulo_html='<span class="wnd_title" style=\"-moz-user-select: none;\">&nbsp;'+hNome+'</span>';titulo_var='<td class="N">'+titulo_html+'</td>';if(flags&WMF_NOTITLE){titulo_html='<span class="wnd_titleN" style=\"-moz-user-select: none\"><img src="imgs/s.gif" width="1" height="1"></span>';max_html='';min_html='';close_html=''}var opacity_tag="";if((opacity_value!=null)&&(opacity_value!=100)){if(browser=="Netscape")opacity_tag="-moz-opacity:"+(opacity_value/100);else if(browser=="IE")opacity_tag=""}janela_html='<div id="wnd" class="'+classeCSS+'" style=\"'+opacity_tag+'\"><div class="'+subtheme+'" id="window_border" style="z-index: 1;"><div id="shadow_offset" class="shadow_offset"><img src="imgs/s.gif"></div><div id="content_offset" class="content_offset"><img src="imgs/s.gif"></div><div id="NW" class="NW" style="position:absolute; left: 0px; top: 0px;"><img src="'+classeCSS+'/imgs/default.png"></div><div id="N" class="N"><img src="'+classeCSS+'/imgs/default.png"><div class="title" style="position: absolute;">'+titulo_html+'</div></div><div id="NE" class="NE" style="position: absolute; "><img src="'+classeCSS+'/imgs/default.png"></div><div id="W" class="W" style="position: absolute;"><img src="'+classeCSS+'/imgs/default.png"></div><div id="WNDC" class="WNDC" style="position: absolute;"></div><div id="E" class="E" style="position: absolute;"><img src="'+classeCSS+'/imgs/default.png"></div><div id="SW" class="SW" style="position:absolute;"><img src="'+classeCSS+'/imgs/default.png"></div><div id="S" class="S" style="position:absolute;"><img src="'+classeCSS+'/imgs/default.png"></div><div id="SE" class="SE" style="position:absolute;"><img src="'+classeCSS+'/imgs/default.png"></div></div>'+resizew_html+resize_html+'<div id="wndcontent" style="overflow: hidden; position: absolute; z-index: 2; -moz-user-select: text;">'+conteudo_html+'</div><div class="R" style="z-index:3;">'+max_html+close_html+min_html+'</div>';ndi.innerHTML=janela_html;ni.appendChild(ndi);dPTR.push(new Desktop_Window());ultimo_id=dPTR.length;obj_ptr=dPTR[ultimo_id-1];fun=(document.getElementById)?"document.getElementById":"MM_findObj";obj_ptr.layer_obj=eval(fun+"(divIdName)");obj_ptr.ID=wnd_counter;if(flags&WMF_ASIFRAME){obj_ptr.conteudo_externo=true}dAPTR[divIdName]=ultimo_id-1;obj_ptr.estatica=true;if(flags&WMF_MOVEABLE)obj_ptr.estatica=false;if(flags&WMF_CENTERED)obj_ptr.centralizada=true;if(flags&WMF_ONTOP)obj_ptr.ontop=true;obj_ptr.layer_obj.style.height=H_tmp+'px';obj_ptr.layer_obj.style.width=W_tmp+'px';obj_ptr.mX=mX;obj_ptr.mY=mY;obj_ptr.lX=lX;obj_ptr.lY=lY;obj_ptr.width=obj_ptr.layer_obj.offsetWidth;obj_ptr.height=obj_ptr.layer_obj.offsetHeight;if(wh!=null){wh.action=WMS_NOP;wlh=wh;wh=obj_ptr}else{wh=null}ResizeWindow(divIdName);wnd_counter++;BringToFront(divIdName);return divIdName}function ExtractServerFrom(a){afterHTTP=a.indexOf("http://",0);firstSlash=a.indexOf("/",afterHTTP+7);if(firstSlash==-1)firstSlash=a.length;return a.substring(afterHTTP+7,firstSlash)}function AddVariable(a,b){var c='?';if(a.indexOf('?')!=-1)c='&';c+=b;return a+c}function GetRandomChar(){var a="0123456789abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(Math.floor(Math.random()*62),1)}function newID(a){var b="";for(var i=0;i<a;i++){b+=GetRandomChar()}return b}__request_informations=new Array();__request_code=0;function doRequest(b,c,d,e,f,g,h,i,j){var f=(f==null)?document.getElementsByTagName("body")[0]:f;var g=(g==null)?1:g;var h=(h==null)?0:h;var i=(i==null)?"GET":i;var j=(j==null)?0:j;this.external=false;this.request_server='';this.timeout=10000;this.timeoutID=0;this.ID=__request_code;this.native_download=true;this.native_object=null;this.type=e;this.onSuccess=c;this.onFail=d;this.where=f;this.urn='';if(typeof(_0)=='undefined'){_0=true;doRequest.prototype.OnDataLoad=l;doRequest.prototype.Destroy=k;doRequest.prototype.OnDataNotLoad=m}if(b.indexOf('http://')!=-1){current_server=ExtractServerFrom(document.location.href);this.request_server=ExtractServerFrom(b);if(current_server!=this.request_server)this.external=true}else{this.request_server=ExtractServerFrom(document.location.href)}function k(){if(this.native_download==true){delete this.native_object;this.native_object=false;delete __request_informations[this.id]}else{if(this.timeoutID!=0)clearTimeout(this.timeoutID);this.timeoutID=0;var a=document.getElementById('__reqscript'+this.ID);delete a;a=null}}function l(a){if(this.type=='script'){if(this.native_download){if(br=="IE"){window.execScript(a)}else{global.eval(a)}}else{temp=document.createElement(e);temp.text=a;if(this.where!=null)this.where.appendChild(temp)}if(this.onSuccess)if(typeof(this.onSuccess)=='string')eval(this.onSuccess);else this.onSuccess(a)}else if(this.type=='xml'){if(this.onSuccess)if(typeof(this.onSuccess)=='string')eval(this.onSuccess);else this.onSuccess(a)}else if(this.type=='div'){temp=document.createElement('div');temp.innerHTML=a;if(this.onSuccess)if(typeof(this.onSuccess)=='string')eval(this.onSuccess);else this.onSuccess(a);if(this.where!=null){this.where.appendChild(temp)}}else if(this.type=='replaceinner'){if(this.where!=null){texto_i=new String(a);texto_i=texto_i.replace(/src=\"\//,"src=\"");this.where.innerHTML=texto_i}if(this.onSuccess)if(typeof(this.onSuccess)=='string')eval(this.onSuccess);else this.onSuccess(a)}else if(this.type=='replacecontent'){if(this.onSuccess)if(typeof(this.onSuccess)=='string')eval(this.onSuccess);else this.onSuccess(a,this.urn)}else{if(this.onSuccess)if(typeof(this.onSuccess)=='string')eval(this.onSuccess);else this.onSuccess(a)}this.Destroy()}function m(){if(this.onFail)if(typeof(this.onFail)=='string')eval(this.onFail);else this.onFail();k()}if(this.external)this.native_download=false;if(h)this.native_download=false;ncstr='uid='+newID(20);if(g!=1)ncstr='';end_urn=b;if(this.external){end_urn=AddVariable(end_urn,'__reqid='+__request_code);end_urn=AddVariable(end_urn,'__reqh=handleRequest')}if(g==1)end_urn=AddVariable(end_urn,ncstr);this.urn=b;AddContent('mDs_debug','msg_debug','Streaming: '+b+'<br>','dbg_scroll');if(this.native_download==false){var n=document.getElementsByTagName("head")[0];script=document.createElement('script');script.id='__reqscript'+__request_code;script.type='text/javascript';end_urn=AddVariable(end_urn,'__rpc=1');end_urn=AddVariable(end_urn,j);script.src=end_urn;n.appendChild(script)}else{if(window.XMLHttpRequest){this.native_object=new XMLHttpRequest()}else if(window.ActiveXObject){this.native_object=new ActiveXObject("Msxml2.XMLHTTP")}this.native_object.open(i,end_urn);if(i!="GET"){this.native_object.setRequestHeader('Content-Type','application/x-www-form-urlencoded')}var o=this.native_object;var p=this;this.native_object.onreadystatechange=function(){if(o.readyState==4&&o.status==200){p.OnDataLoad(o.responseText)}else if(o.readyState==4){p.OnDataNotLoad()}};this.native_object.send(j)}if(this.native_download==false){__request_informations[__request_code]=this;this.timeoutID=setTimeout('__request_informations['+__request_code+'].OnDataNotLoad();',this.timeout)}__request_code++}function handleRequest(a,b){__request_informations[a].OnDataLoad(b)}function InsertElement(a,b,c){var d=document.getElementById(b);var e=document.createElement('div');var f=a;e.setAttribute('id',f);e.innerHTML=c;d.appendChild(e)}function GetWindowProp(a){win=dPTR[dAPTR[a]];if(win!=null){return new Array(win.layer_obj.offsetWidth,win.layer_obj.offsetHeight,parseInt(win.layer_obj.style.left),parseInt(win.layer_obj.style.top))}return new Array(0,0,0,0)}function SetWindowFocusFunc(a,b){win=dPTR[dAPTR[a]];if(win!=null){win.fn_focus=b}}function SetWindowResizeFunc(a,b){win=dPTR[dAPTR[a]];if(win!=null){win.fn_resize=b}}function SetWindowMoveFunc(a,b){win=dPTR[dAPTR[a]];if(win!=null){win.fn_move=b}}function PlaySound(a){var b=document.getElementById("dummysound");if(!b){var b=document.createElement('div');b.setAttribute('id','dummysound');document.body.appendChild(b)}b.innerHTML="<embed src='"+a+"' hidden=true autostart=true loop=false>"}function ChangeText(c,b){var a=document.getElementsByName(c);for(i=0;i<a.length;i++){a.item(i).innerHTML=b}}function dds(a){return"<span id="+a+" name="+a+">"+eval(a)+"</div>"}function ChangeStyle(a,b,c,e,d){var f=document.getElementById(a);if(!f)return;if(d>0){var g;if(!e)var e=window.event;if(e.keyCode)g=e.keyCode;else if(e.which)g=e.which;if((g!=d))return false}if(f.className!=c){f.className=b}return true}function ChangeStyleT(a,b){if(!a)return;a.className=b;return true}function ReturnVAR(a){if(typeof(a)!='undefined')return a;return''}function nop(){};function ParseXML(a){var b;if(document.implementation.createDocument){var c=new DOMParser();b=c.parseFromString(a,"text/xml")}else if(window.ActiveXObject){b=new ActiveXObject("Microsoft.XMLDOM");b.async="false";b.loadXML(a)}return b}function ParseJSON(a){return eval("("+a+")")}if(document.addEventListener){document.addEventListener("DOMContentLoaded",main,false)}else{main()}
