<!-- Begin


var y1 =280;   // change the # on the left to adjuct the Y co-ordinate
(document.getElementById) ? dom = true : dom = false;

<!--
floatX=10;
floatY=10;
layerwidth=200;
layerheight=130;
halign="center";
valign="center";
delayspeed=3;


NS6=false;
IE4=(document.all);
if (!IE4) {NS6=(document.getElementById);}
NS4=(document.layers);

function freeadjust() {

// START NN SPECIFIC CODE
 if ((NS4) || (NS6)) {
  if (lastX==-1 || delayspeed==0)
  {
   lastX=window.pageXOffset + floatX;
   lastY=window.pageYOffset + floatY;
  }
  else
  {
   var dx=Math.abs(window.pageXOffset+floatX-lastX);
   var dy=Math.abs(window.pageYOffset+floatY-lastY);
   var d=Math.sqrt(dx*dx+dy*dy);
   var c=Math.round(d/10);
   if (window.pageXOffset+floatX>lastX) {lastX=lastX+delayspeed+c;}
   if (window.pageXOffset+floatX<lastX) {lastX=lastX-delayspeed-c;}
   if (window.pageYOffset+floatY>lastY) {lastY=lastY+delayspeed+c;}
   if (window.pageYOffset+floatY<lastY) {lastY=lastY-delayspeed-c;}
  }
  if (NS4){
   document.layers['lightbox2'].pageX = lastX;
   document.layers['lightbox2'].pageY = lastY-100;
  }
  if (NS6){
   document.getElementById('lightbox2').style.left=lastX+'px';
   document.getElementById('lightbox2').style.top=lastY-100+'px';
  }
 }
// END NN SPECIFIC CODE


// START IE SPECIFIC CODE
 else if (IE4)
 {
  if (document.documentElement && document.documentElement.scrollTop){
   posNowX = document.documentElement.scrollLeft;
   posNowY = document.documentElement.scrollTop;
  } 
  else if (document.body){
   posNowX = document.body.scrollLeft;
   posNowY = document.body.scrollTop;
  }
  if (lastX==-1 || delayspeed==0)
  {
   lastX=posNowX + floatX;
   lastY=posNowY + floatY;
  }
  else
  {
   var dx=Math.abs(posNowX+floatX-lastX);
   var dy=Math.abs(posNowY+floatY-lastY);
   var d=Math.sqrt(dx*dx+dy*dy);
   var c=Math.round(d/10);
   if (posNowX+floatX>lastX) {lastX=lastX+delayspeed+c;}
   if (posNowX+floatX<lastX) {lastX=lastX-delayspeed-c;}
   if (posNowY+floatY>lastY) {lastY=lastY+delayspeed+c;}
   if (posNowY+floatY<lastY) {lastY=lastY-delayspeed-c;}
  }
  
  //--Commented due to  IE Error. on 29 March 2010
  
  //document.all['lightbox2'].style.posLeft = lastX;
  //document.all['lightbox2'].style.posTop = lastY-100;
  //-----------------------------------------------------
  
//alert(document.body.scrollTop+':'+document.scrollTop);
//  alert(document.all['lightbox2'].style.posTop+':'+lastY);
 } 
// END IE SPECIFIC CODE

 setTimeout('freeadjust()',50);

}

function freedefine()
{
if ((NS4) || (NS6)) 
{ 
if (halign=="left") {floatX=ifloatX};
if (halign=="right") {floatX=window.innerWidth-ifloatX-layerwidth-20};
if (halign=="center") {floatX=Math.round((window.innerWidth-170)/2)-Math.round(layerwidth/2)};
if (valign=="top") {floatY=ifloatY};
if (valign=="bottom") {floatY=window.innerHeight-ifloatY-layerheight};
if (valign=="center") {floatY=Math.round((window.innerHeight-300)/2)-Math.round(layerheight/2)};
}
if (IE4) 
{
		
 if (window.offsetWidth){
  theWidth = window.offsetWidth;
  theHeight = window.offsetHeight;
 }
 else if (document.documentElement && document.documentElement.offsetWidth)
 {
  theWidth = document.documentElement.offsetWidth;
  theHeight = document.documentElement.offsetHeight;
 }
 else if (document.body)
 {
  theWidth = document.body.offsetWidth;
  theHeight = document.body.offsetHeight;
 }


if (halign=="left") {floatX=ifloatX};
if (halign=="right") {floatX=theWidth-ifloatX-layerwidth-20}
if (halign=="center") {floatX=Math.round((theWidth-170)/2)-Math.round(layerwidth/2)}
if (valign=="top") {floatY=ifloatY};
if (valign=="bottom") {floatY=theHeight-ifloatY-layerheight}
if (valign=="center") {floatY=Math.round((theHeight-300)/2)-Math.round(layerheight/2)}
}
}
//-->


