'
function BrowserCheck() {
var b = navigator.appName
//HBS extension
this.mac = (navigator.appVersion.indexOf('Mac') != -1)
if (b=="Netscape") this.b = "ns"
else if (b=="Microsoft Internet Explorer") this.b = "ie"
else this.b = b
this.version = navigator.appVersion
this.v = parseInt(this.version)
this.ns = (this.b=="ns" && this.v>=4)
this.ns4 = (this.b=="ns" && this.v==4)
this.ns5 = (this.b=="ns" && this.v==5)
this.ie = (this.b=="ie" && this.v>=4)
this.ie4 = (this.version.indexOf('MSIE 4')>0)
this.ie5 = (this.version.indexOf('MSIE 5')>0)
this.min = (this.ns||this.ie)
this.CRAPBrowser = (this.ie && this.mac); //Cannot Resolve Addresses Properly
}
is = new BrowserCheck();
var LocFolder = GetFolder(window.location.href);
function GetFolder(LocPath){
LocPath = ReplaceStuff('\'','%27',LocPath);
var i = LocPath.lastIndexOf('/');
if (i<0){i=LocPath.lastIndexOf('\\')};
return LocPath.substring(0,i);
}
function CombineURLs(InURL){
var i = InURL.indexOf('../');
var s = LocFolder;
while (i >- 1){
s = GetFolder(s);
InURL = InURL.substring(3,InURL.length);
i = InURL.indexOf('../');
}
return s + '/' + InURL;
}
x = new Array();
function ResolveURLs(InText,Attribute){
x.length=0;
var Temp = InText.toLowerCase();
var z;
var AttLen = Attribute.length + 2;
var y=Temp.lastIndexOf(Attribute + '="');
while (y>-1){
var sLoc = y+AttLen;
if (Temp.substring(sLoc,sLoc+5) != 'http:'){
x[x.length]=new Array();
x[x.length-1][0] = sLoc;
z = Temp.indexOf('"',sLoc);
x[x.length-1][1] = z;
x[x.length-1][2] = InText.substring(sLoc,z);
}
Temp = Temp.substring(0,y);
y=Temp.lastIndexOf(Attribute + '="');
}
for (var j=0; j' + ExerciseTitle + '
';
TitleCode += '' + ExerciseSubtitle + '
';
TitleCode += '';
var QButtonsOpener = '';
var TableOpener = '';
function GoBack(){
var BackSkip = history.length - PreviousPage;
if (BackSkip > 0){
history.go((BackSkip+1)*-1);
}
else{
parent.history.back();
}
}
function ReduceItems(){
var ItemToDump=0;
var j=0;
while (I.length > QsToShow){
ItemToDump = Math.floor(I.length*Math.random());
for (j=ItemToDump; j<(I.length-1); j++){
I[j] = I[j+1];
}
I.length = I.length-1;
}
}
function Shuffle(InArray){
Temp = new Array();
var Len = InArray.length;
var j = Len;
for (var i=0; i';
OutString += '';
OutString += '';
OutString += NavBar;
if (Feedback.length>0){
OutString += '';
OutString += '';
OutString += Feedback;
OutString += ' |
'
}
OutString += '