function ClientBrowser() { var browser = navigator.appName
if (browser=="Netscape") this.browser = "ns"
else if (browser=="Microsoft Internet Explorer") this.browser = "ie"
else this.browser = browser
this.v = navigator.appVersion
this.version = parseInt(this.v)
this.ns = (this.browser=="ns" && this.version>=4)
this.ns4 = (this.browser=="ns" && this.version==4)
this.ns5 = (this.browser=="ns" && this.version==5)
this.ie = (this.browser=="ie" && this.version>=4)
this.ie4 = (this.v.indexOf('MSIE 4')>0)
this.ie5 = (this.v.indexOf('MSIE 5')>0)
this.mac = (this.v.indexOf("Mac")>0)
this.oldWin = (this.v.indexOf("3.1")>0)
this.min = (this.ns||this.ie)
}
browser = new ClientBrowser(); function scroll_resize(height,width) { window.focus(); window.resizeTo(0,0); if (browser.ie) { Grow = window.setInterval("ResizeIEWindows(" + height +"," + width + ")",1)
} else if (browser.ns) { Grow = window.setInterval("ResizeNSWindows(" + height +"," + width + ")",1)
}
}
function ResizeIEWindows(height,width) { if (document.body.clientWidth < width) { window.resizeBy(15,0);} else if (document.body.clientHeight < height-45) { window.resizeBy(0,15);} else { window.clearInterval(Grow);}
}
function ResizeNSWindows(height,width) { if (window.innerWidth < width) { window.resizeBy(15,0);} else if (window.innerHeight < height-45) { window.resizeBy(0,15);} else { window.clearInterval(Grow);}
}
var message=""; function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
function changepic(dir)
{ window.resizeTo(0,0); document.form1.saved_direction.value = dir; document.form1.submit();}