function obr(url) {
	window.open('popup.php?plik='+escape(url),'popupzobrazkiem','menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=700,height=580');
}

function msienapraw() {
	if (navigator.appVersion.indexOf('MSIE 7')==-1) {
		if (oo=document.getElementById('macroscope_podstrona')) oo.style.height=273;
		if (oo=document.getElementById('tlopodjedenduzy')) oo.style.height=373;
		if (oo=document.getElementById('tlopodprawy')) {
			if (location.href.indexOf('konferencje')>-1) oo.style.height=373;
		}
		if (oo=document.getElementById('tlopodzakladki')) oo.style.height=373;
		if (oo=document.getElementById('tlopodzakladkiipolowki')) oo.style.height=373;
	}
}

if ((document.all) && (navigator.userAgent.indexOf('Opera')<0) && (navigator.userAgent.indexOf('Gecko')<0)) {
	onload = msienapraw;
} 

function setimgsrc(id,url) {
	document.getElementById(id).src=url;
}


function addBookmark(title,url) {
	if (window.sidebar) {
		window.sidebar.addPanel(title, url,"");
	} else if( document.all ) {
		window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) {
		return true;
	}
	var licznikobrulubione = new Image();
	licznikobrulubione.src="http://statystyki.discipline.pl/macroscopeulubionelicznik.gif?&l="+Math.round(10000*Math.random());
}

var licznikobr = new Image();
licznikobr.src="http://statystyki.discipline.pl/macroscopelicznik.php?r="+escape(document.referrer)+"&u="+escape(location.href)+"&w="+screen.width+"&h="+screen.height+"&l="+Math.round(10000*Math.random());

var napis="stary";

function timeout(tt){
	
	if ((document.all) && (navigator.userAgent.indexOf('Opera')<0) && (navigator.userAgent.indexOf('Gecko')<0)) {
		msienapraw();
	}
	
	if(tt<=0){
		if(document.getElementById('topl')){
			document.getElementById('topl').innerHTML='';
		}
	}else{
		tt=tt-1;
		t=setTimeout('timeout('+tt+')',1000);		
	}
}

function toplayerclear(){
	document.getElementById('topl').innerHTML='';
}

function toplayercenter(){
	myWidth = document.body.clientWidth;
	myHeight = document.body.clientHeight;
	window.document.write('<table style="position: absolute; top: 0px; left:0px; width:'+myWidth+'px ; height: '+myHeight+'px; text-align:center;"><tr><td>'); 
}
