
var blnBanner1 = false;
var blnBanner2 = false;
function getPos() {
	if (navigator.appName == "Microsoft Internet Explorer") {
		return document.body.scrollTop; 
	} else {
		return window.pageYOffset;
	}
}
function SlideDown1() 
{
	if ( SlideKey1 <= getPos() ) {
		var TimerKey1;
		SlideKey1 = SlideKey1 + 5;
		s1.style.top = SlideKey1;
		CurrentPosition1 = SlideKey1;
		TimerKey1 = setTimeout('SlideDown1()',500); 
	}
}
function SlideUp1(){
if ( (SlideKey1 >= getPos()) && (SlideKey1 >= getPositionTop('top1')) ) {
		var TimerKey1;
		SlideKey1 = SlideKey1 - 5;
		s1.style.top = SlideKey1;
		CurrentPosition1 = SlideKey1; 
		TimerKey1 = setTimeout('SlideUp1()',500); 
	}
}


function SlideDown2() 
{
	if ( SlideKey2 <= getPos() ) {
		var TimerKey;
		SlideKey2 = SlideKey2 + 5;
		s2.style.top = SlideKey2;
		CurrentPosition2 = SlideKey2;
		TimerKey2 = setTimeout('SlideDown2()',500); 
	}
}
function SlideUp2(){
if ( (SlideKey2 >= getPos()) && (SlideKey2 >= getPositionTop('top2')) ) {
		var TimerKey2;
		SlideKey2 = SlideKey2 - 5;
		s2.style.top = SlideKey2;
		CurrentPosition2 = SlideKey2; 
		TimerKey2 = setTimeout('SlideUp2()',500); 
	}
}

function startScroll1() {
	if (CurrentPosition1 < getPos() - 20) {
		SlideDown1();
	} else {
		if (CurrentPosition1 > getPos() + 20) {
			SlideUp1();
		}
	}
	TimerScroll1 = setTimeout('startScroll1()',5); 
}
function startScroll2() {
	if (CurrentPosition2 < getPos() - 20) {
		SlideDown2();
	} else {
		if (CurrentPosition2 > getPos() + 20) {
			SlideUp2();
		}
	}
	TimerScroll2 = setTimeout('startScroll2()',5); 
}

function getPositionTop(divname){
	return document.getElementById(divname).offsetTop;
} 