function tplMaavaron()
{	
	dcAppendToAdPage("ynin=1&ynis=1");
	var interWidth, interHeight;
	dcSpecialElements += ",ads.ozen";
	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");

	dcLockAd("ads.top");
	dcLockAd("ads.rich");
	
	if ("undefined" != typeof(dcInterstitialPos) && dcInterstitialPos != null)
	{
	    if ("undefined" != typeof(dcDoubleJumbo) && dcDoubleJumbo == 1) showScriptAd(1,"ads.top","ft=683x120&ynin=1&pos=1&params.styles=yn.channels.premiumjumbo");
		else showScriptAd(1,"ads.top","ft=683x60&params.styles=yn.main.jumbo&pos=" + dcInterstitialPos,"force");
	} else
	{
		showScriptAd(1,"ads.top","ft=683x60&params.styles=yn.main.jumbo","force");
	}

	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="relative";
		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 bgcolor=#FFFFFF><TBODY>");
	document.writeln("<TR>");
	document.writeln("<TD vAlign=top align=right width=20><SPAN style=\"Z-INDEX: 99997; POSITION: absolute\">");
	document.writeln("</SPAN></TD>");
	document.writeln("<TD dir=ltr align=right width=548>");
 	document.writeln("<table border=0 cellpadding=0 cellspacing=0 style='display:inline' align=left>");
 	document.writeln("<TBODY><TR><TD>");
	document.writeln("<TABLE cellSpacing=0 cellPadding=0 border=0>");
	document.writeln("<TBODY><TR>");

	document.writeln("<TD width=158><A href=\"http://www.ynetnews.com\"><IMG title=\"Israel News\" alt=\"Israel News\" src=\"http://www.ynetnews.com/images/ECENTRAL_logo.gif\" border=0></A></TD>");
	document.writeln("<TD width=11>&nbsp;</TD>");
	document.writeln("<TD width=2 bgColor=black></TD>");
	document.writeln("<TD width=11>&nbsp;</TD>");
	document.writeln("<TD><A href=\"http://www.ynetnews.com/home/0,7340,L-3082,00.html\"><IMG title=\"Israel News\" height=81 alt=\"Israel News\" src=\"http://www.ynetnews.com/images/hor_news_eng.gif\" width=30 border=0></A></TD>");
	document.writeln("<td><img src='http://i.total-media.net/0.gif' width=10 height=1 border=0></td>");
	document.writeln("<TD><A href=\"http://www.ynetnews.com/home/0,7340,L-3084,00.html\"><IMG title=\"Israel Opinion\" height=81 alt=\"Israel Opinion\" src=\"http://www.ynetnews.com/images/hor_opinion_eng.gif\" width=30 border=0></A></TD>");
	document.writeln("<td><img src='http://i.total-media.net/0.gif' width=10 height=1 border=0></td>");
	document.writeln("<TD><A href=\"http://www.ynetnews.com/home/0,7340,L-3085,00.html\"><IMG title=\"Israel Money\" height=81 alt=\"Israel Money\" src=\"http://www.ynetnews.com/images/hor_money_eng.gif\" width=30 border=0></A></TD>");
	document.writeln("<td><img src='http://i.total-media.net/0.gif' width=10 height=1 border=0></td>");
	document.writeln("<TD><A href=\"http://www.ynetnews.com/home/0,7340,L-3086,00.html\"><IMG title=\"Israel Culture\" height=81 alt=\"Israel Culture\" src=\"http://www.ynetnews.com/images/hor_culture_eng.gif\" width=30 border=0></A></TD>");
	document.writeln("<td><img src='http://i.total-media.net/0.gif' width=10 height=1 border=0></td>");
	document.writeln("<TD><A href=\"http://www.ynetnews.com/home/0,7340,L-3443,00.html\"><IMG title=Jewish height=81 alt=Jewish src=\"http://www.ynetnews.com/images/hor_jewish_eng.gif\" width=30 border=0></A></TD>");
	document.writeln("<td><img src='http://i.total-media.net/0.gif' width=10 height=1 border=0></td>");
	document.writeln("<TD><A href=\"http://www.ynetnews.com/home/0,7340,L-3087,00.html\"><IMG title=\"Israel Travel\" height=81 alt=\"Israel Travel\" src=\"http://www.ynetnews.com/images/hor_travel_eng.gif\" width=30 border=0></A></TD>");
	document.writeln("<td><img src='http://i.total-media.net/0.gif' width=10 height=1 border=0></td>");
	document.writeln("<TD><A href=\"http://www.ynetnews.com/home/0,7340,L-4676,00.html\"><IMG title=\"Israel Activism\" height=81 alt=\"Israel Activism\" src=\"http://www.ynetnews.com/images/hor_activism_eng.gif\" width=30 border=0></A></TD>");
	document.writeln("<td><img src='http://i.total-media.net/0.gif' width=10 height=1 border=0></td>");
	document.writeln("<TD><A href=\"http://www.judaicawebstore.com/ynetnews\" target=_blank><IMG title=Shop height=81 alt=Shop src=\"http://www.ynetnews.com/images/hor_shop_eng.gif\" width=30 border=0></A></TD>");
	document.writeln("<td><img src='http://i.total-media.net/0.gif' width=10 height=1 border=0></td>");
	document.writeln("<TD><A href=\"http://www.ynet.co.il/home/0,7340,L-8,00.html\"><IMG height=81 src=\"http://www.ynetnews.com/images/hor_hebrew.gif\" width=30 border=0></A></TD>");
	document.writeln("<td><img src='http://i.total-media.net/0.gif' width=10 height=1 border=0></td>");
  document.writeln("</TR></TBODY></TABLE></TD>");
	document.writeln("<TD align=right></TD></TR></TBODY></TABLE>");

	document.writeln("<STYLE>A.topbarblue:link {	COLOR: #006}");
	document.writeln("A.topbarblue:visited {	COLOR: #006}");
	document.writeln("A.topbarblue:active {	COLOR: #006}");
	document.writeln("A.topbarblue:hover {	COLOR: #006}");
	document.writeln("A.topbarblue:link {	COLOR: #f00}");	
	document.writeln("A.brightgrey:link {	COLOR: #7d7f7e}");
	document.writeln("A.brightgrey:visited {	COLOR: #7d7f7e}");
	document.writeln("A.brightgrey:active {	COLOR: #7d7f7e}");
	document.writeln("A.brightgrey:hover {	COLOR: #f00}");
	document.writeln("</STYLE>");
	document.writeln("</TD></TR>");

	//Flash Table
	document.writeln("<TR>");
	document.writeln("<td colspan=12 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 style='background: #D6DBFF url( http://i.total-media.net/yn/img/left_igul.gif) no-repeat top left; width:10px; height:20px;'>");
	document.writeln("</td><td bgcolor=#D6DBFF height=20></td><td style='background: #D6DBFF url( http://i.total-media.net/yn/img/right_igul.gif) no-repeat top right; width:10px; height:20px;'></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 + ">");
 	document.write("<param name=FlashVars value=\"" + 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;
	dcHideInputs();
	dcHideSpecials();
	setTimeout(delayClose,3000);
	setTimeout(GoBack,8000);
	dcMaavaronReportCollapseClickUrl = dcClickUrl;
}

function delayClose()
{
	dcCloseMaav = true;
}

function GoBack()
{
	var interDiv = document.getElementById("interDiv");
	var interDivFrame = document.getElementById("interDivFrame");
	
	if (interDiv != null && interDivFrame != null)
	{
		if (dcIE)
		{
			scrollIE();
		}else{ scrollFF(); }

		interDiv.style.display = "none";
		interDivFrame.style.display = "none";
	}
	dcHideInpMaav = false;
	dcShowInputs();
	dcShowSpecials();
	if (!dcMaavaronReportCollapseClickUrlOn)
	{
		dcMaavaronReportCollapseClickUrl = dcMaavaronReportCollapseClickUrl.replace("%3A",":");
		dcMaavaronReportCollapseClickUrl = dcMaavaronReportCollapseClickUrl.replace("%26Redirect%3D","&Redirect=");

		dcReportEvent(dcMaavaronReportCollapseClickUrl,"collapse");
		dcMaavaronReportCollapseClickUrlOn = true;
	}
}

