.modalWindow_overlay {
	position:fixed;
	width:100%;
	height:100%;
	top: 0px;
	left: 0px;
	z-index:1100;
}
.modalWindow_popup {
	top: 50%;
	left: 50%;
	position: absolute;
	transition: height 1s linear, width 1s linear, margin-top 1s linear, margin-left 1s linear, opacity 1s linear;
	box-sizing: content-box;
}
.modalWindow_popup.notransition {
	transition: none;
}
div.modalWindow_content {
	overflow: auto;
}
.modalWindow_content {
	width:100%;
	height:100%;
	position: absolute;
}
.modalWindow_closeBtn {
	position: absolute;
	z-index: 2;
	cursor: pointer;
}
.modalWindow_loadingTxt {
	position: absolute;
	width: 100%;
	top: 50%;
	text-align: center;
	margin-top: -10px;
	line-height: 20px;
}

/*Either show or hide the loading text*/
.modalWindow_loadingTxt {
	display:none;
}
.modalWindow_overlay.loading .modalWindow_loadingTxt {
	display:block;
}

/*Either show or hide the iframe (depending on whether its loading or not)*/
.modalWindow_overlay.loading .modalWindow_content {
	display:none;
}

/************** Themes follow **************/

/** Mootools theme **/
.modalWindow_t_moo .modalWindow_closeBtn {
	background: url(/styles/images/mb_Components/close.png) no-repeat;
	width: 24px;
	height: 24px;
	top: -28px;
	right: -28px;
}
.modalWindow_t_moo.modalWindow_overlay {
	background-color:rgba(0, 0, 0, 0.19);
}
.modalWindow_t_moo .modalWindow_popup {
	border: 22px solid rgb(22, 22, 22);		/* For IE */
	border: 22px solid rgba(22, 22, 22, 0.77);
	border-radius: 20px;
	background: white;
	background-clip: content-box;
}

/** Chrome theme **/
.modalWindow_t_chrome .modalWindow_closeBtn {
	background: url(/styles/images/close_btn.png) no-repeat;
	width: 21px;
	height: 21px;
	top: 7px;
	right: 13px;
}
.modalWindow_t_chrome .modalWindow_closeBtn:hover {
	background: url(/styles/images/close_btn_hover.png) no-repeat;
}
.modalWindow_t_chrome.modalWindow_overlay {
	background-color:rgba(255, 255, 255, 0.7);
}
.modalWindow_t_chrome .modalWindow_popup {
	box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2);
	border-radius: 3px;
    border: 2px white solid;
	background-color: white;
}
.modalWindow_t_chrome.modalWindow_overlay.IE8 {	/*IE fix*/
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7FFFFFFF, endColorstr=#7FFFFFFF);	/*IE fix*/
}
.modalWindow_t_chrome.IE8 .modalWindow_popup {	/*IE fix*/
	border: grey solid 3px;	/*IE fix*/
}

/** Double border theme **/
.modalWindow_t_doubleB .modalWindow_closeBtn {
	background: url(/styles/images/close_btn.png) no-repeat;
	width: 21px;
	height: 21px;
	top: 3px;
	right: 3px;
}
.modalWindow_t_doubleB .modalWindow_closeBtn:hover {
	background: url(/styles/images/close_btn_hover.png) no-repeat;
}
.modalWindow_t_doubleB.modalWindow_overlay {
	background-color:rgba(0, 0, 0, 0.05);
}
.modalWindow_t_doubleB .modalWindow_popup {
	border: #666 double 5px;
	border-radius: 20px;
	background: white;
	background-clip: content-box;
}
.modalWindow_t_doubleB.modalWindow_overlay.IE8 {	/*IE fix*/
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7FFFFFFF, endColorstr=#7FFFFFFF);	/*IE fix*/
}

/** Orange border theme **/
.modalWindow_t_orange_border .modalWindow_closeBtn {
	width: 22px;
	height: 22px;
	top: 35px;
	right: 25px;
	background: url(/styles/images/close_btn_2.png) no-repeat;
	background-size: cover;
}
.modalWindow_t_orange_border .modalWindow_closeBtn:hover {
	background: url(/styles/images/close_btn_2_hover.png) no-repeat;
	background-size: cover;
}
.modalWindow_t_orange_border.modalWindow_overlay {
	background-color:rgba(0, 0, 0, 0.05);
}
.modalWindow_t_orange_border .modalWindow_popup {
	border: 10px solid #ec8a49;
	border-radius: 10px !important;
	background: white;
	background-clip: content-box;
}
.modalWindow_t_orange_border.modalWindow_overlay.IE8 {	/*IE fix*/
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7FFFFFFF, endColorstr=#7FFFFFFF);	/*IE fix*/
}