
var offsetxpoint=-60 //Customize x offset of tooltip
var offsetypoint=20 //Customize y offset of tooltip
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tip=document.all? document.all["tooltip"] : document.getElementById? document.getElementById("tooltip") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function showtip(tiptext, tipcolor, tipwidth){
var tooltiptext=new Array()
tooltiptext[0]="This is a test."
tooltiptext[1]="This is also a test."
tooltiptext[2]="This is yet another test."
tooltiptext[3]="A rate is an expression of the frequency with which an event occurs in a defined population.  Using rates, rather than raw numbers of reported cases, allows comparison between and among populations.  Rates used here are expressed as the number of cases per 100,000 persons in the population being presented."
if (ns6||ie){
if (typeof tipwidth!="undefined") tip.style.width=tipwidth+"px"
if (typeof tipcolor!="undefined" && tipcolor!="") tip.style.backgroundColor=tipcolor
tip.innerHTML=tooltiptext[tiptext]
enabletip=true
return false
}
}

function disclaim(thetext, thecolor, thewidth){
var linktext=new Array()
linktext[0]="<strong>Non-CDC Link.</strong><br />The CDC is not responsible for the content of the individual organization web pages found at this link."
linktext[1]="Overview of Program Guidelines."
linktext[2]="<strong>Leadership and Program Management</strong><br />Includes information on leadership, strategic planning, program management, resource development, advocacy, media relations, legislation, partnerships, and collaborations."
linktext[3]="<strong>Program Evaluation</strong><br />Gives a brief description of program evaluation and describes how evaluation can be used to help reach program goals and objectives."
linktext[4]="<strong>Surveillance & Data Management</strong><br />Examines the objectives of a STD surveillance system, describes the components and operation of such a system, and provides case definitions for selected STDs."
linktext[5]="<strong>Training and Professional Development</strong><br />Includes information on the training process and the professional/career development process."
linktext[6]="<strong>Medical and Laboratory Services</strong><br />Includes information on clinic procedures and management, laboratory procedures and management, standard precautions, CLIA, venipuncture, DIS services, quality assurance, reporting, and screening."
linktext[7]="<strong>Partner Services</strong><br />Includes information on pre-interview activities, types of interviews, post-interview activities, partner notification strategies, quality assurance, and community-based outreach."
linktext[8]="<strong>Community and Individual Behavior Change Interventions</strong><br />Presents a menu of options for program managers who are seeking ways to implement community and individual behavior change interventions. These options should be tailored to the individual program based on an analysis of local risk issues."
linktext[9]="<strong>Outbreak Response Plan</strong><br />STD prevention programs must create, maintain, and utilize plans to rapidly detect and respond to outbreaks. This chapter includes information on outbreak detection, investigation, response, and evaluation."
linktext[10]="<strong>Areas of Special Emphasis</strong><br />Areas of special emphasis have direct relevance to multiple essential functions of a comprehensive STD prevention program and represent high priority prevention opportunities. Current areas of special emphasis are corrections, adolescents, managed care, STD/HIV interaction, syphilis elimination, and high risk populations."
linktext[11]="<strong>Statutes/regs on health care providers’ authority to prescribe for STDs to a patient’s partner(s) w/out prior evaluation</strong><br />"
if (ns6||ie){
if (typeof thewidth!="undefined") tip.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tip.style.backgroundColor=thecolor
if (typeof theBG!="undefined") tip.style.backgroundImage='url(images/header_bkg.gif)';
tip.innerHTML=linktext[thetext]
enabletip=true
return false
}
}

function positiontip(e){
if (enabletip){
var curX=(ns6)?e.pageX : event.x+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.y+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20

var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tip.offsetWidth)
//move the horizontal position of the menu to the left by it's width
tip.style.left=ie? ietruebody().scrollLeft+event.clientX-tip.offsetWidth+"px" : window.pageXOffset+e.clientX-tip.offsetWidth+"px"
else if (curX<leftedge)
tip.style.left="5px"
else
//position the horizontal position of the menu where the mouse is positioned
tip.style.left=curX+offsetxpoint+"px"

//same concept with the vertical position
if (bottomedge<tip.offsetHeight)
tip.style.top=ie? ietruebody().scrollTop+event.clientY-tip.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tip.offsetHeight-offsetypoint+"px"
else
tip.style.top=curY+offsetypoint+"px"
tip.style.visibility="visible"
}
}

function hidetip(){
if (ns6||ie){
enabletip=false
tip.style.visibility="hidden"
tip.style.left="-1000px"
tip.style.backgroundColor=''
tip.style.width=''
}
}

document.onmousemove=positiontip