n=null;
var wiV=window;
var doV=document;
var daV=new Date();
var tiV=daV.getTime();
var reV=escape(doV.referrer);
var wiVL = escape(window.location);
var tit = escape(doV.title);
var urV='';

function u(p,k)
{
    urV = urV + '&' + p +'=' + k;
}


function cn(k){return k!=null?'"'+k+'"':'""'}

function adS(wiv,dov,url)
{
wiV.smap_fontFamily='verdana,arial,sans-serif';
wiV.smap_headlineSize=11;
wiV.smap_headlineWeight='BOLD';
wiV.smap_textSize=10;
wiV.smap_linkSize=8;

u('a0',wiV.smap_backgroundColor);
u('a1',wiV.smap_borderColor);
u('a2',wiV.smap_headlineColor);
u('a3',wiV.smap_textColor);
u('a4',wiV.smap_linkColor);
u('a5','verdana,arial,sans-serif');
u('a6',11);
u('a7','BOLD');
u('a8',10);
u('a9',8);
adWidth=200;
adHeight=800;
adType=3;
if (wiV.smap_adWidth<120)
{
    wiV.smap_adWidth=120;
}
if (wiV.smap_adHeight<400)
{
    wiV.smap_adHeight=400;
}
u('a10',wiV.smap_adWidth);
u('a11',wiV.smap_adHeight);
u('a12',adType);
rid = Math.random();
    
dov.write('<div id="adl_ad'+rid+'" style="width:0px;height:0px;"></div>');
if (document.getElementById('adl_ad'+rid)!=null)
{

    dov.write('<iframe id="ad2_ad'+rid+'" name="af" width='+cn(wiV.smap_adWidth)+' height='+cn(wiV.smap_adHeight)+' frameborder="0" style="background-color:'+wiV.smap_backgroundColor+';border:1px solid #'+wiV.smap_borderColor+';" src="" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="false" scrolling="no">');
    dov.write("</iframe>");
    document.getElementById('ad2_ad'+rid).src = 'http://www.smugbox.com/WidgetMap?id='+wiV.smap_category+'&r='+wiV.reV+'&l='+wiV.wiVL+'&t='+wiV.tit+'&w='+wiV.smap_adWidth+'&h='+wiV.smap_adHeight+'&bg='+wiV.smap_backgroundColor+'&gmap='+wiV.smap_map;
}
else
{
    dov.write('<iframe id="adl_ad'+rid+'" name="af" width='+cn(wiV.smap_adWidth)+' height='+cn(wiV.smap_adHeight)+' frameborder="0" style="background-color:'+wiV.smap_backgroundColor+';border:1px solid #'+wiV.smap_borderColor+';" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no"  src="http://www.smugbox.com/WidgetMap?id='+wiV.smap_category+'&r='+wiV.reV+'&l='+wiV.wiVL+'&t='+wiV.tit+'&w='+wiV.smap_adWidth+'&h='+wiV.smap_adHeight+'&bg='+wiV.smap_backgroundColor+'&gmap='+wiV.smap_map+'">');
    dov.write("</iframe>");
}
}

function apo(eEl)
{
   if (!eEl && this)    
   {                         
      eEl = this;       
   }                         

   var DL_bIE = document.all ? true : false;

   var nLeftPos = eEl.offsetLeft;      
   var nTopPos = eEl.offsetTop;      
   var ePE = eEl.offsetParent; 
   lc = 0;
   while (ePE != null && lc<500)
   {                                        
      lc++;
      if(DL_bIE)                            
      {

         if( (ePE.tagName != "TABLE") && (ePE.tagName != "BODY") )
         {                                  
            nLeftPos += ePE.clientLeft;
            nTopPos += ePE.clientTop; 
         }
      }
      else                                   
      {
         if(ePE.tagName == "TABLE")  
         {                                   
            var nParBorder = parseInt(ePE.border);
            if(isNaN(nParBorder))            
            {                                
               var nParFrame = ePE.getAttribute('frame');
               if(nParFrame != null)         
               {
                  nLeftPos += 1;             
                  nTopPos += 1;             
               }
            }
            else if(nParBorder > 0)         
            {
               nLeftPos += nParBorder;      
               nTopPos += nParBorder;
            }
         }
      }
      nLeftPos += ePE.offsetLeft;   
      nTopPos += ePE.offsetTop;
      ePE = ePE.offsetParent;
   }                                         
   return [nLeftPos,nTopPos];                
}

adS(wiV,doV,'');

