function DynLayer(id,nestref,frame) {
        if (!is.ns5 && !DynLayer.set && !frame) DynLayerInit()
        this.frame = frame || self
        if (is.ns) {
                if (is.ns4) {
                        if (!frame) {
                                if (!nestref) var nestref = DynLayer.nestRefArray[id]
                                if (!DynLayerTest(id,nestref)) return
                                this.css = (nestref)? eval("document."+nestref+".document."+id) : document.layers[id]
                        }
                        else this.css = (nestref)? eval("frame.document."+nestref+".document."+id) : frame.document.layers[id]
                        this.elm = this.event = this.css
                        this.doc = this.css.document
                }
                else if (is.ns5) {
                        this.elm = document.getElementById(id)
                        this.css = this.elm.style
                        this.doc = document
                }
                this.x = this.css.left
                this.y = this.css.top
                this.w = this.css.clip.width
                this.h = this.css.clip.height
        }
        else if (is.ie) {
                this.elm = this.event = this.frame.document.all[id]
                this.css = this.frame.document.all[id].style
                this.doc = document
                this.x = this.elm.offsetLeft
                this.y = this.elm.offsetTop
                this.w = (is.ie4)? this.css.pixelWidth : this.elm.offsetWidth
                this.h = (is.ie4)? this.css.pixelHeight : this.elm.offsetHeight
        }
        this.id = id
        this.nestref = nestref
        this.obj = id + "DynLayer"
        eval(this.obj + "=this")
}
function DynLayerMoveTo(x,y) {
        if (x!=null) {
                this.x = x
                if (is.ns) this.css.left = this.x
                else this.css.pixelLeft = this.x
        }
        if (y!=null) {
                this.y = y
                if (is.ns) this.css.top = this.y
                else this.css.pixelTop = this.y
        }
}
function DynLayerMoveBy(x,y) {
        this.moveTo(this.x+x,this.y+y)
}
function DynLayerShow() {
        this.css.visibility = (is.ns4)? "show" : "visible"
}
function DynLayerHide() {
        this.css.visibility = (is.ns4)? "hide" : "hidden"
}
DynLayer.prototype.moveTo = DynLayerMoveTo
DynLayer.prototype.moveBy = DynLayerMoveBy
DynLayer.prototype.show = DynLayerShow
DynLayer.prototype.hide = DynLayerHide
DynLayerTest = new Function('return true')

// DynLayerInit Function
function DynLayerInit(nestref) {
        if (!DynLayer.set) DynLayer.set = true
        if (is.ns) {
                if (nestref) ref = eval('document.'+nestref+'.document')
                else {nestref = ''; ref = document;}
                for (var i=0; i<ref.layers.length; i++) {
                        var divname = ref.layers[i].name
                        DynLayer.nestRefArray[divname] = nestref
                        var index = divname.indexOf("Div")
                        if (index > 0) {
                                eval(divname.substr(0,index)+' = new DynLayer("'+divname+'","'+nestref+'")')
                        }
                        if (ref.layers[i].document.layers.length > 0) {
                                DynLayer.refArray[DynLayer.refArray.length] = (nestref=='')? ref.layers[i].name : nestref+'.document.'+ref.layers[i].name
                        }
                }
                if (DynLayer.refArray.i < DynLayer.refArray.length) {
                        DynLayerInit(DynLayer.refArray[DynLayer.refArray.i++])
                }
        }
        else if (is.ie) {
                for (var i=0; i<document.all.tags("DIV").length; i++) {
                        var divname = document.all.tags("DIV")[i].id
                        var index = divname.indexOf("Div")
                        if (index > 0) {
                                eval(divname.substr(0,index)+' = new DynLayer("'+divname+'")')
                        }
                }
        }
        return true
}
DynLayer.nestRefArray = new Array()
DynLayer.refArray = new Array()
DynLayer.refArray.i = 0
DynLayer.set = false



// BrowserCheck Object
function BrowserCheck() {
        var b = navigator.appName
        if (b=="Netscape") this.b = "ns"
        else if (b=="Microsoft Internet Explorer") this.b = "ie"
        else this.b = b
        this.version = navigator.appVersion
        this.v = parseInt(this.version)
        this.ns = (this.b=="ns" && this.v>=4)
        this.ns4 = (this.b=="ns" && this.v==4)
        this.ns5 = (this.b=="ns" && this.v==5)
        this.ie = (this.b=="ie" && this.v>=4)
        this.ie4 = (this.version.indexOf('MSIE 4')>0)
        this.ie5 = (this.version.indexOf('MSIE 5')>0)
        this.min = (this.ns||this.ie)
}
is = new BrowserCheck()




function newImage(arg) {
        if (document.images) {
                rslt = new Image();
                rslt.src = arg;
                return rslt;
        }
}

function changeImages() {
        if (document.images && (preloadFlag == true)) {
                for (var i=0; i<changeImages.arguments.length; i+=2) {
                        document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
                }
        }
}

var preloadFlag = false;
function preloadImages() {
        if (document.images) {
                menu_03_over = newImage("images/menu_03-over.jpg");
                menu_04_over = newImage("images/menu_04-over.jpg");
                menu_05_over = newImage("images/menu_05-over.jpg");
                menu_06_over = newImage("images/menu_06-over.jpg");
                menu_07_over = newImage("images/menu_07-over.jpg");
                menu_08_over = newImage("images/menu_08-over.jpg");       
                bok_01_over = newImage("images/bok_01-over.jpg");
                bok_02_over = newImage("images/bok_02-over.jpg");
                bok_03_over = newImage("images/bok_03-over.jpg");
                bok_04_over = newImage("images/bok_04-over.jpg");
                bok_05_over = newImage("images/bok_05-over.jpg");
				bok_w_over = newImage("images/bok_w-over.jpg");                                                                       
                bok_06_over = newImage("images/bok_06-over.jpg");                   
                main_03_over = newImage("images/main_03-over.jpg");
				main_031_over = newImage("images/main_031-over.jpg");
                main_04_over = newImage("images/main_04-over.jpg");
                main_05_over = newImage("images/main_05-over.jpg");
                kula01_over = newImage("images/szkola_angielski_03.jpg");       
                kula02_over = newImage("images/szkola_niemieckii_03.jpg");     
                kula03_over = newImage("images/egzaminy_angielski_10.jpg");    
                kula04_over = newImage("images/egzaminy_niemiecki_10.jpg");        
                kula05_over = newImage("images/biuro_english_09.jpg");  
                kula06_over = newImage("images/biuro_deutsch_09.jpg");
                kula07_over = newImage("images/biuro_polski_09.jpg");   
				bok_w_over = newImage("images/bok_w-over.jpg");
				ufek_03_over = newImage("images/ufek_03-over.jpg");
		        ufek_06_over = newImage("images/ufek_06-over.jpg");
		        ufek_09_over = newImage("images/ufek_09-over.jpg");
		        ufek_12_over = newImage("images/ufek_12-over.jpg");
                preloadFlag = true;
        }
}
function openPictureWindow_Fever(imageName,alt) {
        newWindow = window.open("","okno","width=20,height=20,left=50,top=50");
        newWindow.document.open();
        newWindow.document.write('<html><title>'+alt+'</title>');
        newWindow.document.write('<script TYPE="text/javascript">');
        newWindow.document.write('function dopasuj() {szer = document.fotografia.width;wys = document.fotografia.height;top.window.resizeTo(szer+10,wys+60);  napis.style.display = "none"; napis2.style.display = ""}');
        newWindow.document.write('</script>');        
        newWindow.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"  onLoad="dopasuj();">'); 
        newWindow.document.write('<center>');        
        newWindow.document.write('<div id="napis"><p style="font-family: Verdana,Tahoma,Arial; font-size: 11px; color: #ff0000; margin:10;">Otwieram plik...</p></div>');          
        newWindow.document.write('<img src='+imageName+' name="fotografia" alt='+alt+'>'); 
        newWindow.document.write('<div id="napis2" style="display: none" align="center"><a href="javascript: window.print()" style="font-family: Verdana,Tahoma,Arial; font-size: 11px; color: #555555; margin:10;">[ Drukuj ]</a>&nbsp;&nbsp;<a href="javascript: window.close()" style="font-family: Verdana,Tahoma,Arial; font-size: 11px; color: #ff0000; margin:10;">[ Zamknij ]</a></div>');                           newWindow.document.write('</center>');          
        newWindow.document.write('</body></html>');
        newWindow.document.close();
        newWindow.focus();
}

function mmLoadMenus() {
if (window.mm_menu_0526221927_0) return;

    window.mm_menu_0526221915_0 = new Menu("root",127,17,"Verdana, Arial, Helvetica, sans-serif",11,"#F3F7EC","#83B27E","#015B28","#015B28","center","middle",3,0,1000,-5,7,true,true,true,0,true,true);
    mm_menu_0526221915_0.addMenuItem("Statut","location='index.php?akcja=strona&id=39'");
    mm_menu_0526221915_0.addMenuItem("Metoda nauczania","location='index.php?akcja=strona&id=40'");
    mm_menu_0526221915_0.hideOnMouseOut=true;
    mm_menu_0526221915_0.bgColor='#F3F7EC';
    mm_menu_0526221915_0.menuBorder=1;
    mm_menu_0526221915_0.menuLiteBgColor='#F3F7EC';
    mm_menu_0526221915_0.menuBorderBgColor='#B1C1B7';
    
    window.mm_menu_0526221927_0 = new Menu("root",127,17,"Verdana, Arial, Helvetica, sans-serif",11,"#F3F7EC","#83B27E","#015B28","#015B28","center","middle",3,0,1000,-5,7,true,true,true,0,true,true);
    mm_menu_0526221927_0.addMenuItem("język angielski","location='index.php?akcja=jezyki&jezyk=angielski'");
    mm_menu_0526221927_0.addMenuItem("język niemiecki","location='index.php?akcja=jezyki&jezyk=niemiecki'");
    mm_menu_0526221927_0.hideOnMouseOut=true;
    mm_menu_0526221927_0.bgColor='#F3F7EC';
    mm_menu_0526221927_0.menuBorder=1;
    mm_menu_0526221927_0.menuLiteBgColor='#F3F7EC';
    mm_menu_0526221927_0.menuBorderBgColor='#B1C1B7';
    
    
    
    window.mm_menu_0526223620_0 = new Menu("root",127,17,"Verdana, Arial, Helvetica, sans-serif",11,"#F3F7EC","#83B27E","#015B28","#015B28","center","middle",3,0,1000,-5,7,true,true,true,0,true,true);
    mm_menu_0526223620_0.addMenuItem("język&nbsp;angielski","location='index.php?akcja=egzaminy&jezyk=angielski'");
    mm_menu_0526223620_0.addMenuItem("język&nbsp;niemiecki","location='index.php?akcja=egzaminy&jezyk=niemiecki'");
    mm_menu_0526223620_0.hideOnMouseOut=true;
    mm_menu_0526223620_0.bgColor='#F3F7EC';
    mm_menu_0526223620_0.menuBorder=1;
    mm_menu_0526223620_0.menuLiteBgColor='#F3F7EC';
    mm_menu_0526223620_0.menuBorderBgColor='#B1C1B7';
    
    window.mm_menu_0526223725_0 = new Menu("root",79,17,"Verdana, Arial, Helvetica, sans-serif",11,"#F3F7EC","#83B27E","#015B28","#015B28","center","middle",3,0,1000,-5,7,true,true,true,0,true,true);
    mm_menu_0526223725_0.addMenuItem("English","location='http://www.germanica.com.pl/en/en_index.htm'");
    mm_menu_0526223725_0.addMenuItem("Deutsch","location='http://www.germanica.com.pl/deutsch/'");
    mm_menu_0526223725_0.addMenuItem("Polski","location='http://www.germanica.com.pl'");
    mm_menu_0526223725_0.hideOnMouseOut=true;
    mm_menu_0526223725_0.bgColor='#F3F7EC';
    mm_menu_0526223725_0.menuBorder=1;
    mm_menu_0526223725_0.menuLiteBgColor='#F3F7EC';
    mm_menu_0526223725_0.menuBorderBgColor='#B1C1B7';

    mm_menu_0526223725_0.writeMenus();
}

function otworzOkno(plik,nazwa,a,b) {
        oknoNowe = window.open(plik,nazwa,'resizable=yes scrollbars=yes, width='+a+', height='+b+'')
}

function bookmarkit(){ 
        window.external.addFavorite('http://www.germanica.pl','Germanica') 
}




