var loadedLibs = new Object();
function require(libraryName) {
   if (window.location.hash=="#TEST") libraryName = libraryName.replace("/info/","/info/TEST_");
   if (loadedLibs[libraryName]) return false;
   document.write('<script type="text/javascript" src="'+libraryName+'"></script>');
   loadedLibs[libraryName]=true;
}

function initLula() {
  fixIEpng();
 /* fix_index(); */
}

require("/info/sport/pngfix.js");
/* require("/info/lula/index_fix.js");  */
require("/info/swfobject2.js");

function __nav_init() {
 jQuery("#navH > ul:first > li").hover(
 function() {jQuery(this).addClass("hovered")} ,
 function() {jQuery(this).removeClass("hovered")}
 );
 

}

jQuery(document).ready(function() {
    
  initLula();
  
  var entries = [];

  jQuery("#artindex_body > div").each(function(){
   if( jQuery(this).hasClass('entry') || jQuery(this).hasClass('mod_art_spons') ){
    jQuery(this).removeClass('odd').removeClass('even');
    entries.push(jQuery(this));
   }
  });

  for(var i=0; i<entries.length; i++){
   if(i <= 1) entries[i].addClass('first');
   if(i%2 == 0){
    if(i>0) entries[i].before('<div class="clr"></div>');
    entries[i].addClass('odd');
   }else{
    entries[i].addClass('even');
   }
  } 
  
  jQuery("#navH .lule .p1 li").each(function(){
   var link = jQuery(this).find('a').eq(0);
   if(link){
    p1 = link.html().replace(/:/, '<span>')+'</span>';
    link.html(p1);
   }
  });
    
  jQuery(".bs_seemore_body li[class!=clr]").hover(
   function(){
    jQuery(this).addClass("hovered");
   },
   function(){
    jQuery(this).removeClass("hovered");
   }
  );
	ie6();
}); 
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; margin: 0 auto; position: relative; height: 30px; padding: 10px 0;"><strong style="font-weight: bold;">Twoja przegl&#261;darka nie zapewnia ju&#380; odpowiedniego poziomu bezpiecze&#324;stwa. </strong><p>Cz&#281;&#347;&#263; stron b&#281;dzie si&#281; na niej &#378;le wy&#347;wietla&#263;.</p><a id="IE6_btn" href="http://gazeta.hit.gemius.pl/hitredir/id=AkfqlqrNGyYy8Wqp2ABDV2ZUfSqNecbhJ9CvGwgvXf7.k7/url=www.sciagnij.pl/programy/p/Windows-Internet-Przegladarki-Internet_Explorer/3856" 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;">Zaktualizuj przegl&#261;dark&#281;</a></div><!-- (C)2000-2010 Gemius SA - gemiusTraffic / ver 11.1 / IE6_strona --><script type="text/javascript"><!--//--><![CDATA[//><!-- var gemius_identifier = new String("AkHgkqsrPw2YwOMuYdGfwbR5HSGK7gexhoUlkx6YLh3.H7");//--><!]]></script><script type="text/javascript" src="http://gazeta.hit.gemius.pl/gemius.js"></script>';
	var d = document.getElementById('fb-root');
	doc.insertBefore(desc, d);
	}
}

