var agt = navigator.userAgent.toLowerCase();
var versInt = parseInt(navigator.appVersion);
var is_ie	= ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie3    = (is_ie && (versInt < 4));
var is_ie4    = (is_ie && (versInt == 4) && (agt.indexOf("msie 4")!=-1) );
var is_aol   = (agt.indexOf("aol") != -1);
var is_aol3  = (is_aol && is_ie3);
var is_aol4  = (is_aol && is_ie4);
var is_aol5  = (agt.indexOf("aol 5") != -1);
var is_aol6  = (agt.indexOf("aol 6") != -1);
var is_comp   = (agt.indexOf("compuserve") != -1);
var is_comp2000   = (agt.indexOf("cs") != -1);	 
var is_compie = (is_comp && is_ie);

var bookmarkurl = window.location.href;
var bookmarktitle = document.title;

function addfav(){
    if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle);
    	}


function JG_goTo( url ) {
	window.location.href = url;
}



// used to open popup windows from the dateline
function JG_openMap( location )
{
	var datelineWin = window.open( location, '620x430', "height=430,width=620,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no" );
	datelineWin.focus();
}


// this is for opening pop-up windows
function JG_openPopup( url, name, widgets, openerUrl )
{
	var host = location.hostname;
	var popupWin = window.open( url, name, widgets );
	
	if ( openerUrl )
	{
		popupWin.opener.location = openerUrl;
	}

	if ( !( is_aol6 || is_aol3 || is_aol4 || is_aol5 || is_compie || is_comp2000) )
	{
		popupWin.opener.top.name = "opener";
		popupWin.focus();
	}
}



function SendLink()
{
	var lStrLink = new String('');
	var lStrSub  = new String('');
	var lStrFoot  = new String('');
	var lStrFoot1  = new String('');
	lStrSub = 'mailto:?'
	lStrSub += 'subject=' + escape('Johnson George\'s Personal Website')
	lStrLink = '&body=' + escape('Hi!\nI just visited Johnson\'s Personal ')
	lStrFoot ='Website and thought you might find it interesting to look at.'
	lStrFoot1='Click on http://www.johnsongeorge.com and let me know what you think!'
	window.location.href = lStrSub+lStrLink+lStrFoot+lStrFoot1
}

function clickIE4(){
if (event.button==2){
//alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
//alert(message);
return false;
}
}
}
