function changecont(id1, id2) {
	var link1 = '';
	var link2 = '';
	link1='menu' + id1 + '.html';
	link2='body' + id2 + '.html';
	parent.leftframe.location.href = link1;
	parent.mainframe.location.href = link2;
	parent.topframe.CurPos = id2;
	return false;
};

function changemain(id) {
	var link2 = '';
	link2='body' + id + '.html';
	parent.mainframe.location.href = link2;
	return false;
};

function chngimg(name, func) {
	var picx = '';
	var senderx = name;
	picx = 'gif/' + name;

		picx = 'b' + name;

	if (func == 1) {
	//	picx = picx + 'd';
		window.document.images[picx].src = parent.topframe.bxd[name].src; 

	} else
	if (func == 2) {
	//	picx = picx + 'u';
		window.document.images[picx].src = parent.topframe.bxu[name].src; 

	} else {
	//	picx = picx + 'n';
		window.document.images[picx].src = parent.topframe.bxn[name].src; 

	};
	//picx = picx + '.gif';

	//window.status = 'kliknij...............';
	//window.document.images[name].src= picx; 

	return false;
}


function raisewin(name) {
    var params ='left=0,top=10,width=800,height=500,menubar=no,statusbar=no,resizeable=yes,scrollbars=yes';
	var win = window.open('', 'name', params);
	var html = '<html><head><title>Powiększenie :</title></head><body><img name="img" src="'+name+'" onclick=\'window.close();\' alt="Zamknij okno"></body></html>';
	win.document.write(html);
	win.document.close();
	win.focus();
	return false;
}

function which(pos) {
	if (parent.topframe.CurPos == pos) 
	    { 
	    document.write('<img src="gif/wsk.gif">');
	    } 
	    else 
	    {
	    document.write('&nbsp;');
	    };
	return false;
}

function image_preload() {
	var i = 0;
	var picx;

	for (i=1; i<19; i++) {
  		picx= new Image(90,25); 
  		picx.src = "gif/b" + i + "u.gif"; 
		parent.topframe.bxu[i] = picx;
		};
	for (i=1; i<19; i++) {
  		picx= new Image(90,25); 
  		picx.src = "gif/b" + i + "d.gif"; 
		parent.topframe.bxd[i] = picx;
		};
	for (i=1; i<19; i++) {
  		picx= new Image(90,25); 
  		picx.src = "gif/b" + i + "n.gif"; 
		parent.topframe.bxn[i] = picx;
		};

	pic100= new Image(100,100); 
  	pic100.src="gif/3dmail.gif"; 
	pic101= new Image(250,50); 
  	pic101.src="gif/bargraph50_1.gif"; 
	pic102= new Image(100,50); 
  	pic102.src="pic/email.gif"; 
  	window.status = "Gotowe!";

	return false;
};

function get_description(pos) {
	var a = new Array(8);
	a[0] = 'Przenośniki i urządzenia służące do suchego rozładunku jabłek.';
	a[1] = 'Przenośniki taśmowe stosowane w transporcie artykułów spożywczych.';
	a[2] = 'Zestawy przenośników taśmowych do transportu podłoża pod uprawę pieczarek.';
	a[3] = 'Przenośniki taśmowe stosowane w liniach technologicznych.';
	a[4] = 'Przenośniki rolkowe z napędem i sterowaniem elektroniczno - pneumatycznym.';
	a[5] = 'Przenośniki stosowane w transporcie materiałów budowlanych.';
	a[6] = 'Przenośniki do różnych zastosowań.';
	a[7] = 'Kompletne linie do sortowania odpadów komunalnych.';
	a[8] = '';
	
	return a[pos];
	
};