/* copyright 2000-2003 Kittric Publications */
var tmp=0; var tmpStrng="";
// var NS = false; var IE = false;
// var layername = 0;
// if (document.layers) { NS=true; IE=false } if (document.all) { IE=true; NS=false }
var NS = 1; if (!document.layers) { NS=-1; };
// document.write("NS= "+NS);
NS=document.layers;
// document.write("NS= "+NS);
var IE = (document.all);
var str=document.location.href; var parameter="";
for (var i = 0; i < str.length+1; i++) { if (str.charAt(i) == "?") { parameter = str.substring(i+1,str.length); } }
document.write("");
function MenuOptionsHide() {
if(IE) { document.all.MenuOptions.style.visibility="hidden"; }
if(NS) { document.layers.MenuOptions.visibility="hidden"; }
}
function MenuOptionsShow() {
if (IE) {
var MenuOptionsYpos = window.event.clientY - window.event.offsetY + 3;
document.all.MenuOptions.style.top=MenuOptionsYpos;
var MenuOptionsXpos = window.event.clientX - window.event.offsetX + 3;
document.all.MenuOptions.style.left=MenuOptionsXpos;
document.all.MenuOptions.style.visibility="visible";
}
}
//set mousedown capture
if (IE) {
document.onclick = MenuOptionsHide;
}
if (NS) {
document.onmousedown = MenuOptionsHide;
}
function reposition() {
repositionSideMenu();
}
if (document.all) { window.onscroll = repositionSideMenu; }
else setInterval ('repositionSideMenu()', 100);
function repositionSideMenu() {
var xoff=128;
if (document.all && document.readyState == "complete") {
var Ypos = xoff + document.body.scrollTop; document.all.SideMenu.style.top = Ypos;
var Xpos = 0; document.all.SideMenu.style.left = Xpos;
}
else if (document.layers) {
document.SideMenu.top = window.pageYOffset + xoff;
}
else if (document.getElementById) {
document.getElementById('SideMenu').style.top = window.pageYOffset+'px';
document.getElementById('SideMenu').style.visibility = 'hidden';
document.getElementById('AlphaMenu').style.visibility = 'hidden';
}
}
function resize800x600() { self.resizeTo(800,600); self.moveTo(0,0); }
function resize1024x768() { self.resizeTo(1024,768); self.moveTo(0,0); }
function resize1280x1024() { self.resizeTo(1260,1000); self.moveTo(0,0); }
function PicDivHide() {
if (IE) {
document.all.PicDiv.style.visibility="hidden";
}
}
function PicDivShow(PicDivImgName) {
if (IE) {
document.all.PicDiv.style.visibility="visible";
var Ypos = 160 + document.body.scrollTop;
document.all.PicDiv.style.top=Ypos;
var Xpos = 5;
document.all.PicDiv.style.left=Xpos;
document.PicDivImg.src=PicDivImgName;
setTimeout("PicDivHide()",25000);
}
}
function MapTabGenVil(OSRef,LocPic,Locname,CoOrds) {
document.write(" OS Map Grid Ref: "+OSRef+"
");
document.write("
"); document.write(""); document.write(" | ");
document.write(" from Multimap | "); for (var i = 0; i < 5; i++) { document.write("1:"); if (i==0) document.write("200,000");if (i==1) document.write("100,000");if (i==2) document.write("50,000");if (i==3) document.write("25,000");if (i==4) document.write("10,000"); document.write(" "); } document.write(" |
");
document.write("
|