home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 May
/
Chip_2003-05_cd1.bin
/
zkuste
/
wmakeup
/
download
/
KungFuChaosWMPSKIN.wmz
/
kfc.js
< prev
next >
Wrap
Text (UTF-16)
|
2003-02-18
|
52KB
|
1,111 lines
/*
The Skins Factory
http://www.theskinsfactory.com
info@theskinsfactory.com
Kung Fu Chaos
*/
function checkMediaOnLoad(){
if(player){}
view.width = 0;
view.height = 0;
view.backgroundImage = "";
theme.currentViewID = "mainView";
}
// sound fx
function loadSoundPrefValue(){
var val = theme.loadPreference('soundFX');
if(val=='--'){
theme.savePreference("soundFX", "true");
}
}
function checkSoundPref(type){
if("true"==theme.loadPreference("soundFX")){
theme.playSound( type );
}
}
function timerEvent(){
view.timerInterval = 0;
colorToggleButton.enabled = true;
}
var ninjaStatus = 1;
function toggleNinjas(){
switch(ninjaStatus){
case 1:
mainBack.backgroundImage = "main_back_red.png";
theme.savePreference('themeID','1');
infoButton.image = "m_info_no.png";
infoButton.hoverImage = "m_info_hov.png";
infoButton.downImage = "m_info_do.png";
break;
case 2:
mainBack.backgroundImage = "main_back_purple.png";
theme.savePreference('themeID','2');
break;
case 3:
mainBack.backgroundImage = "main_back_green.png";
theme.savePreference('themeID','3');
break;
case 4:
mainBack.backgroundImage = "main_back_blue.png";
theme.savePreference('themeID','4');
break;
case 5:
mainBack.backgroundImage = "main_back_pink.png";
theme.savePreference('themeID','5');
infoButton.image = "m_info_no_pink.png";
infoButton.hoverImage = "m_info_hov_pink.png";
infoButton.downImage = "m_info_do_pink.png";
ninjaStatus = 0;
break;
}
colorToggleButton.enabled = false;
view.timerInterval = 1000;
}
var index = 0;
var fSubs = new Array()
fSubs[index++] = "f_top_left_";
fSubs[index++] = "f_left_s_";
fSubs[index++] = "f_bot_left_";
fSubs[index++] = "f_bot_s_";
fSubs[index++] = "f_bot_right_";
fSubs[index++] = "f_right_s_";
fSubs[index++] = "f_top_right_";
fSubs[index++] = "f_top_s_";
function toggleWindowColor(window,color){
for(x=0; x<fSubs.length; x++){
winColor = window + x + ".backgroundImage = '" + fSubs[x] + color + ".png'";
eval(winColor);
}
}
var index = 0;
var plButns = new Array()
plButns[index++] = "plShuffRep.image = 'pl_shuff_no_";
plButns[index++] = "plShuffRep.hoverImage = 'pl_shuff_hov_";
plButns[index++] = "plShuffRep.downImage = 'pl_shuff_do_";
plButns[index++] = "plClose.image = 'f_close_no_";
plButns[index++] = "plClose.hoverImage = 'f_close_hov_";
plButns[index++] = "plClose.downImage = 'f_close_do_";
plButns[index++] = "plResize.image = 'f_resize_";
plButns[index++] = "plEdit.image = 'pl_edit_no_";
plButns[index++] = "plEdit.hoverImage = 'pl_edit_hov_";
plButns[index++] = "plEdit.downImage = 'pl_edit_do_";
function togglePlButtons(color){
for(x=0; x<plButns.length; x++){
plButtons = plButns[x] + color + ".png'";
eval(plButtons);
}
}
var plNinja = 1;
function togglePlColors(){
var plStatus = theme.loadPreference( "themeID" );
if (plStatus != '--'){
if(plStatus==1&&plNinja==0){
toggleWindowColor('pl','red');
togglePlButtons('red');
playlist1.itemPlayingBackgroundColor = "#f00100";
plNinja = 1;
}else if(plStatus==2&&plNinja==1){
toggleWindowColor('pl','purple');
togglePlButtons('purple');
playlist1.itemPlayingBackgroundColor = "#8e09ad";
plNinja = 2;
}else if(plStatus==3&&plNinja==2){
toggleWindowColor('pl','green');
togglePlButtons('green');
playlist1.itemPlayingBackgroundColor = "#157000";
plNinja = 3;
}else if(plStatus==4&&plNinja==3){
toggleWindowColor('pl','blue');
togglePlButtons('blue');
playlist1.itemPlayingBackgroundColor = "#5f04c0";
plNinja = 4;
}else if(plStatus==5&&plNinja==4){
toggleWindowColor('pl','pink');
togglePlButtons('pink');
playlist1.itemPlayingBackgroundColor = "#db0f84";
plNinja = 0;
}
}
}
var index = 0;
var visButns = new Array();
visButns[index++] = "visNav.image = 'vis_nav_no_";
visButns[index++] = "visNav.hoverImage = 'vis_nav_hov_";
visButns[index++] = "visNav.downImage = 'vis_nav_do_";
visButns[index++] = "visClose.image = 'f_close_no_";
visButns[index++] = "visClose.hoverImage = 'f_close_hov_";
visButns[index++] = "visClose.downImage = 'f_close_do_";
visButns[index++] = "visResize.image = 'f_resize_";
function toggleVisButtons(color){
for(x=0; x<visButns.length; x++){
visButtons = visButns[x] + color + ".png'";
eval(visButtons);
}
}
var visNinja = 1;
function toggleVisColors(){
var visStatus = theme.loadPreference( "themeID" );
if(visStatus != '--'){
if(visStatus==1&&visNinja==0){
toggleWindowColor('vis','red');
toggleVisButtons('red');
visNinja = 1;
}else if(visStatus==2&&visNinja==1){
toggleWindowColor('vis','purple');
toggleVisButtons('purple');
visNinja = 2;
}else if(visStatus==3&&visNinja==2){
toggleWindowColor('vis','green');
toggleVisButtons('green');
visNinja = 3;
}else if(visStatus==4&&visNinja==3){
toggleWindowColor('vis','blue');
toggleVisButtons('blue');
visNinja = 4;
}else if(visStatus==5&&visNinja==4){
toggleWindowColor('vis','pink');
toggleVisButtons('pink');
visNinja = 0;
}
}
}
var index = 0;
var eqButns = new Array();
eqButns[index++] = "eqClose.image = 'f_close_no_";
eqButns[index++] = "eqClose.hoverImage = 'f_close_hov_";
eqButns[index++] = "eqClose.downImage = 'f_close_do_";
eqButns[index++] = "eqReset.image = 'eq_reset_no_";
eqButns[index++] = "eqReset.hoverImage = 'eq_reset_hov_";
eqButns[index++] = "eqReset.downImage = 'eq_reset_do_";
eqButns[index++] = "fxButton.image = 'eq_nofx_no_";
eqButns[index++] = "fxButton.hoverImage = 'eq_nofx_hov_";
eqButns[index++] = "fxButton.downImage = 'eq_nofx_do_";
eqButns[index++] = "xFade.image = 'eq_xfade_no_";
eqButns[index++] = "xFade.hoverImage = 'eq_xfade_hov_";
eqButns[index++] = "xFade.downImage = 'eq_xfade_do_";
function toggleEqButtons(color){
for(x=0; x<eqButns.length; x++){
eqButtons = eqButns[x] + color + ".png'";
eval(eqButtons);
}
}
var eqNinja = 1;
function toggleEqColors(){
var eqStatus = theme.loadPreference( "themeID" );
if(eqStatus != '--'){
if(eqStatus==1&&eqNinja==0){
eqBack.backgroundImage = "eq_back_red.png";
toggleEqButtons('red');
eqNinja = 1;
}else if(eqStatus==2&&eqNinja==1){
eqBack.backgroundImage = "eq_back_purple.png";
toggleEqButtons('purple');
eqNinja = 2;
}else if(eqStatus==3&&eqNinja==2){
eqBack.backgroundImage = "eq_back_green.png";
toggleEqButtons('green');
eqNinja = 3;
}else if(eqStatus==4&&eqNinja==3){
eqBack.backgroundImage = "eq_back_blue.png";
toggleEqButtons('blue');
eqNinja = 4;
}else if(eqStatus==5&&eqNinja==4){
eqBack.backgroundImage = "eq_back_pink.png";
toggleEqButtons('pink');
eqNinja = 0;
}
}
}
var index = 0;
var vidButns = new Array();
vidButns[index++] = "vidClose.image = 'f_close_no_";
vidButns[index++] = "vidClose.hoverImage = 'f_close_hov_";
vidButns[index++] = "vidClose.downImage = 'f_close_do_";
vidButns[index++] = "vidZoom.image = 'vid_zoom_no_";
vidButns[index++] = "vidZoom.hoverImage = 'vid_zoom_hov_";
vidButns[index++] = "vidZoom.downImage = 'vid_zoom_do_";
vidButns[index++] = "vidResize.image = 'f_resize_";
function toggleVidButtons(color){
for (x=0; x<vidButns.length; x++){
vidButtons = vidButns[x] + color + ".png'";
eval(vidButtons);
}
}
var vidNinja = 1;
function toggleVidColors(){
var vidStatus = theme.loadPreference( "themeID" );
if(vidStatus != '--'){
if(vidStatus==1&&vidNinja==0){
toggleWindowColor('vid','red');
toggleVidButtons('red');
vidNinja = 1;
}else if(vidStatus==2&&vidNinja==1){
toggleWindowColor('vid','purple');
toggleVidButtons('purple');
vidNinja = 2;
}else if(vidStatus==3&&vidNinja==2){
toggleWindowColor('vid','green');
toggleVidButtons('green');
vidNinja = 3;
}else if(vidStatus==4&&vidNinja==3){
toggleWindowColor('vid','blue');
toggleVidButtons('blue');
vidNinja = 4;
}else if(vidStatus==5&&vidNinja==4){
toggleWindowColor('vid','pink');
toggleVidButtons('pink');
vidNinja = 0;
}
}
}
var index = 0;
var infoButns = new Array();
infoButns[index++] = "infoClose.image = 'f_close_no_";
infoButns[index++] = "infoClose.hoverImage = 'f_close_hov_";
infoButns[index++] = "infoClose.downImage = 'f_close_do_";
function toggleInfoButtons(color){
for (x=0; x<infoButns.length; x++){
infoButtons = infoButns[x] + color + ".png'";
eval(infoButtons);
}
}
var infoNinja = 1;
function toggleInfoColors(){
var infoStatus = theme.loadPreference( "themeID" );
if(infoStatus != '--'){
if(infoStatus==1&&infoNinja==0){
toggleWindowColor('info','red');
toggleInfoButtons('red');
infoNinja = 1;
}else if(infoStatus==2&&infoNinja==1){
toggleWindowColor('info','purple');
toggleInfoButtons('purple');
infoNinja = 2;
}else if(infoStatus==3&&infoNinja==2){
toggleWindowColor('info','green');
toggleInfoButtons('green');
infoNinja = 3;
}else if(infoStatus==4&&infoNinja==3){
toggleWindowColor('info','blue');
toggleInfoButtons('blue');
infoNinja = 4;
}else if(infoStatus==5&&infoNinja==4){
toggleWindowColor('info','pink');
toggleInfoButtons('pink');
infoNinja = 0;
}
}
}
function videoCheck(){
if(player.OpenState==13&&(player.currentMedia.ImageSourceWidth>0)){
theme.savePreference("vidViewer", "false");
}else{
var vidPref = theme.loadPreference("vidViewer");
if(vidPref=='--'||vidPref=="true"){
theme.savePreference("vidViewer", "false");
}
}
}
function mainStartUp(){
loadSoundPrefValue();
checkSoundPref('intro.wav')
volume.value = player.settings.volume;
loadMainPrefs();
videoCheck();
checkPlayerState();
}
function checkPlayerState(){
if (player){
switch (player.playState){
case 3: //playing
if(("false"==theme.loadPreference("vidViewer"))&&player.currentMedia.ImageSourceWidth>0){
theme.openView('videoView');
if("true"==theme.loadPreference("visViewer")){
theme.savePreference("visViewer", "false");
theme.closeView( "visView" );
}
break
}
break;
}
}
if (!player.controls.isAvailable("Stop")) {
}
updateMetadata();
}
// metadata
function updateMetadata(){
if(player.openState!=13) return;
metadata.value = player.status;
authorppl = player.currentmedia.getiteminfo("#author");
if (authorppl == "") {
authorppl = player.currentmedia.getiteminfo("author");
}
if (authorppl != "") {
authorppl += " - ";
}
if (metadata.value != "") {
metadata.value += " - ";
}
metadata.value += authorppl;
metadata.value += player.currentmedia.name;
metadata.scrolling = (metadata.textWidth>metadata.width);
}
// button and hotkey definitions
// open file
function openFile(){
var media = theme.openDialog('FILE_OPEN','FILES_ALLMEDIA');
if (media) {
player.URL = media;
player.controls.play();
}
}
function viewHotKeys(){
switch(event.keycode){
case 122:
case 90:
player.controls.previous();
break;
case 120:
case 88:
player.controls.play();
break;
case 99:
case 67:
player.controls.pause();
break;
case 118:
case 86:
player.controls.stop();
break;
case 98:
case 66:
player.controls.next();
break;
case 108:
case 76:
openFile();
break;
}
}
function viewResizer(event){
switch(event.keycode){
case 37:
view.width-=20;
break;
case 38:
view.height-=20
break;
case 39:
view.width+=20;
break;
case 40:
view.height+=20;
break;
}
}
function updateToolTip(id,button,tip){
if("true"==theme.loadPreference( id )){
eval( button +".upToolTip = locHide" + tip + ".toolTip" );
}else{
eval( button +".upToolTip = locShow" + tip + ".toolTip" );
}
}
function updateVolToolTip(){
volume.toolTip = "";
volume.toolTip += player.settings.volume;
}
function updateRemoteVolToolTip(){
volume2.toolTip = "";
volume2.toolTip += player.settings.volume;
}
function updateShuffRep(){
if(player.settings.getMode('shuffle')){
shuffleButton.down = true;
}else{
shuffleButton.down = false;
}
if(player.settings.getMode('loop')){
repeatButton.down = true;
}else{
repeatButton.down = false;
}
}
//
function volKey(event){
switch(event.keycode){
case 39:
case 38:
if(player.settings.volume < 95){
player.settings.volume+=5;
}else{
player.settings.volume = 100;
}
break;
case 37:
case 40:
if(player.settings.volume > 5){
player.settings.volume-=5;
}else{
player.settings.volume = 0;
}
break;
}
//mute.down = false;
player.settings.mute = false;
}
function seekKey(event){
switch(event.keycode){
case 37:
case 40:
if(player.controls.currentPosition > 10){
player.controls.currentPosition-=10;
}else{
player.controls.currentPosition = 0;
}
break;
case 39:
case 38:
if(player.controls.currentPosition < 900){
player.controls.currentPosition+=10;
}else{
player.controls.currentPosition = 1000;
}
break;
}
}
// view toggle
function toggleView(name,id){
if("true"==theme.loadPreference(id)){
theme.savePreference(id, "false");
theme.closeView( name );
}else{
theme.openView( name );
}
}
function closeView(id){
theme.savePreference(id, "false");
if( id=="vidViewer" && player.currentMedia.ImageSourceWidth>0 ){
player.controls.stop();
}
view.close();
}
function autoSizeView(width,height){
var viewSize = theme.loadPreference( width );
if( "--" != viewSize )
{
view.width = viewSize;
}else{
view.width = view.minWidth;
}
viewSize = theme.loadpreference( height );
if( "--" != viewSize )
{
view.height = viewSize;
}else{
view.height = view.minHeight;
}
}
function saveViewSize(width,height){
theme.savepreference( width , view.width );
theme.savepreference( height , view.height );
}
// preferences
function loadMainPrefs(){
var mainStatus = theme.loadPreference('themeID');
if(mainStatus != '--'){
if(mainStatus==1){
ninjaStatus = 1;
}else if(mainStatus==2){
mainBack.backgroundImage = "main_back_purple.png";
ninjaStatus = 2;
}else if(mainStatus==3){
mainBack.backgroundImage = "main_back_green.png";
ninjaStatus = 3;
}else if(mainStatus==4){
mainBack.backgroundImage = "main_back_blue.png";
ninjaStatus = 4;
}else if(mainStatus==5){
mainBack.backgroundImage = "main_back_pink.png";
infoButton.image = "m_info_no_pink.png";
infoButton.hoverImage = "m_info_hov_pink.png";
infoButton.downImage = "m_info_do_pink.png";
ninjaStatus = 0;
}
}
if ("true"==theme.loadPreference("plViewer")){
theme.openView( 'plView' );
}
if ("true"==theme.loadPreference("eqViewer")){
theme.openView( 'eqView' );
}
if ("true"==theme.loadPreference("visViewer")){
theme.openView( 'visView' );
}
if ("true"==theme.loadPreference("infoViewer")){
theme.openView( 'infoView' );
}
}
function saveMainPrefs() {
theme.savePreference("vidViewer", "false");
theme.savePreference("infoViewer", "false");
}
function mainShutDown(){
saveMainPrefs();
}
// playlist
function loadPlPrefs(){
theme.savePreference( 'plViewer', "true" );
autoSizeView('plWidth','plHeight');
var index = 0;
playlist1.setColumnResizeMode( index++, "Stretches" );
playlist1.setColumnResizeMode( index++, "AutosizeHeader" );
playlist1.setColumnResizeMode( index++, "AutosizeHeader" );
playlist1.setColumnResizeMode( index++, "AutosizeHeader" );
playlist1.setColumnResizeMode( index++, "AutosizeHeader" );
var plStatus = theme.loadPreference( "themeID" );
if(plStatus != '--'){
if(plStatus==1){
plNinja = 1;
}else if(plStatus==2){
toggleWindowColor('pl','purple');
togglePlButtons('purple');
playlist1.itemPlayingBackgroundColor = "#8e09ad";
plNinja = 2;
}else if(plStatus==3){
toggleWindowColor('pl','green');
togglePlButtons('green');
playlist1.itemPlayingBackgroundColor = "#157000";
plNinja = 3;
}else if(plStatus==4){
toggleWindowColor('pl','blue');
togglePlButtons('blue');
playlist1.itemPlayingBackgroundColor = "#5f04c0";
plNinja = 4;
}else if(plStatus==5){
toggleWindowColor('pl','pink');
togglePlButtons('pink');
playlist1.itemPlayingBackgroundColor = "#db0f84";
plNinja = 0;
}
}
}
function addToPlaylist(){
var media = theme.openDialog( "FILE_OPEN" , "FILES_ALLMEDIA" );
if(media){
newMedia = player.mediaCollection.add( media );
playlist1.playlist.appendItem( newMedia );
}
}
function delFromPlaylist(){
playlist1.deleteSelected()
}
function savePlPrefs(){
saveViewSize('plWidth','plHeight');
}
// equalizer
function loadEQPrefs(){
theme.savePreference( 'eqViewer', "true" );
var eqStatus = theme.loadPreference( "themeID" );
if(eqStatus != '--'){
if(eqStatus==1){
eqNinja==1;
}else if(eqStatus==2){
eqBack.backgroundImage = "eq_back_purple.png";
toggleEqButtons('purple');
eqNinja = 2;
}else if(eqStatus==3){
eqBack.backgroundImage = "eq_back_green.png";
toggleEqButtons('green');
eqNinja = 3;
}else if(eqStatus==4){
eqBack.backgroundImage = "eq_back_blue.png";
toggleEqButtons('blue');
eqNinja = 4;
}else if(eqStatus==5){
eqBack.backgroundImage = "eq_back_pink.png";
toggleEqButtons('pink');
eqNinja = 0;
}
}
}
function updateBalToolTip(){
balance.toolTip = "";
balance.toolTip += player.settings.balance;
}
function toggleSpeaker(){
if(eq.speakerSize==2){
eq.speakerSize = -1;
}
eq.speakerSize++
}
function toggleSkinFx(){
if("true"==theme.loadPreference("soundFX")){
theme.savePreference("soundFX", "false");
}else{
theme.savePreference("soundFX", "true");
}
}
// visualizations
function loadVisPrefs(){
theme.savePreference( 'visViewer', "true" );
visEffects.currentEffectType = mediacenter.effectType;
visEffects.currentPreset = mediacenter.effectPreset;
autoSizeView('visWidth','visHeight');
var visStatus = theme.loadPreference( "themeID" );
if(visStatus != '--'){
if(visStatus==1){
visNinja = 1;
}else if(visStatus==2){
toggleWindowColor('vis','purple');
toggleVisButtons('purple');
visNinja = 2;
}else if(visStatus==3){
toggleWindowColor('vis','green');
toggleVisButtons('green');
visNinja = 3;
}else if(visStatus==4){
toggleWindowColor('vis','blue');
toggleVisButtons('blue');
visNinja = 4;
}else if(visStatus==5){
toggleWindowColor('vis','pink');
toggleVisButtons('pink');
visNinja = 0;
}
}
checkVisualsPlayerState()
}
function saveVisPrefs(){
mediacenter.effectType = visEffects.currentEffectType;
mediacenter.effectPreset = visEffects.currentPreset;
saveViewSize('visWidth','visHeight');
}
function checkVisualsPlayerState(){
if (player){
switch (player.playState){
case 3: //playing
//visMask.visible = true;
break;
}
}
if (!player.controls.isAvailable("Stop")) {
//visMask.visible = false;
}
}
// video
function loadVidPrefs(){
theme.savePreference( 'vidViewer', "true" );
var vidStatus = theme.loadPreference( "themeID" );
if(vidStatus != '--'){
if(vidStatus==1){
vidNinja = 1;
}else if(vidStatus==2){
toggleWindowColor('vid','purple');
toggleVidButtons('purple');
vidNinja = 2;
}else if(vidStatus==3){
toggleWindowColor('vid','green');
toggleVidButtons('green');
vidNinja = 3;
}else if(vidStatus==4){
toggleWindowColor('vid','blue');
toggleVidButtons('blue');
vidNinja = 4;
}else if(vidStatus==5){
toggleWindowColor('vid','pink');
toggleVidButtons('pink');
vidNinja = 0;
}
}
var _drawerStatus = theme.loadPreference('drawerStatus');
if (_drawerStatus != '--') {
drawerStatus = (_drawerStatus.toLowerCase() == 'true') ? false : true;
} else {
drawerStatus = true;
}
checkSnapStatus();
checkVideoPlayerState();
updateZoomToolTip();
toggleVidDrawer();
}
function saveVidPrefs(){
theme.savePreference('drawerStatus',drawerStatus);
}
function loadVidSize(){
var vidSizer = theme.loadPreference( "videoWidth" );
if( "--" != vidSizer )
{
view.width = vidSizer;
}
vidSizer = theme.loadpreference( "videoHeight" );
if( "--" != vidSizer )
{
view.height = vidSizer;
}
}
function saveVidSize(){
theme.savepreference( "videoWidth", view.width );
theme.savepreference( "videoHeight", view.height );
theme.savePreference("vidSnapper" , "false");
vidZoom.upToolTip = vidSetTip.toolTip;
mediacenter.videoZoom = 50;
}
function videoZoom(){
if("false"==theme.loadPreference("vidSnapper")){
mediacenter.videoZoom = 50;
}
if(mediacenter.videoZoom < 76){
mediacenter.videoZoom = 100;
}else if(mediacenter.videoZoom <101){
mediacenter.videoZoom = 150;
}else if(mediacenter.videoZoom < 156){
mediacenter.videoZoom = 200;
}else{
mediacenter.videoZoom = 75;
}
SnapToVideo();
updateZoomToolTip();
}
function updateZoomToolTip(){
vidZoom.upToolTip = vidZoomIn.toolTip + mediacenter.videoZoom + vidZoomMid.toolTip;
if(mediacenter.videoZoom < 76){
nextZoom = 100;
}else if(mediacenter.videoZoom <101){
nextZoom = 150;
}else if(mediacenter.videoZoom < 156){
nextZoom = 200;
}else{
nextZoom = 75;
}
vidZoom.upToolTip += nextZoom + vidZoomOut.toolTip;
if("false"==theme.loadPreference("vidSnapper")){
vidZoom.upToolTip = vidSetTip.toolTip;
}
}
function SnapToVideo(){
theme.savePreference("vidSnapper" , "true");
var zoom = mediacenter.videoZoom;
var viewWidth = (player.currentMedia.imageSourceWidth * (zoom/100.00));
var viewHeight = (player.currentMedia.imageSourceHeight * (zoom/100.00));
view.width = viewWidth + 117;
view.height = viewHeight + 187;
}
function checkSnapStatus(){
if("false"==theme.loadPreference("vidSnapper")){
loadVidSize();
}else{
SnapToVideo();
}
}
function checkVideoPlayerState(){
if (player){
switch (player.playState){
case 0: //undefined
break;
case 1: //stopped
break;
case 2: //paused
break;
case 3: //playing
videoFrame.visible = true;
if(!player.fullScreen){
checkSnapStatus();
}
if(!player.currentMedia.ImageSourceWidth>0){
theme.savePreference('vidViewer', "false");
view.close();
break;
}
break;
case 6: //buffering
break;
case 7: //waiting
break;
case 8: //media ended
break;
case 9: //Transitioning
break;
case 10: //Ready
break;
}
vidResize.enabled = true;
vidZoom.enabled = true;
}
if (!player.controls.isAvailable("Stop")) {
videoFrame.visible = false;
vidResize.enabled = false;
vidZoom.enabled = false;
view.width = view.minWidth;
view.height = view.minHeight;
}
}
var drawerStatus = false;
function toggleVidDrawer(){
if(!drawerStatus){
vidDrawer.moveTo(0,view.height-133,500);
vidDrawerFrame.visible = true;
vidDrawerButton.down = true;
drawerStatus = !drawerStatus;
}else{
vidDrawer.moveTo(0,view.height-246,500);
drawerStatus = !drawerStatus;
}
}
function checkVidDrawer(){
drawerStatus = drawerStatus;
vidDrawerFrame.visible = drawerStatus;
}
// info / content
function loadInfoPrefs(){
checkSoundPref('imode.wav')
theme.savePreference( 'infoViewer', "true" );
view.width = view.minWidth;
view.height = view.minHeight;
var infoStatus = theme.loadPreference( "themeID" );
if(infoStatus != '--'){
if(infoStatus==1){
infoNinja = 1;
}else if(infoStatus==2){
toggleWindowColor('info','purple');
toggleInfoButtons('purple');
infoNinja = 2;
}else if(infoStatus==3){
toggleWindowColor('info','green');
toggleInfoButtons('green');
infoNinja = 3;
}else if(infoStatus==4){
toggleWindowColor('info','blue');
toggleInfoButtons('blue');
infoNinja = 4;
}else if(infoStatus==5){
toggleWindowColor('info','pink');
toggleInfoButtons('pink');
infoNinja = 0;
}
}
}
// nav menu
var infoGo = 0;
function showInfo(menu,nav,infoGo){
infoMenuBack.visible = menu;
infoNavSub.visible = nav;
menuBack.visible = !menu;
switch(infoGo){
case 0:
infoSub.backgroundImage = "";
menuBack.visible = true;
break;
case 1:
infoMode = 1; // call sections
navGo = 1;
navLimit = 1;
infoNavNext();
break;
case 2:
infoMode = 2; // sshots
navGo = 1;
navLimit = 8;
infoNavNext();
break;
case 3: // features
infoMode = 3;
navGo = 1;
navLimit = 3;
infoNavNext();
break;
case 4:
infoMode = 4;
navGo = 1;
navLimit = 5;
infoNavNext();
break;
}
}
navGo = 1;
function infoNavNext(){
infoSub.backgroundImage = "c_sub_" + infoMode + "_" + navGo + ".jpg";
navCheck();
}
function infoNavPrev(){
infoSub.backgroundImage = "c_sub_" + infoMode + "_" + navGo + ".jpg";
navCheck();
}
function navCheck(){
if(navGo==1){
navPrev.enabled = false;
navNext.enabled = true;
}else if(navGo==navLimit && infoMode==infoMode){ // enable / disable sections
navNext.enabled = false;
navPrev.enabled = true;
}else{
navNext.enabled = true;
navPrev.enabled = true;
}
}