function CaricaFoto(img)
{
	foto1= new Image();
	foto1.src=(img);
	Controlla(img);
}

function Controlla(img)
{
	if ((foto1.width!=0)&&(foto1.height!=0))
	{
		viewFoto(img);
	}
	else
	{
		funzione="Controlla('"+img+"')";
		intervallo=setTimeout(funzione,20);
	}
}

function viewFoto(img)
{
	largh=foto1.width+20;
	altez=foto1.height+20;
	stringa="width="+largh+",height="+altez;
	finestra=window.open(img,"",stringa);
}

function showoldflash(flash)
{
	document.write(flash);
}

function showflash(f,w,h,bgc)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + w + '" height="' + h + '" id="page" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="' + f + '"/>\n');
	document.write('<param name="quality" value="high"/>\n');
	document.write('<param name="bgcolor" value="' + bgc + '"/>\n');
	document.write('<param name="wmode" value="transparent"/>\n');
	document.write('<embed src="' + f + '" quality="high" bgcolor="' + bgc + '" width="' + w + '" height="' + h + '" name="page" wmode="transparent" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n')
	document.write('</object>\n');
}

function _getDate()
{
	dateObj = new Date();
	DayIndex = dateObj.getDay();
	_Year = dateObj.getYear();
	MonthIndex = dateObj.getMonth();
	_Date = dateObj.getDate();
	var yom="יום";

	DaysofWeek = new Array()
	DaysofWeek[0]="ראשון";
	DaysofWeek[1]="שני";
	DaysofWeek[2]="שלישי";
	DaysofWeek[3]="רביעי";
	DaysofWeek[4]="חמישי";
	DaysofWeek[5]="שישי";
	DaysofWeek[6]="שבת";

	Months = new Array()
	Months[0]="בינואר";
	Months[1]="בפברואר";
	Months[2]="במרץ";
	Months[3]="באפריל";
	Months[4]="במאי";
	Months[5]="ביוני";
	Months[6]="ביולי";
	Months[7]="באוגוסט";
	Months[8]="בספטמבר";
	Months[9]="באוקטובר";
	Months[10]="בנובמבר";
	Months[11]="בדצמבר";

	dayString = " יום " +  DaysofWeek[DayIndex] + " " +  _Date + " "  + " " + Months[MonthIndex]  + " " + _Year;
	document.write(dayString);
}


var x,y
var timer
var i_fadestrength=5
var step=1
var maxfontsize=30
var fontsizefactor=maxfontsize/100
var content

function cursorposition(e)
{
	x=event.clientX+document.body.scrollLeft
	y=event.clientY+document.body.scrollTop
}

function showmessage(whatmessage, whatfont, whatcolor)
{
	if (document.all)
	{
		content="<nobr><font color="+whatcolor+" face="+whatfont+">"+whatmessage+"</font><nobr>"
		ring.innerHTML=content
		resizemessage()
	}
}

function resizemessage()
{
	if (document.all)
	{
		ring.filters.alpha.opacity=Math.floor(100-i_fadestrength)
		if (i_fadestrength>=120)
		{
			i_fadestrength=0;
			step=1
		}
		document.all.ring.style.visibility="visible"
		document.all.ring.style.fontSize=i_fadestrength*fontsizefactor
		document.all.ring.style.posLeft=x-(Math.floor(i_fadestrength/1.3*fontsizefactor))
		document.all.ring.style.posTop=y-(Math.floor(i_fadestrength/1.4*fontsizefactor))
		step+=1.5
		i_fadestrength+=step
		timer=setTimeout("resizemessage()",50)
	}
}

function hidemessage(e)
{
	if (document.all)
	{
		clearTimeout(timer)
		document.all.ring.style.visibility="hidden"
		i_fadestrength=5
		step=1
	}
}

if (document.all)
{
	document.onmousemove=cursorposition;
}

if (document.all)
{
	document.write("<div id='ring' style='position:absolute;font-family:Verdana;filter:alpha(opacity=0);'></div>")
	document.write("<div style='position:relative;'>")
}