
/* functionality: mailto, window popup */

function talk(who,what,how) {
	var x=who;
	var y='rweppler.com';
	if (what) { var z='?subject='+what; } else { var z=''; }
	var a=x+'@'+y+z;
	if (!(how)) { var how = a }
	document.write ('<a href="mailto:'+a+'" title="'+x+'@'+y+'">'+how+'</a>');
}

function pop(what,w,h) {
	popupWin = window.open (what, 'popup', 'status=0,resizable=0,scrollbars=yes,width=' + w + ',height=' + h);
}


/* section-building functions */

function writeHeader(section) {
	var htmlCode = '';

	htmlCode += '<ul class="inline">';

	if (section == 'work') { htmlCode += '<li><b><a href="index.html">Work</a></b>'; } 
		else { htmlCode += '<li><a href="index.html">Work</a>'; }
	if (section == 'bios') { htmlCode += '<li><b>Biography</b>'; }
		else { htmlCode += '<li><a href="weppler.html">Biography</a>'; }

	htmlCode += '<li><script type="text/javascript">talk(\'rhonda\',\'RW work\',\'Contact\')</script>';
	htmlCode += '</ul>';

	document.write (htmlCode);
}


function writeFooter() { /* site-wide */
	var htmlCode = '';

	htmlCode += '<div id="Footer">';
	htmlCode += 'Copyright 1995&ndash;2008 Rhonda Weppler. All rights reserved.';
	htmlCode += '</div>\n';

	document.write (htmlCode);
}



