var width = "10"; var border = "3"; var offsetx = 10; var offsety = -60; var fcolor = "#C56587" var backcolor = "#C56587" //var backcolor = "#CDCDCD" // var textcolor = "#000000"; var textcolor = "#C56587"; //var capcolor = "#FFFF80"; var capcolor = "#C56587"; var closecolor = "#C56587"; // var closecolor = "#99FF99"; ns4 = (document.layers)? true:false ie4 = (document.all)? true:false if (ie4) { if (navigator.userAgent.indexOf('MSIE 5')>0 || navigator.userAgent.indexOf('MSIE 6')>0) { ie5 = true; } else { ie5 = false; } } else { ie5 = false; } /* ----------------------------------------------------- NS 6.x,7.x Fix ----------------------------------------------------- This will allow for getElementByID in Netscape 6 + 7 ----------------------------------------------------- */ var ns6 = false if (!ie4 && !ie5) { if (document.getElementById) { ns6 = true; } } //----------------------------------------------------- //window.alert(ns4+" : "+ns6+" : "+ie4+" : "+ie5); var x = 0; var y = 0; var snow = 0; var sw = 0; var cnt = 0; var dir = 1; var tr = 1; var name = navigator.appName; if (name != "Microsoft Internet Explorer"){ var over = document.overDiv; document.captureEvents(Event.MOUSEMOVE); } else { var over = overDiv.style; document.onmousemove = mouseMove; } if (ns6) { var over = document.getElementById("overDiv"); //document.captureEvents(Event.MOUSEMOVE); document.onmousemove = mouseMove; } // tagged out //if ( (ns4) || (ie4) ) { //if (ns4) over = document.overDiv //if (ie4) over = overDiv.style //document.onmousemove = mouseMove //if (ns4) document.captureEvents(Event.MOUSEMOVE) //} // tagged out // Public functions to be used on pages. // Simple popup right function drs(text) { dts(1,text); } // Caption popup right function drc(text, title) { dtc(1,text,title); } // Sticky caption right function src(text,title) { stc(1,text,title); } // Simple popup left function dls(text) { dts(0,text); } // Caption popup left function dlc(text, title) { dtc(0,text,title); } // Sticky caption left function slc(text,title) { stc(0,text,title); } // Simple popup center function dcs(text) { dts(2,text); } // Caption popup center function dcc(text, title) { dtc(2,text,title); } // Caption popup left function ListInfo(text, title) { dtc(4,text,title); } // Sticky caption center function scc(text,title) { stc(2,text,title); } // Clears popups if appropriate function nd() { if ( cnt >= 1 ) { sw = 0 }; if ( (ns4) || (ie4) || (ns6)) { if ( sw == 0 ) { snow = 0; hideObject(over); } else { cnt++; } } } function ListOut() { if ( cnt >= 1 ) { sw = 0 }; if ( (ns4) || (ie4) || (ns6)) { if ( sw == 0 ) { snow = 0; hideObject(over); } else { cnt++; } } } // Non public functions. These are called by other functions etc. // Simple popup function dts(d,text) { txt = "
"+text+"
" layerWrite(txt); dir = d; disp(); } // Caption popup function dtc(d,text, title) { //alert(text) txt = ""; txt += ""; txt += ""; txt += ""; txt += ""; txt += ""; txt += ""; txt += "
"; txt += ""; txt += ""; txt += ""; txt += ""; txt += "
"; txt += title; txt += "
"; txt += "
"; txt += ""; txt += ""; txt += ""; txt += ""; txt += "
"; txt += text; txt += "
"; txt += "
"; layerWrite(txt); dir = d; disp(); } // Sticky function stc(d,text, title) { sw = 1; cnt = 0; txt = "
"+title+"Close
"+text+"
" layerWrite(txt); dir = d; disp(); snow = 0; } // Common calls function disp() { if ( (ns4) || (ie4) || (ns6)) { if (dir == 4) { // moveTo(over,x+offsetx+(width/6),y+offsety+70); } if (snow == 0) { if (dir == 3) { // 1/2 left moveTo(over,x-offsetx-(width/3),y+offsety); } if (dir == 2) { // Center moveTo(over,x+offsetx-(width/2),y+offsety); } if (dir == 1) { // Right moveTo(over,x+offsetx,y+offsety); } if (dir == 0) { // Left moveTo(over,x-offsetx-width,y+offsety); } showObject(over); snow = 1; } if (ns6) { moveTo(over,x+15,y-5); //window.alert(x + " : " + y); //window.alert("here!"); } } // Here you can make the text goto the statusbar. } // Moves the layer function mouseMove(e) { if (ns4) {x=e.pageX; y=e.pageY;} if (ns6) {x=e.pageX; y=e.pageY;} if (ie4) {x=event.x; y=event.y;} if (ie5) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;} if (snow) { if (dir == 2) { // Center moveTo(over,x+offsetx-(width/2),y+offsety); } if (dir == 1) { // Right moveTo(over,x+offsetx,y+offsety); } if (dir == 0) { // Left moveTo(over,x-offsetx-width,y+offsety); } } } // The Close onMouseOver function for Sticky function cClick() { hideObject(over); sw=0; } // Writes to a layer function layerWrite(txt) { if (ns4) { var lyr = document.overDiv.document lyr.write(txt) lyr.close() } else if (ns6) document.getElementById("overDiv").innerHTML = txt else if (ie4) document.all["overDiv"].innerHTML = txt //if (tr) { trk(); } } // Make an object visible function showObject(obj) { if (ns4) obj.visibility = "show" if (ie4) obj.visibility = "visible" if (ns6) obj.style.visibility = "visible" } // Hides an object function hideObject(obj) { if (ns4) obj.visibility = "hide" if (ie4) obj.visibility = "hidden" if (ns6) obj.style.visibility = "hidden" } // Move a layer function moveTo(obj,xL,yL) { if (ns6) { document.getElementById("overDiv").style.left = xL document.getElementById("overDiv").style.top = yL } else { obj.left = xL obj.top = yL } }