var imgPath imgPath = "../pic/button/"; var about_on = new Image(); about_on.src = imgPath + "about_on.gif"; var about_off = new Image(); about_off.src = imgPath + "about_off.gif"; var faq_on = new Image(); faq_on.src = imgPath + "faq_on.gif"; var faq_off = new Image(); faq_off.src = imgPath + "faq_off.gif"; var news_on = new Image(); news_on.src = imgPath + "news_on.gif"; var news_off = new Image(); news_off.src = imgPath + "news_off.gif"; var link_on = new Image(); link_on.src = imgPath + "link_on.gif"; var link_off = new Image(); link_off.src = imgPath + "link_off.gif"; var member_on = new Image(); member_on.src = imgPath + "member_on.gif"; var member_off = new Image(); member_off.src = imgPath + "member_off.gif"; var contact_on = new Image(); contact_on.src = imgPath + "contact_on.gif"; var contact_off = new Image(); contact_off.src = imgPath + "contact_off.gif"; function over(imgName) { var str; str = "document."+imgName+".src="+imgName+"_on.src"; eval(str); } function out(imgName) { var str; str = "document."+imgName+".src="+imgName+"_off.src"; eval(str); } function openWin(theURL,w,h) { var nWin; var newWin; newWin = "newWin"; var winl; winl = (screen.width - w) / 2; var wint; wint = (screen.height - h) / 2; var features; features = "width="+w+",height="+h+",top="+wint+",left="+winl+",scrollerbars=0,toolbar=0,resizable=0"; nWin = window.open(theURL,newWin,features); if (parseInt(navigator.appVersion) >= 4) { nWin.window.focus(); } }