/*
 * File Name			: ScrollLeft.js
 * Version Information		: 1.0
 * Date				: 8/10/07
 * Author			: Vinod.
 * Copyright (c) 2007 by PS. All Rights Reserved.
 *
 *
 * Amendment History		: 
 *			  			
 *
 */

	
    function vScroll(frame) // begin function
     {
     	
	/*var top = (window.pageYOffset)?(window.pageYOffset):(document.documentElement)?document.documentElement.scrollTop:document.body.scrollTop;*/
	
	
	var top = (window.pageYOffset)?(window.pageYOffset):(document.body)?document.body.scrollTop:documentElement.scrollTop;
	
	
	
	/* An explanation is needed here: the variable “top” is going to represent one of three things: window.pageYOffset (if it is available, if it’s not, it represents document.body.scrollTop . If document.documentElement is not available, it will represent document.documentElement.scrollTop. This is the variable we’ll use to determine the amount of pixels this document is scrolled from the top. It’s important because it tells us where we should put the frame on the left. */

	 parent.frames[frame].scrollTo(0,top);

	/* This code will make the Left frame scroll to zero horizontally, and the same place as this right frame vertically. */

     } // End function

    function searchScroll()// begin function
    { 	var top = (window.pageYOffset)?(window.pageYOffset):(document.documentElement)?document.documentElement.scrollTop:document.body.scrollTop;
	
	/* Again, we’re setting the variable top to equal that of the amount of pixels the document is scrolled from the top. The reason for not declaring this variable once (before any functions were put into the code), is because you wouldn’t be able to scroll either document! This variable would always equal zero. By putting it into the function, the variable re-validates each time, resulting in a different number (assuming the document was scrolled up or down). */
	
	parent.frames[frame].scrollTo(0,top);
	
	/* This code places the scrolling of the left frame in the same place as the right frame.  */
	
	window.setTimeout("searchScroll();",1);
	
	/* Why a setTimeout function? We’re going to re-run this function 1000 times a second. The scrolling might appear a bit choppy if you do it really fast, but it doesn’t work in Netscape otherwise. */
	
   }

