function previous()
{
if (location.hash=="#top")
history.go(-2)
else history.back()
}
mtop01a=new Image(); mtop01a.src="templates/fotopolis/images/top_04.gif"
mtop01b=new Image(); mtop01b.src="templates/fotopolis/images/toph_04.gif"

mtop02a=new Image(); mtop02a.src="templates/fotopolis/images/top_05.gif"
mtop02b=new Image(); mtop02b.src="templates/fotopolis/images/toph_05.gif"

mtop03a=new Image(); mtop03a.src="templates/fotopolis/images/top_06.gif"
mtop03b=new Image(); mtop03b.src="templates/fotopolis/images/toph_06.gif"

mtop04a=new Image(); mtop04a.src="templates/fotopolis/images/top_07.gif"
mtop04b=new Image(); mtop04b.src="templates/fotopolis/images/toph_07.gif"

mtop05a=new Image(); mtop05a.src="templates/fotopolis/images/top_08.gif"
mtop05b=new Image(); mtop05b.src="templates/fotopolis/images/toph_08.gif"

mtop06a=new Image(); mtop06a.src="templates/fotopolis/images/top_09.gif"
mtop06b=new Image(); mtop06b.src="templates/fotopolis/images/toph_09.gif"

ml1a=new Image(); ml1a.src="templates/fotopolis/images/menu1.gif"
ml1b=new Image(); ml1b.src="templates/fotopolis/images/menu1_2.gif"

ml2a=new Image(); ml2a.src="templates/fotopolis/images/menu2.gif"
ml2b=new Image(); ml2b.src="templates/fotopolis/images/menu2_2.gif"

ml3a=new Image(); ml3a.src="templates/fotopolis/images/menu3.gif"
ml3b=new Image(); ml3b.src="templates/fotopolis/images/menu3_2.gif"

ml4a=new Image(); ml4a.src="templates/fotopolis/images/menu4.gif"
ml4b=new Image(); ml4b.src="templates/fotopolis/images/menu4_2.gif"

ml5a=new Image(); ml5a.src="templates/fotopolis/images/menu5.gif"
ml5b=new Image(); ml5b.src="templates/fotopolis/images/menu5_2.gif"

ml6a=new Image(); ml6a.src="templates/fotopolis/images/menu6.gif"
ml6b=new Image(); ml6b.src="templates/fotopolis/images/menu6_2.gif"



function aktyw(obr1,obr2){
document.obr=obr1
document.obr.src=obr2.src
}

function go(x){
	var j=x.options[x.selectedIndex].value;	
	if(j != "")
	        parent.location = j;
}

function powrot(){
if (location.hash=="#gora")
history.go(-2)
else history.back()}



/*
Gradual-Highlight Image Script II- 
By J. Mark Birenbaum (birenbau@ugrad.cs.ualberta.ca)
Permission granted to Dynamicdrive.com to feature script in archive
For full source to script, visit http://dynamicdrive.com
*/

nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

/* object - image to be faded (actual object, not name);
 * destop - destination transparency level (ie 80, for mostly solid)
 * rate   - time in milliseconds between trasparency changes (best under 100)
 * delta  - amount of change each time (ie 5, for 5% change in transparency)
 */

function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  //do this so I can take a string too
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
        
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}

function otworz(nazwapliku, wys, szer) { 
okno=open(nazwapliku,"DisplayWindow","menubar=no,scrollbars=yes,toolbars=yes,resizable=no,width="+wys+",height="+szer+""); } 