
    function loadPopup(inVal)
    {
	//JobWin = window.open(inVal,"mywindow","address=yes,menubar=yes,location=0,status=no,scrollbars=no,resizable=1,width=680,height=355")
	JobWin = window.open("googlemap.htm","mywindow","address=yes,menubar=yes,location=0,status=no,scrollbars=no,resizable=1,width=720,height=620")
	JobWin.focus()
    }
    function loadPopup2(inVal)
    {
	JobWin = window.open(inVal,"mywindow","address=yes,menubar=yes,location=0,status=no,scrollbars=no,resizable=1,width=720,height=620")
	JobWin.focus()
    }

    function scrollerUpOver()
    {
	uFlag=true;
	setTimeout('up()',20);
	document.body.style.cursor='pointer';
    }

    function scrollerUpOut()
    {
	uFlag=false;
	document.body.style.cursor='default';
    }

    function up()
    {
	document.getElementById('scrollBox').scrollTop+=5;
	if(uFlag) setTimeout('up()',20);
    }

    function scrollerDownOver()
    {
	dFlag=true;
	setTimeout('down()',20);
	document.body.style.cursor='pointer';
    }

    function scrollerDownOut()
    {
	dFlag=false;
	document.body.style.cursor='default';
    }

    function down()
    {
	document.getElementById('scrollBox').scrollTop-=5;
	if(dFlag) setTimeout('down()',20);
    }

    function scrollerConfig()
    {
	var fullHeight = document.getElementById('scrollBox').scrollHeight;
	var viewHeight = document.getElementById('scrollBox').offsetHeight;
	document.getElementById('sbFrame').style.visibility = (fullHeight <= viewHeight ? "hidden" : "visible");
    }
    function showSubMenu(inVal)
    {
        if (inVal == "show")
            {
                document.getElementById('topmenusub').style.display = "block"
                document.getElementById('topmenusub2').style.display = "none"
            }
        else
            {
                document.getElementById('topmenusub').style.display = "none"
                document.getElementById('topmenusub2').style.display = "block"
            }
    }
    
    

    function mouseMove(ev){
	    ev           = ev || window.event;
	    var mousePos = mouseCoords(ev);
	    //alert (mousePos.y)
	    if (mousePos.y > 240 || mousePos.y < 194) 
	        {
	            showSubMenu("hide")
	        }
	        
    }

    function mouseCoords(ev){
	    if(ev.pageX || ev.pageY){
		    return {x:ev.pageX, y:ev.pageY};
	    }
	    return {
		    x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,
		    y:ev.clientY + document.body.scrollTop  - document.body.clientTop
	    };
    }
    function writeTopBul()
    {
        if (navigator.appVersion.indexOf("Mac") != -1)
        {
        document.write('<img style="margin-top:6px" src="/images/menubul.gif" />')
        }
        else
        document.write('<img style="margin-top:8px" src="/images/menubul.gif" />')

    }
    function writeFillerRightDiv()
    {
        if (navigator.appVersion.indexOf("Mac") != -1)
        {
        document.write('<div style="border:0px solid red;width:477px;height:5px;"></div>')
                document.getElementById('topmenusub2').style.height = "28px"
        }
        else
        document.write('<div style="border:0px solid red;width:476px;height:5px"></div>')

    }
    
