\n');
if(WMTFlag == true){
document.write('');
document.write('
');
if(WMTer.versioninfo){
if(WMTer.versioninfo.charAt(0) == '9'){
WM9Flag = true;
}
}else{
WM9Flag = false;
}
}
}
}
function moveLAYER(oj,x,y){
if(oj){
if(document.all)oj.posLeft=x
}
}
function zindexLAYER(oj,zindex){
}
var NN, IE
if(document.layers)NN=true
if(document.all)IE=true
document.onmousemove = mmove
document.onmouseup = mup
document.onmouseout = mout
var selLay
var offsetX, offsetY
var clickElement=''
var aaa = false
var movetoX, movetoY
function setselLay(evt) {
selLay = window.event.srcElement.parentElement.parentElement.style
return
}
function mmove(e) {
if (selLay) {
movetoX=(document.body.scrollLeft+event.clientX)-offsetX
movetoY=(document.body.scrollTop+event.clientY)-offsetY
if(movetoX < BarWidth){
if((movetoX < 0) || (movetoX > BarWidth)){
}else{
moveLAYER(selLay,movetoX,movetoY)
}
}
ini()
return false
}
}
function mdown(e) {
if(aaa) clearTimeout(aaa)
setselLay(e)
if (selLay){
offsetX = window.event.offsetX
offsetY = window.event.offsetY
}
return false
}
function mup(e) {
if (selLay) {
clickElement=''
if(movetoX) SetSeekPoint(movetoX)
}else{
if(aaa) clearTimeout(aaa)
if(window.event.offsetX > BarWidth){
offsetX = BarWidth
}else{
offsetX = window.event.offsetX
offsetY = window.event.offsetY
}
selLay = document.all.skpoint.style;
pseek(offsetX,offsetY);
SetSeekPoint(offsetX)
}
zindexLAYER(selLay,0)
GetSeekStut()
selLay = null
}
function mout(){
if ((selLay) && (movetoX) && (movetoY)){
if(movetoX < 0){
GetSeekStut()
selLay = null
}else if(movetoX > BarWidth){
GetSeekStut()
selLay = null
}else if(movetoY < 0){
GetSeekStut()
selLay = null
}else if(window.event.offsetY > BarHeight - PointHeight){
GetSeekStut()
selLay = null
}
}
}
function ini(){
}
function pseek(movetoX,movetoY){
moveLAYER(selLay,movetoX,movetoY)
}
function GetSeekStut(){
if(aaa) clearTimeout(aaa)
//20040401
if(window.closed)return false
if(parent.document.Player){
var CP = parent.document.Player.CurrentPosition;
var DT = parent.document.Player.Duration;
var PS = parent.document.Player.PlayState;
}
if((CP) && (DT)){
seekP = Math.round(CP/DT*BarWidth)
selLay = document.all.skpoint.style;
pseek(seekP,0);
selLay = null
}
if(!PS) {
selLay = document.all.skpoint.style;
pseek(0,0);
selLay = null
}
if((W9StartFlg) && (PS == 3)){
alert('UUU' + W9StartFlg + ' & ' + PS);
parent.document.Player.controls.CurrentPosition = Math.round(W9StartFlg/BarWidth*DT);
parent.WMSeekEvent()
W9StartFlg = false;
}
aaa = setTimeout("GetSeekStut()", 100);
}
function SetSeek9(){
if(parent.document.Player.Duration){
parent.document.Player.CurrentPosition = Math.round(offsetX/BarWidth*parent.document.Player.Duration);
parent.WMSeekEvent()
if(bbb) clearInterval(bbb)
}
}
function SetSeekPoint(ggg){
CP = parent.document.Player.CurrentPosition;
DT = parent.document.Player.Duration;
var PS = parent.document.Player.PlayState;
if(ggg < 0) ggg = 0;
if(WM9Flag){
if(PS == 0){
parent.document.Player.play();
bbb = setInterval("SetSeek9()", 1000);
}else{
parent.document.Player.CurrentPosition = Math.round(ggg/BarWidth*DT);
parent.WMSeekEvent()
}
}else{
parent.document.Player.CurrentPosition = Math.round(ggg/BarWidth*DT);
parent.document.Player.play();
parent.WMSeekEvent()
}
}
GetSeekStut()
//-->