

function FixIE()
{
	var showLevel = 0

	var create = function() {

		var iframe = $('<iframe frameborder="0" src="javascript:false;"></iframe>')
			.hide()
			.appendTo('body');

		if (window.floatWidget) {
			$(iframe[0].contentWindow.document).click(function() {floatWidget.closeActive(false)})
		}

		return iframe
	}

	window.$fixIE = null

	this.show = function() {
		//debugger
		showLevel++
		if (showLevel>0) this.doShow()
	}

	this.doShow = function() {

		if (!($.browser.msie && ($.browser.version < 7)))
			return;
		try {
		document.getElementsByName('selectcity_form')[0].style.display = 'none'
		} catch(e) {}
		/*

		if($fixIE == null) {
			$fixIE = create();
		}

		$fixIE.css({
			opacity: 0,
			position: 'absolute',
			height: $(document.body).height() + 'px',
			width: $(document.body).width() + 'px',
			zIndex: 99, // modal windows have zIndex:100 so they are over this frame
			width: '100%',
			top: 0,
			left: 0
		}).show();
		*/
	}

	this.hide = function() {
		showLevel--;
		if (showLevel <=0) this.doHide()
	}

	this.doHide = function() {
		try {
		document.getElementsByName('selectcity_form')[0].style.display = ''
		} catch(e) {}
		/*
		if($fixIE) {
			$fixIE.remove();
			$fixIE = null;
		}*/
	}
}


$(document).ready(function(){
    fixIE = new FixIE()
});
