home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 March / Chip_2004-03_cd1.bin / opsys / wmakeup / downloads / MANDALAY.wmz / mandalay.js < prev    next >
Text File  |  2000-09-09  |  12KB  |  519 lines

  1. var leftopen=false;
  2. var rightopen=false;
  3. var linkopen=false;
  4. var link2open=false;
  5. var movie=false;
  6. var videoisallowed=true;
  7. var playlistshow=false;
  8. var field="None";
  9. var page=1;
  10. var language="english";
  11. var metadata="scroll";
  12. var visenabled=false;
  13. var drawerspeed=500;
  14.  
  15. function loading()    {
  16.  
  17.     loadRegistry();
  18.  
  19.     if(visenabled)        {
  20.         vistoggleon.visible=true;
  21.         vistoggleoff.visible=false;
  22.                 }
  23.     else            {
  24.         vistoggleon.visible=false;
  25.         vistoggleoff.visible=true;
  26.                 }
  27.  
  28.     if(metadata=="scroll")    {
  29.         metadatascrolling.visible=true;
  30.         metadatafull.visible=false;
  31.         metadatascroll.visible=true;
  32.                 }
  33.     else            {
  34.         metadatascrolling.visible=false;
  35.         metadatafull.visible=true;
  36.         metadataf.visible=true;
  37.                 }
  38.  
  39.     pl.setColumnResizeMode( 1, "AutoSizeData" );
  40.     pl.setColumnResizeMode( 0, "Stretches" );
  41.     vis.currentEffectType = mediacenter.effectType;
  42.     vis.currentPreset = mediacenter.effectPreset;
  43.  
  44.     if((player.playstate != psStopped) && (player.currentMedia.ImageSourceWidth > 0))
  45.         openleft();
  46.     
  47.  
  48.             }
  49.  
  50. function closing()    {
  51.  
  52.     mediacenter.effectType = vis.currentEffectType;
  53.     mediacenter.effectPreset = vis.currentPreset;
  54.  
  55.     saveRegistry();
  56.  
  57.             }
  58.  
  59. function videoallowed()    {
  60.  
  61.     vid.visible=leftopen;
  62.  
  63.     if(player.playstate == psPlaying)
  64.         vis.visible=visenabled;
  65.     else
  66.         vis.visible=false;
  67.  
  68.     audiobitrate.value = player.currentmedia.getiteminfo("#Bitrate");
  69.     if(audiobitrate.value == "")
  70.         audiobitrate.value = player.currentmedia.getiteminfo("Bitrate");
  71.  
  72.             }
  73.  
  74. function antialias()    {
  75.  
  76.         if (leftopen==false)    {
  77.         aliasclosed.visible="true";
  78.         aliasopen.visible="false"
  79.         aliasopen1.visible="false"
  80.                     }
  81.         else            {
  82.         aliasclosed.visible="false";
  83.         aliasopen.visible="true"
  84.         aliasopen1.visible="true"
  85.                     }
  86.  
  87.             }
  88.  
  89. function openleft()    {
  90.  
  91.     if (leftopen==false)    {
  92.         leftdrawer.moveTo(5,4,drawerspeed);
  93.         leftopen = true;
  94.                 }
  95.     else            {
  96.         leftdrawer.moveTo(145,4,drawerspeed);
  97.         leftopen = false;
  98.         videoallowed();
  99.                 }
  100.             }
  101.  
  102.  
  103. function openright()    {
  104.  
  105.     if (rightopen==false)    {
  106.         rightdrawer.moveTo(346,17,drawerspeed);
  107.         rightopen = true;
  108.                 }
  109.     else            {
  110.         rightdrawer.moveTo(187,17,drawerspeed);
  111.         rightopen = false;
  112.         hideallright();
  113.                 }
  114.  
  115.             }
  116.  
  117. function openlink()    {
  118.  
  119.     if (linkopen==false)    {
  120.         linkdrawer.moveTo(129,196,drawerspeed);
  121.         linkopen = true;
  122.                 }
  123.     else            {
  124.         if(link2open)
  125.              openlinkS();
  126.         linkdrawer.moveTo(129,154,drawerspeed);
  127.         linkopen = false;
  128.                 }
  129.  
  130.             }
  131.  
  132. function FullScreen()   {
  133.  
  134. if (vid.visible)
  135.     vid.fullScreen=true;
  136.  
  137.             }
  138.  
  139. function hideallleft()    {
  140.  
  141.     audiocontrols1.visible=false;
  142.     videocontrols1.visible=false;
  143.     preferencesgroup.visible=false;
  144.  
  145.             }
  146.  
  147. function AudioControls(){
  148.  
  149.     hideallleft();
  150.     audiocontrols1.visible=true;
  151.  
  152.             }
  153.  
  154. function VideoControls(){
  155.  
  156.     hideallleft();
  157.     videocontrols1.visible=true;
  158.  
  159.             }
  160.  
  161. function showPreferences(){
  162.  
  163.     hideallleft();
  164.     preferencesgroup.visible=true;
  165.  
  166.             }
  167.  
  168. function vistoggle()    {
  169.  
  170.     if(visenabled)    {
  171.         vistoggleon.visible=false;
  172.         vistoggleoff.visible=true;
  173.         visenabled=false;
  174.  
  175.         if(player.playstate == psPlaying)
  176.             vis.visible=false;
  177.  
  178.             }
  179.     else    {
  180.         vistoggleoff.visible=false;
  181.         vistoggleon.visible=true;
  182.         visenabled=true;
  183.  
  184.         if(player.playstate == psPlaying)
  185.             vis.visible=true;
  186.  
  187.         }
  188.             }
  189.  
  190. function Playlist()    {
  191.  
  192.  
  193.     if(rightopen==false && playlistshow==false){
  194.         hideallright();
  195.         playlistshow=true;
  196.         openright();
  197.                                 }
  198.     else    {
  199.         if(rightopen==true && playlistshow==false){
  200.             hideallright();
  201.             playlistshow=true;
  202.             playlistgroup.visible=true;
  203.                               }
  204.  
  205.         else    
  206.             if(rightopen==true && playlistshow==true)
  207.                 openright();
  208.  
  209.         }
  210.  
  211.             }
  212.  
  213. function hideallright()    {
  214.  
  215.     page=1;
  216.     playlistgroup.visible=false;
  217.     playlistshow=false;
  218.     mainright.visible=false;
  219.     artistinfo.visible=false;
  220.     albuminfo.visible=false;
  221.     bainfo.visible=false;
  222.     swinfo.visible=false;
  223.     photos.visible=false;
  224.     albumcover.visible=false;
  225.  
  226.             }
  227.  
  228. function showwhatright(){
  229.  
  230.     playlistgroup.visible=playlistshow;
  231.  
  232.             }
  233.  
  234. function showArtistInfo(){
  235.  
  236.     hideallright();
  237.     artistinfo.visible=true;
  238.  
  239.             }
  240.  
  241. function showAlbumInfo(){
  242.  
  243.     hideallright();
  244.     albuminfo.visible=true;
  245.  
  246.             }
  247.  
  248. function showPhoto(){
  249.  
  250.     hideallright();
  251.     photos.visible=true;
  252.  
  253.             }
  254.  
  255. function showBAInfo(){
  256.  
  257.     hideallright();
  258.     bainfo.visible=true;
  259.  
  260.             }
  261.  
  262. function showSWInfo(){
  263.  
  264.     hideallright();
  265.     swinfo.visible=true;
  266.  
  267.             }
  268.  
  269. function showMainRight(){
  270.  
  271.     hideallright();
  272.     mainright.visible=true;
  273.  
  274.             }
  275.  
  276. function defaultRight()    {
  277.  
  278.     if(!playlistshow)
  279.         showMainRight();
  280.  
  281.             }
  282.  
  283. function scrolldown()    {
  284.  
  285.  
  286.     page=page+1;
  287.  
  288.     if(bainfo.visible){
  289.         if(page > 1 || page < 1)
  290.             page=1;
  291.         if(page==1)
  292.             batext.value="ByteAudio.com is a leading edge Music Portal and proprietary ecommerce publishing system for consumers, artists, recording studios, and record labels. Your global digital audio resource.";
  293.               }
  294.     if(swinfo.visible){
  295.         if(page > 2 || page < 1)
  296.             page=1;
  297.         if(page==1)
  298.             swtext.value="SkinWerkz is your resource for the best in digital customization. Creating custom skins for companies such as Microsoft's Windows Media, Pyramid Records and V2 Records, SkinWerkz partners with only the best talent in the digital art industry. For more";
  299.         if(page==2)
  300.             swtext.value="information go to www.skinwerkz.com.";
  301.               }
  302.     if(artistinfo.visible){
  303.         if(page > 3 || page < 1)
  304.             page=1;
  305.         if(page==1)
  306.             artisttext.value="Saul Freeman started musical life in the early Nineties as the instrumental half of the magnificent Thieves. When he and vocalist David McAlmont parted company, Saul met Nicola Hitchcock, a multi-instrumentalist in her own right with a 1993 solo album, 'A Bowl Of Chalk' to her name. Of course,";
  307.         if(page==2)
  308.             artisttext.value="this being the mid-Nineties, any musical enterprise involving an innovative instrumental approach and female vocals was immediately and lazily filed under trip-hop. Five years on and nobody's talking about trip-hop any more but Mandalay are still very much with us - and their second";
  309.         if(page==3)
  310.             artisttext.value="album, Instinct, is even more highly evolved and accomplished than 1998's debut, Empathy - weathered yet pristine, romantic Songs of Experience set to complex instrumental hues, yet instantly accessible.";
  311.               }
  312.     if(albuminfo.visible){
  313.         if(page > 2 || page < 1)
  314.             page=1;
  315.         if(page==1){
  316.             albumtext.value="Instinct is an album of love songs but they're to do with the essentially fraught and fragile nature of relationships, the constant negotiations for space, the need not to be taken for granted, fenced in, or kept out of reach. The themes are often evident from the titles; 'Don't Invent Me' and";
  317.             albumcover.visible=false;}
  318.         if(page==2){
  319.             albumtext.value="'Not Seventeen' being cases in point.";
  320.             albumcover.visible=true;}
  321.               }
  322.  
  323.             }
  324.  
  325. function scrollup()    {
  326.  
  327.  
  328.     page=page-1;
  329.  
  330.     if(bainfo.visible){
  331.         if(page > 1 || page < 1)
  332.             page=1;
  333.         if(page==1)
  334.             batext.value="ByteAudio.com is a leading edge Music Portal and proprietary ecommerce publishing system for consumers, artists, recording studios, and record labels. Your global digital audio resource.";
  335.               }
  336.     if(swinfo.visible){
  337.         if(page > 2 || page < 1)
  338.             page=1;
  339.         if(page==1)
  340.             swtext.value="SkinWerkz is your resource for the best in digital customization. Creating custom skins for companies such as Microsoft's Windows Media, Pyramid Records and V2 Records, SkinWerkz partners with only the best talent in the digital art industry. For more";
  341.         if(page==2)
  342.             swtext.value="information go to www.skinwerkz.com.";
  343.               }
  344.     if(artistinfo.visible){
  345.         if(page > 3 || page < 1)
  346.             page=1;
  347.         if(page==1)
  348.             artisttext.value="Saul Freeman started musical life in the early Nineties as the instrumental half of the magnificent Thieves. When he and vocalist David McAlmont parted company, Saul met Nicola Hitchcock, a multi-instrumentalist in her own right with a 1993 solo album, 'A Bowl Of Chalk' to her name. Of course,";
  349.         if(page==2)
  350.             artisttext.value="this being the mid-Nineties, any musical enterprise involving an innovative instrumental approach and female vocals was immediately and lazily filed under trip-hop. Five years on and nobody's talking about trip-hop any more but Mandalay are still very much with us - and their second";
  351.         if(page==3)
  352.             artisttext.value="album, Instinct, is even more highly evolved and accomplished than 1998's debut, Empathy - weathered yet pristine, romantic Songs of Experience set to complex instrumental hues, yet instantly accessible.";
  353.               }
  354.     if(albuminfo.visible){
  355.         if(page > 2 || page < 1)
  356.             page=1;
  357.         if(page==1){
  358.             albumtext.value="Instinct is an album of love songs but they're to do with the essentially fraught and fragile nature of relationships, the constant negotiations for space, the need not to be taken for granted, fenced in, or kept out of reach. The themes are often evident from the titles; 'Don't Invent Me' and";
  359.             albumcover.visible=false;}
  360.         if(page==2){
  361.             albumtext.value="'Not Seventeen' being cases in point.";
  362.             albumcover.visible=true;}
  363.               }
  364.  
  365.             }
  366.  
  367. function openlinkS()    {
  368.  
  369.     if(link2open)    {
  370.         linkback.visible=false;
  371.         linkleft1.moveTo(102,26,0);
  372.         linkright1.moveTo(128,25,0);
  373.         link2open=false;
  374.             }
  375.     else    {
  376.         linkleft1.moveTo(0,26,0);
  377.         linkright1.moveTo(224,25,0);
  378.         linkback.visible=true;
  379.         link2open=true;
  380.         }
  381.  
  382.             }
  383.  
  384. function nextlink()    {
  385.         
  386.  
  387.         field=link1.image;
  388.         link1.image=link2.image;
  389.         link2.image=link3.image;
  390.         link3.image=link4.image;
  391.         link4.image=field;
  392.  
  393.             }
  394.  
  395. function prevlink()    {
  396.         
  397.         field=link4.image;
  398.         link4.image=link3.image;
  399.         link3.image=link2.image;
  400.         link2.image=link1.image;
  401.         link1.image=field;
  402.         
  403.             }
  404.  
  405. function gotoURL1(){
  406.  
  407.  
  408.     if(link1.image=="mandalaylink.bmp")
  409.         player.launchURL('http://www.mandalay.co.uk');
  410.  
  411.     if(link1.image=="balink.bmp")
  412.         player.launchURL('http://www.byteaudio.com');
  413.  
  414.     if(link1.image=="skinwerkzlink.bmp")
  415.         player.launchURL('http://www.skinwerkz.com');
  416.  
  417.     if(link1.image=="v2link.bmp")
  418.         player.launchURL('http://www.v2records.com');
  419.  
  420.            }
  421.  
  422. function gotoURL2(){
  423.  
  424.     if(link2.image=="mandalaylink.bmp")
  425.         player.launchURL('http://www.mandalay.co.uk');
  426.  
  427.     if(link2.image=="balink.bmp")
  428.         player.launchURL('http://www.byteaudio.com');
  429.  
  430.     if(link2.image=="skinwerkzlink.bmp")
  431.         player.launchURL('http://www.skinwerkz.com');
  432.  
  433.     if(link2.image=="v2link.bmp")
  434.         player.launchURL('http://www.v2records.com');
  435.  
  436.            }
  437.  
  438. function gotoURL3(){
  439.  
  440.     if(link3.image=="mandalaylink.bmp")
  441.         player.launchURL('http://www.mandalay.co.uk');
  442.  
  443.     if(link3.image=="balink.bmp")
  444.         player.launchURL('http://www.byteaudio.com');
  445.  
  446.     if(link3.image=="skinwerkzlink.bmp")
  447.         player.launchURL('http://www.skinwerkz.com');
  448.  
  449.     if(link3.image=="v2link.bmp")
  450.         player.launchURL('http://www.v2records.com');
  451.  
  452.            }
  453.  
  454. function loadRegistry()    {
  455.  
  456.     var tempnum=theme.loadPreference('drawerspeed');
  457.     if (tempnum!='--')
  458.         drawerspeed=tempnum;
  459.     if (tempnum=='--')
  460.         drawerspeed=500;
  461.     drawerslidespeed.value=drawerspeed;
  462.  
  463.     var tempbool=theme.loadPreference('visenabled');
  464.  
  465.     if (tempbool!='--')    {
  466.  
  467.         if (tempbool=="False")
  468.             visenabled=false;
  469.         if (tempbool=="True")
  470.             visenabled=true;
  471.  
  472.                 }
  473.  
  474.     if(tempbool=='--')
  475.         visenabled=true;
  476.  
  477.     var templang=theme.loadPreference('language');
  478.     if (templang!='--')
  479.         language=templang;
  480.     
  481.     var tempmeta=theme.loadPreference('metadata');
  482.     if (tempmeta!='--')
  483.         metadata=tempmeta;
  484.         
  485.     if(tempmeta=='--')
  486.         metadata="scroll";
  487.  
  488.             }
  489.  
  490. function saveRegistry()    {
  491.  
  492.     theme.savePreference('drawerspeed',drawerspeed);
  493.     theme.savePreference('visenabled',visenabled);
  494.     theme.savePreference('language',language);
  495.     theme.savePreference('metadata',metadata);
  496.  
  497.             }
  498.  
  499. function metadatatoggle()    {
  500.  
  501.     if(metadata=="scroll")    {
  502.         
  503.         metadata="full";
  504.         metadatafull.visible=true;
  505.         metadatascrolling.visible=false;
  506.         metadataf.visible=true;
  507.         metadatascroll.visible=false;
  508.                 }
  509.  
  510.     else    {
  511.         
  512.         metadata="scroll";
  513.         metadatafull.visible=false;
  514.         metadatascrolling.visible=true;
  515.         metadataf.visible=false;
  516.         metadatascroll.visible=true;
  517.  
  518.         }
  519.                 }