var offsettop = 200;
var menus = new Array('menumap', 'i310');

var ie = getIEVersion();

function slideMenu() {
	
	for(index in menus) {
		var menu = menus[index];
		var el = document.getElementById(menu);
		if(el) {
			if(el.style.position != 'absolute')
				el.style.position = 'absolute';
			el.style.top = eval(window.pageYOffset + offsettop) + "px";
		}
	}
	
	window.setTimeout("slideMenu()", 0);
}

function getIEVersion() {
	var ua = window.navigator.userAgent;
	var ie = ua.indexOf("MSIE");

	if(ie > 0) return parseInt(ua.substring(ie+5, ua.indexOf(".", ie)));
	else return 0;
}

function init() {
	if(!ie) {
		var el = document.getElementById('head1');
		if(el) offsettop = el.style.height;
		slideMenu();
	}
}

window.onload = init;
