var qs=window.location.search;
var mo=qs.split("&");

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') window.onload = func;
	else {
		window.onload = function() {
			if (oldonload) oldonload();
			func();
			}
		}
	}

function getElementsByClass(searchClass, node, tag) {
	var classElements = new Array();
	if ( node == null )
	node = document;
	if ( tag == null )
	tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
			}
		}
	return classElements;
	}

function attacherAction() {
	tableObj=getElementsByClass('imgMenu');
	if(tableObj.length>0){
		for(n=0;n<tableObj.length;n++){
			tableObj[n].onclick = function(){
				window.location.href=this.alt;
				}
			tableObj[n].onmouseover = function(){
				this.src='../images/'+this.alt+'1.png';
				}
			tableObj[n].onmouseout = function(){
				this.src='../images/'+this.alt+'.png';
				}
			}
		}
	}
addLoadEvent(attacherAction);

