function Alladyn(G){
function V(v){for(var i=0;i<v.length;)with(v[i]){A(v[i++],id);if(ns4)V(document.layers)}}
function A(X,v){
	vlay[v]=X;if(ns4)X.style=X
	X.vpos=P;X.vclip=ns4?c:C;X.vopacity=ie?O:ns6?o:N;X.vHTML=ns4?h:H;X.Ss=Ss;X.vkf=K;X.vol=0
	X.van={group:'',F:-1,T:0,go:0,d:1,mode:'',f:[],a:{},s:{},purge:Q,reset:R,pause:T,rev:U,UDF:''}
	for(fn in G){ X[fn]=G[fn]}   }
function P(l,t){with(this.style){left=l+'px';top=t+'px'}}
function Sh(){with(this.style){visibility='visible'}};function sh(){with(this.style){visibility='hidden'}} //M
function C(t,r,b,l){this.style.clip='rect('+t+'px '+r+'px '+b+'px '+l+'px)'}function c(t,r,b,l){with(this.clip){top=t;right=r;bottom=b;left=l}}
function O(v){this.style.filter='alpha(opacity='+v+')'}function o(v){this.style.MozOpacity=v/100}function N(v){with(this){visibility=(v<(vol?vol:Al.vol))?'hid':'show'}}
function H(v){this.innerHTML=v}function h(v){with(this.document){write(v);close()}}
function R(){with(this){F=-1;go=0;d=1;mode='';UDF='';f=[];a={}}}function Q(){with(this){f=[{}];a={};for(F in s)a[F]=f[0][F]=s[F];F=-1}}function T(){with(this){u=d;d=T;T=u}}function U(){with(this){T=-T;d=-d}}
function Ss(c){
	with(this)with(van){
		r=f.length;F+=d;if((F<0)||(F==r))switch(mode){case'loop':F=(F<0)?r-1:0;break;case'ping':d=-d;F+=2*d;break;default:F-=d;go=0;eval(UDF)}
		if(go){if(F<0)F=0;for(p in f[F]){s[p]=f[F][p];switch(p){case'vopacity':vopacity(s[p]);break;case'ct':case'cr':case'cb':case'cl':c=1;break;case'f':fx(s[p]);break;default:style[p]=s[p]+'px'}}if(c)with(s)vclip(ct,cr,cb,cl)}
}	}
function K(v,t,N){
	with(this.van){r=f.length+t-1,q={}
		for(p in v){q[p]=(a[p]!=N)?(v[p]-a[p])/t:0;a[p]=v[p]}
		for(u=0;u<=t;u++){if(u!=t)f[r-u]={};if(r>=u)for(p in v)f[r-u][p]=Math.round(v[p]-u*q[p])}
}	}
function s(g){clearInterval(I[g].I);I[g]=0}
function g(g,t,a,u){if(!I[g])I[g]={I:setInterval('Al.s("'+g+'")',t),A:a,U:u?u:''}}
function a(g){p=1;for(q in vlay)with(vlay[q])if(van.go&&van.group==g)p=Ss();if(p)with(I[g])if(A){s(g);eval(U)}}
function i(){r=doc.images;if(ns4)for(p in vlay)with(vlay[p].document)for(u in images)r[u]=images[u];return r}
function n(v,w,p){p=p?p:ns4?W:doc.body
	if(ns4){q=new Layer(w,p);q.visibility='show'}else{
		if(ie){p.insertAdjacentHTML('BeforeEnd','<div id='+v+' style="position:absolute"></div>');q=ie.tags('div')[v]}
		else{q=doc.createElement('div');q.style.position='absolute';p.appendChild(q)}
		q.style.width=w
	}A(q,v);return q     }
function U(){return 'iD'+z++}
var I={},p,q,r,u,z=0,W=window;doc=document;ie=doc.all;ns4=doc.layers;up5=doc.getElementById?doc.getElementsByTagName('div'):0;ns6=up5&&!ie
Al={v:1.9+'M prv!',s:a,go:g,stop:s,vol:50,N:n,I:i,U:U};vlay=[];V(up5?up5:ie?ie.tags('div'):ns4)
}


 function vMenu(ox,oy,T,m,up,d){    
	var i,b,st,w=0,h=0,cw,ch,max,c=0,cn=Al.N(Al.U(),0,d?d:vlay.root),cm='_act',is='img/0.gif'
	function ST(){c+=b?T:st;if(m=='v'){max=ch;c=(c<0)?0:(c>ch)?ch:c;cn.style.top=oy-ch+c+'px';cn.vclip(ch-c,cw,ch,0)}else{max=cw;c=(c<0)?0:(c>cw)?cw:c;cn.style.left=ox-cw+c+'px';cn.vclip(0,cw,ch,cw-c)}if(up)up.S(c>0);if(!(c%max)){clearInterval(i);i=0}	}
	function I(){if(!i)i=setInterval(ST,1)}function R(){st=T;I()}function H(){st=-T;I()}function S(B){if(!(B=b))I()}
	function A(dx,dy,i,c,a,su,op){var n=Al.U(),v,u;function mi(){v.className=c+cm;v.vopacity(99);if(up)R();if(u)u.go();}function mo(){v.className=c;v.vopacity(op);if(up)H();if(u)u.H()}function mc(){eval(a)}
		with(v=Al.N(n+'c',dx,cn)){vHTML(i);className=c;vpos(w,h);vclip(0,dx,dy,0);vopacity(op);}with(Al.N(n+'mask',dx,cn)){   vHTML('<img name='+n+' width='+dx+' height='+dy+' src='+is+' />');vpos(w,h);var im=document.images[n];im.style.cursor='pointer';im.onmouseover=mi;im.onmouseout=mo;im.onmousedown=mc}w+=(m=='h')?dx:0;h+=(m=='v')?dy:0;cw=(w)?w:dx;ch=(h)?h:dy
		if(su)u=vMenu(ox+cw-(m=='h'?dx:0),oy+ch-(m=='v'?dy:0),T,su,this,d);cn.vclip(0,0,0,0);return u}cn.vpos(ox,oy);return {S:S,H:H,go:R,A:A}
    }

  function lvl0(txt){ return '<table cellspacing="0" class="m"><tr><td class="mdot"></td><td>'+txt+'</td></tr></table>'}
         function lvl1(txt){ return '<table cellspacing="0" class="sm"><tr><td>'+txt+'</td></tr></table>'}
         function rm0(txt){ return '<table cellspacing="0" class="m"><tr><td class="mdot"></td><td>'+txt+'</td></tr></table>'}

function ulubione() {
        window.external.AddFavorite('http://www.evr.com.pl', 'EVR Systems');
}

function startowa() {
        this.style.behavior='url(#default#homepage)'; 
	this.setHomePage('http://www.evr.com.pl/');
        }
function MI(i){i.src=i.src.replace('_0','_1')}
function MO(i){i.src=i.src.replace('_1','_0')}
function NW(u,w,h,s,r){return window.open(u,'',(w||h)?"height="+h+",width="+w+",status=no,toolbar=no,menubar=no,location=no,scrollbars="+s+",resizable="+r:'')}
function go(url){document.location.href = url}
function get(i){return document.getElementById(i)}
function ask(q,url){
  if(confirm(q)) go(url);
}

