    <!--
    var isActive = false;
    var activeMenu = null;		//handle to the active menu
    var txt;
    
     
    function getPreviousSibling(element) {
    	if (element) {
           var sib1 = element.previousSibling;	
           if (sib1) {
               if (sib1.nodeType == document.TEXT_NODE) {		//avoid the text component
                 return sib1.previousSibling;
               } else {
                 return sib1;
               }
           }
        }
        return null;
    }
    
    function getNextSibling(element) {
    	if (element) {
           var sib1 = element.nextSibling;	
           if (sib1) {
               if (sib1.nodeType == document.TEXT_NODE) {		//avoid the text component
                 return sib1.nextSibling;
               } else {
                 return sib1;
               }
           }
        }
        return null;
    }
    
    function swapImage(element,imageUrl) {
    	if (element) {
	        var targetElement = element;
        	if ("DIV" == element.tagName) {
               targetElement = element.firstChild;
            }
            
            if ("IMG" == targetElement.tagName) {
              targetElement.src = imageUrl;
            }
        }
    }
    
    
    function swapNextImage(menuElement,imageUrl,lastImageUrl) {
    	var nextRightElement = getNextSibling(menuElement);
        var checkLastElement = getNextSibling(nextRightElement);
        if (!checkLastElement) {
        	swapImage(getNextSibling(menuElement),lastImageUrl);
        } else {
        	swapImage(getNextSibling(menuElement),imageUrl);
        }
    }

    
	function showSubmenu(menuElement) {
    	  menuElement.style.backgroundColor = "#5E0000";
          swapImage(getPreviousSibling(menuElement),'../images/t_hover_left.gif');
        //swapImage(getNextSibling(menuElement),'../images/t_hover_right.gif');
          swapNextImage(menuElement,'../images/t_hover_right.gif','../images/t_hover_right_last.gif');
    
    	//sub menu
    	isActive = true;
        var subMenuId = "sub" + menuElement.id;
        if (activeMenu) {
      		document.getElementById(activeMenu).style.visibility = "hidden";
        }
        var targetMenu = document.getElementById(subMenuId);
        if (targetMenu) {
        	activeMenu = subMenuId;
        	var newLeft = menuElement.offsetLeft;
             var newTop = menuElement.offsetTop + menuElement.offsetHeight;
	    if (targetMenu.offsetWidth < (menuElement.offsetWidth + 24)) {		//add 12 to compensate for middle image
            	targetMenu.style.width = menuElement.offsetWidth + 24 + "px";
            }
            targetMenu.style.visibility="visible";
            targetMenu.style.left = newLeft + "px";
            targetMenu.style.top = newTop + "px";
        }
    }
    
    function hideSubmenu(menuElement) {
    	menuElement.style.backgroundColor = "#960001";
        swapImage(getPreviousSibling(menuElement),'../images/t_normal.gif');
        //swapImage(getNextSibling(menuElement),'../images/t_normal.gif');
        swapNextImage(menuElement,'../images/t_normal.gif','../images/t_normal_right_last.gif');
        hideMenu();
    }
    
    function hideMenu() {
        isActive = false;
        setTimeout('hide()',100);
    }
    
    function hide() {
    	if (!isActive){
        	if (activeMenu) {
            	document.getElementById(activeMenu).style.visibility = "hidden";
        	}
      	}
    }
    
    function setStyle(menuItem){
    	isActive = true;
    }
    

    function setDefault(menuItem){
    	isActive = false;
    	hideMenu();
    }

      function browserResize(){
	 if(navigator.appName == "Netscape"){
		window.location.reload();
	}	    
    }


  // -->

    /**
     * Replaces the image element with the given new image.
     */
    function replaceImage(imageId, newImage, newAlt) {
        var element = document.getElementById(imageId);
        element.src = newImage;
        element.alt = newAlt;
    }

    /**
     * Live chat functions.
     */
    var needValidate = true;
    var defaultVal1 = "Enter your name here";
    var defaultVal2 = "Type your question here and click Start Chat...";
    function openchatwindow(windowname) {
        var res = true;
        var name = document.getElementById("lp_namefield");
        var msg = document.getElementById("lp_msgfield");

        if (needValidate) {
            var validateMessage = "Before you start your chat, type in the following fields:\r\n ";
            if (name.value.length == 0 || name.value == defaultVal1) {
                res = false;
                validateMessage += "Your Name\r\n";
            }
            if (msg.value.length == 0 || msg.value == defaultVal2) {
                validateMessage += "Your Question\r\n";
                res = false;
            }
            if (res == false) {
                alert(validateMessage);
            }

        } else {
            if (name.value == defaultVal1)
                name.value = '';
            if (msg.value == defaultVal2)
                msg.value = '';
        }

        if (res == true)
            window.open("", windowname, 'width=472,height=320');
        return res;
    }

    function ClicktoCall(id) {
        var w = 370;
        var h = 450;
        var leftPos = (screen.width)?(screen.width - w) / 2:100;
        var topPos = (screen.height)?(screen.height - h) / 2:100;
        var settings = 'width=' + w + ',height=' + h + ',top=' + topPos + ',left=' + leftPos + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
        var sUrl = 'http://www.nascomms.com/ccConnect/Dialer.aspx?clientId=' + id;
        var ccWindow = window.open(sUrl, 'ClickCalling', settings);
        ccWindow.focus();
    }

    /**
     * Opens up a flash file in a separate window.
     */
    function swfHandler(hld) {
        var hldPos = hld.indexOf('flash_file');
        var swfUrl = '/products/image/' + hld;
        if (hldPos > 0) {
            swfUrl = '/products/' + hld;
        }
        var settings = 'menubar=yes,location=1,toolbar=yes,scrollbars=yes,resizable=1';
        var ccWindow = window.open(swfUrl, 'win', settings);
        ccWindow.focus();
    }

    function selectTab(tabName) {
        var selectedTab = document.getElementById(tabName);
        var tabList = selectedTab.parentNode.childNodes;
        for (var i = 0; i < tabList.length; i++) {
			var tab = tabList[i];
            tab.className = "unselected";
		}
        selectedTab.className = "selected";

        var selectedTabContent = document.getElementById("content_" + tabName);
        var contentList = selectedTabContent.parentNode.childNodes;
        for (var i = 0; i < contentList.length; i++) {
			var content = contentList[i];
            if (content.style) {
				content.style.display = "none";
			}
        }
        selectedTabContent.style.display = "block";
    }


//    function open_win(url){
//            PopupWin = window.open(url,'circleWin','width=460, height=360,scrollbars=yes');
//            PopupWin.focus();
//        }

     function open_win(url){
         PopupWin = window.open(url,'circleWin','width=800, height=650,scrollbars=yes,resizable=1,status=1');
         PopupWin.focus();
     }


     function jumpMenu(targ, selObj, restore){
         if(selObj.options[selObj.selectedIndex].value != "")
             eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
         if (restore)
             selObj.selectedIndex=0;
     }


      function doSubmitSearchResultForm(pageNo) {
            document.searchResultForm.currPageNo.value = pageNo;
            document.searchResultForm.submit();
        }

        function getFileInfo(requestPath, openNewWindow) {
            if (openNewWindow == 'true') {
                winHandle = window.open(requestPath, 'win', 'width=640,height=480,menubar=yes,toolbar=yes,scrollbars=yes');
                winHandle.focus();
            }
            else {
                window.location.href = requestPath;
            }
        }

    function open_win_small(url){
         PopupWin = window.open(url,'circleWin','width=600, height=550,scrollbars=yes,resizable=1,status=1');
         PopupWin.focus();
     }


    function open_win_centre(url)
{
 var width  = 800;
 var height = 650;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=yes';
 params += ', location=yes';
 params += ', menubar=yes';
 params += ', resizable=yes';
 params += ', scrollbars=yes';
 params += ', status=yes';
 params += ', toolbar=yes';
 newwin=window.open(url,'windowname5', params);
 if (window.focus)
 {newwin.focus()}
}


 function open_win_centre_demo(url)
  {
   var width  = 750;
   var height = 560;
   var left   = (screen.width  - width)/2;
   var top    = (screen.height - height)/2;
   var params = 'width='+width+', height='+height;
   params += ', top='+top+', left='+left;
   params += ', directories=yes';
   params += ', location=yes';
   params += ', menubar=yes';
   params += ', resizable=yes';
   params += ', scrollbars=yes';
   params += ', status=yes';
   params += ', toolbar=yes';
   newwin=window.open(url,'windowname5', params);
   if (window.focus)
   {newwin.focus()}
  }


    function open_win_full(url)
  {
   var width  = 1024;
   var height = 768;
   var left   = (screen.width  - width)/2;
   var top    = (screen.height - height)/2;
   var params = 'width='+width+', height='+height;
   params += ', top='+top+', left='+left;
   params += ', directories=yes';
   params += ', location=yes';
   params += ', menubar=yes';
   params += ', resizable=yes';
   params += ', scrollbars=yes';
   params += ', status=yes';
   params += ', toolbar=yes';
   newwin=window.open(url,'windowname5', params);
   if (window.focus)
   {newwin.focus()}
  }

       

