var offsetY = 0;var mouseX = 0;var mouseY = 0;var windowW = 0;var windowH = 0;var IE = document.all?true:falseif (!IE) document.captureEvents(Event.MOUSEMOVE)var isIE5 = navigator.userAgent.toUpperCase().indexOf("MSIE 5")!=-1;document.onmousemove = getMouseXY;setupWin()function setupWin() {  if (!IE) {    windowW = window.innerWidth;    windowH = window.innerHeight;  }  else if (document.all) {    if (isIE5) {      windowW = document.documentElement.offsetWidth;      windowH = document.documentElement.offsetHeight;    } else {      windowW = document.documentElement.clientWidth;      windowH = document.documentElement.clientHeight;    }  }  if (navigator.userAgent.indexOf("Safari") != -1) {    offsetY = 0;  } else if (navigator.appName == "Netscape") {    offsetY = 35;  } else if (navigator.appName == "Microsoft Internet Explorer" && navigator.platform == "MacPPC") {    offsetY = 40;  } else if (navigator.platform == "Win32") {    offsetY = 75;  }}var helpWidth = 80;var helpHeight = 88;function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function brocken() {  document.images['rIMG'].src = 'img/no-image_sm.gif';}function dr(v, id, s, img, rn, rc) { // display rose :P  // visibilty, td id, orig style, image name, rose name, rose color  obj = MM_findObj('popup');  obj = obj.style;    if (v=='1') {      mouseX += 25;    if (isIE5) {      mouseY += ((helpHeight/2)) + document.body.scrollTop - offsetY;    } else if(IE) {      mouseY += ((helpHeight/2)) + document.documentElement.scrollTop - offsetY;    } else {      mouseY += ((helpHeight/2)*-1);    }			mouseX += 'px';	mouseY += 'px';		obj.left = mouseX;    obj.top = mouseY;      if (obj.visibility == 'visible') { return; }        x = document.getElementById('tr' + id);    x.className = "r3";        document.images['rIMG'].src = 'img/productImages/' + img;  	obj2 = MM_findObj('popupName');	obj2.innerHTML = rn;		obj2 = MM_findObj('popupColour');	obj2.innerHTML = rc;		obj.visibility = 'visible';	  } else {    if (obj.visibility == 'hidden') { return; }        x = document.getElementById('tr' + id);    x.className = 'r' + s;	obj.visibility = 'hidden';	document.images['rIMG'].src = 'img/loading.gif';  }}function getMouseXY(e) {    if (IE) {    mouseX = event.clientX + document.body.scrollLeft;    mouseY = event.clientY + document.body.scrollTop;  } else {      mouseX = e.pageX;	mouseY = e.pageY;  }  if (mouseX < 0){mouseX = 0}    if (mouseY < 0){mouseY = 0}      return true;}
