function init() {
    ie = document.all?true:false;
    ns = document.layers?true:false;
    bDebug = 1;

    if ( ie )
      objFlash = document.content ;
    else
      objFlash = document.wrap.document.embeds[0] ;
}

 function showBugtool( screen, topic, frame )
      {
        
         var arTemp = screen.split( " " ) ;
         var strTemp = "" ;
         for ( i = 0 ; i < arTemp.length ; i++ )
         {
            if ( strTemp )
               strTemp = strTemp + "%20" + arTemp[i] ;
            else
               strTemp = arTemp[i] ;
         }

         var strFile = "bugtool.asp?Screen=" + strTemp + "&TopicNum=" + topic + "&FrameNum=" + frame ;

         window.open( strFile, "bugtool", "width=470,height=475,top=0,left=0,status=no" ) ;
/*
         var nHook = objFlash.GetVariable( "nHookCount" ) ;
         if ( nHook < 10 )
         {
            objFlash.TSetProperty( "tip", 7, 1 ) ;  // show tip
            return false ;
         }
         objFlash.TSetProperty( "tip", 7, 0 ) ;  // hide tip
         var nTemp = objFlash.TCurrentFrame( "_level0/counter" ) ;
         objFlash.TGotoFrame( "_level0/counter", ( nTemp + 19 ) ) ;
         parent.top.sv_flashnext = false ;
         parent.top.sv_flashprev = true ;
*/
      }

 function sendFlashVar()
      {
         var temp;

         
         var arTemp = objFlash.GetVariable("_level0/mcGVars:strSiteMapPath").split( ";" ) ;
         for ( i = 0; i < (arTemp.length); i++ )
         {
            temp = "_level0/mcPopup/" +  arTemp[i] ;
            objFlash.TGotoFrame( temp, 1 ) ;
         }
         if (objFlash.GetVariable("_level0/mcGVars:strSiteLocation") != "")
             temp = "_level0/mcPopup/" + objFlash.GetVariable("_level0/mcGVars:strSiteLocation");
         else
             temp = "_level0/mcPopup/" + objFlash.GetVariable("_level0/mcGVars:strCurrentScreen");
         objFlash.TGotoFrame( temp, 2 ) ;

      }

      function loadFlash()
      {

         var strURLString = new String(document.location);
         var arArgString  = strURLString.split( "?" ) ;
         var arArgItems  = arArgString[1].split( ";" ) ;
         objFlash.SetVariable("_level0/mcGVars:strModuleName", arArgItems[0]);
         objFlash.SetVariable("_level0/mcGVars:strCurrentScreen", arArgItems[1]);
         objFlash.SetVariable("_level0/mcGVars:bDebug", bDebug);
         objFlash.TGotoFrame("_level0/", 1);
      }

function printFlashVar(strHtmlVar)
      {

         var strTemp = new String( objFlash.GetVariable( "_level0/mcGVars:" + strHtmlVar ) ) ;
         //var arTemp  = strTemp.split( /\r/ ) ;

         if ( ns )
            hwndPrint = window.open( "blank.htm" ) ;
         else
            hwndPrint = window.open( "blank.htm", "print", "width=400,height=400,resizable=yes,status=no,top=0,left=0" ) ;

         hwndPrint.document.open() ;

         if ( ie )
         {
            hwndPrint.document.writeln( "<body onload='javascript:execScript(\"on error resume next: printWB.ExecWB 6, 1\", \"VBScript\");'>" ) ;
            hwndPrint.document.writeln( "<object id=\"printWB\" width=0 height=0 classid=\"clsid:8856F961-340A-11D0-A96B-00C04FD705A2\"></object>" ) ;
         }

          hwndPrint.document.writeln( strTemp ) ;

         //for ( i = 0 ; i < arTemp.length ; i++ )
           // hwndPrint.document.writeln( arTemp[i] + "<p>" ) ;

         hwndPrint.document.close() ;

         if ( ns )
            hwndPrint.print() ;

         hwndPrint.close() ;
}

function openBrowser(strHtmlFile,strScreenName)
      {
         strHtmlFile = "content/" + objFlash.GetVariable( "_level0/mcGVars:strModuleName") + "/" + strScreenName + "/" + strHtmlFile;

         if ( ns )
            hwndPrint = window.open( strHtmlFile ) ;
         else
            hwndPrint = window.open( strHtmlFile, "print", "width=400,height=400,resizable=yes,status=no,top=0,left=0" ) ;
}