function setHomePageDetail(){
	setUpComingEvent();
	setImageForMainPage();
}

function setPhotoGalleryPageDetail(){
	currentPhotoGalleryListIndex = -1;
	setImageForPhotoGalleryPage();
}

function setEventPageDetail(){
	setMonthEvent();
}

function setMonthEvent()
{
	var d = new Date();
	var monthValue = d.getMonth();
	if(monthValue == 0){
		hideAndShowMonthEvent(monthValue,monthDivTagList[0],monthDivTagList[1]);
	}
	else{
		hideAndShowMonthEvent(monthValue,monthDivTagList[monthValue],monthDivTagList[(monthValue - 1)]);
	}
}
function setUpComingEvent(){

	var d = new Date();
	var monthValue = d.getMonth();
	var dateValue = d.getDate();	
	getUpComingEvent(monthValue,dateValue,'upcomingEvent');
}

function hideAndShowMonthEvent(month, showMonth, hideMonth)
{
	document.getElementById(showMonth).style.display = 'block';
	document.getElementById(showMonth +"Detail").style.display = 'block';
	document.getElementById(hideMonth).style.display = 'none';
	document.getElementById(hideMonth +"Detail").style.display = 'none';
	setMonthlyDetail(month,showMonth);
}

function openNewWindow(strUrl, windowName){
	var winParms = "status,resizable,top=50px,left=50px,height=400px,width=770px,scrollbars";
	openNewWindow(strUrl,windowName,winParms); 
}

function openNewWindow(strUrl, windowName, winParms){
	win=window.open(strUrl,windowName,winParms); 
}

function openNewNormalWindow(strUrl,windowName){
	win=window.open(strUrl,windowName); 
}
