if (parent.frames.length > 0) top.location=self.location; // ensure we're not in someone's frame !
function PlusName (Here) {
document.write("");
}
function DotName (Here) {
document.write("
");
}
function Menu (Type,File,Marker,Text) {
if (File.indexOf('.')>=0)
FullFile=File;
else FullFile=File+".html";
if (Marker!="0") FullFile=FullFile+"#"+Marker;
loc = self.location.pathname+self.location.hash
do {
offset=loc.indexOf("\\");
if (offset>=0) {
loc=loc.substring(offset+1)
} else {
offset=loc.indexOf("/");
if (offset>=0) {
loc=loc.substring(offset+1)
}
}
} while (offset>=0);
Here=(loc==FullFile);
if (Type==0) {
PlusName(Here);
document.write(""
//+"["+self.location.hash+"]"
//+loc+"+"+Here+"+"+FullFile
+Text+
//"["+loc+"]"+
""+Break+"\n");
}
function MenuGrey (Type,File,Marker,Text) {
FullFile=File+".html";
if (Marker!="0") FullFile=FullFile+"#"+Marker;
loc = self.location.pathname+self.location.hash
do {
offset=loc.indexOf("\\");
if (offset>=0) {
loc=loc.substring(offset+1)
} else {
offset=loc.indexOf("/");
if (offset>=0) {
loc=loc.substring(offset+1)
}
}
} while (offset>=0);
Here=(loc==FullFile);
if (Type==0) {
PlusName(Here);
document.write(""
//+"["+self.location.hash+"]"
//+loc+"+"+Here+"+"+FullFile
+Text+
//"["+loc+"]"+
""+Break+"\n");
}
function InsertMenu () {
document.write("
| Brooks | "); document.write("|
| "); Menu(-1,"index.shtml","0","Home"); Menu(-2,"projects","0","Projects"); Menu(-2,"services","0","Services"); Menu(-2,"contacts","0","Contacts"); Menu(-2,"links","0","Links"); document.write(" | |
| "); Menu(0,"index.shtml","0","Home"); Menu(0,"projects","0","Projects"); Menu(1,"lightsensor","0","Light Sensor"); Menu(1,"doorlock","0","Doorlock System"); MenuGrey(1,"flowmeter","0","Flow Meter"); MenuGrey(1,"videoproc","0","Video Processing"); MenuGrey(1,"fingerprint","0","Fingerprint Analysis"); MenuGrey(0,"services","0","Services"); MenuGrey(1,"circuit","system","System Design"); MenuGrey(1,"circuit","circuit","Circuit Design"); MenuGrey(1,"circuit","pcb","PCB Design"); MenuGrey(1,"embedded","0","Embedded Apps"); MenuGrey(1,"windows","0","Windows Apps"); Menu(1,"website","0","Website Design"); Menu(0,"contacts","0","Contacts"); Menu(1,"contacts","email","Email"); Menu(1,"contacts","addr","Address"); Menu(1,"contacts","enquiry","Enquiry Form"); Menu(1,"norder.asp","0","Card Payment"); Menu(0,"links","0","Links"); document.write(" | "); } function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name, value) { var expdate = new Date(); expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365)); var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (2 < argc) ? argv[2] : null; var path = (3 < argc) ? argv[3] : null; var domain = (4 < argc) ? argv[4] : null; var secure = (5 < argc) ? argv[5] : false; cookie = name + "=" + escape (value) + "; expires=" + expdate.toGMTString() + "; path=/" //+ "; domain=wetlook.com"// + "; secure"; //window.status="Cookie:"+cookie; //confirm(cookie); document.cookie=cookie; document.cookie.flush; } |