function swfmovie(objectToDrawInID,objectID,w,h,objectUrl)
{
	var localObj;
	try
	{
		var localObj = eval("document.getElementById('" + objectToDrawInID + "')");
		localObj.innerHTML = "" + 
		"<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' WIDTH='" + w + "' HEIGHT='" + h + "' id='" + objectID + "'>" +
		"<PARAM NAME=movie VALUE='" + objectUrl + "'>" +
		"<PARAM NAME=quality VALUE=high>" +
		"<PARAM NAME=wmode VALUE=transparent>" +
"<PARAM NAME=allowFullScreen VALUE=true>" +
		"<EMBED name='" + objectID + "' wmode='transparent' src='" + objectUrl + "' quality='high' + WIDTH='" + w + "' HEIGHT='" + h + "' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></EMBED>" +
		"</OBJECT>";
	}
	catch(ex)
	{
	}
}

function swfmovie_not(objectToDrawInID,objectID,w,h,objectUrl)
{
	var localObj;
	try
	{
		var localObj = eval("document.getElementById('" + objectToDrawInID + "')");
		localObj.innerHTML = "" + 
		"<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' WIDTH='" + w + "' HEIGHT='" + h + "' id='" + objectID + "'>" +
		"<PARAM NAME=movie VALUE='" + objectUrl + "'>" +
		"<PARAM NAME=quality VALUE=high>" +
"<PARAM NAME=allowFullScreen VALUE=true>" +
		"<EMBED name='" + objectID + "' wmode='transparent' src='" + objectUrl + "' quality='high' + WIDTH='" + w + "' HEIGHT='" + h + "' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></EMBED>" +
		"</OBJECT>";
	}
	catch(ex)
	{
	}
}

function swfmovie_notoe(objectToDrawInID,objectID,w,h,objectUrl)
{
	var localObj;
		var localObj = eval("document.getElementById('" + objectToDrawInID + "')");
		localObj.innerHTML = "" + 
		"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='" + w + "' height='" + h + "' id='" + objectID + "' align='middle'><param name='movie' value='" + objectUrl + "' /><param name='Src' value='" + objectUrl + "'><param name='WMode' value='Transparent'><PARAM NAME='allowFullScreen' VALUE='true'><param name='Play' value='-1'><param name='Loop' value='-1'><embed name='" + objectID + "' src='" + objectUrl + "' quality='high' bgcolor='#ffffff' width='" + w + "' height='" + h + "' name='n_" + objectID + "' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";
}


function swfmovie_notoe2(objectToDrawInID,objectID,w,h,objectUrl)
{
	var localObj;
		var localObj = eval("document.getElementById('" + objectToDrawInID + "')");
		localObj.innerHTML = "" + 
		"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='" + w + "' height='" + h + "' id='" + objectID + "' align='middle'><param name='movie' value='" + objectUrl + "' /><param name='Src' value='" + objectUrl + "'><param name='Play' value='-1'><param name='Loop' value='-1'><PARAM NAME='allowFullScreen' VALUE='true'><embed name='" + objectID + "' src='" + objectUrl + "' quality='high' bgcolor='#ffffff' width='" + w + "' height='" + h + "' name='n_" + objectID + "' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";
}



	function setthelban(top){
var explorer
explorer = 1
if (navigator.userAgent.indexOf("Firefox") >= 0) 
{
	explorer = 0 	
}
else if (navigator.userAgent.indexOf("MSIE") >= 0)  
{
	explorer = 1
}
		if (document.body.clientWidth>850 && explorer == 1){
thetopop='';
for (i=1; i<=top; i++)
{
thetopop=thetopop+'../';
}
			document.getElementById('thelban').innerHTML='<IFRAME width="100" height="450" name="showbannerbanner" id="showbannerbanner" marginWidth="0" marginHeight="0" style="margin:0" FRAMEBORDER="0" SCROLLING="NO" align="center" SRC="'+thetopop+'thebanner.php"></IFRAME>';
	
			document.getElementById("themainf").style.left = "110";  
			document.getElementById("themainf").style.width = document.body.clientWidth-110;  
				
			document.getElementById("thelban").style.width = "100";
			document.getElementById("thelban").style.display ="inline";
		}
		else if (explorer == 1){
			document.getElementById("themainf").style.left = "0";  
			document.getElementById("themainf").style.width = "100%";  
				
			document.getElementById("thelban").style.width = "0";    
			document.getElementById("thelban").style.display = "none";   
		}
		
	}

	

function bookmarksite(what, url){
if (what=='1')
{
title='ימים - www.days.co.il';
}
else
{
title='';
}
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}


function replace(string,text,by) {
    var strLength = string.length, txtLength = text.length;
    if ((strLength == 0) || (txtLength == 0)) return string;

    var i = string.indexOf(text);
    if ((!i) && (text != string.substring(0,txtLength))) return string;
    if (i == -1) return string;

    var newstr = string.substring(0,i) + by;

    if (i+txtLength < strLength)
        newstr += replace(string.substring(i+txtLength,strLength),text,by);

    return newstr;
}


function getonb(name)
{
var carsarr = new Array("","articles","index","forums","boards","");
for (i=1; i<=5; i++)
{
thename=i+'_b';
if (thename==name)
{
document.getElementById(name).src='images/'+carsarr[i]+'_d.gif';
document.getElementById('atpic').src='images/'+i+'_at.gif';
}
else
{
document.getElementById(thename).src='images/'+carsarr[i]+'_k.gif';
}
}
}


  function rollload()
  {
	document.getElementById("PageLoad").style.top = ((document.body.clientHeight)/3) + document.body.scrollTop
   if (document.body.clientWidth>=850)
  {
  tothel = (((document.body.clientWidth)/2)-100);
  }
  else
  {
  tothel = ((document.body.clientWidth)/2)-150;
  }
  document.getElementById("PageLoad").style.left = tothel+'px';
  }