var urlAddress=
"http://www.drmass.com"
;var pageName=
"www.drmass.com - Medical Training Aids SuperStore"
;function addToFavorites(){var urlAddress=location.href;if (document.all)
window.external.AddFavorite(urlAddress,pageName);else if (window.sidebar)
window.sidebar.addPanel(pageName,urlAddress,
""
)}
function boxon(tid){document.getElementById(
"conttabdiv"
+tid).style.backgroundImage=
'url(/lib/emass/conttab-top-on.jpg)'
;document.getElementById(
"conttabbottom"
+tid).src=
'/lib/emass/conttab-bottom-on.jpg'
;}
function boxoff(tid){document.getElementById(
"conttabdiv"
+tid).style.backgroundImage=
'url(/lib/emass/conttab-top-off.jpg)'
;document.getElementById(
"conttabbottom"
+tid).src=
'/lib/emass/conttab-bottom-off.jpg'
;}
function boxdown(tid){document.getElementById(
"conttabdiv"
+tid).style.backgroundImage=
'url(/lib/emass/conttab-top-down.jpg)'
;document.getElementById(
"conttabbottom"
+tid).src=
'/lib/emass/conttab-bottom-down.jpg'
;}
function hrlink(tid){window.location.href=tid.toLowerCase();}
function SetCookie(name,value,expires,path,domain,secure){var curCookie=name+
"="
+escape(value)+((expires)?
"; expires="
+expires.toGMTString():
""
)+((path)?
"; path="
+path:
""
)+((domain)?
"; domain="
+domain:
""
)+((secure)?
"; secure"
:
""
);document.cookie=curCookie;}
function GetCookie(name){var dc=document.cookie;var prefix=name+
"="
;var begin=dc.indexOf(
"; "
+prefix);if (begin==-1){begin=dc.indexOf(prefix);if (begin !=0) return null;} else
begin+=2;var end=document.cookie.indexOf(
";"
,begin);if (end==-1)
end=dc.length;return unescape(dc.substring(begin+prefix.length,end));}
function DeleteCookie(name,path,domain){if (GetCookie(name)){document.cookie=name+
"="
+((path)?
"; path="
+path:
""
)+((domain)?
"; domain="
+domain:
""
)+
"; expires=Thu, 01-Jan-70 00:00:01 GMT"
;}}
function fixdate(date){var base=new Date(0);var skew=base.getTime();if (skew>0)
date.setTime(date.getTime()-skew);}
function MM_preloadImages(){
var d=document;if(d.images){if(!d.MM_p) d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)
if (a[i].indexOf(
"#"
)!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function preload (){MM_preloadImages(
'/lib/emass/conttab-bottom-on.jpg'
,
'/lib/emass/conttab-bottom-off.jpg'
,
'/lib/emass/conttab-bottom-down.jpg'
,
'/lib/emass/conttab-top-on.jpg'
,
'/lib/emass/conttab-top-off.jpg'
,
'/lib/emass/conttab-top-down.jpg'
,
'/lib/emass/viewcart1.jpg'
,
'/lib/emass/viewcart2.jpg'
,
'/lib/emass/topmenu-back-new.jpg'
,
'/lib/emass/add2cart1.gif'
,
'/lib/emass/add2cart2.gif'
,
'/lib/emass/add2cart3.gif'
,
'/lib/emass/button-livechat.jpg'
,
'/lib/emass/button-livechat2.jpg'
,
'/lib/emass/button-seemore1.gif'
,
'/lib/emass/button-seemore2.gif'
,
'/lib/emass/button-seemore3.gif'
,
'/lib/emass/search-go1.jpg'
,
'/lib/emass/search-go2.jpg'
,
'/lib/emass/search-go3.jpg'
,
'/lib/emass/slink-affiliate1.gif'
,
'/lib/emass/slink-affiliate2.gif'
,
'/lib/emass/slink-affiliate3.gif'
,
'/lib/emass/slink-bookmark1.gif'
,
'/lib/emass/slink-bookmark2.gif'
,
'/lib/emass/slink-bookmark3.gif'
,
'/lib/emass/slink-distributor1.gif'
,
'/lib/emass/slink-distributor2.gif'
,
'/lib/emass/slink-distributor3.gif'
,
'/lib/emass/slink-email2friend1.gif'
,
'/lib/emass/slink-email2friend2.gif'
,
'/lib/emass/slink-email2friend3.gif'
,
'/lib/emass/slink-emailcart1.gif'
,
'/lib/emass/slink-emailcart2.gif'
,
'/lib/emass/slink-emailcart3.gif'
,
'/lib/emass/slink-printthis1.gif'
,
'/lib/emass/slink-printthis2.gif'
,
'/lib/emass/slink-printthis3.gif'
,
'/lib/emass/hommenu11.gif'
,
'/lib/emass/hommenu12.gif'
,
'/lib/emass/hommenu21.gif'
,
'/lib/emass/hommenu22.gif'
,
'/lib/emass/hommenu31.gif'
,
'/lib/emass/hommenu32.gif'
,
'/lib/emass/hommenu41.gif'
,
'/lib/emass/hommenu42.gif'
,
'/lib/emass/hommenu51.gif'
,
'/lib/emass/hommenu52.gif'
,
'/lib/emass/hommenu61.gif'
,
'/lib/emass/hommenu62.gif'
);}
function GenericPopup(src){window.open(src,
"win"
,
"width=590,height=590,resizable=1,scrollbars=1,scrolling=auto"
)}
function RemoveStr(src,target){var result=src;var i=result.indexOf(target);if (i>-1){var left=result.substr(0,i);var right=result.substr(i+target.length);if (left.substr(left.length-1,1)==
","
){left=left.substr(0,left.length-1);}
if (right.substr(0,1)==
","
){right=right.substr(1);}
if (right.length>0&&left.length>0){result=left+
","
+right;}
else if (left.length>0){result=left;}
else
{result=right;}}
return (result);}
function SaveSearch(frm){SaveTrail(frm.query.value,null,null,
"Search"
,4);}
function ShowSearches(){var searches=GetCookie(
"Search"
);if (searches==null)
searches=
""
var trail=searches.split(
","
);while (trail.length>0&&trail[0]==
""
){trail.shift();l=trail.length;}
if (trail.length>0){document.write(
"<label>Your Recent Searches</label>"
);for (i=trail.length-1;(i>=trail.length-6)&&(i>=0);i--){document.write(
"<a href=http://search.store.yahoo.com/cgi-bin/nsearch?catalog=emass&query="
+escape(trail[i])+
">"
+unescape(trail[i])+
"</a><br>"
);}}}
function SaveTrail(id,name,img,cookie,size){var path=
""
;var path=GetCookie(cookie);if (path==null)
path=
""
;var elem;if (id&&name){elem=id+
"|"
+escape(name)+
"|"
+img;}
else
{elem=id;}
path=RemoveStr(path,elem);var trail=path.split(
","
);var l=trail.push(elem);while (trail.length>0&&trail[0]==
""
){trail.shift();l=trail.length;}
while (l>parseInt(size)){trail.shift();l=trail.length;}
path=trail.toString();var dt=new Date();dt.setTime(dt.getTime()+24 * 60 * 60 * 1000);SetCookie(cookie,path,dt);}
function ShowTrail(){var path=GetCookie(
"Path"
);if (path==null)
path=
""
;var trail=path.split(
","
);while (trail.length>0&&trail[0]==
""
){trail.shift();l=trail.length;}
if (trail.length>0){document.write(
"<b>Recently Viewed Categories:</b><br><div id=trail><ul>"
);for (i=trail.length-1;(i>=trail.length-6)&&(i>=0);i--){elem=trail[i].split(
"|"
);if (elem[0].length>0){document.write (
"<li><a href="
+elem[0]+
".html>"
+unescape(elem[1])+
"</a></li> "
);}}
document.write(
"</ul></div>"
);}}
function ShowFullTrail(type){var ck=(type==
"Items"
?
"Path"
:
"Section"
);var path=GetCookie(ck);if (path==null)
path=
""
;var trail=path.split(
","
);while (trail.length>0&&trail[0]==
""
){trail.shift();l=trail.length;}
if (trail.length>0){var columns=1;var NewRow=true;var InRow=false;var colwid=100 / columns;document.write(
"<table class=sideboxhead border=0><tr><td align=center>Your Recently Viewed Items</td></tr></table>"
);document.write(
"<div id=recenthistory class=sidebox>"
);document.write(
"<table border=0 cellpadding=0 cellspacing=3 width=100% align=center>"
);var j=1;for (i=trail.length-1;i>=0;i--){if (NewRow){document.write(
"<tr valign=top>"
);NewRow=false;InRow=true;}
elem=trail[i].split(
"|"
);if (elem[0].length>0){document.write(
"<td width="
+colwid+
"% align=center><table border=0 cellpadding=0 cellspacing=2 width=100% style='border-bottom: solid 1px #e6e3d3'><tr><td align=center>"
);document.write(
"<a href="
+elem[0]+
".html>"
);if (elem[2].length>0){document.write (
"<img border=0 align=absmiddle src="
+elem[2]+
">"
);}
document.write(
"<br><br>"
+unescape(elem[1].replace(
/`/gi,
"'"
).replace(
/%26%2396%3B/gi,
"'"
))+
"</a><br>"
);document.write(
"</td></tr></table></td>"
);}
if (j%columns==0){document.write(
"</tr>"
);NewRow=true;InRow=false;}
j++;}
if (InRow)
document.write(
"</tr>"
);document.write(
"</table></div>"
);}}
function checkBrowser(){this.ver=navigator.appVersion;this.dom=document.getElementById?1:0;this.ie5=(this.ver.indexOf(
"MSIE 5"
)>-1&&this.dom)?1:0;this.ie4=(document.all&&!this.dom)?1:0;this.ns5=(this.dom&&parseInt(this.ver)>=5)?1:0;this.ns4=(document.layers&&!this.dom)?1:0;this.bw=(this.ie5||this.ie4||this.ns4||this.ns5)
return this}
bw=new checkBrowser();lstart=200;loop=true;speed=150;pr_step=5;function makeObj(obj,nest){nest=(!nest)?
''
:
'document.'
+nest+
'.'
this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+
'document.'
+obj):0;this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+
'document.'
+obj):0;this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
this.newsScroll=newsScroll;this.moveIt=b_moveIt;this.x;this.y;this.obj=obj+
"Object"
;eval(this.obj+
"=this"
);return this;}
function b_moveIt(x,y){this.x=x;this.y=y;this.css.left=this.x;this.css.top=this.y;}
function newsScroll(speed){if(this.y>-this.scrollHeight){this.moveIt(0,this.y-pr_step);setTimeout(this.obj+
".newsScroll("
+speed+
")"
,speed);}else if(loop){this.moveIt(0,lstart);eval(this.obj+
".newsScroll("
+speed+
")"
);}}
function newsScrollInit(){oNewsCont=new makeObj(
'divNewsCont'
);oNewsScroll=new makeObj(
'divNewsText'
,
'divNewsCont'
);oNewsScroll.moveIt(0,lstart);oNewsCont.css.visibility=
'visible'
;oNewsScroll.newsScroll(speed);}
function addEvent(elm,evType,fn,useCapture){if (elm.addEventListener){elm.addEventListener(evType,fn,useCapture);return (true);}
else if (elm.attachEvent){var r=elm.attachEvent(
'on'
+evType,fn);return (r);}
else
{elm[
'on'
+evType]=fn;}}
addEvent(window,
'load'
,newsScrollInit);
