//  06/04/21 Effectedge Inc.
function mvobj( n , w , h , x , y , px , py , mx , my ) {
  this.name = n;
  this.W = w ; 
  this.H = h ; 
  this.X = x ; 
  this.Y = y ; 
  this.posX = px ; 
  this.posY = py ; 
  this.my = my;
  this.mx = mx;
  this.mytmp = my;
  this.mxtmp = mx;
}
function getMaxHeight( NS ) {
  var ih;
  if ( NS ) ih = innerHeight;
  else ih = document.body.clientHeight;
  return ih;
}
function getMaxWidth( NS ) {
  var iw;
  if ( NS ) iw = innerWidth;
  else iw = document.body.clientWidth;
  return iw;
}
function setPosXY( NS , wm ) {
  var i;
  var ih,iw;
  var barW = 0;
  var barH = 0;
  var ih = getMaxHeight( NS );
  var iw = getMaxWidth( NS );
  if ( NS ) {
    if (document.height > innerHeight) barW = 20;
    if (document.width > innerWidth) barH = 20;
  }
//  wm.posX = ((iw - wm.W)-barW) * (wm.X/100);
//  wm.posY = ((ih - wm.H)-barH) * (wm.Y/100);
  wm.posX = ((iw - wm.W)-barW);
  wm.posY = ((ih - wm.H)-barH);
}
function set_xy( wMark , x , y ) {
  wMark.left = x;
  wMark.top = y;
}
function N6_set_xy( wMark, x, y) {
  wMark.style.left = x;
  wMark.style.top = y;
}
function Refreshoo2() {
  var NS, i;
  if( navigator.appName == 'Netscape' ) NS = true;
  else NS = false;
  for( i = 0 ; i<arguments.length ; i++ ) {
    if( check_exist( arguments[i].name ) == true )
    wRefresh( NS , arguments[i] );
  }
}
function Refreshoo() {
  Refreshoo2( mvobj1 ) 
}
function getUserObject( name ) {
  if( mvobj1 && name == mvobj1.name ) return mvobj1;
  return null;
}
function getmvObject( name ) {
  var xb,wMark,NS;
  if( navigator.appName == 'Netscape' ) NS = true;
  else NS = false;
  if( NS ) { 
    xb = name;
    if (document.getElementById) {
      wMark = document.getElementById( xb );
      wMark = wMark.style;
    } else {
    wMark = document.layers[ xb ] ;
    }
  } else { 
    xb = 'document.all.' + name + '.style';
    wMark = eval( xb );
  }
  return wMark;
}
function wRefresh( NS , wm ) {
  var i;
  var xb;
  var x,y;
  var wMark;
  var ih = getMaxHeight( NS );
  var iw = getMaxWidth( NS );
  wMark = getmvObject( wm.name );
  wMark.width = wm.W;
  wMark.height = wm.H;
//  x = wm.posX / 2 + (NS?pageXOffset:document.body.scrollLeft);
  x = wm.posX - wm.mx + (NS?pageXOffset:document.body.scrollLeft);
  if (x < 0) { x = 0; }
//  y = document.body.clientHeight - wm.my + (NS?pageYOffset:document.body.scrollTop);
  y = document.body.clientHeight / 2 + (NS?pageYOffset:document.body.scrollTop);
  if (y < 0) { y = 0; }
  set_xy( wMark , x, y );
}
function setPosXYs2() {
  var NS, i;
  if( navigator.appName == 'Netscape' ) NS = true;
  else NS = false;
  for( i=0; i < arguments.length ; i++ ) {
    if( check_exist( arguments[i].name ) == true )
    setPosXY( NS , arguments[i] );
  }
}
function setPosXYs() {
  setPosXYs2( mvobj1 );
}
function hideMe(o) {
  o.style.visibility = "hidden";
}
function markMe() {
  var NS;								
  var markRefresh = 50; 
  if( navigator.appName == 'Netscape' ) NS = true;
  else NS = false;
  setPosXYs();
  window.onresize=setPosXYs;
  markID = setInterval ("Refreshoo()",markRefresh);
}
function check_exist( nn ) {
  if ( document.getElementById && document.getElementById(nn)) return true;
  else if( navigator.appName == 'Netscape' && document.layers[nn] ) return true;
  else if( navigator.appName != 'Netscape' && document.all[nn] ) return true;
  else 
  return false;
}
function do_mv() {
  var w1 = getmvObject( mvobj1.name );
  markMe();
}
//-->
