//****** Advanced DHTML Popup Pro Version 2.520.107.210 Build: 176 ******

// Copyright (c) Digital Flow Software 2005-2009
// The present javascript code is property of Digital Flow Software.
// This code may NOT be integrated into any web based service including any service providing video or any content publishing to third parties. This code can only be used inside Internet/Intranet web sites located on *web servers*, as the outcome of a licensed Advanced DHTML Popup application only. 
// This code *cannot* be used inside distributable implementations (such as demos, applications or CD-based webs), unless this implementation is licensed with an "Advanced DHTML Popup License for Distributed Applications". 
// Any unauthorized use, reverse-engineering, alteration, transmission, transformation, facsimile, or copying of any means (electronic or not) is strictly prohibited and will be prosecuted.
// ***Removal of the present copyright notice is strictly prohibited***

var df,rf=false,na=navigator.userAgent,dt=document,op=(na.indexOf('Opera')!=-1),dm=(dt.getElementById)?true:false,ie5x=(dt.all&&dm),mci=(na.indexOf('Mac')!=-1);df=((ie5x||op)&&mci);decide();function decide(){if(df){return;}else{rf=true;}}
if(rf){
var drs=0,moving=0,resizing=0,shf,dsh,bdf=0,sht=0,slt=0,ba5=0,pla,nd9,absl=1,ism3=0;var fia=0,foa=100,fis=15,fii=2,fos=5,foi=2,ddp=0,bp3=0,dis=15,sis=10,sp7=0,fp5=0,fo4=0,tid1,tid2,tid3,tid4,isc,cth,ctw;var lhg=0,dmt=document,nbl='none',ibl='block',nvi='hidden',ivi='visible',sct,isScri,na=navigator.userAgent;function de7(id){return dmt.getElementById(id)}var w37=(de7)?true:false, mie=(w37 && dmt.all)?true:false, ns=(w37 && !dmt.all)?true:false, op=(na.indexOf('Opera')!=-1);if(op){var otmp=na.indexOf("Opera")+6;opv=parseInt(na.charAt(otmp));var op9=(opv==9)?true:false;}if(mie){mtmp=na.split("MSIE");miv=parseFloat(mtmp[1]);var ieh=(miv>=5.5)?true:false;var ie7p=(miv>=7)?true:false;}window.onerror=function(){return true};var adpuids=[],adppla=[],adpscr=[],xpos=[],ypos=[],pwidth=[],pheight=[],cpadg=[],bwhg=[],tbwg=[],delX=[],delY=[];var goex=0,exof=15,adppdel=250;var bwh=10,bc7="#81abc1",it9= 1 ,tc2="#0F0F0F",tc3="#c4d6e0",ib8="#eef2d0";var is6=0,shs=0,sc5="#0F0F0F",ir9=0,cc6= 1 ,im5=0,cnm=0;var oo7=1,issp=0,plt=0;var isScr=1,pla= 0 ,bng=0;adpx=400;adpy=100;adpw=360;adph=210;isex=0;var MovexDiff=0,MoveyDiff=0,ResizexDiff=0,ResizeyDiff=0,z_index=10000,Mousex=0,Mousey=0;function miebody(){return (dmt.compatMode && dmt.compatMode=="CSS1Compat")? dmt.documentElement:dmt.body}if(dmt.compatMode=='CSS1Compat')sct=true;else sct=false;function soh(id,bon,voh){if(ush)de7(id+'_ash').style.display=bon;de7(id+'_adpB').style.display=bon;if(is6)de7(id+'_adpS').style.display=bon;if(ir9)de7(id+'_rsize').style.display=bon;de7(id+'_close').style.display=bon;de7(id+'_adpC').style.display=bon;de7(id+'_adpT').style.display=bon;de7(id+'_adpB').style.visibility=voh;if(is6)de7(id+'_adpS').style.visibility=voh;if(ir9)de7(id+'_rsize').style.visibility=voh;de7(id+'_close').style.visibility=voh;de7(id+'_adpC').style.visibility=voh;de7(id+'_adpT').style.visibility=voh;}function adpHide(id){clearTimeout(dsh);clearTimeout(tid3);clearTimeout(tid4);if(typeof adpOnHide!='undefined')adpOnHide(id);soh(id,nbl,nvi);}function adpShow(id){if(absl&&!drs&&!ism3)setTimeout("adpLocation('"+id+"',xpos['"+id+"'],ypos['"+id+"'])",150);dsh=setTimeout("soh('"+id+"',ibl,ivi)",250);if(mie){de7(id+'_adpB').style.filter= "alpha(opacity=100)";if(!op)de7(id+'_adpB').style.removeAttribute('filter');de7(id+'_adpS').style.filter="alpha(opacity=30)";}else{de7(id+'_adpB').style.MozOpacity=1;de7(id+'_adpS').style.MozOpacity=0.3;}}function gsp(){sht=(mie)?miebody().scrollTop:window.pageYOffset;slt=(mie)?miebody().scrollLeft:window.pageXOffset;return sht,slt;}function adpLocation(id,x,y,m,evt){ism3=m;xpos[id]=x;ypos[id]=y;if(m){Mousex=(mie)?event.clientX+miebody().scrollLeft:evt.pageX;Mousey=(mie)?event.clientY+miebody().scrollTop:evt.pageY;x=x+Mousex;y=y+Mousey;xpos[id]=x;ypos[id]=y;}else{gsp();if(mie&&(!ie7p||!sct)&&!op||isScr==0){x+=slt;y+=sht;}}de7(id+'_adpS').style.left=(x+shs)+'px';de7(id+'_adpS').style.top=(y+shs)+'px';de7(id+'_adpB').style.left=x+'px';de7(id+'_adpB').style.top=y+'px';if(ush)de7(id+'_ash').style.top=y+'px';if(ush)de7(id+'_ash').style.left=x+'px';}function addRszEv(f){var pre=window.onresize;if (typeof window.onresize!='function'){window.onresize = f;}else{window.onresize=function(){if(pre){pre();}f();}}}function addScrEv(f){var pre=window.onscroll;if (typeof window.onscroll!='function'){window.onscroll = f;}else{window.onscroll=function(){if(pre){pre();}f();}}}function adpFadein(id){clearInterval(fp5);clearInterval(fo4);fia=0;adpShow(id);if(mie){de7(id+'_adpB').style.filter= "alpha(opacity=0)";de7(id+'_adpS').style.filter="alpha(opacity=0)";}else{de7(id+'_adpB').style.MozOpacity=0;de7(id+'_adpS').style.MozOpacity=0;}fp5=setInterval("fadein('"+ id +"')",fis);}function fadein(id){fia+=fii;if(fia <=99){if(mie){de7(id+'_adpB').style.filter="alpha(opacity="+fia+")";de7(id+'_adpS').style.filter="alpha(opacity="+3*fia/10+")";}else{de7(id+'_adpB').style.MozOpacity=fia/100;de7(id+'_adpS').style.MozOpacity=3*fia/1000;}}else{clearInterval(fp5);}}function adpFadeout(id){clearInterval(fo4);clearInterval(fp5);foa=99;adpShow(id);if(mie){de7(id+'_adpB').style.filter= "alpha(opacity=100)";de7(id+'_adpS').style.filter="alpha(opacity=30)";}else{de7(id+'_adpB').style.MozOpacity=0.99;de7(id+'_adpS').style.MozOpacity=0.3;}fo4=setInterval("fadeout('"+ id +"')",fos);}function fadeout(id){foa -=foi;if(foa >=1){if(mie){de7(id+'_adpB').style.filter="alpha(opacity="+foa+")";de7(id+'_adpS').style.filter="alpha(opacity="+3*foa/10+")";}else{de7(id+'_adpB').style.MozOpacity=foa/100;de7(id+'_adpS').style.MozOpacity=3*foa/1000;}}else{adpHide(id);clearInterval(fo4);}}function adpScroll(id,p,s){  isScr=s;  for(var n=0;n<=adpuids.length-1;n++){    if(adpuids[n]==id){      adpscr[n]=s;    }  }  if(mie && (!ie7p || !sct) && !op){    addScrEv(function(){doscradp(id,p);})  }  else{    for(var n=0;n<=adpuids.length-1;n++){      if(adpscr[n]==1){        de7(adpuids[n]+'_adpB').style.position='fixed';        de7(adpuids[n]+'_adpS').style.position='fixed';      }else{        de7(adpuids[n]+'_adpB').style.position='absolute';        de7(adpuids[n]+'_adpS').style.position='absolute';      }    }  }}function doscradp(){for(var n=0;n<=adpuids.length-1;n++){  if(adpscr[n]==1)getScr(adpuids[n],xpos[adpuids[n]],ypos[adpuids[n]],adppla[n]);}}        function getScr(id,x,y,p){if(drs==1)return;gsp();sth(id,p);if(ush)de7(id+'_ash').style.top=(sht+cth+delY[id])+'px';de7(id+'_adpB').style.top=(sht+cth+delY[id])+'px';de7(id+'_adpS').style.top=(sht+cth+delY[id]+shs)+'px';if(ush)de7(id+'_ash').style.left=(slt+ctw+delX[id])+'px';de7(id+'_adpB').style.left=(slt+ctw+delX[id])+'px';de7(id+'_adpS').style.left=(slt+ctw+delX[id]+shs)+'px';}function wh5(){if(self.innerHeight){pht=self.innerHeight;pwh=self.innerWidth;}else if(dmt.documentElement && sct){pht=dmt.documentElement.clientHeight;pwh=dmt.documentElement.clientWidth;}else if(document.body){pht=dmt.body.offsetHeight;pwh=dmt.body.offsetWidth;}}function adpPlace(id,p,fw){setTimeout("adppl('"+id+"','"+p+"','"+fw+"')",adppdel);}function adppl(id,p,fw){gsp();sth(id,p);if(fw==1)ctw=0;if(fw==2){ctw=0;cth=0;}rsz(id,p,fw);adpLocation(id,ctw,cth);xpos[id]=ctw;ypos[id]=cth;}function rsz(id,p,fw,e){if(fw!=0){  pwidth[id]=pwh-((mie)?(sct)?0:21:17)-2*bwhg[id]-2*tbwg[id];if(fw==2)pheight[id]=pht-((mie)?(sct)?0:4:0)-2*bwhg[id]-2*tbwg[id];  adpSize(id,pwidth[id],pheight[id]);}addRszEv(function(){dorszadp(id,p,fw,e);})}function dorszadp(id,p,fw,e){wh5();gsp();delY[id]=0;delX[id]=0;if(fw!=0){  pwidth[id]=pwh-((mie)?(sct)?0:21:17)-2*bwhg[id]-2*tbwg[id];if(fw==2)pheight[id]=pht-((mie)?(sct)?0:4:0)-2*bwhg[id]-2*tbwg[id];  adpSize(id,pwidth[id],pheight[id]);}sth(id,p);cth=Math.floor(cth);ctw=Math.floor(ctw);adpLocation(id,ctw,cth,0,e);}function sth(id,p){wh5();if(p==0){cth=ypos[id];ctw=xpos[id];}if(p==1){cth=(pht/2)-((mie)?(sct)?0:2:0)-((pheight[id]+2*bwhg[id]+2*tbwg[id])/2);ctw=(pwh/2)-((mie)?(sct)?0:10:8)-((pwidth[id]+2*bwhg[id]+2*tbwg[id])/2);}if(p==2){cth=(pht)-((mie)?(sct)?0:4:0)-((pheight[id]+2*bwhg[id]));ctw=(pwh/2)-((mie)?(sct)?0:10:8)-((pwidth[id]+2*bwhg[id])/2);}if(p==3){cth=(pht/2)-((mie)?(sct)?0:2:0)-((pheight[id]+2*bwhg[id]+2*tbwg[id])/2);ctw=0;}if(p==4){cth=(pht/2)-((mie)?(sct)?0:2:0)-((pheight[id]+2*bwhg[id]+2*tbwg[id])/2);ctw=(pwh)-((mie)?(sct)?0:22:18)-((pwidth[id]+2*bwhg[id]+2*tbwg[id]));}if(p==5){cth=0;ctw=(pwh/2)-((mie)?(sct)?0:10:8)-((pwidth[id]+2*bwhg[id]+2*tbwg[id])/2);}if(p==6){cth=0;ctw=0;}if(p==7){cth=(pht)-((mie)?(sct)?0:4:0)-((pheight[id]+2*bwhg[id]));ctw=0;}if(p==8){cth=(pht)-((mie)?(sct)?0:4:0)-((pheight[id]+2*bwhg[id]));ctw=(pwh)-((mie)?(sct)?0:22:18)-((pwidth[id]+2*bwhg[id]+2*tbwg[id]));}if(p==9){cth=0;ctw=(pwh)-((mie)?(sct)?0:22:18)-((pwidth[id]+2*bwhg[id]+2*tbwg[id]));}cth=Math.floor(cth);ctw=Math.floor(ctw);}function mca(id,v,l){if(l){var t0=new Date();t0.setTime(t0.getTime()+(l*1e3));var tl=";expires="+t0.toGMTString();}else var tl="";dmt.cookie=id+"="+escape(v)+tl+";path=/";}function rca(id){var idc=id+"=";var a=document.cookie.split(';');for(var i=0;i<a.length;i++){var s=a[i];while (s.charAt(0)==' ') s=s.substring(1,s.length);if (s.indexOf(idc)==0) return unescape(s.substring(idc.length,s.length));}return null;}function ac1(id){var s=rca(id+'_s');if(pcc){var p=rca(id+'_p');mca(id+'_r',alc,'');if(s&&p) cca(id+'_p');if(s&&!p)return true;if(!s&&!p){alc=window.location.href;mca(id+'_s',true,'');mca(id+'_p',true,tro);cca(id+'_p');}}else{if(s)return true;else mca(id+'_s',true,0);}}function cca(id){if((rca(id.substring(0,id.length-2)+'_r'))!=alc)return;if(!rca(id)){adpShow(id.substring(0,id.length-2));clearTimeout(t);adpTimer(id.substring(0,id.length-2),'','','adpHide','','',shf);}else{var t=setTimeout("cca('"+id+"')",1000);}}function adpN(id,x,y,w,h,bgColour){var adiv=dmt.createElement('div');adiv.setAttribute('id',id);adiv.style.backgroundColor=bgColour;adiv.style.display='none';adiv.style.padding='0px 0px 0px 0px';if(id.indexOf('adpB')!=-1 || id.indexOf('adpS')!=-1){  if(isScr==1 && ( (ie7p && sct) || !mie)){    adiv.style.position='fixed';  }else{    adiv.style.position='absolute';  }}else{  adiv.style.position='absolute';}adiv.style.left=x+'px';adiv.style.top=y+'px';adiv.style.width=w+'px';adiv.style.height=h+'px';return adiv;}function adp(adpid,text,titletext){mnh=50;mnw=50;mxp=15;mxb=15;mxt=5;if8=" 10pt Verdana";it3="#000000";shf= 3 ;cpad=15;tbw=3;is7= 0 ;pcc= 0 ;tro= 5 ;tra= 6 ;rn= 1 ;ifr= 0 ;fw7= 0 ;adpw=Math.max(adpw,mnw);adph=Math.max(adph,mnh);cpad=Math.min(cpad,mxp);tbw=Math.min(tbw,mxt);tbw=0;adpuids[adpuids.length]=adpid;uid=adpid;adppla[adppla.length]=pla;adpscr[adpscr.length]=isScr;bwhg[adpid]=Math.min(bwh,mxb);cpadg[adpid]=cpad;tbwg[adpid]=tbw;xpos[adpid]=adpx;ypos[adpid]=adpy;pwidth[adpid]=adpw;pheight[adpid]=adph;delX[adpid]=0;delY[adpid]=0;ush=(ifr&&ieh&&!op);if(it9)tsp=20;else tsp=0;if(!w37)return;if(Math.floor(Math.random()*rn)!=0)return isc=1;alc=window.location.href;if(issp){var sp=rca(adpid+'_sp');if(sp) return isc=1;else mca(adpid+'_sp',true,plt);}if(oo7)if(ac1(adpid))return isc=1;if(ush){var ash=new adpiF(adpid+'_ash',xpos[adpid],ypos[adpid],adpw+2*bwhg[adpid]+shs+((mie)?2*tbw:0),adph+2*bwhg[adpid]+shs+((mie)?2*tbw:0));ash.style.zIndex=++z_index;}var adpS=new adpN(adpid+'_adpS',xpos[adpid]+shs,ypos[adpid]+shs,adpw+2*bwhg[adpid]+2*tbw,adph+2*bwhg[adpid]+2*tbw,sc5);adpS.style.zIndex=++z_index;if(mie)adpS.style.filter="alpha(opacity=30)";else adpS.style.MozOpacity=.3;var adpB=new adpN(adpid+'_adpB',xpos[adpid],ypos[adpid],adpw+2*bwhg[adpid],adph+2*bwhg[adpid],bc7);adpB.style.zIndex=++z_index;var adpT=new adpN(adpid+'_adpT',bwhg[adpid],bwhg[adpid],adpw,20,tc3);adpT.style.overflow="hidden";adpT.style.font="bold 9pt Tahoma";adpT.style.color=tc2;adpT.innerHTML='<span id="'+adpid+'_adpTitle" style="white-space:nowrap;padding: 1px 0px 0px 3px;width:100%;position:absolute;left:0px;height:20px;">'+titletext+'</span>';if(it9){var adpC=new adpN(adpid+'_adpC',bwhg[adpid],bwhg[adpid]+20,adpw-((mie&&!sct&&!op9)?0:2*cpad),adph-lhg-20-((mie&&!sct&&!op9)?0:2*cpad),ib8);}else{adpT.style.height="0px";var adpC=new adpN(adpid+'_adpC',bwhg[adpid],bwhg[adpid],adpw-((mie&&!sct&&!op9)?0:2*cpad),adph-lhg-((mie&&!sct&&!op9)?0:2*cpad),ib8);}adpC.style.borderColor="";adpC.style.borderStyle="inset";adpC.style.borderWidth="0px";if(is7){adpC.style.overflow="auto";}else{adpC.style.overflow="hidden";}adpC.style.padding=cpad+'px';adpC.style.font=if8;adpC.style.color=it3;var rsize=new adpN(adpid+'_rsize',adpw+2*bwhg[adpid]-9,adph+2*bwhg[adpid]-9,9,9,'');var close=new adpN(adpid+'_close',adpw+bwhg[adpid]-20,bwhg[adpid],20,20,'');if(!mie)adpC.innerHTML=text;adpB.appendChild(close);if(ir9)adpB.appendChild(rsize);adpB.appendChild(adpT);adpB.appendChild(adpC);if(ush)dmt.body.appendChild(ash);dmt.body.appendChild(adpB);dmt.body.appendChild(adpS);if(mie)adpC.innerHTML=text;if(ir9){rsize.style.background = 'url("http://www.foodrelief.org/img/resize.gif") no-repeat';rsize.style.cursor='NW-resize';rsize.style.zIndex=++z_index;}if(cc6){close.style.background = 'url("http://www.foodrelief.org/img/close.gif") no-repeat';close.style.cursor=(mie)?'hand':'pointer';close.style.zIndex=++z_index;}rEl=de7(adpid+'_rsize');tEl=de7(adpid+'_adpT');cEl=de7(adpid+'_adpC');if(ir9)rEl.adpid=adpid;tEl.adpid=adpid;cEl.adpid=adpid;if(isex==1){if(mie){setTimeout('dmt.attachEvent("onmousemove",mouseexit);',1000);}else{setTimeout('document.addEventListener("mousemove",mouseexit,true);',1000);}}if(ir9)if(ir9)rEl.onmousedown=amre;if(im5){tEl.style.cursor='move';tEl.onmousedown=amre;if(cnm){cEl.style.cursor='move';cEl.onmousedown=amre;}}de7(adpid+'_close').onclick=new Function("adpHide('"+ adpid +"');");if(isScr && mie)adpScroll(adpid,pla,1);if(pla!=0)adpPlace(adpid,pla,fw7);};
var shtm=0,dshm,sltm=0,plam,cthm,ctwm,z_indexm=9000;var dmt=document,nbl='none',ibl='block',nvi='hidden',ivi='visible',sct,isScrim,isScri,na=navigator.userAgent;function de7(id){return dmt.getElementById(id)}var w37=(de7)?true:false, mie=(w37 && dmt.all)?true:false, ns=(w37 && !dmt.all)?true:false, op=(na.indexOf('Opera')!=-1);if(op){var otmp=na.indexOf("Opera")+6;opv=parseInt(na.charAt(otmp));var op9=(opv==9)?true:false;}if(mie){mtmp=na.split("MSIE");miv=parseFloat(mtmp[1]);var ieh=(miv>=5.5)?true:false;}window.onerror=function(){return false};var xposm=new Array(),yposm=new Array(),pwidthm=new Array,pheightm=new Array,cpadgm=new Array(),bwhgm=new Array(),tbwgm=new Array();var tInd = new Array(), tNames = new Array("a","BUTTON","TEXTAREA","INPUT","IFRAME");delXm=new Array(),delYm=new Array();function miebodym(){return (dmt.compatMode && dmt.compatMode=="CSS1Compat")? dmt.documentElement:dmt.body}if(dmt.compatMode=='CSS1Compat')sct=true;else sct=false;function tabdown(e) {if (e.keyCode == 9){return false;}}if (!document.all || op) {document.onkeypress = tabdown;}function sohm(id,bon,voh){de7(id+'_adpC').style.display=bon;de7(id+'_adpC').style.visibility=voh;}function adpHideMask(id){clearTimeout(dshm);sohm(id,nbl,nvi)}function adpShowMask(id){setTimeout("UpdatePositionm('"+id+"',xposm['"+id+"'],yposm['"+id+"'])",150);dshm=setTimeout("sohm('"+id+"',ibl,ivi)",250);if(mie || op)setTimeout("sbHide();tiHide();",100);}function gspm(){shtm=(mie)?miebody().scrollTop:window.pageYOffset;sltm=(mie)?miebody().scrollLeft:window.pageXOffset;return shtm,sltm;}function UpdatePositionm(id,x,y,m,evt){xposm[id]=x;yposm[id]=y;gspm();if(mie){x+=sltm;y+=shtm;}de7(id+'_adpC').style.left=x+'px';de7(id+'_adpC').style.top=y+'px';}function UpdateContentm(id,text){de7(id+'_adpC').innerHTML=text;}function UpdateSizem(id,w,h){if(w<mnw||h<mnh)return;de7(id+'_adpC').style.width=w-((!op9&&mie&&!sct)?0:2*cpadgm[id])+'px';de7(id+'_adpC').style.height=h-tspm-((!op9&&mie&&!sct)?0:2*cpadgm[id])+'px';}function ds8m(id,p){if(isScr)getScr(uid,xpos[uid],ypos[uid],pla);if(mie && !op){	addScrEv(function(){doscr(id,p);})	}}function doscr(id,p){    UpdateScrollm(id,xposm[id],yposm[id],p);}function UpdateScrollm(id,x,y,p){gspm();de7(id+'_adpC').style.top=(shtm+delYm[id])+'px';de7(id+'_adpC').style.left=(sltm+delXm[id])+'px';}function wh5m(){if(self.innerHeight){	pht=self.innerHeight;	pwh=self.innerWidth;}else if(dmt.documentElement && sct){	pht=dmt.documentElement.clientHeight;	pwh=dmt.documentElement.clientWidth;}else if(document.body){	pht=dmt.body.offsetHeight;	pwh=dmt.body.offsetWidth;}}function adpplamcem(id,p,fw){gspm();if(fw==2){ctwm=0;cthm=0;}rszm(id,p,fw);UpdatePositionm(id,ctwm,cthm);xposm[id]=ctwm;yposm[id]=cthm;}function rszm(id,p,fw,e){	if(fw!=0){	  wh5m();	  pwidthm[id]=pwh-((mie)?(sct)?0:21:17)-2*bwhgm[id]-2*tbwgm[id];		if(fw==2)pheightm[id]=pht-((mie)?(sct)?0:4:0)-2*bwhgm[id]-2*tbwgm[id];		UpdateSizem(id,pwidthm[id],pheightm[id]);	}	addRszEv(function(){dorsz(id,p,fw,e);})}function dorsz(id,p,fw,e){wh5m();gspm();delYm[id]=0;delXm[id]=0;if(fw!=0){  pwidthm[id]=pwh-((mie)?(sct)?0:21:17)-2*bwhgm[id]-2*tbwgm[id];if(fw==2)pheightm[id]=pht-((mie)?(sct)?0:4:0)-2*bwhgm[id]-2*tbwgm[id];  UpdateSizem(id,pwidthm[id],pheightm[id]);}UpdatePositionm(id,ctwm,cthm,0,e);}function adpNm(id,x,y,w,h,bgColour){var adiv=dmt.createElement('div');adiv.setAttribute('id',id);adiv.style.backgroundColor=bgColour;adiv.style.display='none';adiv.style.padding='0px 0px 0px 0px';if(!mie){  adiv.style.position='fixed';}else{  adiv.style.position='absolute';}adiv.style.left=x+'px';adiv.style.top=y+'px';adiv.style.width=w+'px';adiv.style.height=h+'px';return adiv;}function adpMask(adpid){mnh=50;mnw=50;mxp=15;mxb=15;x=0;y=0;w=1500;h=1500;ib8="";cpad=0;bwh=0;tbw=0;plam=1;fw7m=2;w=Math.max(w,mnw);h=Math.max(h,mnh);cpad=Math.min(cpad,mxp);bwhgm[adpid]=Math.min(bwh,mxb);cpadgm[adpid]=cpad;tbwgm[adpid]=tbw;xposm[adpid]=x;yposm[adpid]=y;pwidthm[adpid]=w;pheightm[adpid]=h;delXm[adpid]=0;delYm[adpid]=0;tspm=0;if(!w37)return;if(!de7(uid+'_adpB'))return;var adpC=new adpNm(adpid+'_adpC',bwhgm[adpid],bwhgm[adpid],w-((mie&&!sct&&!op9)?0:2*cpad),h-((mie&&!sct&&!op9)?0:2*cpad),ib8);adpC.style.zIndex=z_indexm;if(!op){text="<div id='ADPMask' style='width:100%; height:100%'></div>";}else{text="<div id='ADPMask_opera' style='width:100%; height:100%'></div>";}if(!mie)adpC.innerHTML=text;dmt.body.appendChild(adpC);if(mie)adpC.innerHTML=text;ds8m(adpid,plam);if(plam!=0)setTimeout("adpplamcem('"+ adpid +"',plam,fw7m);",250);document.getElementById(uid + '_close').onclick=function(){adpHideMask('adpMask');adpHide(uid);if(mie || op){sbShow();tiShow();}};}function adpRemoveMask(adpid){adpHideMask(adpid);adpHide(uid);if(mie || op){sbShow();tiShow();}}function sbHide(){for(var i = 0; i < document.forms.length; i++) {for(var j = 0; j < document.forms[i].length; j++){if(document.forms[i].elements[j].tagName == "SELECT") {document.forms[i].elements[j].style.visibility="hidden";}}}}function sbShow(){for(var i = 0; i < document.forms.length; i++) {for(var j = 0; j < document.forms[i].length; j++){if(document.forms[i].elements[j].tagName == "SELECT") {document.forms[i].elements[j].style.visibility="visible";}}}}function tiHide(){var i=0;for (var j=0;j<tNames.length;j++){var tElements = document.getElementsByTagName(tNames[j]);for (var k=0;k<tElements.length;k++){tInd[i]=tElements[k].tabIndex;tElements[k].tabIndex="-1";i++;}}}function tiShow(){var i=0;for (var j=0;j<tNames.length;j++){var tElements = document.getElementsByTagName(tNames[j]);for (var k=0;k<tElements.length;k++){tElements[k].tabIndex=tInd[i];tElements[k].tabEnabled=true;i++;}}};
}

