/* xxxxxxxxx	INTERSTITIAL	xxxxxxxx */

function tplMaavaron()
{	
	dcAppendToAdPage("ynin=1&ynis=1");
	var interWidth, interHeight;
	dcSpecialElements += ",ads.ozen";
	var dcPgURL = parent.document.URL;
	if ( dcPgURL.indexOf("cognos") > -1) return;

	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=728x90&params.styles=yn.channels.jumbotop&pos=" + dcInterstitialPos,"force");
	} else
	{
		showScriptAd(1,"ads.top","ft=728x90&params.styles=yn.channels.jumbotop","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 dir=rtl style='display:inline'>");
	document.writeln("<tr><td><a href='http://www.ynet.co.il/home/0,7340,L-2,00.html'>");
	document.writeln("<img src='http://i.total-media.net/yn/img/hor_news.gif' title='חדשות - ynet' alt='חדשות - ynet' width=30 height=80 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-6,00.html'>");
	document.writeln("<img src='http://i.total-media.net/yn/img/hor_economy.gif' title='כלכלה - ynet' alt='כלכלה - ynet' width=30 height=80 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-437,00.html'>");
	document.writeln("<img src='http://i.total-media.net/yn/img/hor_consumerism.gif' title='צרכנות - ynet' alt='צרכנות - ynet' width=30 height=80 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-3,00.html'>");
	document.writeln("<img src='http://i.total-media.net/yn/img/hor_sport.gif' title='ספורט - ynet' alt='ספורט - ynet' width=30 height=80 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-538,00.html'>");
	document.writeln("<img src='http://i.total-media.net/yn/img/hor_culture.gif' title='תרבות ובידור - ynet' alt='תרבות ובידור - ynet' width=30 height=80 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-1208,00.html'>");
	document.writeln("<img src='http://i.total-media.net/yn/img/hor_health.gif' title='בריאות - ynet' alt='בריאות - ynet' width=30 height=80 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-544,00.html'>");
	document.writeln("<img src='http://i.total-media.net/yn/img/hor_computers.gif' title='מחשבים - ynet' alt='מחשבים - ynet' width=30 height=80 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-550,00.html'>");
	document.writeln("<img src='http://i.total-media.net/yn/img/hor_vehicle.gif' title='רכב - ynet' alt='רכב - ynet' width=30 height=80 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-598,00.html'>");
	document.writeln("<img src='http://i.total-media.net/yn/img/hor_tourism.gif' title='תיירות - ynet' alt='תיירות - ynet' width=30 height=80 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-975,00.html'>");
	document.writeln("<img src='http://i.total-media.net/yn/img/hor_food.gif' title='׳׳•׳›׳ - ynet' alt='׳׳•׳›׳ - ynet' width=30 height=80 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-4232,00.html'>");
	document.writeln("<img src='http://i.total-media.net/yn/img/hor_video.gif' title='וידאו - ynet' alt='וידאו - ynet' width=30 height=80 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-1361,00.html'>");
	document.writeln("<img src='http://i.total-media.net/yn/img/hor_encyclopedia.gif' title='אנציקלופדיה - ynet' alt='אנציקלופדיה - ynet' width=30 height=80 ");	
	document.writeln("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-813,00.html'>");
	document.writeln("<img src='http://i.total-media.net/yn/img/hor_community.gif' title='קהילות - ynet' alt='קהילות - ynet' width=30 height=80 border=0></a></td>");
	document.writeln("<td><img src='http://i.total-media.net/0.gif' width=7 height=1 border=0></td>");
	document.writeln("</tr></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>");
	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 width=158><a href='http://www.ynet.co.il/'><IMG src=\"http://i.total-media.net/yn/img/CENTRAL_logo.gif\" border=0></a>");
	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 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+20) + ">");
 	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+20) + " 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+20) + " 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;
	}
}

