home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 February
/
Chip_2004-02_cd1.bin
/
opsys
/
wmakeup
/
downloads
/
Science.wmz
/
science.js
< prev
next >
Wrap
Text File
|
2000-09-21
|
2KB
|
142 lines
var bVisActive = false;
var bShowViz = false;
function showInfo()
{
var cm = player.currentmedia;
var author, title, copy;
author = cm.getItemInfo('#author');
if (author == "") {
author = cm.getItemInfo('author');
}
title = cm.name;
txtShow.value = player.currentplaylist.name;
txtClip.value = title;
txtClip2.value = title;
txtAuthor.value = author;
txtAuthor2.value = author;
}
function checkVid(){
var cm = player.currentmedia;
if (cm.imageSourceHeight >0) {
showVideo();
dropScreen();
} else {
if (bShowViz == true) {
dropScreen();
showViz();
} else {
raiseScreen();
}
}
}
function dropScreen(){
sbvScreen.moveTo(sbvScreen.left,56,150);
visEffects.visible = false;
}
function raiseScreen(){
vis1.visible=false;
pl1.visible=false;
vid1.visible=false;
btnVS.down = false;
btnPL.down = false;
sbvScreen.moveTo(sbvScreen.left,-184,150);
visEffects.visible = true;
}
function toggleScreen(){
if (sbvScreen.top == 56) {
raiseScreen();
} else {
dropScreen();
}
}
function togglePL(){
btnVS.down=false;
if (pl1.visible ==true) {
pl1.visible=false;
btnPL.down=false;
raiseScreen();
} else {
showPL();
btnPL.down=true;
dropScreen();
}
}
function toggleVS(){
btnPL.down=false;
// if ((vid1.visible==true)||(vis1.visible==true)) {
// if (sbvScreen.top > 0) {
if ((vid1.visible==true) || (vis1.visible==true)) {
bVisActive = false;
vid1.visible=false;
vis1.visible=false;
pl1.visible=false;
btnVS.down=false;
bShowViz = false;
raiseScreen();
} else {
dropScreen();
bVisActive = true;
btnVS.down=true;
if (player.currentMedia.imageSourceHeight > 0) {
showVideo();
} else {
bShowViz = true;
showViz();
}
}
}
function showVideo(){
btnVS.down=true;
vid1.visible=true;
vis1.visible=false;
pl1.visible=false;
bVisActive=true;
}
function showViz(){
vid1.visible=false;
vis1.visible=true;
pl1.visible=false;
bVisActive=false;
}
function showPL(){
vid1.visible=false;
vis1.visible=false;
pl1.visible=true;
}
function openStateChange()
{
showInfo();
checkVid();
}
function OnLoad(){
reInit();
checkVid();
}
function reInit()
{
showInfo();
}