function f_trim(x){return x.replace(/^\s+|\s+$/g,'');}
function f_aEv(obj, type, fn) { try { if (obj.addEventListener) { obj.addEventListener(type, fn, false); } else if (obj.attachEvent) { obj["e"+type+fn] = fn; obj[type+fn] = function() { obj["e"+type+fn](window.event); }; obj.attachEvent("on"+type, obj[type+fn]); }} catch (e) {}}
function f_gOb(n) { return document.getElementById(n); }
function f_gBTC(obj, tag, clName) { var objs = obj.getElementsByTagName(tag); var robj = new Array(); var j = 0; for (var i = 0; i < objs.length; i++) { if (f_hCl(objs[i], clName)) robj[j++] = objs[i]; }; return robj; }
function f_hCl(obj, clName) { var clN = ' ' + obj.className + ' '; return (clN.match(' ' + clName + ' ') != null); }
function f_aCl(obj, clName) { if (f_hCl(obj, clName)) return; obj.className = f_trim(obj.className + ' ' + clName); }
function f_rCl(obj, clName) { if (!f_hCl(obj, clName)) return; var clN = ' ' + obj.className + ' '; eval("obj.className = f_trim(clN.replace(/ " + clName + " /g,' '));"); }

function __nav_init(){
 var _navMainList = f_gBTC(f_gOb('navH'), 'ul', 'p0')[0];
 if(_navMainList){
  var _activeEl = f_gBTC(_navMainList, 'li', 'active');
  if(_activeEl){
   f_aCl(_activeEl[0], 'selected');
  }
 }
}

function ie6(){
 if ( navigator.userAgent.indexOf('MSIE 6.0') > 0 && navigator.userAgent.indexOf('MSIE 7.0') < 0 && navigator.userAgent.indexOf('MSIE 8.0') < 0 ){
	var doc=document.body;
	doc.style.paddingTop="50px";
	var desc = document.createElement('div');
	desc.setAttribute("id","IE6_warning");
	desc.style.background="#faf0a7";
	desc.style.margin="0";
	desc.style.color="#000";
	desc.style.fontFamily="Arial, sans-serif";
	desc.style.fontSize="14px";
	desc.style.height="50px";
	desc.style.width="100%";
	desc.style.zIndex="999";
	desc.innerHTML='<div id="IE6_con" style="width: 940px; text-align: left; margin: 0 auto; position: relative; height: 30px; padding: 10px 0;"><strong style="font-weight: bold;">Internet Explorer 6 nie zapewnia ju&#380; odpowiedniego poziomu bezpiecze&#324;stwa. </strong><p>Cz&#281;&#347;&#263; stron b&#281;dzie si&#281; &#378;le wy&#347;wietla&#263;.</p><a id="IE6_btn" href="http://gazeta.hit.gemius.pl/hitredir/id=AkfqlqrNGyYy8Wqp2ABDV2ZUfSqNecbhJ9CvGwgvXf7.k7/url=ie8.gazeta.pl/internet_explorer_8/0,0.html" target="_blank" style="position: absolute; right: 100px; bottom:10px; display: block; border: 1px solid #ccc; padding: 6px 10px; background: #fffbdf; color: #114488; text-decoration: none; font-weight: bold;">Pobierz Internet Explorer 8</a></div><img src="http://gazeta.hit.gemius.pl/redot.gif?id=AkHgkqsrPw2YwOMuYdGfwbR5HSGK7gexhoUlkx6YLh3.H7" height="1" width="1" alt="" />';
	var d = document.getElementById('fb-root');
	doc.insertBefore(desc, d);
	}
}

window.onload=ie6;
