if(document.images) { lessonoff = new Image(); lessonoff.src = "images/button.lesson.gif"; lessonover = new Image(); lessonover.src = "images/button.lesson-over.gif"; lessonon = new Image(); lessonon.src = "images/button.lesson-down.gif"; downloadoff = new Image(); downloadoff.src = "images/button.download.gif"; downloadover = new Image(); downloadover.src = "images/button.download-over.gif"; downloadon = new Image(); downloadon.src = "images/button.download-down.gif"; imageoff = new Image(); imageoff.src = "images/button.image.gif"; imageover = new Image(); imageover.src = "images/button.image-over.gif"; imageon = new Image(); imageon.src = "images/button.image-down.gif"; assignmentsoff = new Image(); assignmentsoff.src = "images/button.assignments.gif"; assignmentsover = new Image(); assignmentsover.src = "images/button.assignments-over.gif"; assignmentson = new Image(); assignmentson.src = "images/button.assignments-down.gif"; aboutoff = new Image(); aboutoff.src = "images/button.about.gif"; aboutover = new Image(); aboutover.src = "images/button.about-over.gif"; abouton = new Image(); abouton.src = "images/button.about-down.gif"; contactoff = new Image(); contactoff.src = "images/button.contact.gif"; contactover = new Image(); contactover.src = "images/button.contact-over.gif"; contacton = new Image(); contacton.src = "images/button.contact-down.gif"; } function setOn(buttonname) { top.window.menu = buttonname ; if (document.images) { changeImages("lesson","lessonoff") ; changeImages("download","downloadoff") ; changeImages("image","imageoff") ; changeImages("assignments","assignmentsoff") ; changeImages("about","aboutoff") ; changeImages("contact","contactoff") ; hideAll(); if (buttonname=="lesson") { top.window.menu="lesson" ; changeImages("lesson","lessonon") ; } if (buttonname=="download") { top.window.menu="download" ; changeImages("download","downloadon") ; } if (buttonname=="image") { top.window.menu="image" ; changeImages("image","imageon") ; } if (buttonname=="assignments") { top.window.menu="assignments" ; changeImages("assignments","assignmentson") ; } if (buttonname=="about") { top.window.menu="about" ; changeImages("about","abouton") ; } if (buttonname=="contact") { top.window.menu="contact" ; changeImages("contact","contacton") ; } } } function outCheck(bname) { if (document.images) { hideAll(); var showLayer = top.window.menu + "Layer"; if (bname=="lesson") { if (top.window.menu=="lesson") changeImages("lesson","lessonon") ; else changeImages("lesson","lessonoff") ; } if (bname=="download") { if (top.window.menu=="download") changeImages("download","downloadon") ; else changeImages("download","downloadoff") ; } if (bname=="image") { if (top.window.menu=="image") changeImages("image","imageon") ; else changeImages("image","imageoff") ; } if (bname=="assignments") { if (top.window.menu=="assignments") changeImages("assignments","assignmentson") ; else changeImages("assignments","assignmentsoff") ; } if (bname=="about") { if (top.window.menu=="about") changeImages("about","abouton") ; else changeImages("about","aboutoff") ; } if (bname=="contact") { if (top.window.menu=="contact") changeImages("contact","contacton") ; else changeImages("contact","contactoff") ; } } } function overCheck(bname) { if (document.images) { if (bname=="lesson") { if (top.window.menu=="lesson") changeImages("lesson","lessonon") ; else changeImages("lesson","lessonover"); hideAll(); } if (bname=="download") { if (top.window.menu=="download") changeImages("download","downloadon") ; else changeImages("download","downloadover"); hideAll(); } if (bname=="image") { if (top.window.menu=="image") changeImages("image","imageon") ; else changeImages("image","imageover"); hideAll(); } if (bname=="assignments") { if (top.window.menu=="assignments") changeImages("assignments","assignmentson") ; else changeImages("assignments","assignmentsover"); hideAll(); MM_showHideLayers('assignmentsLayer','','show'); } if (bname=="about") { if (top.window.menu=="about") changeImages("about","abouton") ; else changeImages("about","aboutover"); hideAll(); MM_showHideLayers('aboutLayer','','show'); } if (bname=="contact") { if (top.window.menu=="contact") changeImages("contact","contacton") ; else changeImages("contact","contactover"); hideAll(); } } } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&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"; } // popup window var popupwin=0; function popup() { if(popupwin) { popupwin.close(); } popupwin = open('', 'popupwin', 'scrollbars=yes,resizable=yes,width=450,height=450'); } function popupphoto() { if(popupwin) { popupwin.close(); } popupwin = open('', 'popupwin', 'scrollbars=yes,resizable=yes,width=550,height=550'); } // -->