var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
function addHit(linkobject)
{
CurrentLocation = window.parent.location.href;
// Trim any anchor from the CurrentLocation
if (CurrentLocation.lastIndexOf("#") != -1)
{CurrentLocation =
CurrentLocation.substring(0,CurrentLocation.indexOf("#")); }
var URLToOpen = "../AddHit?OpenAgent&Referer=" + CurrentLocation + "&URLToOpen=" + linkobject.href;
window.location.href = URLToOpen;
return false;
}
function launch(CurrentLang, linkObject, AltLang, AltLangURL, HREFPrefix)
{
// This function checks if the Web user is in the frames version and then launches the appropriate URL
// URL ex. Test
// Custom created href attributes are not be used because they do not pass HTML validators (i.e. ).
// var ns4=(document.layers)?1:0; // Check if the browser is Netscape 4.x , *ZZ might not be needed
var CurrentLocation = window.parent.location.href;
var DestinationHREF = linkObject.href; // this is ok for all browsers
// Replace French characters in the destination href (use oldstring[x].charCodeAt(0) for ascii or escape(oldstring[x]) for hex)
// Replace French characters in the altlang href is NOT required because it is being passed without character conversion (linkObject.href is converted)
oldstring = new Array("é" , "É" , "è" , "È" , "ê" , "Ê" , "ë" , "Ë" , "à" , "À" , "â" , "Â" , "á" , "Á" , "ä" , "Ä" , "ç" , "Ç" , "î" , "Î" , "í" , "Í" , "ì" , "Ì" , "ï" , "Ï" , "ô" , "Ô" , "ó" , "Ó" , "ò" , "Ò" , "ú" , "Ú" , "û" , "Û" , "ù" , "Ù" , "ü" , "«" , "»" , "œ" , "Œ");
for (var x=0; x < oldstring.length; x++)
{
DestinationHREF = searchreplace(DestinationHREF , oldstring[x] , escape(oldstring[x]));
}
// Determine if the user is in frames or non-frames
// The Web user is in the frames version - launch the destination link in a FrameSet
var AgentPath = '../LaunchFrameSet?openagent';
var RefDoc = getRefDoc(CurrentLang, CurrentLocation);
var FrameSize = '';
//alert('launching frames href=\"' + HREFPrefix + DestinationHREF + '\"' + "RefDoc=" + RefDoc); // temp
var newLocation = AgentPath + '&RefDoc=' + RefDoc + '&URL=' + DestinationHREF + '&altlang=' + AltLangURL + '&disp=' + CurrentLang + '&FrameSize=' + FrameSize + '&end';
// The QueryString cannot contain certain special characters such as the pound sign ("#")
newLocation = searchreplace(newLocation,"#","~hex23~");
window.parent.location.href = newLocation ;
}
function getRefDoc(CurrentLang, CurrentURL)
{
// Determine the RefDoc so that it's BreadCrumb may be used by the LaunchFrameSet agent
// Use toLowerCase to remove case sensitivity
CurrentURL = CurrentURL.toLowerCase();
CurrentFramesView = '/' + CurrentLang + '/';
// Calculate the refering document by using the current URL (window.location)
if (CurrentURL.lastIndexOf(CurrentFramesView) != -1)
{
RefDoc = CurrentURL.substr(CurrentURL.lastIndexOf(CurrentFramesView) + CurrentFramesView.length);
}
else if (CurrentURL.lastIndexOf("&RefDoc=") != -1 && CurrentURL.lastIndexOf("&URL=") != -1)
{
// The window location is already in a LaunchFrameSet environment
StartPos = CurrentURL.lastIndexOf("&RefDoc=") + 8;
EndPos = CurrentURL.lastIndexOf("&URL=") - StartPos ;
RefDoc = CurrentURL.substr( StartPos , EndPos);
}
else
{
// The RefDoc could not be determined - use the web initial page
// The current URL is not displayed using a "/xx-frames/" view, nor is the URL already in the LaunchFrameSet environment
RefDoc='0.html';
}
// Remove any anchor from the RefDoc url
if (RefDoc.lastIndexOf("#") != -1)
{RefDoc = RefDoc.substring(0,RefDoc.indexOf("#")); }
return RefDoc;
}
function searchreplace(fullstring, oldstring, newstring)
{
var pos = fullstring.indexOf(oldstring);
if (pos == -1) {return fullstring;}
var resultstring = fullstring.substring(0,pos) + newstring;
if ( pos + oldstring.length < fullstring.length)
{
// Continue to process the remaining portion of "fullstring"
fullstring = fullstring.substring(pos + oldstring.length, fullstring.length)
resultstring += searchreplace( fullstring, oldstring, newstring);
}
return resultstring;
}
// "makeSearchReplaceArray" function is NOT currently in use but may be required if URLs are coded poorly
function makeSearchReplaceArray(txt)
{
// ContentWindowURL and altlangURL need to be manipulated to handle differences between various browsers (all browsers should be handled)
// ***Internet Explorer converts Hex strings before they get passed to the function and Netscape does not convert them (this code also handles other browsers)
// Temporarily replace these special characters so that they are not changed to HEX (i.e. %E9 does not get converted to %25E9)
SearchArray = new Array("~","`","!","@","#","$","%","^","&","*","(",")","_","-","+","=","{","[","}","]","|",";", ":", "\"","\'","<",",",">","?")
ReplaceArray = new Array()
for (var i=0; i < SearchArray.length; i++)
{
ReplaceArray[i]="~hex" + SearchArray[i].charCodeAt(0) + "~";
}
}
}
/*
FILE ARCHIVED ON 19:35:45 Jan 31, 2006 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 14:17:17 Jul 27, 2024.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*
playback timings (ms):
RulesEngine.query: 24.46
PetaboxLoader3.datanode: 14.868
*/