function fav() 
{
	var newT = document.createTextNode('Adauga la favorite');
	var s = document.getElementById('fav');
	if (window.sidebar) 
	{
		s.appendChild(newT);
		s.style.color = '#000000';
		s.style.textDecoration = 'underline';
		s.onmouseover = function(){this.style.textDecoration = 'none';};
		s.onmouseout = function(){this.style.textDecoration = 'underline';};
		s.style.cursor = 'pointer';
		s.onclick = function() {window.sidebar.addPanel('CrocoLoto.ro - Joaca loto GRATIS',self.location,'')};
	} 
	else if (window.external) 
	{
		s.appendChild(newT);
		s.style.color = '#000000';
		s.style.textDecoration = 'underline';
		s.style.cursor = 'pointer';
                s.onmouseover = function(){this.style.textDecoration = 'none';};
		s.onmouseout = function(){this.style.textDecoration = 'underline';};
		s.onclick = function() {window.external.AddFavorite(self.location, 'CrocoLoto.ro - Joaca loto GRATIS')};
	} 
	else if (window.opera) 
	{
		s.appendChild(newT);
		s.style.color = '#000000';
		s.style.textDecoration = 'underline';
		s.style.cursor = 'pointer';
		s.onclick = function() {
		     var e = document.createElement('a');
		     e.setAttribute('href',self.location);
		     e.setAttribute('title','CrocoLoto.ro - Joaca loto GRATIS!');
		     e.setAttribute('rel','sidebar');
		     e.click();
		}
	}
}

var pageLoaded = 0;
window.onload = function() {pageLoaded = 1;}

function loaded(i,f) 
{
	if (document.getElementById && document.getElementById(i) != null) 
		f();
	else if (!pageLoaded) 
		setTimeout('loaded(\''+i+'\','+f+')',100);
}
loaded('fav',fav);
