﻿<!--//
var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
var QuickLink_Id=document.getElementById("divQuickLink");

function CheckUIElements() 
{

//  var QuickLink_Id = document.getElementById("divQuickLink");

  var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if(bNetscape4plus) { //+-++- +++- +++e --Ѧ
		yMenuFrom = document["divQuickLink"].top;
		yMenuTo = top.pageYOffset + 70;
	}

	else if(bExplorer4plus) { //+-+++++ +++- +++e --Ѧ
		yMenuFrom = parseInt(QuickLink_Id.style.top,10);
		yMenuTo = document.body.scrollTop + 70;
	}

	if ( yMenuFrom != yMenuTo ) {
		yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );

		if ( yMenuTo < yMenuFrom )
			yOffset = -yOffset;

		QuickLink_Id.style.top = parseInt(QuickLink_Id.style.top, 10) + yOffset;

		timeoutNextCheck = 10;
	}else {
		timeoutNextCheck = 800;
	}

	setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad()
{
	var y;
	var QuickLink_Id = document.getElementById("divQuickLink");

//	if(top.frames.length)
		if(bNetscape4plus) {//+-++- ++++ +++ +++e --Ѧ
			document["divQuickLink"].top = top.pageYOffset + 100;
			document["divQuickLink"].visibility = "visible";
		}
		
		else if(bExplorer4plus) {//+-+++++ ++++ +++ +++e --Ѧ
			QuickLink_Id.style.top = document.body.scrollTop + 100;
			QuickLink_Id.style.visibility = "visible";
		}

  CheckUIElements();
  return true;
}

OnLoad();


//-->

