var prevHeight = 0;

function correctionHTML() {
    	jQuery.ajax({
  		url: document.location.pathname+'?type=3',
  		success: function(data) {
  			jQuery('.banner').html(data);	
  		}
	});
	jQuery(window).load(function(){
		mekletVietuFooterim();

		jQuery(window).resize(function(){
			if(prevHeight != jQuery(window).height()){
				mekletVietuFooterim();
				prevHeight = jQuery(window).height();
			}
		})
	})

	if(jQuery.browser.name=='msie' && (parseInt(jQuery.browser.version)==6 || parseInt(jQuery.browser.version)==7) ){
		jQuery("div.menu_item_cell").each(function (i) {
			jQuery(this).removeClass("m_item_cell_inl_blck");
			jQuery(this).addClass("m_item_cell_flt_left");
		});
		jQuery("div.footer").each(function (i) {
			jQuery(this).addClass("clear_both_div");
		});
	}
}

function mekletVietuFooterim()
{
	//jQuery("div.footer").css({"position":"static", "display":"inline"});
	var left_bottom=500;
	var footer_height=0;

	var win_he=jQuery(window).height();
	left_bottom=win_he;
	if(win_he < (jQuery('div.root').outerHeight()+10))
	{
		left_bottom=jQuery('div.root').outerHeight()+10;
	}

	//footer_height=jQuery("div.footer").outerHeight() + jQuery("div.footer").offset().top;

	var v1=jQuery("div.footer").outerHeight();
	//var v2= jQuery("div.footer").width()/2;
	if (v1<=35) v1=35;
	jQuery("div.footer").css({"top":(left_bottom - v1) + "px","left":"84px","position":"absolute"});
}

