


window.onload = function () {
	
	var img = new Array();
	preloadimage(img);
	
	
//bubbles end ****************************************************************
}


function preloadimage(url) {
	var img = new Array();
	for(var i=0; i<url.length; i++) {
		img[img.length]=new Image();
		img[img.length-1].src=url[i];
	}
}

function torol(ell,mi) {
	if(mi=='nev') {
		objer=document.getElementById('nev');
		if (ell==1) { 
			if(objer.value=='' || objer.value==':: Felhasználónév ::') { objer.value=''; }
			objer.style.backgroundColor="#ffffff"; 
		}
		if (ell==2) {
			if (objer.value=='') { objer.value=":: Felhasználónév ::"; objer.style.backgroundColor="#e7ff70"; }
		}
	} else
	if(mi=='jelszo') {
		objer=document.getElementById('jelszo');
		if (ell==1) {
			if(objer.value=='' || objer.value==':: jelszo ::') { objer.value=''; }
			objer.style.backgroundColor="#ffffff"; 
		}
		if (ell==2) {
			if (objer.value=='') { objer.value=":: jelszo ::"; objer.style.backgroundColor="#e7ff70"; }
		}
	}

}

function beir() {
 url="http://www.lakeshungary.com/beiras.html";
 window.open(url,"beiras","width=420,height=440,top=53,left=40,scrollbars=1,resizable=0");
}


function mezo(param,color) {
	document.getElementById(param).style.backgroundColor=color;
}

function showpic(x,y,id) {
	url="http://www.lakeshungary.com/ch/chigo/"+id+".html";
	window.open(url,"kep"+id,"width="+x+",height="+y+",top=20,left=408,scrollbars=1,resizable=1");
}
function showpic2(x,y,id) {
	url="http://www.lakeshungary.com/co/comer/"+id+".html";
	window.open(url,"kep"+id,"width="+x+",height="+y+",top=20,left=408,scrollbars=1,resizable=1");
}
function showpic3(x,y,id) {
	url="http://www.lakeshungary.com/ac/actionclima/"+id+".html";
	window.open(url,"kep2"+id,"width="+x+",height="+y+",top=20,left=408,scrollbars=1,resizable=1");
}
function showpic4(x,y,id) {
	url="http://www.lakeshungary.com/nf/legfuggony/"+id+".html";
	window.open(url,"kep2"+id,"width="+x+",height="+y+",top=20,left=408,scrollbars=1,resizable=1");
}
function showpic5(x,y,id) {
	url="http://www.lakeshungary.com/mc/folyadekhutok/"+id+".html";
	window.open(url,"kep2"+id,"width="+x+",height="+y+",top=20,left=408,scrollbars=1,resizable=1");
}






