

function pisz() {
document.write("TEST");
}



function help_win($param)
{
$window='elisa-common/help/html/helper.php?param=' + $param ;
myWin = window.open($window,'displayWindow','width=600,height=400,status=no,resizable=yes,toolbar=no,menu=no');
}




//
// Chmurki answer gay'a
//


var loaded = 0;
var gotlayers = 0;
var lastbutton='top';

NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;

function moveLayers() {
	if (gotlayers) {
		if (NS4) {
			screenWidth = window.innerWidth;
//			document.layers['answerGuy'].left = screenWidth-350;
		} else {

			screenWidth = document.body.clientWidth + 18;
			screenHeight = document.body.clientHeight + 18;
//			document.all['answerGuyCloud'].style.pixelLeft = answerGuyPic.xpos; 
			document.all['answerGuyCloud'].style.pixelTop = screenHeight-250+document.body.scrollTop;
			document.all['answerGuyPic'].style.pixelTop = screenHeight-120+document.body.scrollTop;
//			alert("asjdas" + answerGuyJPG.x );
		}
	}
}

function popUp(menuName,on) {
	if (gotlayers) {
		if (on) {
			moveLayers();
			if (NS4) {
				document.layers[menuName].visibility = "show";
			} else {
				document.all[menuName].style.visibility = "visible";
			}
		} else {
			if (NS4) {
				document.layers[menuName].visibility = "hide";
			} else {
				document.all[menuName].style.visibility = "hidden";
			}
		}
	}
}

function LoadImgs () {
	if (document.images) {


		loaded = 1;
	}
}

function change(Name,No) {
	if (document.images && (loaded == 1) && (document[Name])) {
		document[Name].src = eval("b_" + Name + No + ".src");
	}
	if (No == 1) {
		if (gotlayers) {
			popUp('answerGuyCloud',false);
		}
		if (Name != 'mirr') {
			change('mirr',0);
		}
		if (Name != 'qref') {
			change('qref',0);
		}
		if (Name != 'sear') {
			change('sear',0);
		}
		lastbutton = Name;
	}
}

function changebullet(Name,No) {
	if (document.images && (loaded == 1)) {
		document[Name].src = eval("b_bullet" + No + ".src");
	}
}

function hide() {
	if (document.images && (loaded == 1)) {
		change(lastbutton,0);
	}
}

function nop()
{

}

LoadImgs();


if (NS4) {
	gotlayers = (document.layers.length == 3) ? 1 : 0;
}
if (IE4) {
	gotlayers = 1;
}


