function getobj(){
	var rb;
	var d = document;
	var body = d.getElementsByTagName("body")[0];
	var menu = d.getElementById("menu");
	var menuimgs = menu.getElementsByTagName("img");
	var scroll = d.getElementById("contentmenuscroll");
	var scrollimgs = scroll.getElementsByTagName("img");
	var pic = d.getElementById("pic");
	var picimgs = pic.getElementsByTagName("img");

	var aa_bubble = d.getElementById("aa_bubble");
	var aa_bubble_img = aa_bubble.getElementsByTagName("img");
	var aa_bubbles = d.getElementById("aa_bubbles");
	var aa_bubbles_img = aa_bubbles.getElementsByTagName("img");

	for( i = 0; i <aa_bubble_img.length; i++ ) {

		aa_bubble_img[0].onmouseover=function(){
			this.src = "./gfx/" + aa_bubble.id + "_on.png";
			aa_bubbles.style.display="block";
		}

		aa_bubble_img[0].onmouseout=function(){
			this.src = "./gfx/" + aa_bubble.id + ".png";
			aa_bubbles.style.display="none";
		}

	}

	var box = d.getElementsByClassName("box");
	var boxh6 = d.getElementsByTagName("h6");

	for( i = 0; i < box.length; i++ ) {
		box[i].id = "box"+ (i+1);
	}

	for( i = 0; i < boxh6.length; i++ ) {
		boxh6[i].id = "boxh6"+ (i+1);
		var thisboxh6 = d.getElementById(boxh6[i].id);
		var thisboxh6imgs = thisboxh6.getElementsByTagName("img");

		for( k = 0; k < thisboxh6imgs.length; k++ ) {

			thisboxh6imgs[k].onmouseover=function(){
				//this.style.cursor = "pointer";
				this.style.cursor="url(../gfx/zoom.cur), url(./gfx/zoom.cur),pointer";
				if (document.currentStyle) {
					this.style.filter ="Alpha(opacity='100');";
				} else {
					this.style.opacity="1";

				}

				thisimg = this.parentNode.parentNode.childNodes[1].childNodes[3];	// DOM OK in real browsers
				if (!thisimg) {
					thisimg = this.parentNode.parentNode.childNodes[0].childNodes[1];	// kib@szott IE6
				}
				thissrc = this.src.replace("/th_","/");
				thisimg.src = thissrc;

			}

			thisboxh6imgs[k].onmouseout=function(){
				if (document.currentStyle) {
					this.style.filter ="Alpha(opacity='70');";
				} else {
					this.style.opacity="0.7";
				}
			}
		}
		//alert(boxh6[i].parentNode.childNodes[1].className); // whitespace !!!
	}

	var zoombox = d.getElementById("zoombox");
	var zoomimgbox = d.getElementById("zoomimgbox");
	var zoomimg = d.getElementById("zoomimg");

	// scrollimages
	for( i = 0; i < scrollimgs.length; i++ ) {
		scrollimgs[i].id = "si"+ (i+1);

		scrollimgs[i].onmouseover=function(){
			this.style.borderColor="#f49900";
			this.style.cursor="pointer";
			if (document.currentStyle) {
				this.style.filter ="Alpha(opacity='100');";
			} else {
				this.style.opacity="1";
			}
			thissrc = this.src.replace("/th_","/");

			if (!zoombox) {} else {
				zoombox.style.display = "block";
				d.getElementById("zoomimg").src = thissrc;
				var zih =Math.ceil(this.height * 3.39);

				zoomimgbox.style.display = "block";
				zoomimg.style.display = "block";
				zoomimg.style.height = zih + "px";
				zoombox.style.height = zih + 30 + "px";
				//alert(zih);
			}
		}

		scrollimgs[i].onmouseout=function(){
			this.style.borderColor="#37309c";
			if (document.currentStyle) {
				this.style.filter ="Alpha(opacity='70');";
			} else {
				this.style.opacity="0.7";
			}
			if (zoombox) {
				zoombox.style.display = "none";
				zoomimgbox.style.display = "none";
				zoomimg.style.display = "none";
				zoomimg.src = "./gfx/dummy.png";
			}
		}

		scrollimgs[i].onclick=function(){
			document.location.href="./a_vilag_korul.html";
		}
	}
}


window.onload=function() {
	if(document.getElementById && document.createTextNode){
		getobj();
	}
}