{ 
	var _run; 
	
	if(navigator.userAgent.indexOf("Firebird")!=-1||navigator.userAgent.indexOf("Firefox")!=-1||navigator.appName=="Microsoft Internet Explorer") // if the browser is Firebird/Firefox or MSIE
	  {_run=false;} 
	else 
	  {_run= true;} 
	  
	if(_run == false) 
	{
		window.onscroll=function(){scrollR();} /* run the function scrollR() when the document is scrolled */
	} 
	else 
	{ 
		window.onload=function(){searchScroll()} /* when the document loads, run the searchScroll() function 1,000 times a second (because there is a setTimeout() function inside the searchScroll() function). */
	}

}

function scrollR()
{
  	var left = (window.pageXOffset)?(window.pageXOffset):(document.body)?document.body.scrollLeft:document.documentElement.scrollLeft;
  	var top = (window.pageYOffset)?(window.pageYOffset):(document.body)?document.body.scrollTop:document.documentElement.scrollTop;
  	if (top == 0 && document.body.scrollTop != 0)
		top = document.body.scrollTop;
    
	parent.frames["LeftFrame"].scrollTo(left,top); 

} 

function searchScroll(){
	var left = (window.pageXOffset)?(window.pageXOffset):(document.documentElement)?document.documentElement.scrollLeft:document.body.scrollLeft;
     var top = (window.pageYOffset)?(window.pageYOffset):(document.documentElement)?document.documentElement.scrollTop:document.body.scrollTop;
  	parent.frames["LeftFrame"].scrollTo(left,top); /* scroll the left frame to wherever this frame is scrolled to */
  	window.setTimeout("searchScroll();",1); /* run this function one time every millisecond, or 1,000 times a second */
}
	
	
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
