function StartWebMap(URL) {
	window.open( URL, "WebMap", "width=500,height=500,status=0,menuBar=0,scrollBars=0,resizable=0,top=0,left=0" ) ; 
}


function selectSelecter(trigger,defaultvalue)
{

	if(trigger.substr(0,1)=='%')
	{
		if(defaultvalue) trigger=defaultvalue;		
		else return 0;
	}

	myselect=document.forms[document.forms.length-1].elements[document.forms[document.forms.length-1].elements.length-1];
	items = trigger.split(",");
	for(j=0;j<myselect.options.length;j++)
	{
		myselect.options[j].selected=false;
	}
	for(i=0;i<items.length;i++)
	{
		for(j=0;j<myselect.options.length;j++)
		{
			if(myselect.options[j].value==items[i])
			{
				myselect.options[j].selected=true;
			}
			

		}

	}
	if(myselect.selectedIndex>=0) return myselect.selectedIndex;
	else return 0;
}
// CSS-Navi			 
	sfHover = function() {

    if (!document.body.currentStyle) return;

	var navlists = new Array('leftnav', 'metanav');
    
	for (var listid in navlists)
	{
		var list = document.getElementById(navlists[listid]);
		if (list)
		{
			var sfEls = list.getElementsByTagName("li");
			for (var i = 0; i < sfEls.length; i++)
			{
				sfEls[i].onmouseover = function()
				{
					if (this.lastChild.style)
					{
						//this.lastChild.style.visibility = 'visible';
						this.lastChild.style.display = 'block';
					}
					//this.style.backgroundColor = '#f9f9f9';
				}
				sfEls[i].onmouseout = function()
				{
					if (this.lastChild.style)
					{
						//this.lastChild.style.visibility = 'hidden';
						this.lastChild.style.display = 'none';
					}
					this.style.backgroundColor = '';
				}
			}
		}
		else
		{
			//alert('List id ' + navlists[listid] + ' not found :(');	
		}
    }
}



function openPicWin(pFileName,pWinName,pWidth,pHeight) {
	var isNS = (document.layers) ? true : false;
	
	if (isNS) pHeight = pHeight + 19;
		eval("allSettings = 'width="+pWidth+",height="+pHeight+",menubar=yes,scrollbars=yes,status=yes,resizable=yes'");
		w=window.open(pFileName,pWinName,allSettings);
		w.window.focus();
}

// functions for iframe expander in all various browsers [START]

function getIFrameDoc( name ) {
  var IFrameDoc;
  var Height;
  var IFrameObj = document.getElementsByName(''+name)[0];
  
  if (typeof document.frames != 'undefined') {
    IFrameObj = document.frames[name];
  }
  
  if (IFrameObj.contentDocument) {
    // For NS6
    IFrameDoc = IFrameObj.contentDocument; 
  } else if (IFrameObj.contentWindow) {
    // For IE5.5 and IE6
    IFrameDoc = IFrameObj.contentWindow.document;
  } else if (IFrameObj.document) {
    // For IE5
    IFrameDoc = IFrameObj.document;
  } else {
    return false;
  }
  
  if(typeof IFrameDoc.body != 'undefined')
  {
    return IFrameDoc.body;
  }
  else
  {
    return IFrameDoc.documentElement;
  }
}

/*
* gets the height of an iframe document
*/
function getIFrameDocHeight( name )
{
var IFrameDoc = getIFrameDoc( name );
  if(typeof IFrameDoc == 'undefined')
    return false;
  return IFrameDoc.scrollHeight;
}

/*
* gets the width of an iframe document
*/
function getIFrameDocWidth( name )
{
var IFrameDoc = getIFrameDoc( name );
  if(typeof IFrameDoc == 'undefined')
    return false;
  return IFrameDoc.scrollWidth;
}

// functions for iframe expander in all various browsers [END]