/* CLOSE POPIN EMAILER */
function emailFadeOut()
{
	var element = window.parent.document.getElementById("comparisonMask");
	doMyFadeWithElement(element, 'out', 50);

	element = window.parent.document.getElementById("EmailIFrameDiv");
	doMyFadeWithElement(element, 'out', 100);

	setTimeout("clearIFrameContents()", 1000);
}

/* Clear popin IFrame contents */
function clearIFrameContents() {
	var element = window.parent.document.getElementById("EmailIFrame");
	element.src = '';
}


/* CLOSE POPIN GRAPH */
function popinFadeOutGraph()
{
	var element = window.parent.document.getElementById("comparisonMask");
	doMyFadeWithElement(element, 'out', 50);

	element = window.parent.document.getElementById("GraphIFrameDiv");
	doMyFadeWithElement(element, 'out', 100);

	setTimeout("clearIFrameContents()", 1000);
}

/* Clear popin IFrame contents */
function clearIFrameContents() {
	var element = window.parent.document.getElementById("GraphIFrame");
	element.src = '';
}

/* CLOSE POPIN DETAIL */
function popinFadeOut()
{
	var element = window.parent.document.getElementById("comparisonMask");
	doMyFadeWithElement(element, 'out', 50);

	element = window.parent.document.getElementById("DetailIFrameDiv");
	doMyFadeWithElement(element, 'out', 100);

	setTimeout("clearIFrameContents()", 1000);
}

/* Clear popin IFrame contents */
function clearIFrameContents() {
	var element = window.parent.document.getElementById("DetailIFrame");
	element.src = '';
}


/* CLOSE POPIN CALENDAR */
function popinFadeOutCalendar()
{
	/*var element = window.parent.document.getElementById("comparisonMask");
	doMyFadeWithElement(element, 'out', 50);*/

	element = window.parent.document.getElementById("CalendarIFrame");
	doMyFadeWithElement(element, 'out', 100);

	setTimeout("clearIFrameContents()", 1000);
}

/* Clear popin IFrame contents */
function clearIFrameContents() {
	var element = window.parent.document.getElementById("CalendarIFrame");
	element.src = '';
}

/* CLOSE POPIN */
function popinFadeOut()
{
	var element = window.parent.document.getElementById("comparisonMask");
	doMyFadeWithElement(element, 'out', 50);

	element = window.parent.document.getElementById("OverlayIFrameDiv");
	doMyFadeWithElement(element, 'out', 100);

	setTimeout("clearIFrameContents()", 1000);
}

/* Clear popin IFrame contents */
function clearIFrameContents() {
	var element = window.parent.document.getElementById("OverlayIFrame");
	element.src = '';
}
