
























//J-Stream E-Presenter Product Ver 1.04
//Copyright (C) 2004 J-Stream Inc.

if(navigator.platform.indexOf("Win") != -1) JepWinF = true;if(navigator.appName.indexOf("Microsoft") != -1) JepIEbF = true;if((navigator.appName == "Netscape") && (navigator.appVersion.indexOf('4.') >= 0)) JepN4F = true;
if ((JepWinF == true) && (JepIEbF == true)){document.write('<object id="mp" width="1" height="1" ');document.write('classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" ');
document.write('codebase="#Version=6,4,5,715"></object>\n');document.write('<script language="VBScript">\n');document.write('on error resume next\n');document.write('JepWmtF = (mp.FileName="")\n');document.write('</script> \n');
if(JepWmtF == true){document.write('<OBJECT ID=WMTer ');document.write('CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6');document.write(' TYPE="application/x-oleobject" width="1" height="1">');document.write('</OBJECT>');
if(WMTer.versioninfo){if((WMTer.versioninfo.substr(0,2) == '9.') || (WMTer.versioninfo.substr(0,2) == '10')){JepWm9F = true;}}}}
function JepCtrlBut(){if (JepWm9F == true){document.write (' <OBJECT ID=JepWmtID CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6 standby="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject" width="' + Jepwidth + '" height="' + JepPHeightCtl + '">');document.write (' <param name="autostart" value="' + JepAutoStart + '">');document.write ('<param name="Volume" value="' + JepVolume9 + '">');document.write ('<param name="uiMode" value="none">');document.write ('<param name="url" value="' + JepURL + '"></OBJECT>');
}else if (JepWm9F == false){document.write ('<OBJECT ID="JepWmtID" width=' + Jepwidth + ' height=' + JepPHeightCtl + ' classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">');document.write ('<param name="AutoStart" value="' + JepAutoStart + '">');document.write ('<param name="ShowControls" value="0">');document.write ('<param name="ShowDisplay" value="' + JepShowDisplay + '">');document.write ('<param name="ShowAudioControls" value="' + JepShowAudioControls + '">');document.write ('<param name="ShowPositionControls" value="0">');
document.write ('<param name="ShowTracker" value="0">');document.write ('<param name="ShowStatusBar" value="0">');document.write ('<param name="Volume" value="' + JepVolume64NM + '">');document.write ('<param name="FileName" value="' + JepURL + '">');document.write ('<param name="displaysize" value="' + JepDisplaySize + '">');document.write ('<Embed type="application/x-mplayer2" ');document.write ('pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"');document.write (' name=JepWmtID width=' + Jepwidth + ' height=' + Jepheight64 + '  ');document.write ('showcontrols=0 ');document.write ('showdisplay=' + JepShowDisplay + ' showstatusbar=0 ');document.write ('showaudiocontrols=' + JepShowAudioControls + ' showvolumecontrols=0 ');document.write ('showpositioncontrols=0 showtracker=0 ');document.write ('Volume=' + JepVolume64NM + ' autostart=' + JepAutoStart + ' ');document.write ('src=' + JepURL + '></embed></OBJECT>');}}
function JepCtrlNot(){if (JepWm9F == true){document.write (' <OBJECT ID=JepWmtID CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6 standby="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject" width="' + Jepwidth + '" height="' + Jepheight9 + '">');document.write (' <param name="autostart" value="' + JepAutoStart + '">');document.write ('<param name="Volume" value="' + JepVolume9 + '">');document.write ('<param name="uiMode" value="' + JepuiMode9 + '">');document.write ('<param name="url" value="' + JepURL + '"></OBJECT>');
}else if (JepWm9F == false){document.write ('<OBJECT ID="JepWmtID" width=' + Jepwidth + ' height=' + Jepheight64 + ' classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">');document.write ('<param name="AutoStart" value="' + JepAutoStart + '">');document.write ('<param name="ShowControls" value="' + JepShowControls + '">');
document.write ('<param name="ShowDisplay" value="' + JepShowDisplay + '">');document.write ('<param name="ShowAudioControls" value="' + JepShowAudioControls + '">');document.write ('<param name="ShowPositionControls" value="' + JepShowPositionControls + '">');document.write ('<param name="ShowTracker" value="' + JepShowTracker + '">');document.write ('<param name="ShowStatusBar" value="' + JepShowStatusBar + '">');document.write ('<param name="Volume" value="' + JepVolume64NM + '">');document.write ('<param name="FileName" value="' + JepURL + '">');document.write ('<param name="displaysize" value="' + JepDisplaySize + '">');document.write ('<Embed type="application/x-mplayer2" ');
document.write ('pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"');document.write (' name=JepWmtID width=' + Jepwidth + ' height=' + Jepheight64 + '  ');document.write ('showcontrols=' + JepShowControls + ' ');document.write ('showdisplay=' + JepShowDisplay + ' showstatusbar=' + JepShowStatusBar + ' ');document.write ('showaudiocontrols=' + JepShowAudioControls + ' showvolumecontrols=0 ');document.write ('showpositioncontrols=' + JepShowPositionControls + ' showtracker=' + JepShowTracker + ' ');document.write ('Volume=' + JepVolume64NM + ' autostart=' + JepAutoStart + ' ');document.write ('src=' + JepURL + '></embed></OBJECT>');}}
function JepIndex(JepPnt,JepNum){var ChengeSeekTime = JepPnt;if(JepWm9F) ChengeSeekTime = JepPnt;
if(JepInterEvts) window.clearInterval(JepInterEvts); JepInterEvts = false;if(JepInterEvt9)  window.clearInterval(JepInterEvt9); JepInterEvt9 = false;if ((JepIEbF == true) && (JepWm9F == false)) {
JepSeekSyncFlg = true;if(JepMultiFlg){JepSeekPosi(JepNum,JepPnt)}else{parent.player.JepWmtID.CurrentPosition = ChengeSeekTime;parent.player.JepWmtID.play();}} else if ((JepIEbF == false) && (JepWm9F == false)){if((!JepMultiFlg) && (JepN4F)){parent.player.document.JepWmtID.SetCurrentPosition(ChengeSeekTime);document.embeds["JepWmtID"].Play()}} else if ((JepIEbF == true) && (JepWm9F == true)){JepSeekSyncFlg = true;document.JepWmtID.controls.play();
if(JepMultiFlg){JepInterEvt9 = eval('window.setInterval("JepSeekPosiW9(' + JepNum + ',' + ChengeSeekTime + ')",1000)');}else{parent.player.JepWmtID.controls.CurrentPosition = ChengeSeekTime;parent.player.JepWmtID.controls.play();}
} else if ((JepIEbF == false) && (JepWm9F == true)){parent.player.document.JepWmtID.controls.SetCurrentPosition(ChengeSeekTime);parent.player.JepWmtID.controls.play();}if(JepOutButton){SeekActM()}}
function JepSeekPosiW9(JepSeekPosiE,JepSeekPosiP){if((JepState() == 6) || (JepState() == 3)) {window.clearInterval(JepInterEvt9);JepInterEvt9 = false;JepSeekPosi(JepSeekPosiE,JepSeekPosiP)}}
function JepSwitch(JepPnt){if((JepSlideNum + JepPnt >= 0) && (JepSlideNum + JepPnt < JepSyncTime.length - 1)){parent.slide.document.img.src = JepImgD + JepSyncSlide[JepSlideNum + JepPnt];JepSlideNum = JepSlideNum + JepPnt;}}
function JepSlideDisp(){if(document.all){parent.slide.document.all.JepSlideNumDisp.innerHTML = JepSlideNum;}else{parent.slide.document.getElementById('JepSlideNumDisp').innerHTML = JepSlideNum;}}
function JepCtl(JepMeth){var JepCtlR;if (JepWinF&&JepIEbF) {if(JepWm9F){if(eval('document.' + JepObjI + '.' + 'controls')){eval('JepCtlR = document.' + JepObjI + '.' + 'controls.' + JepMeth);}}else{eval('JepCtlR = document.' + JepObjI + '.' + JepMeth);}}else if(JepN4F){eval('JepCtlR = document.embeds["' + JepObjI+ '"].Get' + JepMeth + '()');}return(JepCtlR);}
function JepState(){var JepCtlR;if (JepWinF&&JepIEbF) {eval('JepCtlR = document.' + JepObjI + '.PlayState');} else {eval('JepCtlR = document.embeds["' + JepObjI + '"].GetPlayState()');}return(JepCtlR);}
function JepSync() {if((JepN4F) || ((JepWinF == true) && (JepIEbF == true))){if ((JepN4F) && (document.embeds["JepWmtID"]) || (!JepN4F) && (document.JepWmtID)){
if(parent.slide){if(parent.slide.document.img){for (var JepI = 0; JepI <= JepSyncTime.length; JepI ++) {if ((JepContNum[JepI] == JepCurrEnty()) && (JepSyncTime[JepI] <= JepCtl('CurrentPosition')) && (JepSyncTime[JepI + 1] > JepCtl('CurrentPosition'))){
if((JepState() == 2) || (JepState() == 3)){if (JepI != JepSldC){if((!JepMultiFlg) || ((JepMultiFlg) && (!JepSeekSyncFlg))){if(JepSyncSlide[JepI]){parent.slide.document.img.src = JepImgD + JepSyncSlide[JepI];}
if((JepSyncImgFlg) && (JepSyncImg[JepI])) parent.frames[JepSyncImgFrm].document.img.src = JepImgD + JepSyncImg[JepI];JepSldC = JepI;JepSlideNum = JepI;}}}}}}}}setTimeout("JepSync()", 100);}}
function JepCurrEnty(){if(JepMultiFlg){if ((JepIEbF == true) && (JepWm9F == true)){var pl = document.JepWmtID.currentPlaylist;for (var i = 0; i < pl.count; i++){if (document.JepWmtID.currentmedia.isIdentical(pl.item(i))) return i+1;}}else{return document.JepWmtID.GetCurrentEntry()}}else{return 1;}}
function JepCurrPosi(){if ((JepIEbF == true) && (JepWm9F == true)){return JepWmtID.Controls.currentPosition;}else{return JepWmtID.CurrentPosition;}}var JepIndCheFlg = 1;
function JepSeekPosi(JepSeekPosiE,JepSeekPosiP){if(!JepSeekPosiE) JepSeekPosiE = 1;
if ((JepIEbF == true) && (JepWm9F == true)){JepSeekPosiE = JepSeekPosiE - 1;document.JepWmtID.controls.currentItem=document.JepWmtID.currentPlaylist.item(JepSeekPosiE);JepInterEvts = eval('window.setInterval("JepPositionChg(' + JepSeekPosiP + ')",1000)');}else{document.JepWmtID.SetCurrentEntry(JepSeekPosiE);JepInterEvts = eval('window.setInterval("JepPositionChg(' + JepSeekPosiP + ')",1000)');  }}
function JepPositionChg(JepPnt){if ((JepIEbF == true) && (JepWm9F == true)){if((JepState() == 6) || (JepState() == 3)){document.JepWmtID.Controls.CurrentPosition=JepPnt;window.clearInterval(JepInterEvts);
JepInterEvts = false;JepSeekSyncFlg = false;}}else{if((JepState() == 2) || (JepState() == 3)){
document.JepWmtID.CurrentPosition=JepPnt;window.clearInterval(JepInterEvts);JepInterEvts = false;
JepSeekSyncFlg = false;}}}
window.onload = JepSync;
function JepEmbedDis(){if (JepOutButton == 1) {if ((JepWinF == true) && (JepIEbF == true)) {JepCtrlBut();JepWritButton();}else {JepCtrlNot();}}else {JepCtrlNot();}}
function JepIndexLog(JepNum){if((JepN4F) || ((JepWinF == true) && (JepIEbF == true))){parent.fgif.document.imggif.src = "../bin/indexcount.gif?"+JepNum;}}
