\n');
}
if (document.layers) var doc = 'document.', vis = '.visibility';
if (document.all) var doc = 'document.all.', vis = '.style.visibility';
function show(object) {
if (document.layers || document.all)
eval(doc + object + vis + ' = "visible"');
}
function popme(page) {
window.open(page,"rm_pics_win","width=250,height=100");
}
function popmex(page) {
window.open(page,"rm_pics_win");
}
function hide(object) {
if (document.layers || document.all)
eval(doc + object + vis + ' = "hidden"');
}
function WM_LoadMovie(fileName){
show('WMLayer');
if (fileName == "") fileName = "Videos/plmember.asx";
WM.Volume = -600;
WM.FileName = fileName;
}
function WM_Stop(){
WM.Stop();
WM.CurrentPosition = 0;
}
function WM_Pause(){
if (WM.PlayState != 0) WM.Pause();
}
function WM_Close(){
hide('WMLayer');
WM_Stop();
}
function WM_Volume(vol){
var newVol = -(100 - vol) * 25;
if (newVol == -2500) newVol = -10000;
WM.Volume = newVol;
}
function WM_Play(){
WM.Play();
}
function Open_FeedBack() {
window.open("../buzzshow/", "Feedback_Form", "width=800, height=600, directories=0, hotkeys=0, location=0, menubar=0, resizable=0, scrollbars=1, toolbar=0");
}
function Open_Helper(Helper) {
window.open(Helper, "BuzzShow_Helper", "width=300, height=200, directories=0, hotkeys=0, location=0, menubar=0, resizable=0, scrollbars=0, toolbar=0, top=400, left=500");
}
function Open_Games() {
window.open("../Games/","GamesWin", "width=700, height=500, scrollbars=0");
}
function Open_SiteMap(FromX) {
SiteMap = window.open("../sitemap/", "SiteMap", "width=800, height=600, directories=0, hotkeys=0, location=0, menubar=0, resizable=0, scrollbars=0, toolbar=0");
}
function Close_Self() {
setTimeout('parent.close();',1000);
}
function Open_Picture(pic) {
window.open("/"+pic, "Picture_View", "width=725, height=525, directories=0, hotkeys=0, location=0, menubar=0, resizable=0, scrollbars=1, toolbar=0");
}
function MB_DoFSCommand(command, args) {
if (command == "Status"){WM_Status();}
if (command == "Play"){WM_Play();}
if (command == "Pause"){WM_Pause();}
if (command == "PicExpand"){Open_Picture(args);}
if (command == "Stop"){WM_Stop();}
if (command == "Volume"){WM_Volume(args);}
if (command == "Close"){WM_Close();}
if (command == "Feedback"){Open_FeedBack();}
if (command == "Helper"){Open_Helper(args);}
if (command == "Games"){Open_Games();}
if (command == "setvar"){channelx = args;}
if (command == "External"){External_Link();}
if (command == "chat"){chatwindow=window.open('../chat/blank/','Player','toolbar=0, location=0, directories=0, status=0, menubar=0, width=800, height=600');
chat+ args + "&channel=" + channelx}
if (command == "Sitemap"){Open_SiteMap(args);}
if (command == "CloseSelf"){Close_Self();}
}
function External_Link(){
MB.SetVariable("_level0.dbGlobals.ServerPath", parent.ServerPath);
}
function WM_Status(){
if (WM.BufferingProgress < 100){
MB.SetVariable("_root.PLStatus", "Buffering..." + WM.BufferingProgress + "% Completed")
}else{
if (WM.PlayState == 0) {MB.SetVariable("_root.PLStatus", "Stopped");}
if (WM.PlayState == 1) {MB.SetVariable("_root.PLStatus", "Paused");}
if (WM.PlayState == 2) {MB.SetVariable("_root.PLStatus", "Playing");}
}
}
//-->