function evOnload(){
	window.expandableSections=new ExpandableSections()
	window.expandableSections.sectionPosition={left:127,top:-50,width:316,height:500}
	var emb=new Embeder()
	emb.addAttribute("id","topSWF")
	emb.addAttribute("width",773)
	emb.addAttribute("height","100%")
	emb.addAttribute("file","/_fla/Top.swf")
	emb.addAttribute("wmode","transparent")
	emb.addVariable("isHTML","true")
	emb.addVariable("lang",lang)
	emb.addVariable("miasto",miasto)
	for(var i=0;i<lokalizacje.length;i++){
		emb.addVariable("miasto_"+i,lokalizacje[i].join(","))
	}
	imagesSets={}
	imagesSets.krakow=["krakow_0","krakow_1","krakow_2"]
	imagesSets.krakow2=imagesSets.krakow
	//imagesSets.bydgoszcz=imagesSets.krakow
	imagesSets.gdansk=imagesSets.krakow
	imagesSets.gdynia=imagesSets.krakow
	//imagesSets.lodz=["lodz_0","lodz_1","lodz_2"]
	imagesSets.sopot=["sopot_0","sopot_1","sopot_2"]
	//imagesSets.zakopane=imagesSets.krakow
	imagesSets.warszawa=imagesSets.krakow
	//imagesSets.poznan=imagesSets.krakow
	for(var i=0;i<imagesSets[miasto].length;i++){//alert(imagesSets[miasto][i])
		emb.addVariable("image_"+i,"/resources/top/"+imagesSets[miasto][i]+".jpg")
	}
	emb.assignToElement("topSWFDiv")

if(ocenFile!=""){
	var embOp=new Embeder();
	embOp.addAttribute("id","ocenSWF")
	embOp.addAttribute("width",130)
	embOp.addAttribute("height",220);
	embOp.addAttribute("file","/_fla/Ocen_"+lang+".swf")
	embOp.addAttribute("wmode","transparent")
	embOp.assignToElement("ocenDiv");
}
	
	if(miasto=="gdynia" && lang=="pl"){
		var wynosOp=new Embeder();
		wynosOp.addAttribute("width",140)
		wynosOp.addAttribute("height",140);
		wynosOp.addAttribute("file","/_fla/Wynosy.swf")
		wynosOp.addAttribute("wmode","transparent")
		wynosOp.addAttribute("quality","best")
		wynosOp.assignToElement("wynosDiv");
	}
	var rotator=new BanerRotator()
	for(var i=0;i<banners.length;i++){
		rotator.addBaner(banners[i][0],banners[i][2],"flash",{width:125,height:125,file:"/resources/sweet_messages/"+banners[i][1]});
	}
	rotator.assign("reklama")
	var aAr=document.getElementsByTagName("a");
	for(var i=0;i<aAr.length;i++){//alert("hit0 "+aAr[i].getAttribute("class"));break
		if(aAr[i].getAttribute("className")=="menu-l1" || aAr[i].getAttribute("class")=="menu-l1"){
		var theA=aAr[i]
		if(theA.firstChild.getAttribute("src").indexOf("_1_")>-1 || theA.firstChild.getAttribute("src").indexOf("menu_")>-1){
		
		if(theA.firstChild.getAttribute("src").indexOf("menu_")>-1){//dla menu
		theA.onclick=new Function("window.expandableSections.showSection(1)")
			if(theA.firstChild.getAttribute("src").indexOf("_3_")>-1){//current
				theA.onmouseout=new Function()
			}else{
				var ovIm=theA.firstChild.getAttribute("src").replace(/_1_/,"_2_")
				theA.onmouseover=new Function("this.firstChild.src='"+ovIm+"';")
				theA.onmouseout=new Function("this.firstChild.src='"+theA.firstChild.getAttribute("src")+"';")
			}
		}else{
			var ovIm=theA.firstChild.getAttribute("src").replace(/_1_/,"_2_")
			theA.onmouseover=new Function("this.firstChild.src='"+ovIm+"';")
			theA.onmouseout=new Function("this.firstChild.src='"+theA.firstChild.getAttribute("src")+"';")
		}
		
		}
		}
	}
	for(var i=0;i<onLoadFunctionsNames.length;i++){
	eval(onLoadFunctionsNames[i]+"()")
	}
}
window.onload=evOnload
onLoadFunctionsNames=[]
function topSWF_DoFSCommand(command, args) {
	var fDiv=document.getElementById("topSWFDiv")
	//alert(command)
	switch(command){
	case 'rozwijanie':
	fDiv.style.height="416px";
	break;
	case 'zwijanie':
	fDiv.style.height="127px";
	break;
	}
}