var bo_ns_id = 0;



function startIeFix(){

  if(isIE()){

    document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- ');

  }

}



function endIeFix(){

  if(isIE()){

    document.write('</div>');

    var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);

    var theCode = theObject.innerHTML;

    theCode = theCode.substring(4 ,9+theCode.indexOf("</object>"))

    document.write(theCode);

  }

}



function isIE(){

  // only for Win IE 6+

  // But not in Windows 98, Me, NT 4.0, 2000

  var strBrwsr= navigator.userAgent.toLowerCase();

  if(strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0){

    if(parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6){

      return false;

    }

    if(strBrwsr.indexOf("win98") > -1 ||

       strBrwsr.indexOf("win 9x 4.90") > -1 ||

       strBrwsr.indexOf("winnt4.0") > -1 ||

       strBrwsr.indexOf("windows nt 5.0") > -1)

    {

      return false;

    }

    return true;

  }else{

    return false;

  }

}



/* 

<script type="text/javascript">startIeFix();</script>

>> FLASH <<

<!-- --><script type="text/javascript">endIeFix();</script>

*/

function Zyczenia2011() {
	zx = $('#Zyczenia2011').width();
	zy = $('#Zyczenia2011').height();
	
	d=document;
	if (typeof window.innerWidth!='undefined') {
	var winWidth = window.innerWidth;
	var winHeight = window.innerHeight;
	} else {
	if (d.documentElement && typeof d.documentElement.clientWidth!='undefined' && d.documentElement.clientWidth!=0) {
		var winWidth = d.documentElement.clientWidth
		var winHeight = d.documentElement.clientHeight
		} else {
			if (d.body && typeof d.body.clientWidth!='undefined') {
			var winWidth = d.body.clientWidth
			var winHeight = d.body.clientHeight
			}
		}
	}
	
	$('#Zyczenia2011').css('left', (winWidth - zx) / 2);
	$('#Zyczenia2011').css('top', (winHeight - zy) / 2);
	$('#Zyczenia2011').css('visibility', 'visible');
//	document.getElementById('Zyczenia2009').style.display = 'block';
}
