var nsiof = (navigator.appName.indexOf("Netscape") != -1);;
var d = document;;
var px = document.layers ? "" : "px";;
var dayis = 0 ;;
var hhh = 4 ;;
var runit = 0 ;;
var mm1 = "Map of " ;;
var mm2 = "Detail " ;;
var mm3 = "the location" ;;
var linktxt="2" ;;
var fr = window.self.name ;; // do not set alt if in frames
var codespresent = true ;;
if(fr==""){
document.write('
in case of difficulty tell Mr Red ');
document.write(' & quote - browser = ' +navigator.appName+' ...... version = ' +navigator.appVersion + ' ..... ');
if(bw.indxof!=-1)document.write('('+ bw.indxof + ')');
document.write('
');
} //if(fr=="")
//This script calculates the which days of the month a given day of the week is
// programmer is Mr Red of cresby.com fame. He can be contacted from his website with a webmail form.
function WrDate(){
setupdom();
for(i=0; i < document.links.length ; i++){
if (document.links[i].hash == "#today"){document.links[i].href = "#" + WrDateStr;}
if (sear(document.links[i].href,"ltimap")) {
// alert( i+" . "+document.links[i].href);
if (sear(document.links[i].href,"pc=")) {
locat = mm1 + getpc(document.links[i].href);
} // if (sear(document.links[i].href,"pc="))
else{
locat = mm1 + mm3;
} // if (sear(document.links[i].href,"pc="))
if (sear(document.links[i].href,"scale=5")) {
locat = "Detail " + locat;
}//if (sear(document
// temp =document.links[i].href
// temp1 = temp.search("pc=")+3;
// temp1 = temp.substr(temp1,6);
// temp1 = temp1.toLowerCase();
// fred = findObj(temp1);
// temp = "nodis()"
// document.links[i].onMouseOut =temp ;
// temp = 'msger'
// temp = 'dispc("'+locat+'")'
// document.links[i].onMouseOver = temp;
document.links[i].alt = locat ;
document.links[i].title = locat ;
document.links[i].target = "_blank";;
} //sear(document.links[i].href,"ltimap")
if (document.links[i].id != "dom") {
if(sear(document.links[i].id ,'menuLink')){
}else{
if ((document.links[i].alt == "")){
document.links[i].alt = document.links[i].href ;
if ((document.links[i].title == "")){ document.links[i].title = document.links[i].href; }
} //if ((document.links[i].alt == ""))
if ((document.links[i].title == "")){
if (navigator.appName != "Opera" ) {document.links[i].title = document.links[i].href;}
if ((document.links[i].alt == "")){ document.links[i].alt = document.links[i].href }
} // if ((document.links[i].title == ""))
}
} //document.links[i].id != "dom"
else {
document.links[i].title = "today is the "+dom+"... click to see the next 28 days"
document.links[i].alt = "today is the "+dom+"... click to see the next 28 days"
document.links[i].id = "dom" + i
} //document.links[i].id != "dom"
} // for
} //function WrDate()
function getpc(lookat){
var outer = "";
var souter;
qq = 0;
souter = "";
rr = lookat.length;
for(ii=0; ii < lookat.length ; ii++){
if (lookat.charAt(ii) == "="){ qq = ii+1;}
if (lookat.charAt(ii) == "&"){
rr = ii-qq;
ii=255;
}
}
outer = lookat.substr(qq,rr);
// alert (outer+" 1 "+outer.length);
for(ii=0; ii < outer.length ; ii++){
if (outer.charAt(ii) == "%"){ souter = outer.substr(0,ii) +"_"+outer.substr(ii+3,outer.length);}
if (outer.charAt(ii) == " "){ souter = outer.substr(0,ii) +"_"+outer.substr(ii+1,outer.length);}
}
if (souter==""){ souter = outer.substr(0,outer.length-3)+"_"+outer.substr(outer.length-3,5);}
return souter;
}
function sear(lookat,forthis){
var same = false ;
var nn = 0;
var qq = 0;
if (lookat.length == 0 ) {return false;}
if (forthis.length == 0 ) {return false;}
for(ii=0; ii < lookat.length ; ii++){
if (lookat.charAt(ii) == forthis.charAt(0)){
qq = 1;
if (lookat.length <= (forthis.length + ii) ) {return false;}
for (nn=1; nn < forthis.length ; nn++){
if (lookat.charAt(ii+nn) == forthis.charAt(nn)) {
qq = ++qq;
}
else{
nn = 255;
qq = 0;
}
}
if (qq == forthis.length) {return true}
}
}
return false;
}
WrDate();
var slower =1;
var delay = 10;
var startPos = 100;
var ns=(document.layers);
var ie=(document.all);
var firefoxy=!(ns||ie);
var timerID = null;
var timerRunning = false;
var positer = 2;
var notnow = 3 ; // hold-off
var temp1 = 0;
var itisin = 0;
// if (self.name != "mainFrame" ){
// document.write("