home *** CD-ROM | disk | FTP | other *** search
- /*function allows deleting a button from the memu of the main page*/
- function get_button_menu()
- {
- return "install,web,manual,acrobat";
- }
-
- /*Function allows changing the buttonÆs color of the main page */
- function change_color(curent, szClassName)
- {
- curent.className = szClassName;
- }
-
- /*Function allows changing the wolrd button and main image of the home page */
- function change_image(szimage)
- {
- var main_image = document.getElementById("main_image");
- if (main_image)
- {
- main_image.src = "images/" + szimage;
- }
- }
-
-
- /*Function allows launching the main application */
- function install()
- {
- window.external.Show(6);
- window.external.Execute("WE71-Pry.exe","","data\\ENG\\",5);
- window.external.Show(5);
- }
-
- /*Function allows launching the trial application */
- function install_trial()
- {
- window.external.Show(6);
- window.external.Execute("TransferMy Video-Trial.exe","","data\\trial\\",5);
- window.external.Show(5);
- }
-
- /*Function allows reading the user guide */
- function Guide_read()
- {
- window.external.Show(6);
- window.external.Execute("Guide.pdf","","data\\Guide\\",5);
- window.external.Show(5);
- }
-
- /*Function allows launching Acrobat Reader */
- function acrobat_install()
- {
- window.external.Show(6);
- window.external.Execute("AdbeRdr81.exe","","data\\Acrobat\\ENG\\",5);
- window.external.Show(5);
- }
-
- /* function allows preloading images*/
- function preloadImages() {
- var d=document; if(d.images){ if(!d.p) d.p=new Array();
- var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
- if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
- }
-
-
- /*Function launches in the Onload of the main page. It displays the buttons in the menu and preload images */
- function init_home()
- {
- var objbutton;
- var strbutton = get_button_menu();
- var arrbutton = strbutton.split(",");
- preloadImages('images/TransfertMy.jpg');
- for (var intCount=0; intCount<arrbutton.length; intCount++)
- {
- objbutton = document.getElementById("Button_" + arrbutton[intCount]);
- if (objbutton)
- objbutton.style.display = "block";
- }
- }
-