iSlide=0;
eSlide=0;
valSlide=0;
function getwidth(){

	if(navigator.appName == "Netscape"){ 
		windowwidth = window.innerWidth;
		}
	else if(navigator.appName == "Microsoft Internet Explorer"){ 
		windowwidth = document.body.clientWidth;
	}
	return windowwidth;
}
function getheight(){
	if(navigator.appName == "Netscape"){ 
		windowheight = window.innerHeight;
	}
	else if(navigator.appName == "Microsoft Internet Explorer"){ 
	windowheight = document.body.clientHeight;
	}
	return windowheight;
}
function initF(){
	ww=getwidth();
	wh=getheight();
	if(ww>1007){
		if(navigator.appName == "Netscape"){ 
			if(wh<866){
				cax=(ww-1007-16)/2+212;
			}
			else{
				cax=(ww-1007)/2+212;
			}
		}
		else{cax=(ww-1007)/2+212;}
	}
	else{
	cax=212;
	}
	document.getElementById('Layer1').style.left=cax+"px";
	setTimeout(initSlide,10000);
}
function initSlide(){
	if(iSlide<=150){
	valSlide+=2;
	document.getElementById('companion').style.top=valSlide+"px";
	iSlide+=1;
	setTimeout(initSlide,10);
	}
	else{
	setTimeout(endSlide,10000);
	}
}
function endSlide()
{	
	if(eSlide<=150){
	valSlide-=2;
	document.getElementById('companion').style.top=valSlide+"px";
	eSlide+=1;
	setTimeout(endSlide,10);
	}
}
