//Script Variables IMAGE01 = "pics/on2.gif" IMAGE02 = "pics/off2.gif" var myimages = new Array() function imgover(imgname,menu){ imgname.src = IMAGE01} function imgout(imgname){ imgname.src = IMAGE02} function menuover(menuimgname,hover){ menuimgname.src = 'pics/menu/'+hover} function menuout(menuimgname,hover){ menuimgname.src = 'pics/menu/'+hover} function change(html){ document.link.text.value= html;} function addbookmark(){ bookmarkurl="http://www.ctgmusic.com" bookmarktitle="www.ctgmusic.com - CTG Music Community" if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle)} function preloadimages(){ for (i=0;i' pos = getXYcoord( 'tooltippic' ); left1 = pos.x + 111; top1 = pos.y + 4; if (document.all&&document.readyState=="complete"){ document.all.tooltip.innerHTML=output document.all.tooltip.style.pixelLeft=left1 document.all.tooltip.style.pixelTop=top1 document.all.tooltip.style.visibility="visible" } } function hidetip(){ if (document.all) document.all.tooltip.style.visibility="hidden" else if (document.layers){ clearInterval(currentscroll) document.tooltip.visibility="hidden" } } preloadimages(IMAGE01,IMAGE02,"pics/menu/home-hover.gif","pics/menu/music-hover.gif","pics/menu/forum-hover.gif","pics/menu/charts-hover.gif","pics/menu/community-hover.gif","pics/menu/links-hover.gif","pics/button-s-hover.gif","pics/button-f-hover.gif","pics/button-down-hover.gif","pics/radio-hover.gif","pics/menu_bg.jpg") function new_class(obj, new_style) { obj.className = new_style; } activeMenu = null; timerId = 0; function showSubSub(name) { if (!document.getElementById) { return; } clearTimeout(timerId); if (activeMenu == name) { return; } if (activeMenu != null) { menuOff(); } activeMenu = name; pos = getXYcoord( 'menu_' + name ); offset_y = pos.y + 33; switch (name) { case 'home': offset_x = pos.x + 10; break; case 'music' : offset_x = pos.x - 25; break; case 'forum' : offset_x = pos.x - 13; break; case 'charts' : offset_x = pos.x - 24; break; case 'links' : offset_x = pos.x - 28; break; default : offset_x = pos.x; break; } document.getElementById(name).style.top = offset_y; document.getElementById(name).style.left = offset_x; document.getElementById(activeMenu).style.visibility = "visible"; } function menuOff() { if (!document.getElementById) { return; } if (activeMenu == null) { return; } document.getElementById(activeMenu).style.visibility = "hidden"; activeMenu = null; } function getXYcoord ( nvn ) { var elm = document.images[nvn]; if ( document.layers ) return elm; var rd = { x:0 ,y:0 }; do { rd.x += parseInt( elm.offsetLeft ); rd.y += parseInt( elm.offsetTop ); elm = elm.offsetParent; } while ( elm ); return rd; } function js_confirm (message) { document.confirmed = confirm(message); } function change_color(id_box, id_row, num_rows, color_active, color_normal) { for (i = 0; i < num_rows; i++) { if (document.getElementById(id_box).checked) { color = color_active; } else { color = color_normal; } document.getElementById(i + id_row).style.backgroundColor = color; } }