window.addEvent('domready',function() {

	/*top buttons */
	$each($$('.headerbutton'), function(el) {
		var original = el.getStyle('color');
		var morph = new Fx.Morph(el,{ 'duration':'200', 'link':'chain' });
		el.addEvents({
			'mouseenter' : function() { morph.start({ opacity:.7, 'color':'#000' }) },
			'mouseleave' : function() { morph.start({ opacity:1, 'color': original }) }
		});
		});



	$each($$('.bottombarlink'), function(el) {
		var original = el.getStyle('color');
		var morph = new Fx.Morph(el,{ 'duration':'300', 'link':'chain' });
		el.addEvents({
			'mouseenter' : function() { morph.start({  'color':'#000' }) },
			'mouseleave' : function() { morph.start({  'color': original }) }
		});
		});

	if (window.myLoad)
	{
		myLoad();
	}
	
}); 



function pop(what, x, y)
{
var attribs = "width=" + x + ",height=" + y + 
",screenx=40,left=90,screeny=60,top=60,resizable=yes,scrollbars=yes,status=no";
arr = what.split(".");
arr2 = arr[0].split("/");
arr3 = arr2.pop();
arr4 = arr3.split("?");  
var w = window.open( what, arr4[0], attribs,true );
  w.focus();
}


function leave() {
if ((navigator.userAgent.substring(0,9)=="Mozilla/3")||
(navigator.userAgent.substring(0,9) == "Mozilla/4") ||
(navigator.userAgent.substring(0,9) == "Mozilla/5") ||
(navigator.userAgent.substring(0,9) == "Mozilla/6"))
{
glen = new Date();
dateString = glen.toLocaleString();
arrayOfStrings = dateString.split(" ");
postableDate = arrayOfStrings.join("+");
var filename ="/cgi-bin/loghit?"+escape(document.location.href)+"="+escape(document.referrer) + "&their_time=" + postableDate;
 john = new Image();
john.src = filename;
}
}
leave();
