/*
	tableruler()
	written by Chris Heilmann for alistapart.
	enables a rollover of rows for each table with the classname "hlrows"
*/

function tableruler()
	{
		var tables=document.getElementsByTagName('table');
		for (var i=0;i<tables.length;i++)
		{
			if(tables[i].className=='b')
			{
				var trs=tables[i].getElementsByTagName('tr');
				for(var j=0;j<trs.length;j++)
				{
						trs[j].onmouseover=function(){this.className='b'; return true}
						trs[j].onmouseout=function(){this.className='';return true}
				}
			}
		}

}


function hp()
{
	if((navigator.appName == "Microsoft Internet Explorer")&&(navigator.appVersion >= "4.0"))
	{
		document.body.style.value = "cursor:arrow";
		document.body.style.behavior="url(#default#homepage)";
		document.body.setHomePage(self.location);
	}
	else { alert("Can't set. Please, do It manually."); }
}

function fp()
{
	if((navigator.appName == "Microsoft Internet Explorer")&&(navigator.appVersion >= "4.0"))
	{
		window.external.AddFavorite(self.location,document.title);
	}
	else { alert("Can't set. Please, just press 'Ctrl'+'D'."); }
}

function rnd_pic(m,k)
	{
	ar2=new Array();
	for (i=1; i<m+1; i++)
		{
		ex=0;
		while(ex==0) 
			{
			n = 0;
			n = parseInt(Math.random() * k);
			ar2[i]=n;
			ex=1;
			for (j=1; j<m; j++)
				{
				if(ar2[i]==ar2[i-j]) ex=0;				
				}
			}
		}
	}
	
function pic1(n)
	{
		document.write('<img src="http://prev.central-xxx.com/d/pic/'+ar2[n]+'.jpg" width=120 height=120 border=0 alt="Young Boys gallery">');	
	}	
