	var wiwix,wiwiy;
	
	var ie_g = {
		for_100height: function () {
//			alert(1);
			if (self.innerHeight) {
			
//				wiwix = self.innerWidth;
				wiwiy = self.innerHeight;
				
				} else if (document.documentElement && document.documentElement.clientHeight) {
//					wiwix = document.documentElement.clientWidth;
					wiwiy = document.documentElement.clientHeight;
					
				} else if (document.body) {
//					wiwix = document.body.clientWidth;
					wiwiy = document.body.clientHeight;
					
				}
			
			document.getElementById('ajax_common_content').style.height = "auto";
			
				pipip = document.getElementById('ajax_common_content').clientHeight 
					+ document.getElementById('ajax_flash_auter').clientHeight 
					+ document.getElementById('ggg').clientHeight
					+ document.getElementById('bottom').clientHeight;

				bzbzbz = wiwiy - pipip - 20; //document.getElementById('body').clientHeight;
//				bzbzbz = wiwiy - document.getElementById('body').clientHeight;
				
				if (bzbzbz >= 0) { //pipip < wiwiy) {
					wino = document.getElementById('ajax_common_content').clientHeight + bzbzbz;
			//		alert(wino);
					document.getElementById('ajax_common_content').style.height = wino + "px";
				} else {
					
				}
		}	
		
	
	
	} 
	
//	window.onresize = ie_g.for_100height;
/*	
window.addEvent("resize", function() {
//	alert(1);
	ie_g.for_100height();
});
	*/
window.addEvent("domready", function() {
	return '';
	var lightbox = new vlLightbox($$('a.lightbox'));
//     	if(pofig_na_start_page == 0) {
//		swfobject.embedSWF("menu2.swf", "ajax_flash", "100%", "400", "9.0.0", "/lib/swfobject/expressInstall.swf", null, {menu:"false", wmode:"opaque"});
	//	alert('э');
		
		
		flashka = new Swiff('menu2.swf', {
		    id: 'ajax_flash6', container: $('ajax_flash'),
		    width: '100%', height: 400,
		    params: {
		        wmode: 'opaque'
		        ,bgcolor: '#cccc99'
		    },
		    vars: {
		    	id: page_id,
		    	c_name: page_name
		    	// ,link:cur_url
		    }
		    ,events: {
		    	gotoPage: function(link) {
		    		SWFAddress.setValue(link);
		    	}
		    }
		  /*  callBacks: {
		        href: myOnloadFunc
		    }*/
		});

		if (document.getElementById('ajax_flash_auter') != undefined) {
			document.getElementById('ajax_flash_auter').style.height = "430px";
		}
	//	ie_g.for_100height();
		
		
		
//   	}
});
	
var ajax_overlay_class = new Class({
	overlay:new Element('div',{'class':'ajax_overlay'}).fade(0.5),
	showOverlay:function(options){
		document.getElementById('status_load').style.display = 'block';
		var pos = $('ajax_common_content').getCoordinates();
		var top = pos.top;
		if( Browser.Engine.trident != 'undefined') top += $(document.body).getScroll().y;
		document.getElementById('status_load').style.top = top + 100 + 'px';
		this.overlay.setStyles({
			height: getScrollHeight() - top - 100+'px',
			top: top+'px',
			display: 'block'
		}).inject(document.body);
		this.overlay.fade(0.5);
	},
	hideOverlay:function(){
		$('status_load').style.display = 'none';
		this.overlay.setStyle('height','1px').setStyle('display','none');
	}
});

var ajax_overlay = new ajax_overlay_class;
