//Script created by Jim Young (www.requestcode.com)
//Submitted to JavaScript Kit (http://javascriptkit.com)
//Visit http://javascriptkit.com for this script

//Set the tool tip message you want for each link here.
     var tip=new Array
           tip[0]='&nbsp;Light of the Path Retreat with Lama Zopa Rinpoche&nbsp;'
           tip[1]='&nbsp;About Kadampa Center - the Basics&nbsp;'
           tip[2]='&nbsp;Weekly Dharma Classes and Other Events&nbsp;'
           tip[3]="&nbsp;News about the Center and Special Events!&nbsp;"
           tip[4]='&nbsp;Community Outreach Projects&nbsp;'
           tip[5]='&nbsp;Online Dharma Teachings&nbsp;'
           tip[6]='&nbsp;How You Can Help Kadampa Center&nbsp;'
           tip[7]='&nbsp;Inside Happiness Series&nbsp;'
           
    /*  The scripts below should not be changed. */   
     function showtip(current,e,num)
        {
         if (document.layers) // Netscape 4.0+
            {
             theString="<DIV CLASS='ttip'>"+tip[num]+"</DIV>"
             document.tooltip.document.write(theString)
             document.tooltip.document.close()
             document.tooltip.left=e.pageX+5
             document.tooltip.top=e.pageY+8
             document.tooltip.visibility="show"
            }
         else
           {
            if(document.getElementById) //  Internet Explorer 5.0+ and Netscape 6.0+
              {
                 elm=document.getElementById("tooltip")
                // elmd=document.getElementById(current.id)
                 elm.innerHTML=tip[num]
                 if(document.all) // for IE5+ only
                   {
                    elm.style.pixelTop=(document.body.scrollTop + event.clientY) + 12
                    elm.style.pixelLeft=(document.body.scrollLeft + event.clientX) + 5
                   }
                else
                   {  // NS6 only
                    elm.style.top=e.pageY+12
                    elm.style.left=e.pageX+5 
                   }
                elm.style.visibility = "visible"
              }
           }
        }

function hidetip(){
if (document.layers) // Netscape 4.0+
   {
    document.tooltip.visibility="hidden"
   }
if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+
     {
      elm.style.visibility="hidden"
     }
}

/* This script created by Jim Young of www.requestcode.com.  Please leave 
these comments if you use this script.  
Do not change the script below unless you use a different image for the 
arrow. 
*/
imageon=new Image()
imageon.src="immagini/pointer.gif"  // Image that is displayed onmousover
imageoff=new Image()
imageoff.src="immagini/off.gif"   // image that is displayed onmouseout - image is transparent
var count=0
function imgchg(imgname)
{
  if(count==0)
  {
    count++
    eval("document."+imgname+".src = imageon.src")
  }
  else
  {
    count=0
    eval("document."+imgname+".src = imageoff.src")
  }
}

/* String Trim Function  Ex: myString.trim() */
String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}
