function smallWinLink(url,width,height) {
	win=window.open(url,"smallwin","width=" + width + ",height=" + height + ",scrollbars=yes,resizable,left=10,top=10");
}
function displayItem(theid) { var theidn = document.getElementById(theid);	theidn.style.display = "";}
function hideItem(theid) {	var theidn = document.getElementById(theid);	theidn.style.display = "none";}
function changeClass(theitem,theclass) {	var theid = document.getElementById(theitem);	theid.className = theclass;}

/* Mini Prototype 6.0 version */
function $(element) {
  if (arguments.length > 1) {
    for (var i = 0, elements = [], length = arguments.length; i < length; i++)		elements[i] = ($(arguments[i]));
    return elements;
  }
  if (isString(element))   element = document.getElementById(element);
  return element; //Element.extend(element);
}
function isString( object ) {	return typeof object == "string";}
String.prototype.stripTags = function( ) {    return this.replace(/<\/?[^>]+>/gi, '');}
  
String.prototype.strip = function() {    return this.replace(/^\s+/, '').replace(/\s+$/, '');} 
String.prototype.empty = function() {    return this == '';}

String.prototype.blank =  function() {    return /^\s*$/.test(this);}
 
var Ajax = { getTransport: function() {	return Try.these(	function() {return new XMLHttpRequest()},	function() {return new ActiveXObject('Msxml2.XMLHTTP')}, function() {return new ActiveXObject('Microsoft.XMLHTTP')}	) || false;	}	} 

var Try = { these: function() {   var returnValue;    for (var i = 0, length = arguments.length; i < length; i++) {     var lambda = arguments[i];
      try {       returnValue = lambda();        break;      } catch (e) { }    }   return returnValue;  }};
			
function spot_selection(cls_id) { if(! $(cls_id))	{cls_id="HOME";}	$(cls_id).className="navon"; } 
