// JavaScript Document ////////////////////////////////////////////////////////// var isHover = new Array(); var clearMe = new Array(); var zIndex=1; function changePic(id,hide) { isHover['main'] = 0; isHover['clan'] = 0; isHover['comm'] = 0; isHover['media'] = 0; isHover['premium'] = 0; isHover['cups'] = 0; hideNavi('main'); hideNavi('clan'); hideNavi('comm'); hideNavi('media'); hideNavi('premium'); hideNavi('cups'); if(!$('#' + id)[0].src.match(/\_hover/)) $('#' + id)[0].src = $('#' + id)[0].src.replace(/\.jpg/, '_hover.jpg'); if(hide != 0) { $('#' + id)[0].onmouseout = function() { if(isHover[this.id] != 1) this.src = this.src.replace(/\_hover\.jpg/, '.jpg'); } } else { $('#' + id)[0].onmouseout = function() { isHover[this.id] = 0; hideNavi(this.id); } } } function hideNavi(id,timer) { if(timer == 1 && isHover[id] != 1) { $('#n_' + id)[0].style.display = 'none'; $('#' + id)[0].src = $('#' + id)[0].src.replace(/\_hover\.jpg/, '.jpg'); } else window.setTimeout("hideNavi('"+id+"',1)",100); } ////////////////////////////////////////////////////////////////////////// function showNavi(id) { changePic(id, 0); isHover[id] = 1; $('#n_' + id)[0].style.display = 'block'; $('#n_' + id)[0].style.zIndex = zIndex; zIndex++; $('#n_' + id)[0].onmouseover = function() { var id = this.id.replace(/n\_/, ''); isHover[id] = 1; } $('#n_' + id)[0].onmouseout = function() { var id = this.id.replace(/n\_/, ''); changePic(id); } } var img = new Array(); function initNavigation() { var tags = $('#navi')[0].getElementsByTagName('img'); for(var i=0;i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i