function fixpng () {
	/*
	$$('img[src$=png]').each( function (imgEl) {
		var real_src = imgEl.getProperty('src');
		
		imgEl.setStyles({
			'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'" + real_src + "\', sizingMethod='scale')",
			'width': imgEl.getWidth(),
			'height': imgEl.getHeight()
		}).setProperty('src', '/scheme/default/script/empty.gif');
	});
	*/
}

var myMenu = new Array (false, false, false);

function showPopUpMenu (num) {
	if (!myMenu[num]) {
		myMenu[num] = true;
		document.getElementById ('popup_' + num).style.display = 'block';
	}
}

function hidePopUpMenu (num) {
	if (myMenu[num]) {
		myMenu[num] = false;
		setTimeout ('closePopUp (' + num + ');', 100);
	}
}

function closePopUp (num) {
	if (!myMenu[num]) {
		document.getElementById ('popup_' + num).style.display = 'none';
	}
}

window.onload = function () {
	
	if (navigator.appName == 'Microsoft Internet Explorer') fixpng ();
	
	var my = $(document.body).getElements ('div[rel=iis_Content]');
		
	if (my.length) {
		
		var cx = 0;
		var bx = null;
		
		for (cx = 0; cx != my.length; cx ++) {
			
			bx = parseInt (my[cx].getStyle ('height'));
			
			if (bx < 450) {
				if (navigator.appName == 'Microsoft Internet Explorer') my[cx].setStyle ('height', '460px');
				else my[cx].setStyle ('height', '450px');
			}
							
		}
		
	}
	
}

function showInfoTable () {
	im = window.open ('sizes.php','MRLRAZM','top=50,left=50,width=600,height=480,toolbar=0,scrollbars=1,statusbar=0,resizable=0,menu=0,status=0');
	im.focus();
}

var imgWindow = null;

function openImage (img, w, h) {
	if (imgWindow) imgWindow.close ();
	imgWindow = window.open (img, 'MY_IMAGE', 'noresize, width=' + w + ', height=' + h);
	imgWindow.focus ();
}