<!--
//
//nie ruszac
//
// rozwija wszystkie

// eval("popup_main.style.width="+document.body.clientWidth+";");
// eval("popup_main.style.height="+document.body.clientHeight+";");

function index_java_go(){
   //popup_position();
   popup_show();
}

function popup_position(){
   // IE
   //eval("popup_main.style.top="+((document.body.clientHeight/2)-250)+";");
   //eval("popup_main.style.left="+((document.body.clientWidth/2)-260)+";");
   
   //document.getElementById('popup_main').style.top = 10; // wysokosc ustawiona przez styl
   // document.getElementById('popup_main').style.left = (document.body.clientWidth/2)-260; // SRODEK IE
   
   //document.getElementById('popup_main').style.left = (document.body.clientWidth/2)-375; // SRODEK ASYMETRYCZNY W POFP INDEX
   
   // FIREFOX
   
}

function popup_show(){
   document.getElementById('popup_main').className = 'popup_show';
   window.setTimeout("popup_close();", 13000); // ukryj popup po 13 sek
}
function popup_close() {
   document.getElementById('popup_main').className = 'popup_hide';
}

function zmiana(nmr) {
   if (document.getElementById('m' + nmr).className == 'mhide')
      document.getElementById('m' + nmr).className = 'mshow';
   else
      document.getElementById('m' + nmr).className = 'mhide';
} 
//
// rozwija jedno
window.onload=zmn;
function zmn(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('m'+i)) {document.getElementById('m'+i).className='mhide';}
	}
if (d) {d.className='mshow';}
}
//
// podmiana
//
function rsi(){
	nCount = document.ogi.length;
	ia = document.ogi;

	if (document.ogi != null)
		for (i = 0; i < (nCount - 1); i += 2)
			ia[i].src = ia[i+1];
	document.ogi = null;
}

function rpi(){
	j = 0;
	ia = new Array;
	oia = document.ogi;

	for (i = 0; i < rpi.arguments.length; i += 2) {
		obj=rpi.arguments[i]
		ia[j++] = obj;
		if (oia == null || oia[j-1] != obj)
			ia[j++] = obj.src;
		else
			ia[j++] = oia[j];
		obj.src = rpi.arguments[i + 1];
	}
	if (document.ogi == null)
		document.ogi = ia;
}
// focus
window.onload = function() {
uk();
}

function uk() {
	if (document.getElementById && document.createTextNode)	{
		var a = document.getElementsByTagName('a');
		for (var i = 0; i < a.length; i++) {
			a[i].onfocus = function() {
			this.blur();
			return false;
			}
		}
	}
}
//
// div show/hide
function show_tab(nazwa){
    document.getElementById('maintab1').className = 'div_hide';
    document.getElementById('maintab2').className = 'div_hide';
    if (nazwa=='maintab1' || nazwa=='maintab2'){
        document.getElementById(nazwa).className = 'div_show';    
    }
}

//

// popup
function pp(url, wdt, hgt) {
var szer = wdt + 16;
var wys = window.screen.height - 60;
if (hgt <= 730) {
var popup = window.open(url,"",'width=' + wdt + ',height=' + hgt + ',left=0,top=0,resizable=no,scrollbars=no,menubar=no' );
} else {
if (hgt > wys) {wysokosc = wys} else {wysokosc = hgt}
var popup = window.open(url,"",'width=' + szer + ',height=' + wysokosc + ',left=0,top=0,resizable=no,scrollbars=1,menubar=no' );
}
}
//-->

