function ImageReplacement(cssClass, img, path){
	var elements = (cssClass) ? jQuery(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]);
		}
	}
}

function hideEmail(first,second,_class){
	document.write('<a href="mailto:'+first+'@'+second+'" class="'+_class+'">'+first+'@'+second+'</a>');
}

function inputClearOnFocus(event) {
	if(event.target.value==event.target.title){
		event.target.value = '';
	}
}
function inputResetOnBlur(event) {
	if(event.target.value==''){
		event.target.value=event.target.title;
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  return window.open(theURL,winName,features);
}

