document.write('<style type="text/css"> .yaHead1 { text-align:left; } .yaHead2 { text-align:right; } .yaHead1 div {font-family: Verdana, Arial, Helvetica, sans-serif;    font-size: 8pt;    padding: 3pt 5pt 3pt 5pt;    float:left;}.yaHead2 div {    font-family: Verdana, Arial, Helvetica, sans-serif;    font-size: 8pt;    padding: 3pt 5pt 3pt 5pt;    float:right;}.yaHead2 div a, .yaHead2 div a:visited { color:#0000CC; }.yaHead2 div a:hover { color:#0000CC; }.yandex { color: #000000; }.yandex:first-letter { color: #000000; }.direct { color: #000000; background-color: #BFD6FC; text-decoration: underline; }.direct a, .direct a:visited { color: #000000; }.direct a:hover { color: #000000; }.yaAds {    font-family: Verdana, Arial, Helvetica, sans-serif;    font-size: 8pt;    border: 1px solid #FFFFFF;}.yaAds td { text-align:left; padding:3pt; font-size: 8pt; vertical-align:top; }.yaAds td a{ font-size: 9pt; color:#086BFC; font-weight:bold; display:block; }.yaAds td a:first-letter{ text-transform:uppercase; }.yaAds td a.yaSite{ font-size: 7.5pt; font-weight:normal; color: #006600;}.yaAds td a.yaSite:first-letter{ text-transform:none; }.yaAds td img.img101x76 { float:left; width:101px; height:76px; margin:0 5pt 5pt 0; border:1px solid #ddd; } </style>');
document.write('<div id="minsklifeBanner_768" style="width:728px;heigth:90px"><a href="http://minsklife.net/showthread-t_17902.html"> Война полов</a> (79 ответов) | <a href="http://minsklife.net/showthread-t_9295.html"> Безалкогольные сходки Минского</a> форума! (225 ответов) | <a href="http://minsklife.net/showthread-t_17972.html"> Женщина - руководитель</a> (33 ответов) | <a href="http://minsklife.net/showthread-t_15421.html"> Ревность!..</a> (62 ответов) | <a href="http://minsklife.net/showthread-t_7694.html"> Возмушайтесь!!</a> (1,181 ответов) | </div>');

function chameleon(s){
 this.s = {
BlockId : "minsklifeBanner_768",
Delimeter : "|",
yandexText : "Minsk",
directText : "Life",
directLink : "http://minsklife.net",
addText : "",
addLink : "",
allText : "",
allLink : "",
Direction:"horizontal",
OBC_Count:"5",
imgClass:false
 };
 if(typeof(s)!='undefined'){
  for(var i in this.s) if(typeof(s[i])!='undefined') this.s[i] = s[i];
 }
 var o = document.getElementById(this.s.BlockId); if(!o) return;
 var text = this.trim(o.innerHTML); if(text=='') return;
 var tmp = text.split(this.s.Delimeter);
 var links = [];
 for(var i=0; i<tmp.length; i++){ var l = this.GetContext(tmp[i]); if(l!==null) links[i] = l; }
 if(this.s.Direction=="vertical")  this.ShowVertical(links, o);
 else this.ShowHorizontal(links, o);
}
chameleon.prototype.ShowVertical = function(links, o){
 this.DrawHeader(o);
 var hTable = this.ce('TABLE');
 with(hTable) { width="100%"; border=0; cellSpacing=0; cellPadding=0; className="yaAds"; }
 var hBody = this.ce('TBODY');
 var hTr, a, img;
 for(var i=0; i<links.length; i++){
  hTr = this.ce('TR');
  hTd = this.ce('TD');
  a = this.ce('A'); a.href=links[i].url; a.appendChild(this.ctn(links[i].title));
  hTd.appendChild(a);
  hTd.appendChild(this.ctn(links[i].text));
  a = this.ce('A'); a.href=links[i].url; a.className="yaSite"; a.appendChild(this.ctn(links[i].site));
  hTd.appendChild(a);
  hTr.appendChild(hTd);
  hBody.appendChild(hTr);
 }
 hTable.appendChild(hBody);
 o.appendChild(hTable);
}
chameleon.prototype.ShowHorizontal = function(links, o){
 this.DrawHeader(o);
 var hTable = this.ce('TABLE');
 with(hTable) { width="100%"; border=0; cellSpacing=0; cellPadding=0; className="yaAds"; }
 var hBody = this.ce('TBODY');
 var hTr = this.ce('TR');
 var w = Math.round(100/links.length);
 var a, img;
 for(var i=0; i<links.length; i++){
  hTd = this.ce('TD');
  hTd.width = w+"%";
  a = this.ce('A'); a.href=links[i].url; a.appendChild(this.ctn(links[i].title));
  hTd.appendChild(a);
  hTd.appendChild(this.ctn(links[i].text));
  a = this.ce('A'); a.href=links[i].url; a.className="yaSite";
  a.appendChild(this.ctn(links[i].site));
  hTd.appendChild(a);
  hTr.appendChild(hTd);
 }
 hBody.appendChild(hTr);
 hTable.appendChild(hBody);
 o.appendChild(hTable);
}
chameleon.prototype.DrawHeader = function(o){
 o.innerHTML='';
 var Table = this.ce('TABLE');
 with(Table) { width="100%"; border=0; cellSpacing=0; cellPadding=0; }
 var Body = this.ce('TBODY');
 var Tr = this.ce('TR');
 /* 1 td */

 /* 2 td */
 Td = this.ce('TD'); Td.className = "yaHead2";
 Div = this.ce('DIV');
 a = this.ce('A'); a.href=this.s.allLink; a.target = "_blank";
 a.appendChild(this.ctn(this.s.allText));
 Div.appendChild(a);
 Td.appendChild(Div);
 Div = this.ce('DIV');
 a = this.ce('A'); a.href=this.s.addLink; a.target = "_blank"; a.appendChild(this.ctn(this.s.addText));
 Div.appendChild(a);
 Td.appendChild(Div);
 Tr.appendChild(Td);
 Body.appendChild(Tr);
 Table.appendChild(Body);
 o.innerHTML='';
 o.appendChild(Table);
}
chameleon.prototype.GetContext = function(thecode){
 thecode = this.trim(thecode.replace(/\s+/, ' '));
 if(thecode.match(/(.*)<a [^>]*href="([^"]+)"[^>]*>([^<]*)<\/a>(.*)/i)=== null) return null;
 var text = RegExp.$1=='' ? RegExp.$4 : RegExp.$1+RegExp.$3+RegExp.$4;
 var url = RegExp.$2;
 var title = RegExp.$3;
 if(text=='') text = title;
 site = 'MinskLife.net';
 return {url:url, title:title, text:text, site:site };
}
chameleon.prototype.trim = function(str){ return str.length>0 ? str.replace( /(^\s+|\s+$)/, "" ) : ""; }
chameleon.prototype.ce = function(tag){ return document.createElement(tag); }
chameleon.prototype.ctn = function(t){ return document.createTextNode(t); }

if(typeof window.addEventListener != 'undefined') window.addEventListener('load', myInitLinks, false);
else if(typeof window.attachEvent != 'undefined') window.attachEvent('onload', myInitLinks);

function myInitLinks() { new chameleon();}