      VSD_Init = new Array;

      VSD_Init[VSD_Init.length] = new Array(VSD_ILoad,/*CMP*/'site map button',/*URL*/'/images/vsdheader/sitemap_02.jpg',/*URL*/'/images/vsdheader/sitemap_ro_02.jpg',/*URL*/'','');

   VSD_Init[VSD_Init.length] = new Array(VSD_ILoad,/*CMP*/'contact us button',/*URL*/'/images/vsdheader/contactus_03.jpg',/*URL*/'/images/vsdheader/contactus_ro_03.jpg',/*URL*/'','');      

						VSD_Init[VSD_Init.length] = new Array(VSD_ILoad,/*CMP*/'groupwise button',/*URL*/'/images/vsdheader/groupwise_04.jpg',/*URL*/'/images/vsdheader/groupwise_ro_04.jpg',/*URL*/'','');

      VSD_Init[VSD_Init.length] = new Array(VSD_ILoad,/*CMP*/'portal login button',/*URL*/'/images/vsdheader/portallogin_05.jpg',/*URL*/'/images/vsdheader/portallogin_ro_05.jpg',/*URL*/'','');

   VSD_Init[VSD_Init.length] = new Array(VSD_ILoad,/*CMP*/'home button',/*URL*/'/images/vsdheader/home_06.jpg',/*URL*/'/images/vsdheader/home_ro_06.jpg',/*URL*/'','');

      VSD_Ag = window.navigator.userAgent;

      VSD_BVers = parseInt(VSD_Ag.charAt(VSD_Ag.indexOf("/")+1),10);

      VSD_Im = new Object();

      VSD_StopExecution = false;

      VSD_Act = new Object;

      VSD_idxArray = new Array;

      for (var VSD_i=0;VSD_i<VSD_Init.length;VSD_i++) VSD_idxArray[VSD_i] = VSD_i;

      VSD_Action2(VSD_Init, VSD_idxArray);



      function VSD_IsIE() {

        return VSD_Ag.indexOf("MSIE") > 0;

      }

      function VSD_IEStyl(VSD_s) {

        return document.all.tags("div")[VSD_s].style;

      }

      function VSD_NSStyl(VSD_s) {

        return VSD_FindElement(VSD_s,0);

      }

      function VSD_FindElement(VSD_n,VSD_ly) {
	try
	{
		if (VSD_BVers < 4) return document[VSD_n];
	
		var VSD_curDoc = VSD_ly ? VSD_ly.document : document;
	
		var VSD_elem = VSD_curDoc[VSD_n];
	
		if (!VSD_elem) {
	
			for (var VSD_i=0;VSD_i<VSD_curDoc.layers.length;VSD_i++) 
			{
		
			VSD_elem = VSD_FindElement(VSD_n,VSD_curDoc.layers[VSD_i]);
		
			if (VSD_elem) return VSD_elem;
	
			}
		}
		return VSD_elem;
	}
	catch (e)
	{
		return null;
	}
      }

      function VSD_ClickReturn () {

        var VSD_bAgent = window.navigator.userAgent; 

        var VSD_bAppName = window.navigator.appName;

        if ((VSD_bAppName.indexOf("Explorer") >= 0) && (VSD_bAgent.indexOf("Mozilla/3") >= 0) && (VSD_bAgent.indexOf("Mac") >= 0))

          return true; // dont follow link

        else return false; // dont follow link

      }

      function VSD_ButtonReturn () {

        var VSD_bAgent = window.navigator.userAgent; 

        var VSD_bAppName = window.navigator.appName;

	  if ((VSD_bAppName.indexOf("Explorer") >= 0) && (VSD_bAgent.indexOf("Mozilla/3") >= 0) && (VSD_bAgent.indexOf("Mac") >= 0))

		return false; // follow link

	  else return true; // follow link

      }

      function VSD_IShow(VSD_n,VSD_i) {

        if (document.images) {

         if (VSD_Im[VSD_n]) {

           var VSD_img = (!VSD_IsIE()) ? VSD_FindElement(VSD_n,0) : document[VSD_n];

            if (VSD_img && typeof(VSD_Im[VSD_n][VSD_i].src) != "undefined") {

             VSD_img.src = VSD_Im[VSD_n][VSD_i].src;

            }

            if(VSD_i != 0)

              self.status = VSD_Im[VSD_n][3];

            else

              self.status = " ";

            return true;

          }

        }

        return false;

      }

      function VSD_ILoad(VSD_action) {

        VSD_im = VSD_action[1];

        if (document.images) {

          VSD_Im[VSD_im] = new Object();

          for (var VSD_i=2;VSD_i<5;VSD_i++) {

            if (VSD_action[VSD_i] != '') {

              VSD_Im[VSD_im][VSD_i-2] = new Image();

              VSD_Im[VSD_im][VSD_i-2].src = VSD_action[VSD_i];

            } else VSD_Im[VSD_im][VSD_i-2] = 0;

          }

          VSD_Im[VSD_im][3] = VSD_action[5];

        }

      }

      function VSD_Action(VSD_array) { 

        return VSD_Action2(VSD_Act, VSD_array);

      }

      function VSD_Action2(VSD_fct, VSD_array) { 

        var VSD_result;

        for (var VSD_i=0;VSD_i<VSD_array.length;VSD_i++) {

          if(VSD_StopExecution) return false; 

          var VSD_actArray = VSD_fct[VSD_array[VSD_i]];

          if (VSD_actArray == null) return false;

          var VSD_tempArray = new Array;

          for(var VSD_j=1;VSD_j<VSD_actArray.length;VSD_j++) {

            if((VSD_actArray[VSD_j] != null) && (typeof(VSD_actArray[VSD_j]) == "object") && (VSD_actArray[VSD_j].length == 2)) {

              if(VSD_actArray[VSD_j][0] == "VAR") {

                VSD_tempArray[VSD_j] = VSD_StateArray[VSD_actArray[VSD_j][1]];

              } else {

                if(VSD_actArray[VSD_j][0] == "ACT") {

                  VSD_tempArray[VSD_j] = VSD_Action(new Array(new String(VSD_actArray[VSD_j][1])));

                }	else VSD_tempArray[VSD_j] = VSD_actArray[VSD_j];

              }

            } else VSD_tempArray[VSD_j] = VSD_actArray[VSD_j];

          }			

          VSD_result = VSD_actArray[0](VSD_tempArray);

        }

        return VSD_result;

      }

      function VSD_changeLocation( newLoc ) {

          top.location=newLoc;

       }

// Replace all Version > 4.0, 4.5 http://gwweb.vansd.org/servlet/webacc with gw5.vansd.org

/* testVersion -

  Tests to see wether a user will be routed to either the new groupwise

  login page or the old one depending on the platform they are using

  and the version of browser.

    Windows System -

      Internet Explorer 4.0 or higher goes to new login page

      Netscape Navigator 4.0 or higher goes to new login page

    Macintosh Systems -

      Internet Explorer 4.5 or higher goes to new login page

      Netscape Navigator 4.51 or higher goes to new login page

    All other systems and browsers go to the old login page

*/




