var l1 =   5; // left of ticker in pixel, or 0 to position relative
var t1 =   0; // top of ticker in pixel, or 0 to position relative
var w1 = 1250; // width of ticker in pixel
var ie = document.all ? true : false;
var first = true;
var l2 = l1 + w1;
var l3 = l1 - l2;
var l = l2;


var showing=-99;
var menu=0;
var topon, topoff,nexton,nextoff;

function myMouseOn(n) {
imageON = eval(n + "on.src");
document.images[n].src =imageON;
} //myMouseOn

function myMouseOff(n) {
imageOFF =eval(n + "off.src");
document.images[n].src =imageOFF;

} //myMouseOff




function Preload() {
//mouseOn
topon=new Image(100,150);
topon.src="kneemr.gif";
nexton=new Image(100,150);
nexton.src="kneemr.gif";

//mouseOff
topoff=new Image(150,100);
topoff.src = "barium4.jpg";
nextoff=new Image(150,100);
nextoff.src = "barium4.jpg";

}  // Preload


function tickinit() {

if (ie) {
if (l1 == 0 && t1 == 0) {
pos = document.all['tickpos'];
l1 = getLeft(pos);
t1 = getTop(pos);
}
ticktext.style.posTop = t1;
}
else {
if (l1 == 0 && t1 == 0) {
pos = document.anchors['tickpos'];
l1 = pos.x;
t1 = pos.y;
}
document.ticktext.pageY = t1;
}
l2 = l1 + w1;
l3 = l1 - l2;
l = l2;
setInterval('tick()',1);
}



function getLeft(ll) {
if (ll.offsetParent)
return (ll.offsetLeft + getLeft(ll.offsetParent));
else 
return (ll.offsetLeft);





}
function getTop(ll) {
if (ll.offsetParent)
return (ll.offsetTop + getTop(ll.offsetParent));
else
return (ll.offsetTop);
}
function tick() {
l = l - 0.5;
if (l < l3) l = l2;
cl = l1 - l;
cr = l2 - l;
if (ie) {
ticktext.style.posLeft = l;
ticktext.style.posTop = t1;
ticktext.style.clip = "rect(auto "+cr+"px auto "+cl+"px)";
if (first) ticktext.style.visibility = "visible";
}
else {
document.ticktext.pageX = l;
document.ticktext.clip.left = cl;
document.ticktext.clip.right = cr;
if (first) document.ticktext.visibility = "show";
}
first = false;
}


function setupDescriptions() {
var x = navigator.appVersion;
y = x.substring(0,4);
Preload();
if (y>=4) setVariables();
}
var x,y,a,b;
function setVariables(){
if (navigator.appName == "Netscape") {
h=".left=";
v=".top=";
dS="document.";
sD="";
}
else 
{
h=".pixelLeft=";
v=".pixelTop=";
dS="";
sD=".style";
   }
}
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function popLayer(a){
desc = "<table cellpadding=3 border=1 bgcolor=F7F7F7><td>";

if (a==1) desc += "Links to all the best anatomy sites in the world with an emphasis on radiological anatomy";
if (a==2) desc += "Links to sites with information on diseases encountered in imaging";
if (a==3) desc += "The best imaging libraries available";
if (a==4) desc += "Link to all the major Radiology Institutions";
if (a==5) desc += "Free downloads of software useful to radiologists";
if (a==6) desc += "Where to buy the most recent Radiology books";

desc += "</td></table>";

if(isNav) {
document.object1.document.write(desc);
document.object1.document.close();
document.object1.left=x+25;
document.object1.top=y;
}
else {
object1.innerHTML=desc;
eval(dS+"object1"+sD+h+(x+25));
eval(dS+"object1"+sD+v+y);
   }
}
function hideLayer(a){
if(isNav) {
eval(document.object1.top=a);
}
else object1.innerHTML="";
}
function handlerMM(e){
x = (isNav) ? e.pageX : event.clientX;
y = (isNav) ? e.pageY : event.clientY;
}
if (isNav){
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;



