if (bname == "Netscape" && bVer >=4) br = "n4plus"
else if (bname == "Microsoft Internet Explorer" && bVer >= 4) br = "e4plus"
else if (bname == "Microsoft Internet Explorer" && bVer < 4) br = "e3"
else br = "notie"
// determine operating system of viewer
userAgent = navigator.userAgent
userAgent = userAgent.toLowerCase()
linux = false
win16 = false
if (userAgent.indexOf("linux") != -1) {
linux = true
}
if (userAgent.indexOf("Win16") != -1) {
win16 = true
}
// ONCLICK WARNING FOR HTTP LINKS
function webWarning () {
if (br == 'e4plus' || br == 'n4plus') {
if ((top.length ==0) || (top.getCookie('PCPLUS_CD1') == null)) {
return confirm('Accessing this link will require you to go on-line.\r\rIf you are not connected to a network, this means\ryou need a modem and Internet account setup\rand switched on. Do you wish to continue?');
}
else {return true}
}
else {
alert('Accessing this link will require you to go on-line.\r\rIf you are not connected to a network, this means\ryou need a modem and Internet account setup\rand switched on.');
return true;
}
}
// ONCLICK WARNING FOR EMAIL LINKS
function emailWarning () {
if (br == 'e4plus' || br == 'n4plus') {
if ((top.length ==0) || (top.getCookie('PCPLUS_CD3') == null)) {
return confirm('Accessing this link will require you to have an\re-mail client set up and integrated correctly.\r\rIf it is you will be taken to a New Message window\rwhere you can type in your message and then send it.\rIf you are not connected to a network, this means\ryou need a modem and Internet account setup and\rswitched on. Do you wish to continue?');
}
else {return true}
}
else {
alert('Accessing this link will require you to have an\re-mail client set up and integrated correctly.\r\rIf it is you will be taken to a New Message window\rwhere you can type in your message and then send it.\rIf you are not connected to a network, this means\ryou need a modem and Internet account setup and\rswitched on.');
return true;
}
}
// ON-CLICK WARNING FOR THIRD-PARTY LINKS
// note: cookie PCPLUS_CD4 was used to suppress initial opening page - shouldn't be used for a while
function linkWarning () {
if (br == 'e4plus' || br == 'n4plus') {
if ((top.length ==0) || (top.getCookie('PCPLUS_CD1') == null)) {
alert('This link takes you to pages authored by a third party.\r\rThey may contain links that lead onto the internet.\rIf you are not connected to a network, you will\rneed a modem and Internet account setup\rand switched on in order to follow them.');
return true;
}
else {return true}
}
else {
alert('This link takes you to pages authoured by a third party.\r\rThey may contain links that lead onto the internet.\rIf you are not connected to a network, this means\ryou need a modem and Internet account setup\rand switched on in order to follow them.');
return true;
}
}
// RUN WARNING - only for the Netscape Open/Save Dialog Tweek these days
function runWarning() {
if (br=='n4plus' && ((top.length ==0) || top.getCookie('PCPLUS_CDN') != null)) {
return confirm("Alert! To run files directly from Netscape you must have\rthe Netscape Open/Save dialog enabled. If it is,\ryou will get a 'Security Hazard' dialog box next. Choose 'Open'\rto run the file.\r\rIf you just get a 'Save to disk' dialog, you will not be able to use Netscape\rto install this software. Use the Built-in browser instead.\r\rSee the Netscape page under 'Help' for more information.\r\rDo you wish to continue?");
}
else if (br=="notie" || br=='n4plus') {
alert('Alert! This will not work.\r\rYour browser\rdoes not allow the execution of files directly from\rthe SuperCD. If you do not understand this, click OK,\rgo to the Help section on the SuperCD and read the\rinstructions.\r\rIf you do not want to install Internet Explorer to\ruse this interface, please use the standalone version\rcalled PCPlus.exe which is on the SuperCD.');
return false;
}
}
function zipWarning() {
alert("To copy zip files to your hard-drive, select 'Save to disk'\rin the next dialog box. Then use WinZip or similar utility\rto decompress them there.")
}
// MOUSEOVER IMAGE SWAP
// here's a good one for all you Netscape fans: I've had to disable roll-overs for Netscape
// because it will not recognize a variable declared in the header of the page (ie btnType) from
// within the *.js file that page includes. Why not? Doing so isn't some great W3C-stiffling move // by MS, it's just plain sensible. I'm sure there's some tedious workaround, but I'm not going
// hunting for it. You can live without the rollovers, cancha?
alert('Alert! This will not work.\r\rYou are not running Internet Explorer. Your browser\rdoes not allow the execution of files directly from\rthe SuperCD. If you do not understand this, click OK,\rgo to the Help section on the SuperCD and read the\rinstructions.\r\rIf you do not want to install Internet Explorer to\ruse this interface, please use the standalone version\rcalled PCPlus.exe which is on the SuperCD.');