// -----------------------------------------------------------
// (c) 1999 Prím ehf / sój
//
// Helper functions for SaloWeb - a web implementation of
// Salomon.
//
// Versions
//    june 1999  - Initial writing (sój)
//
// Note
// You are allowed to change the style properties whereever
// they appear in this module.
//
// -----------------------------------------------------------

function linkActive(x)
{
	if ( x == null )
		x = window ;
	eSrc = x.event.srcElement;
	eSrcTag=eSrc.tagName.toUpperCase();
	if (eSrcTag=="DIV" && eSrc.className.toUpperCase()=="MENUITEM")	
	{
		eSrc.style.textDecoration = "underline";
		eSrc.style.fontWeight = "bolder";
		eSrc.style.cursor = "hand" ;
	}
	else if (eSrcTag=="SPAN" && (eSrc.className.toUpperCase()=="MAIL" || eSrc.className.toUpperCase()=="LINK") )	
	{
		eSrc.style.textDecoration = "underline";
		eSrc.style.fontWeight = "bold";
		eSrc.style.cursor = "hand" ;
	}
}

function linkInactive(x)
{
	if ( x == null )
		x = window ;
	eSrcTag=eSrc.tagName.toUpperCase();
	if (eSrcTag=="DIV" && eSrc.className.toUpperCase()=="MENUITEM")	
	{
		eSrc.style.textDecoration = "none";
		eSrc.style.fontWeight = "";
		eSrc.style.cursor = "" ;
	}
	else if (eSrcTag=="SPAN" && (eSrc.className.toUpperCase()=="MAIL" || eSrc.className.toUpperCase()=="LINK") )	
	{
		eSrc.style.textDecoration = "none";
		eSrc.style.fontWeight = "";
		eSrc.style.cursor = "" ;
	}

}

function showDoc(x)
{
	if ( x == null )
		x = window ;
	id = x.event.srcElement.id ;
	url = "/metravefur/" + id ;
	window.location = url ;
	//window.open( url, this ) ;
}

	
