// this function will clear the search text.
function c_searchText(obj,io) {
	if(obj.value == "Enter Search Text") { // clear search text
		obj.value = "";
	}
	else if(obj.value == "") { // if text is blank on blur reset text
		obj.value = "Enter Search Text";
	}
	if(io) { // if it's on focus change style.
		obj.className = "c_searchBoxOn";
	}
	else { // if it's on blur change style
		obj.className = "c_searchBoxOff";
	}
}

// this function will actually run the search
function runSearch() {
	var val = $('c_searchBox').value;
	if(val.trim().length > 0 && val.trim() != "Enter Search Text")
		document.location = "/GetEvents.cfm?e=" + escape(val);		
}


// this function will switch the powerbullets
function c_bull(ID,io,styl) {
	document.getElementById(ID).src = "/images/new/pwrBullet_" + ((io)?"on":"off") + styl + ".jpg";
}

// function for preloading images
function MM_preloadImages() { //v3.0
	var d=document; 
	if(d.images){ 
		if(!d.MM_p) d.MM_p=new Array();
    	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
		for(i=0; i<a.length; i++) {
    		if (a[i].indexOf("#")!=0){ 
				d.MM_p[j]=new Image; 
				d.MM_p[j++].src=a[i];
			}
		}
	}
}

MM_preloadImages("/images/new/pwr_goOn.jpg","/images/new/pwrBullet_on1.jpg","/images/new/pwrBullet_on2.jpg");
