function loadincludes122(){	
	if(document.getElementById('topinc')) clientSideInclude('topinc', '../includes/top_bar.htm');
	if(document.getElementById('topinc1')) clientSideInclude('topinc1', '../includes/links.htm');
	if(document.getElementById('topinc_admin')) clientSideInclude('topinc_admin', '../includes/admin_top.htm');
if(document.getElementById('topinc2')) clientSideInclude('topinc2', '../includes/footer.htm');
}

function loadincludes112(){	
	
}

function mOvr(src,clrOver)
{ 
	if (!src.contains(event.fromElement))
	{ 
		src.style.cursor = 'default'; 
		src.bgcolor = clrOver; 
	} 
} 

function mOut(src,clrIn)
{ 
	if (!src.contains(event.toElement))
	{ 
		src.style.cursor = 'default'; 
		src.bgcolor = clrIn; 
	} 
}

function ChangeColor(obj,color)
{
	obj.style.background=color;
}

function markmenu(obj)
{

	ChangeColor(obj,'#042544');
	obj.onmouseout="ChangeColor("+obj+",'#042544');";
}




function show(line,div)
{
	line.style.display='';
	div.style.visibility='visible';
}

function hide(line,div)
{
	line.style.display='none';
	div.style.visibility='hidden';
}


 function loadincludes()
 {	
	if(document.getElementById('topinc1')) clientSideInclude('topinc1', '../includes/left_panel.htm');
	if(document.getElementById('topinc2')) clientSideInclude('topinc2', '../includes/footer.htm'); 
}

function session()
{
	var NewWin;
	NewWin1=window.open("session.htm",'NewWin2','height=575,width=420,top=30,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin1.focus();

}

function facilities()
{
	var NewWin;
	NewWin1=window.open("facilities.htm",'NewWin2','height=575,width=420,top=30,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin1.focus();

}

function changelink(id){
	document.getElementById(id).className='mainmenuhover';
	document.getElementById(id).onmouseout='mainmenuhover';	
}




//  Equivalent Function for stripslashes
function stripslashes(str) {
	str=str.replace(/\\'/g,'\'');
	str=str.replace(/\\"/g,'"');
	str=str.replace(/\\\\/g,'\\');
	str=str.replace(/\\0/g,'\0');
	return str;
}

var image_number = 0;

var currentt_div = "banner_div1";

var next_div = "banner_div2";

var gloabl_arr_banner = new Array('','','');


function changeBanner() {
	//alert(arr_img.length);
	if(arr_img.length > 0) { //alert(arr_link[image_number]);
		
		//document.getElementById('Anchor_'+image_number).href = arr_link[image_number];
		document.getElementById(next_div).innerHTML = document.getElementById('div'+image_number).innerHTML;
	}

	if(arr_img.length > 1) {
		
		new Effect.Appear(currentt_div,{ duration: 0.5, from: 1.0, to: 0.0});
		setTimeout("$('"+currentt_div+"').style.zIndex='1001';$('"+next_div+"').style.zIndex='1002';",100);
		setTimeout('new Effect.Appear("'+next_div+'",{ duration: 0.5, from: 0.3, to: 1.0});',50);
		
		//document.getElementById(currentt_div).style.display="none";
		//document.getElementById(next_div).style.display="";
	} else { //alert(document.getElementById('banner_div1').innerHTML);
		if(arr_img.length!=0){
			if(document.getElementById('banner_div1').innerHTML=="") {
				document.getElementById('banner_div1').innerHTML=document.getElementById('banner_div2').innerHTML;
				document.getElementById('banner_div1').style.display="";
			}
		}
	}
	
	image_number++;
	if(image_number>=arr_img.length){
		image_number=0;
	}
	var temp=currentt_div;
	currentt_div=next_div;
	next_div=temp;	
}
function banner_container() {
	var img_count=arr_img.length;
	var loaded_str ="";
	if(img_count>0){ 
		for(var i=0; i<img_count;i++) { 
			loaded_str+='<div id="div'+i+'"><img src="'+arr_img[i]+'"  border="0" /></div>';
			//loaded_str+='here'+arr_link[i];
		}
	}
	if(loaded_str!="")		{
		//alert(loaded_str);
		//loaded_str = '<div id="banner_div1" style="position: relative; height: 108px; width: 576px; opacity: 0;">testing</div>';
		document.getElementById('banner_container').innerHTML=loaded_str;
	}
}

function startBanner () {
	changeBanner();
	setInterval('changeBanner();',banner_speed);
}

 