// tech corner routines

//	webwonk@blinn.com
// wtvn@blinn.com

var name = 'bill.blinn';
var joename = 'joe.bradley';
var dom = 'techbyter';
var suf = 'com';
var atsign = '@';
var dot = '.';

function break_out() {
	if (top.location != self.location) top.location = self.location;
}

function show_big(winWid, winHi, winScroll, winContents) {
	var winSettings =
		'width=' + winWid +
		',height=' + winHi +
		',toolbar=0,location=0,' +
		'resizable=1,directories=0,' +
		'menubar=0,status=0,' +
		'scrollbars=' + winScroll;
	showIt=window.open(winContents, "showIt", winSettings);
}

function ShowBigImage(MyTarget)
{
	// set maximum height and width
	var MaxWidth = 750;
	var MaxHeight = 650;

	// place file extension in SplitMyTarget1[1]
	SplitMyTarget1 = MyTarget.split('_sm.');
	// place file name base with path in SplitMyTarget2[0]
	SplitMyTarget2 = MyTarget.split('_sm');
	// assemble the file name to display, with path
	DisplayFile = SplitMyTarget2[0] + '.' + SplitMyTarget1[1];

	// create the page
		NewPage =
	'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' +
	'<html xmlns="http://www.w3.org/1999/xhtml">' +
	'<head>' +
	'<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' +
	'<title>Untitled Document</title>' +
	'<link href="../css/tbww2009.css" rel="stylesheet" type="text/css" />' +
	'</head>' +
	'<body onload="self.focus()" onblur="self.close()">' +
	'<h5>Click anywhere outside this window to close it. (Does not work with Internet Explorer.)' +
	'<img src="' + DisplayFile + '" /></h5>' +
	'</body>' +
	'</html>';
	
	// display the larger image in a new window
	BigWindow=window.open("","BigWindow","width=800,height=650,resizable=yes,menubar=no,toolbar=no,directories=no,location=no,status=no,scrollbars=yes");
	BigWindow.document.write(NewPage);
}

function write_addr(id) {
	document.write('<a href="mailto:'+id+'@blinn.com">'+id+'@blinn.com</a>');
}

function write_hidden_addr() {
	document.write('<a href="mailto:'+name+atsign+dom+dot+suf+'">'+name+atsign+dom+dot+suf+'</a>');
}

function write_joe_hidden_addr() {
	document.write('<a href="mailto:'+joename+atsign+dom+dot+suf+'">'+joename+atsign+dom+dot+suf+'</a>');
}


// show_status
// Over-complicated way to set the text in the browser
// status bar.  Workaround for IE5/6.
function show_status (text) {
	window.setTimeout("window.status='" + text + "'", 0);
}

function show_addr(id,dom,suf) {
	document.write('<a href="mailto:'+id+'@'+dom+'.'+suf+'">'+id+'@'+dom+'.'+suf+'</a>');
}