/*
 * CVS IDENTIFICATION
 * $RCSfile$
 * $Revision: 20 $
 * $Date: 2005-04-26 10:04:50 -0400 (Tue, 26 Apr 2005) $
 * 
 */
function addbookmark(url,title)
{ 
	if( window.sidebar && window.sidebar.addPanel ) {
	    //Gecko (Netscape 6 etc.) - add to Sidebar
	    window.sidebar.addPanel( title, url, '' );
	} else if( window.external && ( navigator.platform == 'Win32' ||
	      ( window.ScriptEngine && ScriptEngine().indexOf('InScript') + 1 ) ) ) {
	    //IE Win32 or iCab - checking for AddFavorite produces errors for no
	    //good reason, so I use a platform and browser detect.
	    //adds the current page page as a favourite; if this is unwanted,
	    //simply write the desired page in here instead of 'location.href'
	    window.external.AddFavorite( url, title );
	} else if( window.opera && window.print ) {
	    //Opera 6+ - add as sidebar panel to Hotlist
	    return true;
	} else if( document.layers ) {
	    //NS4 & Escape - tell them how to add a bookmark quickly (adds current page,
	    //not target page)
	    window.alert( 'Please click OK then press Ctrl+D to create a bookmark' );
	} else {
	    //other browsers - tell them to add a bookmark (adds current page, not target page)
	    window.alert( 'Please use your browser\'s bookmarking facility to create a bookmark' );
	}	
}

function showPop(u,w,h){ mywin = window.open(u,"pop",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+w+',height='+h+''); }

function FixSize(){
 var x = document.pic.width + 32;
 var y = document.pic.height + 41;
 window.resizeTo(x,y);
}

startHighlight = function()
{
	if (document.all && document.getElementById)
	{
		tables = document.getElementsByTagName("table");
	
		for (x = 0; x < tables.length; x++)
		{
			tbody = tables[x].childNodes[0];
			
			
			if( tables[x].className == "listTable")
			{

				for (i = 0; i < tbody.childNodes.length; i++)
				{

					node = tbody.childNodes[i];


					if (node.nodeName == "TR")
					{
						node.onmouseover=function()
						{
						tempClass = this.className;
							if( this.className != "last")
							{
								this.className = "over";
							}
						}
						
						node.onmouseout=function()
						{
							this.className = tempClass;
						}
					}
				}
			}
		}
		
		lists = document.getElementsByTagName("ul");
		
		for (x = 0; x < lists.length; x++)
		{
			if( lists[x].className == "arrowList" || lists[x].className == "resultNavigation" )
			{
				for (i = 0; i < lists[x].childNodes.length; i++)
				{
					node = lists[x].childNodes[i];
					node.onmouseover=function()
					{
						tempClass = this.className;
						this.className = "over";
					}
					
					node.onmouseout=function()
					{
						this.className = tempClass;
					}
					
				}
			}
		}
	}
}

window.onload = startHighlight;
/*
 $Log$
 Revision 1.2  2005/04/26 14:04:50  pkr-thomas
 Updated javascript function addBookmark() to work in mozilla and opera.

 Revision 1.1.1.1  2005/04/26 11:17:03  pkr-bjornr
 adding project gambling to CVS repository

*/