home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 June / PCpro_2006_06.ISO / files / mstools / EducationPack.msi / product.cab / EduPackExecutable / HTML / EDUPACK.JS next >
Encoding:
Text File  |  2005-07-07  |  26.0 KB  |  594 lines

  1. var State_Installed     = "Installed";
  2. var State_Not_Installed = "nInstalled";
  3.  
  4. var indexValue = -1 ;
  5. function InstallButton_OnClick()
  6. {
  7.     if (document.appsState[indexValue] == State_Not_Installed)
  8.     {
  9.         window.external.Install(document.appsName[indexValue]);
  10.         if (window.external.IsComponentInstalled(document.appsName[indexValue]))
  11.         {
  12.             var i;
  13.             var installedAll = true;
  14.  
  15.             document.appsState[indexValue] = State_Installed;
  16.             UpdateNavigateImages();
  17.  
  18.             for (i = 0; i < document.appsState.length; ++i)
  19.             {
  20.                 if (document.appsState[i] == State_Not_Installed)
  21.                 {
  22.                     installedAll = false;
  23.                     break;
  24.                 }
  25.             }
  26.             if (installedAll)
  27.             {
  28. //                window.InstallAllBtn.disabled = true;
  29. //                window.InstallAllImage.src = "install-all-disabled.jpg";
  30.             }
  31.             else
  32.             {
  33. //                window.InstallAllBtn.disabled = false;
  34. //                window.InstallAllImage.src = "install-all-rest.jpg";
  35.             }
  36.  
  37.             window.InstallImage.src = "install-disabled.jpg";
  38.             window.StartImage.src = "start-rest.jpg";
  39.  
  40.             ResetImageSrc();
  41.         }
  42.     }
  43. }
  44.  
  45. function ResetImageSrc()
  46. {
  47.     var i,x,a=document.MM_sr;
  48.     for (i = 0; a && i<a.length && (x=a[i]) && x.oSrc; i++)
  49.     {
  50.         x.oSrc = x.src;
  51.     }
  52. }
  53.  
  54. function StartButton_OnClick()
  55. {
  56.     //if (document.appsState[indexValue] == State_Installed)
  57.     //{
  58.       //  window.external.Launch(document.appsName[indexValue]);
  59.     //}
  60.     
  61.     if (window.StartButton.background == "start-disabled.jpg")
  62.     {
  63.         return ;
  64.     }
  65.     
  66.     //alert(indexValue);
  67.     if (document.appsState[indexValue] == State_Installed)
  68.     {
  69.         window.StartButton.background = "start-pressed.jpg"
  70.         window.external.Launch(document.appsName[indexValue]);
  71.     }
  72. }
  73.  
  74. function InstallButton_OnMouseDown()
  75. {
  76.     if (document.appsState[indexValue] == State_Not_Installed)
  77.     {
  78.         MM_swapImage('InstallImage','','install-pressed.jpg',1)
  79.     }
  80. }
  81.  
  82. function InstallButton_OnMouseOver()
  83. {
  84.     if (document.appsState[indexValue] == State_Not_Installed)
  85.     {
  86.         MM_swapImage('InstallImage','','install-hover.jpg',1)
  87.     }
  88. }
  89.  
  90. function StartButton_OnMouseDown()
  91. {
  92.     window.StartButton.background = "start-pressed.jpg" ;
  93.     /*
  94.     if (document.appsState[indexValue] == State_Installed)
  95.     {
  96.         MM_swapImage("StartImage", "", "start-pressed.jpg", 1);
  97.     }
  98.     */
  99. }
  100.  
  101. function StartButton_OnMouseOver()
  102. {
  103.     if (document.appsState[indexValue] == State_Installed)
  104.     {
  105.         if(window.StartButton.background != "start-pressed.jpg")
  106.             window.StartButton.background = "start-hover.jpg" ;
  107.         //MM_swapImage("StartImage", "", "start-hover.jpg", 1);
  108.     }
  109.     
  110. }
  111.  
  112. function StartButton_OnMouseOut()
  113. {
  114.     //window.StartButton.background = "start-rest.jpg" ;
  115.     
  116.     if (document.appsState[indexValue] == State_Installed)
  117.     {
  118.         if( window.StartButton.background != "start-pressed.jpg")
  119.             window.StartButton.background = "start-rest.jpg" ;
  120.         //MM_swapImage("StartImage", "", "start-hover.jpg", 1);
  121.     }
  122.     
  123. }
  124.  
  125. function InstallAppButton_OnMouseDown()
  126. {
  127.     window.InstallAppButton.background = "start-pressed.jpg" ;
  128.     javascript:window.external.SetupOption();
  129.     window.location.reload(); 
  130.     /*
  131.     if (document.appsState[indexValue] == State_Installed)
  132.     {
  133.         MM_swapImage("StartImage", "", "start-pressed.jpg", 1);
  134.     }
  135.     */
  136. }
  137.  
  138. function InstallAppButton_OnMouseOver()
  139. {
  140.     if (document.appsState[indexValue] == State_Not_Installed)
  141.     {
  142.         window.InstallAppButton.background = "start-hover.jpg" ;
  143.         //MM_swapImage("StartImage", "", "start-hover.jpg", 1);
  144.     }
  145.     
  146. }
  147.  
  148. function InstallAppButton_OnMouseOut()
  149. {
  150.     //window.StartButton.background = "start-rest.jpg" ;
  151.     
  152.     if (document.appsState[indexValue] == State_Not_Installed)
  153.     {
  154.         window.InstallAppButton.background = "start-rest.jpg" ;
  155.         //MM_swapImage("StartImage", "", "start-hover.jpg", 1);
  156.     }
  157.     
  158. }
  159.  
  160. function BtnCheck_OnClick()
  161. {
  162.     window.external.CheckPrerequisities(document.appsName[indexValue]);
  163. }
  164.  
  165. function Body_OnLoad()
  166. {
  167.     document.appsName = new Array("Equation Writer", "GoBinder Lite", "Hexic Deluxe", "Ink Flash cards", "Send to OneNote");
  168.   //  document.appsName = new Array("Ink Desktop", "Ink Crossword", "Energy Blue", "Snipping Tool", "Ink Art", "Media Transfer");
  169.  
  170.     document.appsState = new Array(State_Not_Installed, State_Not_Installed, State_Not_Installed, State_Not_Installed, State_Not_Installed);
  171.     UpdateStates();
  172.     window.StartButton.style.visibility = 'hidden';
  173.     window.InstallAppButton.style.visibility = 'hidden';
  174. }
  175.  
  176. function UpdateStates()
  177. {
  178.     var i;
  179.     var installedAll = true;
  180.  
  181.     for (i = 0; i < document.appsName.length; ++i)
  182.     {
  183.         if (window.external.IsComponentInstalled(document.appsName[i]))
  184.         {
  185.             document.appsState[i] = State_Installed;
  186.             if (indexValue == i)
  187.             {
  188.                 //window.StartImage.src = "start-rest.jpg";
  189.                 //window.InstallImage.src = "install-disabled.jpg";
  190.             }
  191.         }
  192.         else
  193.         {
  194.             installedAll = false;
  195.  
  196.             document.appsState[i] = State_Not_Installed;
  197.             if (indexValue == i)
  198.             {
  199.                 //window.StartImage.src = "start-disabled.jpg";
  200.                 //window.InstallImage.src = "install-rest.jpg";
  201.             }
  202.         }
  203.     }
  204.  
  205.     if (installedAll)
  206.     {
  207. //        window.InstallAllBtn.disabled = true;
  208. //        window.InstallAllImage.src = "install-all-disabled.jpg";
  209.     }
  210.     else
  211.     {
  212. //        window.InstallAllBtn.disabled = false;
  213. //        window.InstallAllImage.src = "install-all-rest.jpg";
  214.     }
  215.  
  216.     UpdateNavigateImages();
  217. }
  218.  
  219. function UpdateNavigateImages()
  220. {
  221. //  window.HexicButton.background        = "hexic-" + (1 == indexValue ? "selected.jpg" : "rest.jpg");
  222. //  window.EquationButton.background    = "equation-"  + (2 == indexValue ? "selected.jpg" : "rest.jpg");
  223. //    window.GoBinderButton.background    = "goBinder-" + (4 == indexValue ? "selected.jpg" : "rest.jpg");
  224. //    window.OneNoteButton.background        = "oneNote-rest.jpg";
  225. }
  226.  
  227. function MM_swapImgRestore() { //v3.0
  228.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  229. }
  230.  
  231. function MM_findObj(n, d) { //v4.01
  232.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  233.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  234.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  235.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  236.   if(!x && d.getElementById) x=d.getElementById(n); return x;
  237. }
  238.  
  239. function MM_swapImage() { //v3.0
  240.   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  241.    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  242. }
  243.  
  244. function Equation_OnMouseOver()
  245. {
  246.     if (window.EquationButton.background != "equation-selected.jpg")
  247.     {
  248.         window.EquationButton.background = "equation-hover.jpg";
  249.         window.EquaButtonTextColor.className = "blackbuttonText";
  250.     }
  251. }
  252.  
  253. function Equation_OnMouseOut()
  254. {
  255.     if (window.EquationButton.background != "equation-selected.jpg")
  256.     {
  257.         window.EquationButton.background = "equation-rest.jpg";
  258.         window.EquaButtonTextColor.className = "buttonText";
  259.     }
  260. }
  261.  
  262. function Equation_OnMouseDown()
  263. {
  264.     UpdateStates();
  265.     UnselectAll();
  266.     window.EquationButton.background = "equation-selected.jpg";
  267.     indexValue = 0 ;
  268.     window.StartButton.style.visibility = 'visible';
  269.     window.InstallAppButton.style.visibility = 'hidden';
  270.     window.ProductDesc.style.height = "256" ;
  271.     
  272.     window.StartButton.disabled = false;
  273.     if(document.appsState[indexValue] == State_Not_Installed)
  274.     {
  275.         //window.StartButton.disabled = true;
  276.         window.StartButton.background = "start-disabled.jpg";
  277.         window.InstallAppButton.style.visibility = 'visible';
  278.     }
  279.     
  280.     window.ProductImage.innerHTML = '<img src="equation.jpg" width="32" height="32">';
  281.     window.ProductTitle.innerHTML = 'Equation Writer';
  282.     window.ProductDesc.innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0" class="content"><tr> <td colspan="2"><p>Now itÆs easy to add mathematical expressions to your papers. Handwrite a math equation, and convert it into</p></td></tr><tr> <td rowspan="2" valign="top"> <p>a neatly typewritten image to paste into a report or a presentation.</p></td> <td width="180"> <div align="right"><img src="spacer.gif" width="180" height="10"></div></td> </tr> <tr> <td valign="top"> <div align="right"><img src="EquationWriter40_03.gif" width="230" height="176"></div></td> </tr> </table>';
  283.  
  284.     
  285.     //window.ProductTitle.innerHTML = '<table><tr><td valign="top"><img src="equation.jpg" width="32" height="32"></td><td><img src="spacer.gif" width="20" height="32"></td><td height="1" valign="middle" class="Header">Equation Writer</td></tr></table>';
  286.     
  287.     //window.ProductDesc.innerHTML = '<p align="left">Now itÆs easy to add mathematical expressions to your papers. Handwrite a math equation, and convert it into a neatly typewritten image to paste into a report or a presentation.</p>';
  288. }
  289.  
  290. function FlashCards_OnMouseOver()
  291. {
  292.     if (window.FlashCardsButton.background != "flashCards-selected.jpg")
  293.     {
  294.         window.FlashCardsButton.background = "flashCards-hover.jpg";
  295.         window.FCButtonTextColor.className = "blackbuttonText";
  296.     }
  297. }
  298.  
  299. function FlashCards_OnMouseOut()
  300. {
  301.     if (window.FlashCardsButton.background != "flashCards-selected.jpg")
  302.     {
  303.         window.FlashCardsButton.background = "flashCards-rest.jpg";
  304.         window.FCButtonTextColor.className = "buttonText";
  305.     }
  306. }
  307.  
  308. function FlashCards_OnMouseDown()
  309. {
  310.     UpdateStates();
  311.     UnselectAll();
  312.     window.FlashCardsButton.background = "flashCards-selected.jpg";
  313.     
  314.     indexValue = 3 ;
  315.     window.StartButton.style.visibility = 'visible';
  316.     window.InstallAppButton.style.visibility = 'hidden';
  317.     window.ProductDesc.style.height = "256" ;
  318.     
  319.     window.StartButton.disabled = false;
  320.     if(document.appsState[indexValue] == State_Not_Installed)
  321.     {
  322.         //window.StartButton.disabled = true;
  323.         window.StartButton.background = "start-disabled.jpg";
  324.         window.InstallAppButton.style.visibility = 'visible';
  325.     }
  326.     
  327.     window.ProductImage.innerHTML = '<img src="flashCards.jpg" width="32" height="32">';
  328.     window.ProductTitle.innerHTML = 'Ink Flash Cards';
  329. //    window.ProductDesc.innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0" class="content"><tr> <td colspan="2">Create flash cards to help you learn facts or study for an exam. Handwrite a question on the front of a card and put an answer on the back. Draw, insert graphics, and add text too. After you build a set, you can review the cards to test your knowledge and mark which ones you need to review again.</p></td></tr><!-- <tr> <td rowspan="2" valign="top"> <p> Learn more about <a href="#" class="link">GoBinder from Agilix</a>.</p></td> <td width="180"> <div align="right"><img src="spacer.gif" width="180" height="10"></div></td> </tr> --> <tr> <td valign="top"> <div align="right"><img src="InkFlashani36_02.gif" width="200" height="255"></div></td> </tr> </table>';
  330.  
  331. //    window.ProductDesc.innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0" class="content"><tr> <td colspan="2"><p>Create flash cards to help you learn facts or study for an</p></td></tr><tr valign="top"> <td rowspan="2" valign="top"> <p>exam. Handwrite a question on the front of a card and put an answer on the back. Draw, insert graphics, and add text too. After you build a set, you can review the cards to <br>test your knowledge and mark which ones you need to review again.</p></td> <td width="180"> <div align="right"><img src="spacer.gif" width="180" height="10"></div></td> </tr> <tr> <td valign="top"> <div align="right"><img src="InkFlashani36_02.gif" width="200" height="255"></div></td> </tr> </table>';
  332.     window.ProductDesc.innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0" class="content"><tr> <td colspan="2"><p></p></td></tr><tr valign="top"> <td rowspan="2" width="150" valign="top"> <p>Create flash cards to help you learn facts or study for an exam. Review the cards to test your knowledge, and flag the ones you need to review again.</p><p align="left"> Open a <a href="javascript:window.external.OpenSampleStudyCards()" class="link"> sample set of cards</a> to see what you can do.</td> <td width="180"> <div align="right"><img src="spacer.gif" width="180" height="10"></div></td> </tr> <tr> <td valign="top"> <div align="right"><img src="InkFlashani36_02.gif" width="200" height="255"></div></td> </tr> </table>';
  333.  
  334. }
  335.  
  336. function GoBinder_OnMouseOver()
  337. {
  338.     if (window.GoBinderButton.background != "goBinder-selected.jpg")
  339.     {
  340.         window.GoBinderButton.background = "goBinder-hover.jpg";
  341.         window.GoBindButtonTextColor.className = "blackbuttonText";
  342.     }
  343. }
  344.  
  345. function GoBinder_OnMouseOut()
  346. {
  347.     if (window.GoBinderButton.background != "goBinder-selected.jpg")
  348.     {
  349.         window.GoBinderButton.background = "goBinder-rest.jpg";
  350.         window.GoBindButtonTextColor.className = "buttonText";
  351.     }
  352. }
  353.  
  354. function GoBinder_OnMouseDown()
  355. {
  356.     UpdateStates();
  357.     UnselectAll();
  358.     window.GoBinderButton.background = "goBinder-selected.jpg";
  359.     indexValue = 1 ;
  360.     window.StartButton.style.visibility = 'visible';
  361.     window.InstallAppButton.style.visibility = 'hidden';
  362.     
  363.     window.ProductDesc.style.height = "256" ;
  364.     
  365.     window.StartButton.disabled = false;
  366.     if(document.appsState[indexValue] == State_Not_Installed)
  367.     {
  368.         //window.StartButton.disabled = true;
  369.         window.StartButton.background = "start-disabled.jpg";
  370.         window.InstallAppButton.style.visibility = 'visible';
  371.     }
  372.     window.ProductImage.innerHTML = '<img src="goBinder.jpg" width="32" height="32">';
  373.     window.ProductTitle.innerHTML = 'GoBinder Lite <br><span class="script">by Agilix Labs, Inc.</span>';
  374.     window.ProductDesc.innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0" class="content"><tr> <td colspan="2"><p>Keep track of your schedule with this planner. Use your tablet pen to jot down quick reminders about class schedules, project deadlines, and extracurricular activities.</p><p></p></td></tr><tr> <td rowspan="2" valign="top"> <p align="left"> Learn more about <a href="javascript:window.external.VisitAgilix()" class="link"> GoBinder from Agilix</a>.</td> <td width="180"> <div align="right"><img src="spacer.gif" width="180" height="10"></div></td> </tr> <tr> <td valign="top"> <div align="right"><img src="GoBinder_small.jpg" width="170" height="128"></div></td> </tr> </table>';
  375.  
  376.     /*
  377.     window.ProductTitle.innerHTML = '<table><tr><td valign="top"><img src="goBinder.jpg" width="32" height="32"></td><td><img src="spacer.gif" width="20" height="32"></td><td height="1" valign="middle" class="Header">GoBinder Lite by Agilix Labs, Inc.</td></tr></table>';
  378.     window.ProductDesc.innerHTML = '<p align="left">Keep track of your schedule with this planner. Use your tablet pen to jot down quick reminders about class schedules, project deadlines, and extracurricular activities.</p><p align="left"> Learn more about <a href="javascript:window.external.VisitAgilix()" class="link"> GoBinder from Agilix</a>';
  379.     */
  380. }
  381.  
  382. function Hexic_OnMouseOver()
  383. {
  384.     if (window.HexicButton.background != "hexic-selected.jpg")
  385.     {
  386.         window.HexicButton.background = "hexic-hover.jpg";
  387.         window.HexButtonTextColor.className = "blackbuttonText";
  388.     }
  389. }
  390.  
  391. function Hexic_OnMouseOut()
  392. {
  393.     if (window.HexicButton.background != "hexic-selected.jpg")
  394.     {
  395.         window.HexicButton.background = "hexic-rest.jpg";
  396.         window.HexButtonTextColor.className = "buttonText";
  397.     }
  398. }
  399.  
  400. function Hexic_OnMouseDown()
  401. {
  402.     UpdateStates();
  403.     UnselectAll();
  404.     window.HexicButton.background = "hexic-selected.jpg";
  405.     indexValue = 2 ;
  406.     window.StartButton.style.visibility = 'visible';
  407.     window.InstallAppButton.style.visibility = 'hidden';
  408.     
  409.     window.StartButton.disabled = false;
  410.     window.ProductDesc.style.height = "256" ;
  411.     if(document.appsState[indexValue] == State_Not_Installed)
  412.     {
  413.         //window.StartButton.disabled = true;
  414.         window.StartButton.background = "start-disabled.jpg";
  415.         window.InstallAppButton.style.visibility = 'visible';
  416.     }
  417.     window.ProductImage.innerHTML = '<img src="hexic.jpg" width="32" height="32">';
  418.     window.ProductTitle.innerHTML = 'Hexic<span class="r">®</span> Deluxe for Tablet PC';
  419.     window.ProductDesc.innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0" class="content"><tr> <td colspan="2"><p>This full-featured puzzle game from MSN Games has a new spin for Tablet PCs. Now you can rotate pieces easily with your tablet pen.</p></td></tr><tr> <td rowspan="2" valign="top"> <p></p></td> <td width="180"> <div align="right"><img src="spacer.gif" width="180" height="10"></div></td> </tr><tr> <td valign="top"> <div align="right"><img src="hexic06.gif" width="255" height="156"></div></td> </tr> </table>';
  420.  
  421.     /*
  422.     window.ProductTitle.innerHTML = 
  423.        '<table style="table-layout: fixed; white-space: nowrap; text-overflow: ellipsis; overflow: hidden"> \
  424.             <tr width="356" height="32"> \
  425.                 <td width="32" height="32" valign="center"><img src="hexic.jpg" width="32" height="32"></td> \
  426.                 <td width="20" height="32"><img src="spacer.gif" width="20" height="32"></td> \
  427.                 <td width="280" height="32" style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden" valign="middle" class="Header"> \
  428.                 <nobr>Hexic<span class="r">®</span> Deluxe for Tablet PC</nobr> \
  429.                 </td> \
  430.         </tr></table>';
  431.  
  432.     window.ProductDesc.innerHTML = '<p align="left">This full-featured puzzle game from MSN Games has a new spin for Tablet PCs. Now you can rotate pieces easily with your tablet pen.</p>';
  433.     */
  434. }
  435.  
  436. function OneNote_OnMouseOver()
  437. {
  438.     if (window.OneNoteButton.background != "oneNote-selected.jpg")
  439.     {
  440.         window.OneNoteButton.background = "oneNote-hover.jpg";
  441.         window.OneNoteButtonTextColor.className = "blackbuttonText";
  442.     }
  443. }
  444.  
  445. function OneNote_OnMouseOut()
  446. {
  447.     if (window.OneNoteButton.background != "oneNote-selected.jpg")
  448.     {
  449.         window.OneNoteButton.background = "oneNote-rest.jpg"
  450.         window.OneNoteButtonTextColor.className = "buttonText";
  451.     }
  452. }
  453.  
  454. function OneNote_OnMouseDown()
  455. {
  456.     UpdateStates();
  457.     UnselectAll();
  458.     window.OneNoteButton.background = "oneNote-selected.jpg";
  459.     
  460.     indexValue = 4 ;
  461.     window.StartButton.style.visibility = 'visible';
  462.     window.InstallAppButton.style.visibility = 'hidden';
  463.     window.ProductDesc.style.height = "236" ;
  464.     
  465.     window.StartButton.disabled = false;
  466.     fOneNoteInstalled = window.external.IsOneNoteInstalled();
  467.     
  468.     if(document.appsState[indexValue] == State_Not_Installed)
  469.     {
  470.         //window.StartButton.disabled = true;
  471.         window.StartButton.background = "start-disabled.jpg";
  472.         
  473.         if (fOneNoteInstalled)
  474.         {
  475.             window.InstallAppButton.style.visibility = 'visible';
  476.         }
  477.     }
  478.     
  479.     window.ProductImage.innerHTML = '<img src="oneNote.jpg" width="32" height="32">';
  480.     window.ProductTitle.innerHTML = 'Send to Microsoft Office OneNote<span class="r">®</span> 2003';
  481.  
  482.     /*
  483.     window.ProductTitle.innerHTML = 
  484.        '<table style="table-layout: fixed; white-space: nowrap; text-overflow: ellipsis; overflow: hidden"> \
  485.             <tr width="356" height="32"> \
  486.                 <td width="32" height="32" valign="top"><img src="oneNote.jpg" width="32" height="32"></td> \
  487.                 <td width="20" height="32"><img src="spacer.gif" width="20" height="32"></td> \
  488.                 <td width="280" height="32" style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden" valign="middle" class="Header"> \
  489.                 <nobr>Send to Microsoft Office OneNote<span class="r">®</span> 2003</nobr> \
  490.                 </td> \
  491.         </tr></table>';
  492.     */
  493.         
  494.     if(fOneNoteInstalled)
  495.     {
  496.         window.ProductDesc.innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0" class="content"><tr> <td colspan="2"><p>Keep all of your class notes and research in one place. Send web pages, pictures, and other files to OneNote, and annotate or highlight them with your tablet pen.</p></td></tr><tr> <td rowspan="2" valign="top"> <p> Use the OneNote stationery created for college students, and read helpful tips for using OneNote at school: <a href="javascript:window.external.LauchOneNoteLearning()" class="link">Top 5 Tips for Students Using OneNote</a>.</p></td> <td width="180"> <div align="right"><img src="spacer.gif" width="180" height="10"></div></td> </tr> <tr> <td valign="top"> <div align="right"><img src="SendToOneNote_small.jpg" width="170" height="128"></div></td> </tr> </table>';
  497.         /*
  498.         window.ProductDesc.innerHTML = '<p align="left">Keep all of your class notes and research in one place. Send Web pages, pictures, and other files to OneNote, and annotate or highlight them with your tablet pen.</p> \
  499.         <p align="left">Use the OneNote stationery created for college students, and read helpful tips for using OneNote at school: <a href="javascript:window.external.LauchOneNoteLearning()" class="link">Top 10 Ways for Students to Get Ahead with OneNote.</a></p>';
  500.         */
  501.     }
  502.     else
  503.     {
  504.         window.ProductDesc.innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0" class="content"><tr> <td colspan="2"><p>Keep all of your class notes and research in one place. Send web pages, pictures, and other files to OneNote, and annotate or highlight them with your tablet pen.</p></td></tr><tr> <td rowspan="2" valign="top"> <p> <a href="javascript:window.external.DownloadOneNote()" class="link">Download a free trial of OneNote 2003</a> so that you can install Send to OneNote and learn what makes OneNote a great way to  organize, find, and share your class notes and research.</p></td> <td width="180"> <div align="right"><img src="spacer.gif" width="180" height="10"></div></td> </tr> <tr> <td "valign="top"> <div align="right"><img src="SendToOneNote_small.jpg" width="170" height="128"></div></td> </tr> </table>';
  505.         //window.ProductDesc.innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0" class="content"><tr> <td colspan="2">Keep all of your class notes and research in one place. Send Web pages, pictures, and other files to OneNote, and annotate or highlight them with your tablet pen.</p></td></tr><tr> <td rowspan="2" valign="top"> <p> <a href="javascript:window.external.DownloadOneNote()" class="link">Download a free trial of OneNote 2003</a> so that you can install Send to OneNote and learn what makes OneNote a great way to  organize, find, and share your class notes and research.</p></td> <td width="180"> <div align="right"><img src="spacer.gif" width="180" height="10"></div></td> </tr> <tr> <td valign="top"> <div align="right"><img src="1Ndriver_ani-final.gif" width="170" height="128"></div></td> </tr> </table>';
  506.  
  507.         /*
  508.         window.ProductDesc.innerHTML = '<p align="left">Keep all of your class notes and research in one place. Send Web pages, pictures, and other files to OneNote, and annotate or highlight them with your tablet pen.</p> \
  509.         <p align="left"><a href="javascript:window.external.DownloadOneNote()" class="link">Download a free trial of OneNote 2003</a> so that you can install Send to OneNote and learn what makes OneNote a great way to  organize, find, and share your class notes and research.</p>';
  510.         */
  511.  
  512.     }
  513. }
  514.  
  515. function UnselectAll()
  516. {
  517.     window.WelcomeButton.background        = "welcome-rest.jpg";
  518.     window.EquationButton.background    = "equation-rest.jpg";
  519.     window.GoBinderButton.background    = "goBinder-rest.jpg";
  520.     window.HexicButton.background        = "hexic-rest.jpg";
  521.     window.FlashCardsButton.background    = "flashCards-rest.jpg";
  522.     window.OneNoteButton.background        = "oneNote-rest.jpg";
  523.     
  524.     window.WelButtonTextColor.className = "buttonText";
  525.     window.EquaButtonTextColor.className = "buttonText";
  526.     window.GoBindButtonTextColor.className = "buttonText";
  527.     window.HexButtonTextColor.className = "buttonText";
  528.     window.FCButtonTextColor.className = "buttonText";
  529.     window.OneNoteButtonTextColor.className = "buttonText";
  530.     
  531.     window.StartButton.background = "start-rest.jpg";
  532.     
  533. }
  534.  
  535. function Welcome_OnMouseOver()
  536. {
  537.     if (window.WelcomeButton.background != "welcome-selected.jpg")
  538.     {
  539.         window.WelcomeButton.background = "welcome-hover.jpg";
  540.         window.WelButtonTextColor.className = "blackbuttonText";
  541.     }
  542.     
  543. }
  544.  
  545. function Welcome_OnMouseOut()
  546. {
  547.     if (window.WelcomeButton.background != "welcome-selected.jpg")
  548.     {
  549.         window.WelcomeButton.background = "welcome-rest.jpg";
  550.         window.WelButtonTextColor.className = "buttonText";
  551.     }
  552. }
  553.  
  554. function Welcome_OnMouseDown()
  555. {
  556.     UpdateStates();
  557.     UnselectAll();
  558.     window.WelcomeButton.background = "welcome-selected.jpg";
  559.     
  560.     window.StartButton.style.visibility = 'hidden';
  561.     window.InstallAppButton.style.visibility = 'hidden';
  562.     window.ProductDesc.style.height = "256" ;
  563.     
  564.     indexValue = -1;
  565.     
  566.     window.ProductImage.innerHTML = '<img src="welcome.jpg" width="32" height="32">';
  567.     
  568.     window.ProductTitle.innerHTML = 'Welcome';
  569.     
  570.     window.ProductDesc.innerHTML = '<table width="100%" border="0" cellpadding="0" cellspacing="0" class="content"> <tr> <td colspan="2" class="content"> <div align="center"> <p align="left">The Education Pack includes five programs to help you excel in school and have some fun while youÆre at it. Create handwritten study cards, track deadlines and tasks, add equations to reports, and organize all of your notes in one location. And when you have a moment to spare, take a break and play a game. Tap the buttons on the left to learn more about each program.</p><p align="left"><a href="javascript:window.external.SetupOption()" class="link">Change which programs are installed</a></p> <p align="left"> <a href="javascript:window.external.About()" class="link">About the Education Pack</a></p></div> </td> </tr> </table>';
  571. }
  572.  
  573. function InstallAll_OnMouseDown()
  574. {
  575.     if (window.InstallAllBtn.disabled == false)
  576.     {
  577.         MM_swapImage("InstallAllImage", "", "install-all-pressed.jpg", 1);
  578.     }
  579. }
  580. function InstallAll_OnMouseOver()
  581. {
  582.     if (window.InstallAllBtn.disabled == false)
  583.     {
  584.         MM_swapImage("InstallAllImage", "", "install-all-hover.jpg", 1);
  585.     }
  586. }
  587. function InstallAll()
  588. {
  589.     if (window.InstallAllBtn.disabled == false)
  590.     {
  591.         window.external.Install("ALL");
  592.     }
  593. }
  594.