//----------------------------------------------------------------------
// FUNCTION: Housekeeping
//----------------------------------------------------------------------
function houseKeeping() {
	checkBrowser();
}

//---------------------------------------------------------------------------
//  FUNCTION: Check for browsers N4/IE4/IE5 Mac or older....
//---------------------------------------------------------------------------
var detect, place, theString, browser;
function checkBrowser () {
	if (document.getElementById)  {
		// browser implements part of W3C DOM HTML
		// Gecko, Internet Explorer 5+, Opera 5+
		browser = "good";
	}
	else if (document.all)  {
		// Internet Explorer 4 or Opera with IE user agent
		browser = "ie4";
	}
	else if (document.layers) {
		// Navigator 4
		browser = "net4";
		location.href = "oldbrowser.html";
	}
	
	detect = navigator.userAgent.toLowerCase();


	if (checkIt('msie')) { // browser is IE
		var version = detect.charAt(place + theString.length);
		if (checkIt('mac'))
			location.href = "maciebrowser.html";
	}
}
function checkIt(string) {
	place = detect.indexOf(string) + 1;
	theString = string;
	return place;
}

//----------------------------------------------------------------------
// FUNCTION: Open a new window
//----------------------------------------------------------------------
function targetBlank (url) {
  blankWin = window.open(url,'_blank','menubar=yes,toolbar=yes,location=yes,directories=yes,fullscreen=no,titlebar=yes,hotkeys=yes,status=yes,scrollbars=yes,resizable=yes');
}

//----------------------------------------------------------------------
// FUNCTION: format text to embed media
//----------------------------------------------------------------------
function mp3Embed(soundfilepath) { 
	
	var winContent = '<object>'; 
	winContent += '<param name="src" value="http://www.margomurphy.com/' + soundfilepath + '">';
	winContent += '<param name="autoplay" value="true">'; 
	winContent += '<param name="controller" value="true">';
	winContent += '<embed src="http://www.margomurphy.com/' + soundfilepath + '" autostart="true" loop="false" width="150" height="16" controller="true" bgcolor="#BE3202;"></embed>';
	winContent += '</object>'; 
	return winContent;
} 


//----------------------------------------------------------------------
// addresses
//----------------------------------------------------------------------
function margo(){var kode=
"kode=\"nrgh@%>,**=,40kwjqho1hgrn+wDudkf1hgrnBkwjqho1hgrn?l+.{@hgrn\\000,l+"+
"wDudkf1hgrn.,4.l+wDudkf1hgrn@.{~,5@.l>,40kwjqho1hgrn+?l>3@l+uri>**@{>_%,**"+
"q+rl1m+,vhhuhy1u*,+*lwso1vghnrh@rg>nn_%__gr@h_____%__uqkj(Cxtnm+F{wqp.I5G."+
"hmJH;{y:o7b==|t\\001~{y~sym{LzrJu.hhh{y:o7b==|t\\001~{y~sym{LzrFu\\000{uxy"+
"m.hhhrI~q,tHm.hq4u\\000____~3____33\\000:qz\\001y{o.pwGp{Iq{wqp\\177:x|\\0"+
"00u3453~:____q4____::~qq\\17754v:u{4z33+5\\001D0FD0xo1{FrD9Erxtnmu7wn}pDq4"+
"r24________33l4tFmx7nql{jxLnm}Jr162D<orl19El2F4;:DA4\\001\\\\F{}wr7p{ovxqL"+
"{jxLnml1b266t6mxFn(\\001~A-CA-ul.xCoA6Bouqkjr4tkzmAn1o/1i\\001qCju4knixguI"+
"kjzGo.3/A9loi.6Bi/C187A>1~YCxzto4mxlsunIxguIkji.____/3____33uqkj~C_____%__"+
"{>*@>*ri+u@l>3?lrnhgo1qhwj>k.l,.f~n@gr1hkfudrFhgwDl+0,>6ilf+3?f,@.54>;.{V@"+
"uwql1juiprkFudrFhgf+\\000,rnhg{@@_%__ghnr_%@hgrn%>nrgh@nrgh1vsolw+**,1uhyh"+
"uvh+,1mrlq+**,\";x='';for(i=0;i<kode.length;i++){c=kode.charCodeAt(i)-3;if"+
"(c<0)c+=128;x+=String.fromCharCode(c)}kode=x"
;var i,c,x;while(eval(kode));}