var tent_prvlink='15frame';
var tent_preDiv='15frameTbl';

var event_prvlink='gatherings';
var event_preDiv='gatheringsTbl';

function loadincludes(){ 	
	if(document.getElementById('menu')) clientSideInclude('menu', '../includes/menu.htm');
	if(document.getElementById('top')) clientSideInclude('top', '../includes/top.htm');
if(document.getElementById('footer')) clientSideInclude('footer', '../includes/footer.htm');

}

function winopen1()

{
	var NewWin2;
	
	NewWin2=window.open("request.htm",'NewWin1','height=635,width=557,top=50,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin2.focus();

}

function winopen2()

{
	var NewWin2;
	
	NewWin2=window.open("inner/request.htm",'NewWin1','height=635,width=557,top=50,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin2.focus();

}


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');";
}

/*--------------Project Gallery Functions--------------*/
function setTentLink(id)
	{
		if(typeof(totalImagesArr[id])!="undefined") {
			totalImages = totalImagesArr[id];
			last_image = totalImagesArr[id];
		} else {
			totalImages = 15;
			last_image=15;
		}
		document.getElementById(tent_prvlink).className='gallery';
	 	document.getElementById(id).className='gallery_hold';
		tent_prvlink=id;
	}
	
function setEventLink(id)
	{
		if(typeof(totalImagesArr[id])!="undefined") {
			totalImages = totalImagesArr[id];
			last_image = totalImagesArr[id];
		} else {
			totalImages = 42;
			last_image=42;
		}
		document.getElementById(event_prvlink).className='gallery';
	 	document.getElementById(id).className='gallery_hold';
		event_prvlink=id;
	}
	
function showTent(id)
	{
		document.getElementById(tent_preDiv).style.display='none';
		document.getElementById(id).style.display='';
		tent_preDiv=id;
	}
	
function showEvent (id)
	{
		document.getElementById(event_preDiv).style.display='none';
		document.getElementById(id).style.display='';
		event_preDiv=id;
	}
	
function getElement(id) {
return document.getElementById ? document.getElementById(id) :
document.all ? document.all(id) : null;
}

function titleChange(which, state, textCellId) {
	var el = getElement(textCellId);
	if (el && typeof el.innerHTML != 'undefined') {
	if (state == 'on') el.innerHTML = msg[which];
	}
}

function changeImg(path) {
	if(document.getElementById('bigimg').src!=path) {
	imgPreloader = new Image();
	
	// once image is preloaded, resize image container
	document.getElementById('bigimg').style.display="none";
	document.getElementById('loading_img').style.display="";
	imgPreloader.onload=function(){
	document.getElementById('loading_img').style.display="none";
	document.getElementById('bigimg').src=path;
	//document.getElementById('bigimg').style.display="";
	new Effect.Appear('bigimg',{ duration: 0.7, from: 0.0, to: 1.0});
	imgPreloader.onload=function(){};
	imgPreloader.src="";
	}
	imgPreloader.src=path;
	}
}
/*--------------Project Gallery Functions--------------*/





