home *** CD-ROM | disk | FTP | other *** search
/ PC World 2004 June / PCWorld_2004-06_cd.bin / software / vyzkuste / problemy / problemy.exe / M2Combo.exe / Plugin / common.js < prev    next >
Text File  |  2003-12-18  |  2KB  |  45 lines

  1. function PartWrapperToggle(elementName)
  2. {
  3.     var HeaderElement = null;
  4.     var BodyElement = null; 
  5.     if(document.getElementsByName) {
  6.         HeaderElement = document.getElementsByName(elementName+"Header");
  7.         BodyElement = document.getElementsByName(elementName+"Body");
  8.         UpImage = document.getElementsByName(elementName+"Up");
  9.         DownImage = document.getElementsByName(elementName+"Down");
  10.         if(BodyElement) {    
  11.             if(BodyElement[0].style.display == "none") {
  12.                 BodyElement[0].style.display = "block";
  13.                 HeaderElement[0].className = "ListNuggetHeader";
  14.                 DownImage[0].style.display = "none";
  15.                 UpImage[0].style.display = "block";            
  16.             } else {
  17.                 BodyElement[0].style.display = "none";
  18.                 HeaderElement[0].className = "ListNuggetHeaderClosed";
  19.                 UpImage[0].style.display = "none";
  20.                 DownImage[0].style.display = "block";
  21.             }
  22.         }    
  23.     }
  24.     window.event.cancelBubble = true;
  25.     return false;
  26. }
  27. function panleState()
  28. {
  29.   if (external.m2_readIni('WMP Player','config.ini','General','ControlPanel','')=='0')
  30.     {PartWrapperToggle('Cortrol');}
  31.   if (external.m2_readIni('WMP Player','config.ini','General','ScreenPanel','')=='0')
  32.     {PartWrapperToggle('Screen');}
  33.   if (external.m2_readIni('WMP Player','config.ini','General','SmiPanel','')=='0')
  34.     {PartWrapperToggle('Smi');}
  35.   if (external.m2_readIni('WMP Player','config.ini','General','PLPanel','')=='0')
  36.     {PartWrapperToggle('PL');}
  37. }
  38. var minView=false;
  39. function goMic()
  40. {
  41.   if (minView)
  42.       {fullview.style.display = "block";microview.style.display = "none";minView=false;}
  43.   else
  44.       {fullview.style.display = "none";microview.style.display = "block";minView=true;}
  45. }