function ImageReplacement(cssClass, img, path){
	var elements = (cssClass) ? $(cssClass) : null;
	var alt = '';
	path = (path) ? path : 'images/';
	img = (img) ? img : null;
	var ______replaceElement = function(element){
		if(element){
			var imgElement = document.createElement('img');
			alt = jQuery.trim(element.innerHTML.replace(/"/g, '&quot;'));
			imgElement.setAttribute('alt',alt);
			imgElement.setAttribute('src',(path+img));
			element.replaceChild(imgElement,element.firstChild);
		}
	}
  	if(elements){
		for(var i=0;i<elements.length;i++){
			______replaceElement(elements[i]);
		}
	}
}

startList = function() {
	try{
		if (document.all&&document.getElementById) {
			navRoot = document.getElementById("nav");
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {this.className+=" over";	}
					node.onmouseout=function() { this.className=this.className.replace(" over", ""); }
				}
			}
		 }
	}catch(e){}
}

//$('#top-search-box').bind("focus",inputClearOnFocus);
//$('#top-search-box').bind("blur", inputResetOnBlur);
function inputClearOnFocus(event) {
	if(event.target.value==event.target.title){
		event.target.value = '';
		$(event.target).toggleClass("instruction");
	}
}
function inputResetOnBlur(event) {
	if(event.target.value==''){
		event.target.value=event.target.title;
		$(event.target).toggleClass("instruction");
	}
}
