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 >
Wrap
Text File
|
2003-12-18
|
2KB
|
45 lines
function PartWrapperToggle(elementName)
{
var HeaderElement = null;
var BodyElement = null;
if(document.getElementsByName) {
HeaderElement = document.getElementsByName(elementName+"Header");
BodyElement = document.getElementsByName(elementName+"Body");
UpImage = document.getElementsByName(elementName+"Up");
DownImage = document.getElementsByName(elementName+"Down");
if(BodyElement) {
if(BodyElement[0].style.display == "none") {
BodyElement[0].style.display = "block";
HeaderElement[0].className = "ListNuggetHeader";
DownImage[0].style.display = "none";
UpImage[0].style.display = "block";
} else {
BodyElement[0].style.display = "none";
HeaderElement[0].className = "ListNuggetHeaderClosed";
UpImage[0].style.display = "none";
DownImage[0].style.display = "block";
}
}
}
window.event.cancelBubble = true;
return false;
}
function panleState()
{
if (external.m2_readIni('WMP Player','config.ini','General','ControlPanel','')=='0')
{PartWrapperToggle('Cortrol');}
if (external.m2_readIni('WMP Player','config.ini','General','ScreenPanel','')=='0')
{PartWrapperToggle('Screen');}
if (external.m2_readIni('WMP Player','config.ini','General','SmiPanel','')=='0')
{PartWrapperToggle('Smi');}
if (external.m2_readIni('WMP Player','config.ini','General','PLPanel','')=='0')
{PartWrapperToggle('PL');}
}
var minView=false;
function goMic()
{
if (minView)
{fullview.style.display = "block";microview.style.display = "none";minView=false;}
else
{fullview.style.display = "none";microview.style.display = "block";minView=true;}
}