function ShowHide(Cell, Parent){
	switch (Cell.style.display){
	case "":
	{
		Cell.style.display = "none"
	}
	break
	case "none":
	{
		Cell.style.display = ""
	}
	break
	default:
		Cell.style.display = "none"
	}
		 	}
	function ChangeCell(Cell)
	{
		Cell.style.color="red"
	}
	function ChangeBack(Cell)
	{
	Cell.style.color=""
}

function initRollovers() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'imgover') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_on'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_on'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}
window.onload = initRollovers;

function OtworzMenu(strURL, pixW, pixH) {
	var sWinProps = "resizable=No,scrollbars=Yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width=" + pixW + ",height=" + pixH + ",top=15,left=15";
	window.open(strURL, "", sWinProps);
}



function MenuMOver(oTd) {
	if (!oTd.contains(event.fromElement)) {oTd.bgColor="#CCCCCC";}
}

function MenuMOut(oTd) {
	if (!oTd.contains(event.toElement)) {oTd.bgColor="#666666";}
}

function MenuOver(oTd) {
	if (!oTd.contains(event.fromElement)) {oTd.bgColor="#D6D7D9";}
}

function MenuOut(oTd) {
	if (!oTd.contains(event.toElement)) {oTd.bgColor="#F3F3F3";}
}
function languageOVER(oTd) {
	if (!oTd.contains(event.fromElement)) {oTd.bgColor="#999999";}
}

function languageOUT(oTd) {
	if (!oTd.contains(event.toElement)) {oTd.bgColor="#CCCCCC";}
}



function TableOver(oTd) {
	if (!oTd.contains(event.fromElement)) {oTd.bgColor="#D3DDCD";}
}

function TableOut(oTd) {
	if (!oTd.contains(event.toElement)) {oTd.bgColor="#FFFFFF";}
}

