//(c) Copyright Managed Computer Systems (MCS) '2002-03, scripted by Danek.

function Zoom(url,x,y){
	window.open(url,"", "height=" + y + ", width=" + x +", toolbar=0")
}


var IE4 = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
//if (IE4) {
	var m, menu_txt
	var menuMove = 0;
	var licz = 0;
	//var y = 0;
	var sm = 0;
	var empLogin = false;
	var searchOpen = false;
	var Nav4 = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
	var IE4 = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
//}else{location.replace("../default.htm")}


function Start(){
	if (Nav4) {} 
	else if (IE4) {

	motto.style.top = document.body.scrollTop + document.body.clientHeight + 10;
//		motto.style.top =  document.body.scrollTop - 1200;


	}
	menuPoz();
}
function menuPoz(){
	var mottoFrom, mottoTo, move, wait;
	if (Nav4) {} 
	else if (IE4) {
		wait = 200;
		mottoFrom = parseInt (motto.style.top, 10);
		mottoTo = document.body.scrollTop + document.body.clientHeight - 340;
		if (mottoFrom != mottoTo) {
			move = Math.ceil(Math.abs(mottoTo-mottoFrom) / 10)
			if (mottoTo < mottoFrom) {move = - move}
			motto.style.top = parseInt (motto.style.top, 10) + move;
			wait = 10;
		}
	}
	setTimeout ("menuPoz()", wait);
}


var sendinginprogress=false;
function mailSubmit(){
//		window.alert ('This form is currently inactive.')
	if(!sendinginprogress){
		var kom = ""
		if (mailForm.mEmail.value.length <= 0) {kom = "Please enter your e-mail address."}
		else if (mailForm.mEmail.value.indexOf("@") < 0 || mailForm.mEmail.value.indexOf(".") < 1) {kom = "Please enter correct e-mail address."}
		if (mailForm.mName.value.length <= 0) {kom = "Please enter your name."};
		if (mailForm.mComments.value.length <= 0) {kom = "Please enter your comments."};
		if (kom.length > 0) {
			window.alert (kom)
		} else {
			mailForm.mOK.value="OK"
			window.open('SendMail.htm','mailwndw',"height=250,width=350,status=yes,toolbar=no,menubar=no,location=no");
			setTimeout("mailForm.submit()",10);
		}
	}
}
function userLogin(){
	guzik.style.visibility = "hidden";
	verification.style.visibility = "visible";
	setTimeout ("LoginError()", 2000);
}
function LoginError(){
	window.alert('Access Denied!');
	verification.style.visibility = "hidden";
	guzik.style.visibility = "visible";
}
