{
msg=new Array();
//PL: Tutaj wpisz wiadomości/informacje... po polsku
msg[0]="AUTOMATYKA PRZEMYSŁOWA";
msg[1]="INTELIGENTNY DOM";
msg[2]="AUTOMATYKA BUDYNKÓW";
msg[3]="ELEKTRONIKA";
msg[4]="WENTYLACJA";
msg[5]="KLIMATYZACJA";
msg[6]="INTELIGENTNY BUDYNEK";
//EN: Tutaj wpisz wiadomości/informacje... po angielsku
msa=new Array();
msa[0]="INDUSTRIAL AUTOMATION";
msa[1]="INTELLIGENT BUILDING";
msa[2]="HOME AUTOMATION";
msa[3]="ELECTRONICS";
msa[4]="VENTILATION";
msa[5]="AIR CONDITIONING";
msa[6]="INTELLIGENT HOME";
czasmiedzy=3000; //czas między wyświetlaniami tekstu
ktory=0;

function Type(lang){

  if (lang=='en') {
    ktory++;
    if(ktory>=6){ ktory=0}
    var napis=msa[ktory];
    document.getElementById("slogan").innerHTML=napis;
    setTimeout("Type('en')",czasmiedzy);
  }
  else {
    ktory++;
    if(ktory>=6){ ktory=0}
    var napis=msg[ktory];
    document.getElementById("slogan").innerHTML=napis;
    setTimeout("Type('pl')",czasmiedzy);
  }
}

function show(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=12; i++) {
		var p=document.getElementById('smenu'+i);
		if (p) {
			if (p==d) {
				if (p.style.display=='block') { p.style.display='none'; }
				else { p.style.display='block';}
			}
			else {p.style.display='none';}
		}
	}
}

var k=0.00;

function oblU(x){
var a='c'+x;
var b='d'+x;

var z1=document.getElementById(a);
var z2=document.getElementById(b);

if (z1.checked==false) {
  z2.innerHTML='d<sub>'+x+'</sub>=0';
  k=k-0.15*Math.pow(2,(x-1));
}
else {
  z2.innerHTML='d<sub>'+x+'</sub>=1';
  k=k+0.15*Math.pow(2,(x-1));
}

if(k<0.00) {k=0.00;}
document.getElementById("wynik").innerHTML='Uo='+k.toFixed(2)+' V</font></b>';
}  

function oblS(x,n){
var a='c'+x;
var b='d'+x;

var z1=document.getElementById(a);
var z2=document.getElementById(b);

if (z1.checked==false) {
  z2.innerHTML='d<sub>'+x+'</sub>=0';
  k=k-n;
}
else {
  z2.innerHTML='d<sub>'+x+'</sub>=1';
  k=k+n;
}

if(k<0.00) {k=0.00;}
if(n==2) {var z=k.toFixed(1);}
else {var z=k.toFixed(2);}
document.getElementById("wynik").innerHTML='Uo='+z+' V';
}  

// <!-- 2096718413
// This script is (C) Copyright 2004 Jim Tucek
// Leave these comments alone!  For more info, visit
// www.jracademy.com/~jtucek/email/

function fling(hug,previous,athlete) {
hug += ' ';
var coal = hug.length;
var center = 0;
var circumstance = '';
for(var courtesy = 0; courtesy < coal; courtesy++) {
center = 0;
while(hug.charCodeAt(courtesy) != 32) {
center = center * 10;
center = center + hug.charCodeAt(courtesy)-48;
courtesy++;
}
circumstance += String.fromCharCode(show1(center,previous,athlete));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+circumstance;
}

function forego(crystal,file,humanity) {
crystal += ' ';
var human = crystal.length;
var idea = 0;
for(var largato = 0; largato < human; largato++) {
idea = 0;
while(crystal.charCodeAt(largato) != 32) {
idea = idea * 10;
idea = idea + crystal.charCodeAt(largato)-48;
largato++;
}
document.write(String.fromCharCode(show1(idea,file,humanity)));
}
}

function show1(bow,way,machine) {
if (machine % 2 == 0) {
memory = 1;
for(var nitrogen = 1; nitrogen <= machine/2; nitrogen++) {
month = (bow*bow) % way;
memory = (month*memory) % way;
}
} else {
memory = bow;
for(var object = 1; object <= machine/2; object++) {
month = (bow*bow) % way;
memory = (month*memory) % way;
}
}
return memory;
}
//hintbox
/***********************************************
* Show Hint script- Š Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
var horizontal_offset="9px" //horizontal offset of hint box from anchor link

/////No further editting needed
var vertical_offset="0" //horizontal offset of hint box from anchor link. No need to change.
var ie=document.all
var ns6=document.getElementById&&!document.all

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1
if (whichedge=="rightedge"){
var windowedge=ie && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-30 : window.pageXOffset+window.innerWidth-40
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth+parseInt(horizontal_offset)
}
else{
var windowedge=ie && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
}
return edgeoffset
}

function showhint(menucontents, obj, e, tipwidth){
if ((ie||ns6) && document.getElementById("hintbox")){
dropmenuobj=document.getElementById("hintbox")
dropmenuobj.innerHTML=menucontents
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (tipwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth
}
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
dropmenuobj.style.visibility="visible"
obj.onmouseout=hidetip
}
}

function hidetip(e){
dropmenuobj.style.visibility="hidden"
dropmenuobj.style.left="-500px"
}

function createhintbox(){
var divblock=document.createElement("div")
divblock.setAttribute("id", "hintbox")
document.body.appendChild(divblock)
}

if (window.addEventListener)
window.addEventListener("load", createhintbox, false)
else if (window.attachEvent)
window.attachEvent("onload", createhintbox)
else if (document.getElementById)
window.onload=createhintbox

}
