var clickTime = 0.8;
var loadTime = 0.8;

function goPage(location) {
	try {
		var thissound=eval("document.bellSound");
		thissound.Play();
	} catch (e) {
		try {
			var thissound=document.getElementById("bellSound");
			thissound.Play();
		} catch(e) {}
	}
	
	setTimeout('gotoPageNow("'+location+'")',(clickTime*1000));
}

function homeSound() {
	try {
		var thissound=eval("document.homeSound");
		thissound.Play();
	} catch (e) {
		try {
			var thissound=document.getElementById("homeSound");
			thissound.Play();
		} catch(e) {}
	}
}

function gotoPageNow(location) {
	document.location = location;
}

function deletePic(sno,imageType,imageName) {
	var answer = confirm("You are about to delete image: "+imageName);
	
	if ( answer ) {
		document.location = "admin-content-picture-delete.php?sno="+sno+"&imageType="+imageType;
	}
}

function deleteFile(sno,fileType,fileName) {
	var answer = confirm("You are about to delete file: "+fileName);
	
	if ( answer ) {
		document.location = "admin-content-file-delete.php?sno="+sno+"&fileType="+fileType;
	}
}

function contentDelete(sno) {
	var answer = confirm("You are about to delete Content: "+sno);
	
	if ( answer ) {
		document.location = "admin-content-delete.php?sno="+sno;
	}
}

function photoDelete(sno) {
	var answer = confirm("You are about to delete Photo: "+sno+". This will remove all pictures related to this photo album.");
	
	if ( answer ) {
		document.location = "admin-photo-delete.php?sno="+sno;
	}
}

function deletePhotoPic(sno,group_type) {
	var answer = confirm("You are about to delete this photo.");
	
	if ( answer ) {
		document.location = "admin-photo-add-delete.php?sno="+sno+"&group_type="+group_type;
	}
}

function toggleContent() {
	/*
	var chBoxObject = document.getElementById("homepage_stick");
	var chObject = document.getElementById("shortContent_ch");
	var enObject = document.getElementById("shortContent_en");
	
	if ( chBoxObject.options[chBoxObject.selectedIndex].value > 0 ) {
		chObject.style.display = "block";
		enObject.style.display = "block";
	} else {
		chObject.style.display = "none";
		enObject.style.display = "none";
	}
	*/
}

function doSkipMovie() {
	var flashMovieObj = document.getElementById("flashMovie");
	flashMovieObj.style.display = "none";
	flashMovieObj.innerHTML = "";
}