function initPng()
{
	var images = document.getElementsByTagName("img");
	if (images){
		for (var i = 0; i < images.length; i++){
			if ((images[i].src.indexOf(".png")) != -1){
				var srcname = images[i].src.replace(new RegExp('(.*)\/(.*)?\.png'),"$1/$2");
				images[i].parentNode.style.display = "inline-block"
				images[i].style.visibility = "hidden";
				images[i].parentNode.style.filter = "progid:dximagetransform.microsoft.alphaimageloader(src='"+ srcname +".png',sizingmethod='crop');"
			}
		}
	}
}

if (window.attachEvent && !window.opera){
	window.attachEvent("onload",initPng);
}
$(document).ready(function() {

$(".print").show("slow");

$("#select_raz li:not(.select)").hide();	
$("#select_raz li.select").click(function(){
	$("#select_raz li:not(.select)").slideToggle("slow");
	$("#select_raz").toggleClass("raz_submenu");
	return false;
	});
	$(document).click(function(){
		$("#select_raz li:not(.select)").slideUp("slow",function(){
			$("#select_raz").removeClass("raz_submenu");
			});
		});

	//$(".item-box table tr:even td").not(".item-box table.NewsCalTable tr td").addClass("odd");
	
	$("#n_right_column img").not(".not_ram").each(function(){
	    height = ($(this).height()+30);
	    width = ($(this).width()+30);
	    if ($(this).height()>0 && $(this).width()>0) {
		align = $(this).attr("align");
		$(this).css('padding', '15px');
		//$(this).css('margin', '10px');
		$(this).wrap("<span class='img_wrap' style='float: " + align + "'><span><span><span><span><span><span><span style='overflow: hidden; _overflow: visible; height: 1%'></span></span></span></span></span></span></span></span>");
		if ($(this).attr("title")) {
		    $(this).after("<p class='title'>" + $(this).attr("title") + "</p>");
		    $(this).css('paddingBottom', '5px');
		    };
		};
	    });
	
	
	//
	//$("#n_right_column img").wrap("<span class='img_wrap'><span><span><span><span><span><span><span style='height: 200px; width: 75px'></span></span></span></span></span></span></span></span>");
	//
	});