
/*  Scroll */
if (iens6){

document.write('</div></div>')
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}

function movedown(){
if (window.moveupvar) clearTimeout(moveupvar)
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",20)
}

function moveup(){
if (window.movedownvar) clearTimeout(movedownvar)
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",20)
}

function stopscroll(){
if (window.moveupvar) clearTimeout(moveupvar)
if (window.movedownvar) clearTimeout(movedownvar)
}

function movetop(){
stopscroll()
if (iens6)
crossobj.style.top=0+"px"
else if (ns4)
crossobj.top=0
}

function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height

/*  Div Hide */


function our_story()
{
document.getElementById('content-about').style.display = 'none';
document.getElementById('content-story').style.display = 'block'; 
document.getElementById('content-mission').style.display = 'none';
document.getElementById('content-vision').style.display = 'none';
document.getElementById('back').style.backgroundImage= 'url(../Images/ab_back3.jpg)'; // background images
document.getElementById('story').style.fontWeight= 'bold';
document.getElementById('mission').style.fontWeight= 'normal';
document.getElementById('vision').style.fontWeight= 'normal';
}

function our_mission()
{
document.getElementById('content-about').style.display = 'none';
document.getElementById('content-story').style.display = 'none'; 
document.getElementById('content-mission').style.display = 'block';
document.getElementById('content-vision').style.display = 'none';
document.getElementById('back').style.backgroundImage= 'url(../Images/ab_back2.jpg)'; // background images
document.getElementById('story').style.fontWeight= 'normal';
document.getElementById('mission').style.fontWeight= 'bold';
document.getElementById('vision').style.fontWeight= 'normal';
}

function our_vision()
{
document.getElementById('content-about').style.display = 'none';
document.getElementById('content-story').style.display = 'none'; 
document.getElementById('content-mission').style.display = 'none';
document.getElementById('content-vision').style.display = 'block';
document.getElementById('back').style.backgroundImage= 'url(../Images/ab_back3.jpg)'; // background images
document.getElementById('story').style.fontWeight= 'normal';
document.getElementById('mission').style.fontWeight= 'normal';
document.getElementById('vision').style.fontWeight= 'bold';

}

/*Roll Over*/
function menuRollover() {
	if (navigator.userAgent.match(/Opera (\S+)/)) {
		var operaVersion = parseInt(navigator.userAgent.match(/Opera (\S+)/)[1]);
	}
	if (!document.getElementById||operaVersion <7) return;
	var imgarr=document.getElementsByTagName('img');
	var imgPreload=new Array();
	var imgSrc=new Array();
	var imgClass=new Array();
	for (i=0;i<imgarr.length;i++){
		if (imgarr[i].className.indexOf('menuroll')!=-1){
			imgSrc[i]=imgarr[i].getAttribute('src');
			imgClass[i]=imgarr[i].className;
			imgPreload[i]=new Image();
			if (imgClass[i].match(/menuroll (\S+)/)) {
				imgPreload[i].src = imgClass[i].match(/menuroll (\S+)/)[1]
			}
			imgarr[i].setAttribute('xsrc', imgSrc[i]);
			imgarr[i].onmouseover=function(){
				this.setAttribute('src',this.className.match(/menuroll (\S+)/)[1])
			}
			imgarr[i].onmouseout=function(){
				this.setAttribute('src',this.getAttribute('xsrc'))
			}
		}
	}
}
menuRollover();