/* This notice must be untouched at all times.
WebPop 1.0
CopyRight (C) 2003-2004 Frode Rustoy. All rights reserved.
(Frode@Rustoy.no) http://www.vevmesteren.no/
We have made some effort to keep the script simple and with understandable naming
in hope that as many as possible will be able to use it. This effort may
slow the script down a bit. Any suggestion to make it more efficient are welcome!!!!!!
Use it as you want!
Use the adress Frode@Rustoy.no to tell me about changes you have done
We think it is a good idea to offer the user a possibility to use web browser context menu,
and to use the script only when needed for important functonality in yor design
You may, of course, do as you like!
PLEASE keep your changes "crossbrowser" and SIMPLE!
We also want you to SHARE any changes with the community!!
We don't want anybody left out - do we?
This program is free software.
You can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License at http://www.gnu.org/copyleft/gpl.html for more details.
*/
// ARRAY FORMAT: MenuText,URL,Target,Title,Icon,event
var eowPop = new Array()
eowPop[0]= new Array(
new Array('Vevmesteren','','','',''),
new Array('Skrivetrener','http://vevmesteren.no/skrivetren.html','_self','','',''),
new Array('Gloseboka','http://vevmesteren.no/glosebok/index.cgi','_self','','',''),
new Array('Vevmesterens hjemmeside','http://vevmesteren.no/','_self','','','')
)
eowPop[1]= new Array(
new Array('Eksempler','','','','','onmousedown="eowPopMenu(\'
One single menuitem
Context menu or context help may be placed on a single item in the menu as well!
You may put whatever you like in the eowPop as long as it is valid HTML!\')"'),
new Array('EdOnWeb','http://www.edonweb.no','','','',''),
new Array('NettGymnaset','>',
new Array ('NettGymnaset','http://www.nettgymnaset.com/','','This virtual school are made with EdOnWeb','',''),
new Array('Samples from the English course','>',
new Array('The Norwegian Way of Life','http://www.nettgymnaset.com/MAIN/?dokument=2003-05-23.09:54:58.txt','','','',''),
new Array('Listening Comprehension','http://www.nettgymnaset.com/MAIN/?dokument=2001-09-25.10:18:56.txt','','','',''),
new Array('Shakespeare is a ..?','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:13:14.txt','','','',''),
new Array('Idioms','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:01:22.txt','','','',''),
new Array('Multiple choice','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:08.txt','','','',''),
new Array('Question-tags','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:44.txt','','','','')
),
new Array('Samples from the Science course','>',
new Array('Engine','http://www.nettgymnaset.com/MAIN/?dokument=2001-09-25.15:13:07.txt','','','',''),
new Array('Millers experiment','http://www.nettgymnaset.com/MAIN/?dokument=2001-09-26.21:29:43.txt','','','',''),
new Array('Cell division (mitosis)','http://www.nettgymnaset.com/MAIN/?dokument=2001-09-30.18:34:36.txt','','','','')
),
new Array('Testing long submenu','>',
new Array('The Norwegian Way of Life','http://www.nettgymnaset.com/MAIN/?dokument=2003-05-23.09:54:58.txt','','','',''),
new Array('Listening Comprehension','http://www.nettgymnaset.com/MAIN/?dokument=2001-09-25.10:18:56.txt','','','',''),
new Array('Shakespeare is a ..?','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:13:14.txt','','','',''),
new Array('Idioms','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:01:22.txt','','','',''),
new Array('Multiple choice','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:08.txt','','','',''),
new Array('Question-tags','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:44.txt','','','',''),
new Array('','','','','',''),
new Array('The Norwegian Way of Life','http://www.nettgymnaset.com/MAIN/?dokument=2003-05-23.09:54:58.txt','','','',''),
new Array('Listening Comprehension','http://www.nettgymnaset.com/MAIN/?dokument=2001-09-25.10:18:56.txt','','','',''),
new Array('Shakespeare is a ..?','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:13:14.txt','','','',''),
new Array('Idioms','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:01:22.txt','','','',''),
new Array('Multiple choice','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:08.txt','','','',''),
new Array('Question-tags','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:44.txt','','','',''),
new Array('The Norwegian Way of Life','http://www.nettgymnaset.com/MAIN/?dokument=2003-05-23.09:54:58.txt','','','',''),
new Array('Listening Comprehension','http://www.nettgymnaset.com/MAIN/?dokument=2001-09-25.10:18:56.txt','','','',''),
new Array('Shakespeare is a ..?','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:13:14.txt','','','',''),
new Array('Idioms','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:01:22.txt','','','',''),
new Array('Multiple choice','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:08.txt','','','',''),
new Array('Question-tags','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:44.txt','','','',''),
new Array('The Norwegian Way of Life','http://www.nettgymnaset.com/MAIN/?dokument=2003-05-23.09:54:58.txt','','','',''),
new Array('Listening Comprehension','http://www.nettgymnaset.com/MAIN/?dokument=2001-09-25.10:18:56.txt','','','',''),
new Array('Shakespeare is a ..?','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:13:14.txt','','','',''),
new Array('Idioms','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:01:22.txt','','','',''),
new Array('Multiple choice','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:08.txt','','','',''),
new Array('Question-tags','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:44.txt','','','',''),
new Array('The Norwegian Way of Life','http://www.nettgymnaset.com/MAIN/?dokument=2003-05-23.09:54:58.txt','','','',''),
new Array('Listening Comprehension','http://www.nettgymnaset.com/MAIN/?dokument=2001-09-25.10:18:56.txt','','','',''),
new Array('Shakespeare is a ..?','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:13:14.txt','','','',''),
new Array('Idioms','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:01:22.txt','','','',''),
new Array('Multiple choice','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:08.txt','','','',''),
new Array('Question-tags','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:44.txt','','','',''),
new Array('The Norwegian Way of Life','http://www.nettgymnaset.com/MAIN/?dokument=2003-05-23.09:54:58.txt','','','',''),
new Array('Listening Comprehension','http://www.nettgymnaset.com/MAIN/?dokument=2001-09-25.10:18:56.txt','','','',''),
new Array('Shakespeare is a ..?','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:13:14.txt','','','',''),
new Array('Idioms','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:01:22.txt','','','',''),
new Array('Multiple choice','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:08.txt','','','',''),
new Array('Question-tags','http://www.nettgymnaset.com/MAIN/?dokument=2000-02-13.17:09:44.txt','','','','')
),
new Array ('Spanish','http://www.nettgymnaset.com/MAIN/?index=Demo/Spansk','','','','')
),
new Array('ClassWare','http://www.classware.no/','_blank','','','')
)
eowPop[2]= new Array(
new Array('Favoritter','','','','',''),
new Array('Grieg Multimedia','http://www.griegmultimedia.no/','','','',''),
new Array('Norsk rettskrivningskurs','http://www.norskkurs.no/','','','',''),
new Array('Touch på nett','http://www.touchkurs.no/','','','',''),
new Array('Veien videre','http://www.veienvidere.com/','','','',''),
new Array('Norsk språktest','http://norskkurs.no/?dokument=2003-11-17.23:05:56.txt','','','',''),
new Array('Autolangues Webcourse','http://www.autolangues.com','','','',''),
new Array('Engelsk skriveverksted for ungdomsskolen','http://www.engelskverksted.no/','','','',''),
new Array('Engelsk skriveverksted for videregående skole','http://www.engelskverksted.no/','','','',''),
new Array('Engelsk skriveverksted for næringslivet','http://www.engelskverksted.no/','','','',''),
new Array('Ordrett','http://www.ordrett.norskkurs.no/','','','',''),
new Array('Fagbokforlagets ressurssider','http://www.fagbokforlaget.nettlaering.com/','','','',''),
new Array('Båtførerprøved på nett','http://www.batkurs.no/','','','',''),
new Array('Musit musikkundervisning','http://www.musit.nettlaering.com/','','','','')
)
someMenu = new Array(
new Array(''),
new Array('See Color Theory in Action!','http://www.color-wheel-pro.com/color-schemes.html','','','',''),
new Array('Color blind image correction','http://www.vischeck.com/daltonize/','','','',''),
new Array('Accessible By Design','http://www.digital-web.com/features/feature_2002-04.shtml','','','',''),
new Array('Visual elements - Color','http://www.fd.appstate.edu/muffoletto/projects/webclass/muffoletto/Visual%20Language%20Structure/color.html','','','',''),
new Array('Color','http://elearn.mtsac.edu/olsc/frontpage/books/runfp98/00000/00060.htm','','','','')
)
// Strings that are to be repated in more than one popup could be provided
// as variables like the following
var myLogo ='
';
var theAuthor = 'Frode Rustøy
Creative Manager at the Norwegian company ClassWare.

Frode is one of the partners.
He graduated from "Statens Spesiallærerhøgskole at Hosle", now a section under The Faculty of Education at Oslo University, in 1985 as special educator and have had computer based assistance for people with special needs as speciality since 1983.
Frode has been working as senior lecturer in educational science and in informatics at Vestfold college, Norway, since 1990.
';
var infoText = 'Container context
You have now clicked the right mouse button inside the div tag. eowPop catches this event and prevents it from bubbling to the surface.
You may place an eowPop() on any container-tag to catch the event and give context sensitive help, provide contextual information or make a context menu.
';
infoText += 'You may have to experiment with this page to be familiar with the script. Remember to make a copy of the original.
';
var mainPop = 'Bubble almost reached the surface
The documents body is the level just before the surface.
The right click event bubbles up through the objects in the page.
What we have done is to stop it from bubbling up to the top level if the event occurs on a lower level.
Because you are reading this text you must have been clicking with the right mouse button outside any objects on a lower level.
';
//var mainPop = ''; // Uncomment this line if you want to use
// the browsers own context menu when outside
// objects connected to eowPop
contextMenu = new Array(
new Array('Tools'),
new Array('Highlight hotspots (on/off)','','','Hotspots will be highlighted if there are any on this page.','','onClick="if (!document.getElementById(\'cHighlight\').disabled){ toggleHotspotBackground()}"'),
new Array('','','','','',''),
new Array('Open notebook for this page','','','Open personal notebook (only for users logged on).','','onClick="alert(\'Users logged on EdOnWeb may take notes on any page.\\nThe notes are stored on the users personal account!\');"'),
new Array('Open my personal archive','','','Open personal archive (only for users logged on).','','onClick="alert(\'Users logged on EdOnWeb has their personal archive.\\nAny digital file may be stored on the users personal account!\');"'),
new Array('Open EdOnWeb glossary','','','EdOnWeb glossary is a small glossary maintained by the teachers using EdOnWeb.','','onClick="window.open(\'http://www.nettgymnaset.com/MAIN/?Ordbok=Ja&Oppslag=\',\'OrdbokVindu\',\'scrollbars=auto,resizable,menubars=0,toolbars=0,width=650,height=500,top=0,left=0\');closePop_IfAny();"'),
new Array('','','','','',''),
new Array('Back','','','Go back one page','','onClick="history.back();"'),
new Array('Forward','','','Go forward one page','','onClick="history.forward();"'),
new Array('','','','','',''),
new Array('Reload','','','Reload current page','','onClick="location.reload();"'),
new Array('Print','','','Print this page','','onClick="print();"'),
new Array('','','','','',''),
new Array('Set local color preference','','','The colors you choose will be saved in a cookie and affect all pages in this domain.','','onClick="alert(\'Not implemented! Will be saved in a cookie.\');"'),
new Array('Set local fontsize preference','','','The fontsize you choose will be saved in a cookie and affect all pages in this domain.','','onClick="alert(\'Not implemented! Will be saved in a cookie.\');"'),
new Array('Set local font preference','','','The font you choose will be saved in a cookie and affect all pages in this domain.','','onClick="alert(\'Not implemented! Will be saved in a cookie.\');"'),
new Array('','','','','',''),
new Array('Select all','','','','','onClick="alert(\'Not implemented, but are comming soon for MSIE!\');"'),
new Array('','','','','',''),
new Array('Enable browser\'s context menu outside frames','','','Use browser\'s context menu outside hotspots and areas connected to local context popups.','','onClick="mainPop=\'\';closePop_IfAny();"'),
new Array('Disable EdOnWeb context popups','','','Disabling local context popup will give browsers context menu all over the page when clicking with the right mouse button.','','onClick="togglePreferences();closePop_IfAny();"')
)
eowEntrances = new Array(
new Array(''),
new Array('NettGymnaset.com','http://www.nettgymnaset.com/MAIN/','','','',''),
new Array('For visually impared','http://synshemmet.nettgymnaset.com/','','','',''),
new Array('Hedmark NettGymnas','http://hedmark.nettgymnaset.com/','','','',''),
new Array('Rogaland NettGymnas','http://roglanda.nettgymnaset.com/','','','',''),
new Array('Folkeuniversitetets NettGymnas','http://ng.fu.no/','','','',''),
new Array('NettPed NettGymnas','http://www.skrive.no/','','','','')
)