


/*
window.onload=function(){
	googleSearchHighlight();
	
	var oTxtSearch = document.getElementById('txtSearch')
	oTxtSearch.onfocus=function(){oTxtSearch.select();}
	var oBtnSearch = document.getElementById('btnSearch');
	oBtnSearch.hidefocus="true";
	oBtnSearch.onclick=function(){
		document.getElementById('frmSearch').submit(); // make btnSearch a submit (w/o ugly IE border)
	}


	var sec = new Date().getSeconds(); //this is how i rotate

	
	var arrSearchSuggestions = 'larvaly,moron,space-fireflies,Javascript,VBScript,WSH,Behaviors,CSS,IE,Firefox,IIS,ASP,diarrhea,funk,Remote Desktop,XP,SBS,"VS.net"'.split(",");
	var strSearchSuggestion = arrSearchSuggestions[sec % arrSearchSuggestions.length];
	oTxtSearch.value = strSearchSuggestion;


	// dynamically change fontfamily
	var oMasthead = document.getElementById("masthead");
	var strFonts = oMasthead.currentStyle ? oMasthead.currentStyle.fontFamily : document.defaultView.getComputedStyle(oMasthead,null).getPropertyValue('font-family');
	var arrFonts = strFonts.split(',');
	var strFont = arrFonts[sec % arrFonts.length].replace(/'/g, '"');
	oMasthead.style.fontFamily = strFont + ',' + strFonts;

}

*/







/* ======================================
totally generic procs
*/

// from prototype.js, basically a "getElementSByIdS"
function $() {
	var elements = new Array();
	for (var i = 0; i < arguments.length; i++) {
		var element = arguments[i];
		if (typeof element == 'string'){
			element = document.getElementById(element);
		}
		if (arguments.length == 1){
			return element;
		}
		elements.push(element);
	}
	return elements;
}


