
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 +255;
		CurrentPosition1 = SlideKey1;
		TimerKey1 = setTimeout('SlideDown1()',500); 
	}
}
function SlideUp1(){
if ( (SlideKey1 >= getPos()) && (SlideKey1 >= getPositionTop('top1')) ) {
		var TimerKey1;
		SlideKey1 = SlideKey1 - 5;
		s1.style.top = SlideKey1 +255;
		CurrentPosition1 = SlideKey1; 
		TimerKey1 = setTimeout('SlideUp1()',500); 
	}
}


function SlideDown2() 
{
	if ( SlideKey2 <= getPos() ) {
		var TimerKey;
		SlideKey2 = SlideKey2 + 5;
		s2.style.top = SlideKey2 +255;
		CurrentPosition2 = SlideKey2;
		TimerKey2 = setTimeout('SlideDown2()',500); 
	}
}
function SlideUp2(){
if ( (SlideKey2 >= getPos()) && (SlideKey2 >= getPositionTop('top2')) ) {
		var TimerKey2;
		SlideKey2 = SlideKey2 - 5;
		s2.style.top = SlideKey2 +255;
		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;
} 

var menuposition = 180;
function SlideDown3() 
{
	if ( SlideKey3 < getPos()  ) {
	
		var TimerKey3;
		if (getPos() < menuposition) {
			SlideKey3 = menuposition;
		} else {
			SlideKey3 = getPos();
		}
		
		s3.style.top = SlideKey3;
		menu3.style.top = SlideKey3+28;
		CurrentPosition3 = SlideKey3;
		TimerKey3 = setTimeout('SlideDown3()',500); 
	}
}

function SlideUp3(){
	if ( (SlideKey3 >  getPos()) && (SlideKey3 > getPositionTop('top3')) ) {
		var TimerKey3;
		if (getPos() < menuposition) {
			SlideKey3 = menuposition;
		} else {
			SlideKey3 = getPos();
		}
		s3.style.top = SlideKey3;
		menu3.style.top = SlideKey3+28;
		CurrentPosition3 = SlideKey3; 
		TimerKey3 = setTimeout('SlideUp3()',500); 
	}
}

function startScroll3() {
	if (CurrentPosition3 < getPos() - 10) {
		SlideDown3();
	} else {
		if (CurrentPosition3 > getPos() + 10) {
			SlideUp3();
		}
	}
	TimerScroll3= setTimeout('startScroll3()',5); 
} 

