//
// Suckerfish Dropdown
// for Navigation
//
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

/* AJAX Loading Replacement */

function ajaxLoading(container) {
	new Effect.Highlight(container, {startcolor:'#ffff33', endcolor:'#f0f0f0', restorecolor:'#f0f0f0'}, {duration: 2.0});
	document.getElementById(container).innerHTML = 'Loading...';
}

function ajaxLoadingImg(container) {
	alert('loading');
	document.getElementById(container).innerHTML = '<img src=\'/aaham/aaham/img/arrow_loading.gif\'>';
}