// Advanced Page Routines and Functions for ArcaneMachinist.net
// Authored By: Matthew Keith
// Unauthorized use is prohibited.

// Correctly grab a page element...
function grabElement(elemID) {
	if(document.all) retElement = document.all[elemID];
	if(document.layers) retElement = document.layers[elemID];
	if(document.getElementById && !document.all) retElement = document.getElementById(elemID);
	return retElement;
}

function changePage(inPage) {
	window.location = inPage;
}

function changeTitle(inTitle) {
	window.document.title = inTitle;
}

function getDeeplinks() {
	splitURL = window.location.href.split("#");
	if(splitURL.length > 1) {
		return splitURL[1];
	} else {
		return "blog";
	}
}

function setFlashHeight(inHeight) {
	grabElement("am_flash").style.height = inHeight + "px";
}

function debugMessage(inText) {
	alert(inText);
}