var scrollCounter = 0;
var prev_y;
var new_y;

function setVariables()
{
	if (navigator.appName == "Netscape")
	{
		if (document.layers)
	    {

	     	v='"].top=';
		 	vr=".visibility=";
		 	dS='document.layers["';
		 	sD="";
		 	y="window.pageYOffset";
			sp = ";";
	    }
	    else
	    {
			v='").style.top=';
			vr=".visibility=";
			dS='document.getElementById("';
			sD="";
			y="window.pageYOffset";
			sp = ";";
		}
    }
    else
    {
		v=".pixelTop=";
		dS="";
		sD=".style";
		y="document.body.scrollTop";
		sp = ";";
    }
}


function checkLocation() {

	object="object2";

	prev_y = prev_y;
	 yy=eval(y);
	new_y = yy

	//alert(yy);

	if((yy > 100)){
	 //yyy=eval(gh());

	  yy = 2 + yy;
	}else{

	  yy = 100;

	}

	if (navigator.appName == "Netscape")
	{
	  eval(dS+object+sD+v+yy);
	}
	else
	{
	 eval(dS+object+sD+v+yy);
	}

	new_y = prev_y;
	setTimeout("checkLocation()",10);
}

function defineLayer()
{
	if (document.layers)
	{
		if(screen.width == 1024)
		{
			 document.write('<LAYER NAME="object2" left="734" top="100" VISIBILITY:show;">');
		}
		else
		{
			 document.write('<LAYER NAME="object2" left="622" top="100" VISIBILITY:show;">');
		}



	}
	else
	{
	   if (navigator.appName == "Netscape")
	   {
	   	    if(screen.width == 1024)
			{
				 document.write('<div id="object2" style="position:absolute; right:141px; top:100px; z-index:3;VISIBILITY:show;">');
			}
			else
			{
				 document.write('<div id="object2" style="position:absolute; right:22px; top:100px; z-index:3;VISIBILITY:show;">');
			}


	   }
	   else
	   {
			if(screen.width == 1024)
			{
				 document.write('<div id="object2" style="position:absolute; right:131px; top:100px; z-index:3;VISIBILITY:show;">');
			}
			else
			{
				 document.write('<div id="object2" style="position:absolute; right:19px; top:100px; z-index:3;VISIBILITY:show;">');
			}


	   }
	}
}

function endLayer()
{
	//alert(scrollMenu);
	if (document.layers)
	{
		document.write('</LAYER>');

	}
	else
	{
	   document.write('</div>');
	}
}

