﻿function AW_SlideLayer(layerName,x,y,step,delay,NSpath,IEpath) { //v1.0 
var isNav, isIE  
if (parseInt(navigator.appVersion) >= 4) {  
   if (navigator.appName == 'Netscape') {  
      isNav = true  
   } else {  
      isIE = true  
   }  
}  
if(NSpath =='') { 
  if(isIE){ eval('var theLayer='+layerName)} 
  else{ eval('var theLayer=document.'+layerName) } 
}else{ 
  if(isIE){ eval('var theLayer='+IEpath)} 
  else{ eval('var theLayer='+NSpath) } 
} 
var changed=false  

if(isNav){ 
  if(eval(theLayer.moving)) { clearTimeout(theLayer.timerid) } 
   
  if(theLayer.top > x) { theLayer.top-=eval(step); changed=true }  
  if(theLayer.top < x) { theLayer.top+=eval(step); changed=true }  
  if(theLayer.left > y) { theLayer.left-=eval(step); changed=true }   
  if(theLayer.left < y) { theLayer.left+=eval(step); changed=true }  
  if (changed){    
    theLayer.moving = true    
    theLayer.timerid = setTimeout('AW_SlideLayer("'+layerName+'","'+x+'","'+y+'","'+step+'","'+delay+'","'+NSpath+'","'+IEpath+'")',delay) 
  }else {
    theLayer.moving=false
  }   
}else{ 
  if(eval(theLayer.moving)) { clearTimeout(theLayer.timerid) } 
   
if(theLayer.style.pixeltop > x) { theLayer.style.pixeltop-=eval(step); changed=true }  
if(theLayer.style.pixeltop < x) { theLayer.style.pixeltop+=eval(step); changed=true }  
if(theLayer.style.pixelLeft > y) { theLayer.style.pixelLeft-=eval(step); changed=true }   
if(theLayer.style.pixelLeft < y) { theLayer.style.pixelLeft+=eval(step); changed=true }  
if (changed){    
theLayer.moving = true    
theLayer.timerid = setTimeout('AW_SlideLayer("'+layerName+'","'+x+'","'+y+'","'+step+'","'+delay+'","'+NSpath+'","'+IEpath+'")',delay) 
}  
else {theLayer.moving=false}   
  
}  
document.MM_returnValue=false; 
theLayer.document.MM_returnValue=false;  
} 

function AW_SlideLayerStop(layerName,NSpath,IEpath) { //v1.0 
  var isNav, isIE  
  if (parseInt(navigator.appVersion) >= 4) {  
     if (navigator.appName == 'Netscape') {  
        isNav = true  
     } else {  
        isIE = true  
     }  
  }  

  if(NSpath =='') { 
    if(isIE){ eval('var theLayer='+layerName)} 
    else{ eval('var theLayer=document.'+layerName) } 
  }else{ 
    if(isIE){ eval('var theLayer='+IEpath)} 
    else{ eval('var theLayer='+NSpath) } 
  } 

  var changed=false  

  if(isNav){ 
    if(eval(theLayer.moving)) { clearTimeout(theLayer.timerid) } 
   
    if (changed){    
      theLayer.moving = true    
    }else {
      theLayer.moving=false
    }   
  }else{ 
    if(eval(theLayer.moving)) { clearTimeout(theLayer.timerid) } 
   
    if (changed){ 
	  theLayer.moving = true    
    }else{
	  theLayer.moving=false
	}   
  }  

  document.MM_returnValue=false; 
  //theLayer.document.MM_returnValue=false;  
} 

function MM_openBrWindow(theURL,winName,features) { //v2.0 
  window.open(theURL,winName,features); 
} 
//--> 
