 function dcPrintPage() { 
	 
	 var divTop1 = document.getElementById("interDivFrame");
	 var divTop2 = document.getElementById("interDiv");
    if(divTop1 != null) {
            divTop1.style.display = "none";
    }
	 if(divTop2 != null) {
            divTop2.style.display = "none";
    }
 }



 function dcBack() { 
	var url = window.location.href;
	url = url.replace("/Ext/Comp/ArticleLayout/CdaArticlePrintPreview/1,2506,","/articles/0,7340,");
	if (url.indexOf("?") == -1) url += "?";
	else url += "&";
	if (url.indexOf("dcStage") == -1)	url += "dcStage=890";
	window.location = url;
 }

function tplMaavaron()
{	
	dcAppendToAdPage("ynin=1&ynis=1");
	var interWidth, interHeight;

	if (!dcIE)
	{
		interWidth = window.innerWidth;
		interHeight = window.innerHeight;
	} else {
		interWidth = document.body.clientWidth;
		interHeight = document.body.clientHeight;
	}
	
	dcDebug("tplMaavaron : client width is " + interWidth + " and client height is " + interHeight,"info");

	if (window.scrollTo)
		scrollTo(0,0);

	dcCloseMaav = false;
	
	var interLeft = (interWidth - 800)/2;
	if (interLeft < 0)
	{
		interLeft = 0;
	}

	dcDebug("tplMaavaron : left margin is set to " + interLeft,"info");

	if (dcIE)
	{
		pos="absolute";
	} else {
		pos="fixed";
		interLeft = 0;
	}

	//blocking iframe
	document.write("<div id=\"interDivFrame\" align=\"center\" style=\"display:inline; top:0; left:0; position:absolute; z-index=999998; bgcolor=#FFFFFF\">");
	document.write("<IFRAME id=\"interstitialFrame\" MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER=0 SCROLLING=NO WIDTH=" + interWidth + " HEIGHT=" + interHeight + " SRC=\"\"></IFRAME></div>");

	document.writeln("<div id=\"interDiv\" align=\"center\" style=\"display:inline; top:0; left:0 ; position:"+pos+"; z-index=999999; bgcolor=#FFFFFF\">");
	document.writeln("<table  width=\"100%\" height=\"100%\" cellSpacing=0 cellPadding=0 bgcolor=#FFFFFF>");
	document.writeln("<tr><td height=10>&nbsp;</td></tr>");
	document.writeln("<tr><td align=\"center\" valign=top>");
	document.writeln("<TABLE dir=ltr style=\"TABLE-LAYOUT: fixed; z-index=99998\" cellSpacing=0 cellPadding=0 width=755 height=80 bgcolor=#FFFFFF><TBODY>");
	document.writeln("<TR>");
	document.writeln("<TD dir=ltr align=right width=548>");
	document.writeln("<table border=0 cellpadding=0 cellspacing=0 dir=rtl style='display:inline'><tr><td>");
	document.writeln("</td></tr></table>");
	document.writeln("</TD>");
	document.writeln("<TD width=11>&nbsp;</TD>");
	document.writeln("<TD width=2></TD>");
	document.writeln("<TD width=11>&nbsp;</TD>");
	document.writeln("<TD width=158>");
	document.writeln("</TD></TR>");
	//Flash Table
	document.writeln("<TR>");
	document.writeln("<td colspan=6 align=\"center\" width=\"699\" height=100%\">");
	document.writeln("<table width=\"755\" height=100% cellpadding=0 cellspacing=0 valign=top>");

	//Starting strip
	document.writeln("<tr><td><img src=\"http://i.total-media.net/0.gif\" height=\"10\" width=\"699\" border=\"0\"></td></tr>");
	document.writeln("<tr><td><table width=755 cellspacing=0 cellpadding=0><tr><td>");
	document.writeln("</td><td height=20></td><td ></td></tr></table></td></tr>");
	document.writeln("<tr><td align=center>");
	document.write("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" ID=inter WIDTH=" + dcWidth + " HEIGHT=" + (dcHeight+50) + ">");
 	document.write("<param name=movie value=\"" + dcSWF + "?" + dcParamName + "=" + dcClickUrl + "&anTarget=_blank\">");
 	document.write("<PARAM NAME=quality VALUE=autohigh>"); 
 	document.write("<PARAM NAME=wmode  VALUE=window>");
	document.write("<PARAM NAME=allowScriptAccess VALUE=always>");
	document.write("<EMBED SRC=\"" + dcSWF + "?" + dcParamName + "=" + dcClickUrl + "&anTarget=_blank\" QUALITY=autohigh ");
    document.write("NAME=inter allowScriptAccess=always swLiveConnect=TRUE WIDTH=" + dcWidth + " HEIGHT=" + (dcHeight+50) + " TYPE=\"application/x-shockwave-flash\" ");
    document.write("PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED>");
	document.writeln("</OBJECT>");
	document.writeln("</td></tr>");
	document.writeln("<tr><td align=center>");
	document.write("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" ID=inter2 WIDTH=" + dcWidth + " HEIGHT=350>");
	document.write("<param name=movie value=\"http://i.total-media.net/yn/img/WhiteBanner.swf\">");
	document.write("<PARAM NAME=wmode  VALUE=window>");
	document.write("<EMBED SRC=\"http://i.total-media.net/yn/img/WhiteBanner.swf\" QUALITY=autohigh ");
	document.write("NAME=inter allowScriptAccess=always swLiveConnect=TRUE WIDTH=100% HEIGHT=" + (dcHeight+50) + " TYPE=\"application/x-shockwave-flash\" ");
    document.write("PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED>");
	document.writeln("</OBJECT>");
	document.writeln("</td></tr>");
	document.writeln("</table>");
	document.writeln("</td></TR></TBODY></TABLE>");
	document.writeln("</td></tr></table>");
	document.writeln("</div>");
	
	if (dcIE)
	{
		noScrollIE();
	} else { noScrollFF(); }
	
	dcHideInpMaav = true;
	setTimeout(delayClose,3000);
	setTimeout(GoBack,8000);

}
