addEvent(window, 'load', initSite);
function initSite(){
	clickable('div',isClickableLeftnav);
	clickable('div',isClickableMenunav);
	clickable('div',isClickableRightnav);
	clickable('input',isInput);
		
}
/*

function clickableMenu(tag,c){
	alert('init menu :: '+tag+'::'+c);
	var nodes = document.getElementsByTagName(tag);
	if(nodes){
		for(var i=0; i<nodes.length; i++){
			alert(nodes[i].className);
			if(nodes[i].className==c){

				var menu = node[i];
				alert('menu = '+menu);
				var divs = menu.getElementsByTagName('div');
				alert(divs);
				for(j=0; j<divs.length; j++){
					var node = divs[j];
					node.onmouseover=function() {
						this.className+="over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace("over", "");
					}
					var arefs = node.getElementsByTagName('a');
					var h = 0;
					var target = false;
					if(arefs){
						for(var j=0; j<arefs.length; j++){
							var aref = arefs[j];
							h = aref.getAttribute('href');
							target = aref.getAttribute('target');
							node.id=h;
						}
					}

					if(h!==0){
						node.onclick=function() {
							if(target == '_blank'){
								window.open (this.id,"mywindow");
							}else{
								window.location=this.id;
							}
						}
					}
				}
			}

		}
	}
}
function makeClickable(){

}
*/
