var unload = "false";
document.onclick = doc_onclick;
document.onmouseover = doc_onmouseover;
document.onmouseout = doc_onmouseout;

function doc_onclick(event) {
	if (top.document.getElementById("c_o_n_t_e_n_t") != null) top.hideMenu();
}

function doc_onmouseover(event) {
	var srcElement;
	if (top.is != null && top.is.b == "ie" && event == null) {
		event = window.event;
		srcElement = window.event.srcElement;
	} 
	if (top.is != null && top.is.b == "ns" && event.relatedTarget != null) {
		srcElement = event.originalTarget;
	}
//alert(document.getElementById);
	if (top.document.getElementById("hintFrame") == null && document.getElementById("divEndOfPage") != null) {
      var tempIFrame=top.document.createElement('iframe');
      tempIFrame.setAttribute('id','hintFrame');
      tempIFrame.setAttribute('src','/hint.html');
      tempIFrame.setAttribute('frameBorder','0');
      tempIFrame.setAttribute('onMouseOver','breakHiding()');
      tempIFrame.setAttribute('onMouseOut','hintHide()');
      tempIFrame.setAttribute('scrolling','no');
      tempIFrame.style.visibility='hidden';
      tempIFrame.style.position='absolute';
      tempIFrame.style.left='0';
      tempIFrame.style.top='0';
      tempIFrame.style.width='100';
      tempIFrame.style.height='200';
      tempIFrame.style.zIndex='200';
      tempIFrame.style.border='1px solid black';
      IFrameObj = document.getElementById("divEndOfPage").appendChild(tempIFrame);
	  
      var tempIFrame_1=top.document.createElement('iframe');
      tempIFrame_1.setAttribute('id','hintFrameWait');
      tempIFrame_1.setAttribute('src','/hint_wait.htm');
      tempIFrame_1.setAttribute('frameBorder','0');
      tempIFrame_1.setAttribute('allowTransparency','false');
      tempIFrame_1.setAttribute('scrolling','no');
      tempIFrame_1.style.visibility='hidden';
      tempIFrame_1.style.position='absolute';
      tempIFrame_1.style.left='0';
      tempIFrame_1.style.top='0';
      tempIFrame_1.style.width='30';
      tempIFrame_1.style.height='30';
      tempIFrame_1.style.zIndex='201';
      IFrameObj_1 = document.getElementById("divEndOfPage").appendChild(tempIFrame_1);	  
	}

	if (srcElement != null) {
		if (top.document.getElementById("hintFrame") != null) {
			if (top.hintShow != null) {
				top.hintShow(event,srcElement)
			}
		};
	}
}

function doc_onmouseout(event) {
	if (event != null && event.srcElement != null && top.hintFrame != null) {
		top.hintHide(event.srcElement);
	}
}

function zoomChange() {
	if (top.document.frames["m_a_i_n_m_e_n_u"].zoomFactor != null) {
		zoomFactor = top.document.frames["m_a_i_n_m_e_n_u"].zoomFactor;
	} else {
		zoomFactor = 1;
	}
	window.clearInterval(intervalID);
	resize();
}
function wysokosc() {
}
function onUnload () {
	unload = "true";
}

function sleep( ms ) {
     window.showModalDialog("javascript:document.writeln(\"<script>window.setTimeout( function () { window.close(); }, " + ms + ");<\/script>\")");
}

function wo(url,w,h) {
	var myReg = /(\/|\.|,|\?|\&|=)/g
	var win = url.replace(myReg,"");
	if (w == null) w=640;
	if (h == null) h=480;
	t=parseInt((screen.height/2)-(h/2));
	l=parseInt((screen.width/2)-(w/2));
	top.COMM = window.open(url,win,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,top="+t+",left="+l+",width="+w+",height="+h);
}

function getObjInnerText(obj){ 
	if (obj.innerText) { // IE; 
		return obj.innerText; 
	} 
	else { 
		if (obj.textContent) { 
			return obj.textContent; 
		}
	} 
} 