window.offscreenBuffering = true;

if (window!= top) {top.location.href = location.href;}

function cache_images() {
	if (document.images) {
		if (typeof document.obj == 'undefined') {document.obj = new Object();}
		document.obj.loaded_images = new Array();
		var argLength = cache_images.arguments.length;
		for (arg=0; arg<argLength; arg++) {
			document.obj.loaded_images[arg] = new Image();
			document.obj.loaded_images[arg].src = cache_images.arguments[arg];
	}	}	}

cache_images("../graphics/titles/10012008-title-01.png","../graphics/titles/10012008-title-02.png","../graphics/titles/10012008-title-03.png","../graphics/backgrounds/10012008-sand.jpg","../graphics/backgrounds/10012008-light-sand.jpg","../graphics/backgrounds/10012008-dark-sand.jpg","../graphics/backgrounds/03012004-dark-sand.jpg");

var child_window = null;
var pop_window = null;

function shut_down() {
	if (child_window != null && child_window.open) child_window.close();
	if (pop_window != null && pop_window.open) pop_window.close();
	};

window.onfocus=shut_down;

function print_page(strid) {
	var prtContent = document.getElementById(strid);
	var strOldOne=prtContent.innerHTML;
	var WinPrint = window.open('','', 'left=0,top=0,width=800,height=640,toolbars=no,scrollbars=no,status=no,resizable=yes');
	WinPrint.document.write(prtContent.innerHTML);
	WinPrint.document.close();
	WinPrint.focus();
	WinPrint.print();
	WinPrint.close();
	prtContent.innerHTML=strOldOne;
	};

function fit_zoom() {
	if (window.innerWidth) {
		iWidth = window.innerWidth;
		iHeight = window.innerHeight;
		}
	else {
		iWidth = document.body.clientWidth;
		iHeight =document.body.clientHeight;
		}
	iWidth = document.images[0].width - iWidth;
	iHeight = document.images[0].height - iHeight;
	window.resizeBy(iWidth, iHeight);
	};

function disable_button() {
	this.value='Submitting...';
	this.disabled=true;
	};