/***********************************************
* Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var offsetxpoint=8 //Customize x offset of tooltip
var offsetypoint=-80 //Customize y offset of tooltip
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false

if (ie||ns6)
var tipobj=document.all? document.all["rollover"] : document.getElementById? document.getElementById("rollover") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetip(key, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
if ( key == "diamond" ) {
	thetext="April\'s Birthstone. Diamonds are crystallized carbon formed deep in the earth under intense heat and pressure. Diamonds are judged by four distinct actors: the 4 C\'s. These are Carat weight, Color, Clarity and Cut. A full-cut round diamond has 58 facets and is called a round brilliant. Pear, Marquis, Oval, Heart, Princess (square) and Emerald are some examples of \"fancy\" cuts";
	tipobj.innerHTML=thetext;
} else if ( key == "gold" ) {
	thetext="Pure gold is called 24 Karat gold. It is too soft to be used alone in jewelry, so it is combined with other metals to make it stronger, harder and better-wearing. 14 Karat gold is 14 parts gold and 10 parts alloy. The alloy metals can also be used to color gold. Yellow gold is typically alloyed with copper and silver, while white gold is usually alloyed with Nickel, Zinc, Copper and Manganese.";
	tipobj.innerHTML=thetext;
} else if ( key == "onyx" ) {
	thetext="Onyx is a chalcedony quartz with a fine texture and black color. The name comes from the Greek word onux, which means fingernail. While black isn\\'t normally the color one associates with fingernails, in Greek times, almost all colors of chalcedony from fingernail white to dark brown and black were called onyx. Unlike other opaque stones which are commonly found in rounded form, Onyx’ fine texture makes it ideal for faceting.";
	tipobj.innerHTML=thetext;
} else if ( key == "jade" ) {
	thetext="Jade has been treasured in China for 5,000 years. In Central America, pre-columbian cultures also treasured jade and used it for masks. Because of its smooth even texture, jade has long been a preferred material for carving. The most common shape is the flat donut-shaped disc called a pi, which is usually worn as a necklace. Jade is most known for its vivid greens, but also comes in lavender, pink, yellow, and white. ";
	tipobj.innerHTML=thetext;
} else if ( key == "pearl" ) {
	thetext="June\'s Birthstone. The Pearl, a gift from the sea, is the symbol of purity. This smooth lustrous gem is extremely popular in fine jewelry for its classic, quiet beauty. Aphrodite, the Green Goddess of Love, considered the Pearl to be sacred.";
	tipobj.innerHTML=thetext;
} else if ( key == "tanzanite" ) {
	thetext="Tanzanite, a variety of the mineral zoisite, occurs in a wide range of shapes, sizes and colors. This gem displays signature overtones of purple. In smaller sizes, it tends toward lighter tones, with lavender the most common. In larger sizes, the gem typically displays deeper, richer blues and purples.";
	tipobj.innerHTML=thetext;
} else if ( key == "opal" ) {
	thetext="The most dramatic looking of all gemstones, Opal is known for its dazzling, fiery combination of colors. The unique formation of tiny spheres that make up each Opal creates this magnificent play of colors. Opal is a symbol of hope and inspiration.";
	tipobj.innerHTML=thetext;
} else if ( key == "citrine" ) {
	thetext="November\'s Birthstone. Sunny Citrine ranges in color from lemon yellow to amber brown. Citrine jewelry is especially popular for the flattering glow it casts on every complexion. A member of the quartz family, Citrine symbolizes truth and integrity.";
	tipobj.innerHTML=thetext;
} else if ( key == "peridot" ) {
	thetext="August\'s Birthstone. Peridot is the French word for \"gem.\" Ranging in color from light yellow-green to deep olive, the versatile Peridot is often referred to as the \"evening emerald.\"";
	tipobj.innerHTML=thetext;
} else if ( key == "bluetopaz" ) {
	thetext="December\'s Birthstone. Today the most popular semi-precious stone, Blue Topaz is available in hues ranging from cool sky blue to deep swiss blue. This sparkling blue gemstone symbolizes strength and intelligence.";
	tipobj.innerHTML=thetext;
} else if ( key == "garnet" ) {
	thetext="January\'s Birthstone. The Garnet, a durable brilliant gemstone, is often mistaken for the more valuable ruby. Garnets were adored by the ancient Egyptian goddess Isis, and symbolize faith, truth & friendship.";
	tipobj.innerHTML=thetext;
} else if ( key == "amethyst" ) {
	thetext="February\'s Birthstone. A member of the quartz family, Amethyst is one of the most beautiful stones available in a moderate price range. Amethysts have been coveted by royalty throughout the ages as symbols of wisdom, strength, and confidence.";
	tipobj.innerHTML=thetext;
} else if ( key == "aquamarine" ) {
	thetext="March\'s Birthstone. Beloved for its cool serene ice blue hues, Aquamarine retains excellent clarity. In ancient times, this gem was thought to be capable of preserving youth and health. Aquamarine is commonly thought to symbolize peace and tranquility.";
	tipobj.innerHTML=thetext;
} else if ( key == "emerald" ) {
	thetext="The Emerald, May\'s Birthstone, is one of the most prized of all gemstones, beloved by Venus, the Roman Goddess of Love. A precious stone, the emerald has a rich spring green color that symbolizes growth and fertility.";
	tipobj.innerHTML=thetext;
} else if ( key == "sapphire" ) {
	thetext="September\'s Birthstone. The most popular precious stone, Sapphire is known for its brilliance and durability. Although it occurs in every color except red (red sapphires are rubies), the stone is best known and loved for its deep celestial blue hue. Sapphire is a symbol of faith & goodness.";
	tipobj.innerHTML=thetext;
} else if ( key == "ruby" ) {
	thetext="July\'s Birthstone. Rubies, like sapphire, are a form of corundum, but with trace elements that make them a vivid blood red. In fact, rubies are simply red sapphires. Rubies are hard and durable: only diamonds are harder. Color is a key factor in ruby value. Each ruby is judged for pure red \"hue,\" with consistent \"tone,\" and graded for vividness of \"intensity\". There\'s no such thing as a flawless ruby. Just make sure the inclusions don\'t block color consistency and cracks don\'t threaten durability.";
	tipobj.innerHTML=thetext;
} else if ( key == "cubiczirconia" ) {
	thetext="Cubic Zirconia, commonly referred to as \'CZ\', is a created gemstone thatclosely mimics a diamond\'s appearance. Cubic Zirconia sparkles brighter than crystal and is harder than most gems, making it very durable. It also weighs about 65% more than diamond and has a higher dispersion rate than diamond.";
	tipobj.innerHTML=thetext;
} else if ( key == "topaz" ) {
	thetext="Topaz is most commonly found in shades of yellow, but when the stone undergoes heat treatment it can turn a variety of colors including, pink, green and even red. The stone ranks a 8 on the Mohs scale of hardness. In the Middle Ages it was believed that the stone could protect its wearer against the plague. Today many still believe the stone can bring tranquility and patience to the wearer.";
	tipobj.innerHTML=thetext;
} else if ( key == "quartz" ) {
	thetext="Quartz, in its many forms, is the most common mineral on Earth making up 12% of the Earth\'s crust by volume. The word \"quartz\" comes from the Greek word krustallos, meaning ice, because it was believed that quartz was ice formed by the gods. Many gemstones are actually variations of quartz including Amethyst, Citrine, Chalcedony and Onyx.";
	tipobj.innerHTML=thetext;
} else if ( key == "venetianglass" ) {
	thetext="Venetian glass is traditionally manufactured on the island of Murano, which neighbors Venice. Venetian Glass is famously pure; the glass is totally clear, although the jeweler may have introduced a pure, strong color to the glass. In some cases, Venetian glass is solidly colored, while in others, artisans have created a smoky effect with one or multiple colors.";
	tipobj.innerHTML=thetext;
} else if ( key == "crystal" ) {
	thetext="Crystal is created by using a combination of silica (quartz sand) and natural minerals that are cooled slowly so no inclusions can enter. In jewelry, crystal beads and stones are available in a variety of colors from red to green, pink to blue, as well as transparent and black shades. Crystal beads are available in many sizes and shapes such as round faceted, cube, heart-shaped and bi-cone. Bi-cone crystal beads have tapered ends.";
	tipobj.innerHTML=thetext;
} else if ( key == "agate" ) {
	thetext="Agate is a type of chalcedony, a member of the quartz family. Chemically, it is identical to quartz, but because it forms in cocentric layers agate looks takes on its stunning multi-colored striped appearance. The colors come from impurities in the silicon dioxide in the stone. The stone ranks a 6.5-7 on the Mohs\' hardness scale.";
	tipobj.innerHTML=thetext;
} else if ( key == "jade" ) {
	thetext="The term \'Jade\' refers to two different stones: Jadeitite and Nephrite.  The name \"jade\" is derived from the Spanish phrase \"piedra de ijada\" meaning \'stone of the colic\'. It was believed  that the stone had mystical medicinal powers that could heal kidney ailments.  Tastes for jade vary according to the regions. In the Western world, the most highly-prized varieties of jade are those with the most vivid greens Ñ in China, jade that is virtually white, or has tinges of yellow is more prized.";
	tipobj.innerHTML=thetext;
} else if ( key == "moissanite" ) {
	thetext="Moissanite, also known by its chemical name, silicon carbide (SiC), is a naturally occurring mineral found in very limited quantities or as minute particles in the earth. Moissante used in jewelry is a relatively new lab-created gem (just over a decade old). While it may initially look like diamond, moissanite is a unique jewel with different physical, optical and chemical properties than diamond.";
	tipobj.innerHTML=thetext;
} else if ( key == "mother-of-pearl" ) {
	thetext="Mother of pearl is the iridescent internal layer of mollusk shells and has the same gemological properties of pearl. Mother of pearl comes in several natural colors, and is often bleached and dyed for decorative use. The dye retains the shimmering layers which make mother of pearl so sought after.";
	tipobj.innerHTML=thetext;
} else if ( key == "turquoise" ) {
	thetext="Turquoise is a blue-green gem valued for its rarity and unique hue. The bluer the stone is, the more expensive. Variations in color are due to the presence of metals, such as iron impurities in the case of green turquoise. Because the stone is sensitive to chemicals and naturally fragile, it should not come in contact with strong perfumes or chemicals, should be kept away from direct sunlight.";
	tipobj.innerHTML=thetext;
} else if ( key == "swarovski" ) {
	thetext="The cuts and color of Swarovski crystals are unparalled covering a broad spectrum of shapes and hues. The brilliant sparkle of each crystal is actually resulted from a glass composition containing 32 percent lead. Besides this refraction maximizing strategy, special metallic coatings are used on some of the crystals to ensure that light refracts from the surface in a rainbow spectrum.";
	tipobj.innerHTML=thetext;
} else if ( key == "tourmaline" ) {
	thetext="Tourmaline is available in a variety of colors from pink to blue, green to colorless, even bi-chromatic. The stone\'s colors are caused by the inclusion of chrome, iron, vanadium, manganese and in some cases copper in its molecular structure. Deposits of tourmaline can be found in many parts of the world, with large deposits in Africa and Brazil.  Tourmaline has a hardness on the Mohs Scale of 7 to 7.5";
	tipobj.innerHTML=thetext;
} else if ( key == "malachite" ) {
	thetext="Malachite is a carbonate mineral also known as copper carbonate. The stone\'s name from the Greek word \'molochitis\' meaning mallow-green stone. The stone is famed for its rich deep green tones with irregular black banding and silky or velvety lustre. Malachite is said to aid in the regeneration of body cells, creates calm and peace, and aids one\'s sleep. It is also believed that gazing at Malachite or holding it relaxes the nervous system and calms stormy emotions.";
	tipobj.innerHTML=thetext;
} else if ( key == "tiger's eye" ) {
	thetext="Tiger\'s Eye is a member of the quartz family that displays chatoyancy (a vertical luminescent band like that of a cat\'s eye) . The stone typically features alternating yellow or brown bands. It\'s believed the gem helps focus the mind, as well as offering protection during travel, strengthening convictions and bolstering confidence.";
	tipobj.innerHTML=thetext;
} else if ( key == "chalcedony" ) {
	thetext="Chalcedony, a form of quartz, can be virtually any color of the rainbow. It is commonly pale blue, yellow, brown or gray with nearly waxlike luster.Chalcedony is found in many parts of the world, but the most prized Chalcedony are from India, Madagascar, Burma, Brazil, Mexico & USA. Its is believe the stone can prevents melancholy and promote calm and peace. Chalcedony also stimulates creativity.";
	tipobj.innerHTML=thetext;
} else if ( key == "alexandrite" ) {
	thetext="Alexandrite can assist one in centering the self, reinforcing self-esteem, and increases ones ability to experience joy.";
	tipobj.innerHTML=thetext;
} else if ( key == "lapis lazuli" ) {
	thetext="Lapis Lazuli occurs in various shades of blue with some qualities being speckled with white and some with yellow. The finest Lapis Lazuli is considered an even blue color with little or no speckling. The stone is said to increase psychic abilities and be a cure for melancholy and for certain types of fever. The stone can be found around the world, though major deposits are centere in in Badakhshan, northeastern Afghanistan, and near Ovalle, Chile.";
	tipobj.innerHTML=thetext;
} else if ( key == "rhodolite" ) {
	thetext="Rhodolite is a mineral, a variety of the pyrope, which belongs to the garnet group of mineral gems. It ranges in color from purple or red to rose pink, and can be light or dark in shade. This reddish color is where rhodolite gets its name. The term rhodolite is derived from the Greek word rhodon, meaning \"rose.\"";
	tipobj.innerHTML=thetext;
} else if ( key == "amber" ) {
	thetext="Amber can vary in color from yellow to red, from green to blue, but amber\'s color is usually honey brown. Amber is a fossilized tree resin of now-extinct conifer trees and ancient pine trees. It is an amorphous hydrocarbon and may contain particles of various foreign materials, trapped insects, and air bubbles. The most famous source of the world\'s amber is the Baltic coast of Germany. Amber is also found off the coasts of Sicily and England and in Myanmar (Burma).";
	tipobj.innerHTML=thetext;
} else if ( key == "moonstone" ) {
	thetext="Moonstones come in a variety of colors, ranging from colorless to white, gray, brown, yellow, orange, green, or pink. Clarity ranges from transparent to translucent. Moonstone is believed to be protective for women and babies. It\'s also associated with the sea and planting cycles and is said to balance yin and yang.";
	tipobj.innerHTML=thetext;
} else if ( key == "hematite" ) {
	thetext="Hematite is a silvery, shiny opaque stone that almost looks like metal. Hematite derives its name from the Greek word haem (blood) in reference to the stone\'s dark red color. As hematite hardness is 5.5 - 6.5 on the Moh\'s Scale, it will scratch glass, but is in turn scratched by quartz. Said to be a good healing and grounding stone, it\'s believed the stone can strengthen the body and improve resistantance to life\'s stresses.";
	tipobj.innerHTML=thetext;
} else if ( key == "kunzite" ) {
	thetext="Pale pink kunzite was discovered in 1902 in the Pala District of San Diego County in California. Today, the prism-shaped crystals with their typical vertical striations are mainly found in Afghanistan, Madagascar, Brazil and the USA. Depending on the angle from which you look at a kunzite, it can appear violet, pink or even colorless.";
	tipobj.innerHTML=thetext;
} else if ( key == "iolite" ) {
	thetext="Iolite is a transparent, violet-blue, light blue, blue, rich blue-violet stone. It\'s name is derived from the Greek \"los\", meaning violet. When   Viking mariners sailed the seas, they used thin pieces of iolite as the world\'s first polarizing filter. Looking through an iolite lens, they could determine the exact position of the sun, and navigate safely. If cut properly the stone shows its best blue color through the top of the stone. But viewed from another angle the stone may appear colorless.";
	tipobj.innerHTML=thetext;
} else if ( key == "ivory" ) {
	thetext="The term \"ivory\" has been used in English for almost 1,000 years, and originates from several African words meaning \"elephant.\"  Ivory is ideal for decorative art because it is hard, close grained, and takes to carving and dyes well. Sources of ivory can be shaved to make inlays or carved whole into elaborate sculptures and art pieces.";
	tipobj.innerHTML=thetext;
} else if ( key == "scarab" ) {
	thetext="Scarab is an ancient Egyptian fertility symbol based on a common dung beetle found in Egypt. It was often carried as an amulet cast from gold or carved from semiprecious stones. The flat underside could have a design carved into it that could be used as a signet.";
	tipobj.innerHTML=thetext;
} else if ( key == "tsavorite" ) {
	thetext="Tsavorite is a variety of the Garnet family. It's stunning deep green tones makes it a collectors\' favorite. Most Tsavorite is found in small amounts in Kenya and Tanzania, with large Tsavorite stones being extremely expensive due to their rarity in the market.";
	tipobj.innerHTML=thetext;
} else if ( key == "chrome diopside" ) {
	thetext="Chrome diopside is considered one of the most affordable gemstone in a pure rich green. Most deposits of the stone are found under the chilly permafrost of deposits in Yakutia, Siberia. It is a relatively soft stone with a hardness of only 5.5 on the Moh\'s Scale.";
	tipobj.innerHTML=thetext;
} else if ( key == "vermeil" ) {
	thetext="Vermeil is also known as silver gilt. It is a combination of sterling silver, gold, and other precious metals. A typical example of vermeil is sterling silver coated with 14-carat gold. To be considered vermeil, the gold must also be at least 10-carat and be at least 1.5 micrometres thick.";
	tipobj.innerHTML=thetext;
} else if ( key == "platinum" ) {
	thetext="Platinum is a relative newcomer to jewelry, having become popular over the past couple of centuries. Unlike Gold, Platinum is not sold according to karat weights - it is stamped PT or plat to indicate that it is platinum. Because of its purity, platinum is excellent for people who are allergic to other metals.  Like white gold, it makes very white diamonds appear bright.";
	tipobj.innerHTML=thetext;
} else if ( key == "sterling silver" ) {
	thetext="Sterling silver, often characterized as pure silver, is in fact a silver alloy. It contains 92.5% silver, with the remaining 7.5% being another metal, most often copper. Sterling silver can be kept polished simply by buffing with a cotton cloth regularly. Sterling silver that has been stored away unused for a period of time might develop a significant layer of tarnish and need a polishing paste.";
	tipobj.innerHTML=thetext;
} else if ( key == "stainless steel" ) {
	thetext="Stainless steel is always made using chromium. The minimum amount of chromium used to make stainless steel is 10.5%; it is chromium that makes the steel stainless. There are four major types of stainless steel. Of these, austenitic is the most widely used type. It has a nickel content of at least 7%, which makes it very flexible.";
	tipobj.innerHTML=thetext;
} else if ( key == "leather" ) {
	thetext="Leather is any type of tanned animal hide. Different types of leather are characterized by both the type of animal skin used and the tanning and manufacturing methods employed. Patent leather is leather coated with plastic to give it a shiny, smooth finish. Many special types of leather are used in luxury productsincluding; belting leather, napa leather and vachetta leather.";
	tipobj.innerHTML=thetext;
} else if ( key == "titanium" ) {
	thetext="Titanium is a lightweight metal that is extremely durable. Even though it is as strong as steel, the metal is 45% lighter in weight. Most Titanium set pieces feature the metal in a silver-metallic hue though it can be found in black, silver and even gold shades.";
	tipobj.innerHTML=thetext;
} else if ( key == "tungsten" ) {
	thetext="Tungsten is a metallic chemical element known for its strength and durability. The name of the metal is Swedish in origin, a mixture of the word \'tung\', meaning heavy and \'sten\', meaning stone. This metal has the highest melting point, and the most tensile strength of all metals. Tungsten also has natural hypoallergenic properties that make it perfect for use in jewelry making.";
	tipobj.innerHTML=thetext;
} else if ( key == "gold-plated" ) {
	thetext="Gold plating is the process of adding a thin layer of gold to another metal in order to give that metal a gold-like appearance. In jewelry gold plating is most commonly applied to silver, thus the jewelry actually includes two precious metals, rather than just one.";
	tipobj.innerHTML=thetext;
} else if ( key == "retailer1" ) {
	thetext="Zales Jewelers is the largest specialty retailer of fine jewelry in the United States. Founded in 1924, Zales has grown to more than 750 stores. Zales stores sell more diamond jewelry than any other jeweler in America. They also offer a broad selection of classic and contemporary styles. Their commitment to superior customer service coupled with simplified credit options and convenient shopping makes them a leader in jewelry retailing."
	tipobj.innerHTML=thetext;
} else if ( key == "retailer2" ) {
	thetext = "Rowland H. Macy opened his first store in New York City in 1858. Today, with nearly 250 stores and 60,000 employees, Macy's department stores offer a broad range of home-related merchandise and high-quality apparel, jewelry and accessories for the family. Macy's flagship store on Herald Square in Manhattan is the world's largest store and arguably its most famous, thanks in part to the annual Thanksgiving Day parade televised worldwide.";
	tipobj.innerHTML=thetext;
} else if ( key == "retailer3" ) {
	thetext = "For nearly 90 years, superior customer service has been the hallmark of Helzberg Diamonds. Founded in 1915, and built by three generations of the Helzberg family, Helzberg takes pride in giving back to the community. Helzberg offers an exceptional selection of fine jewelry and emphasizes excellent, personalized service. Their customer service philosophy centers on ethics, integrity and courtesy. Today, Helzberg Diamonds proudly operates over 250 stores, in 35 states.";
	tipobj.innerHTML=thetext;
} else if ( key == "retailer4" ) {
	thetext = "Richard Sears and Alvah Roebuck teamed up in 1888 to sell jewelry and watches. Today, Sears is a trusted jewelry destination offering the largest assortment of International Gemmological Institute certified diamond jewelry of any U.S. retailer--and the guarantees to back them up. Sears actively gives back to communities through philanthropic donations, volunteerism and the Sear-Roebuck Foundation.";
	tipobj.innerHTML=thetext;
} else if ( key == "retailer5" ) {
	thetext = "For over 30 years, JCPenney Company has been one of the largest retailers of fine jewelry in America. Assortments include a large selection of diamonds, colored gemstones, gold and watches. Jewelry is sold in over 1,000 locations by over 7,000 highly trained selling specialists. \"The Jewelry Store\" at JCPenney Co. is committed to giving each customer high quality merchandise at an exceptional value.";
	tipobj.innerHTML=thetext;
} else if ( key == "retailer6" ) {
	thetext = "Founded in 1877 By David May, The May Company is today one of the largest retail conglomerates in the United States. Under its corporate umbrella are such well know retail names as: Filene\'s, Famous-Barr and Robinson May. With each retail location offering a wide variety of fine jewelry in gold, silver, colored gems and diamonds, and a total commitment to customer service, May Co. is a world leader in shopping convenience.";
	tipobj.innerHTML=thetext;
} else if ( key == "retailer8" ) {
	thetext = "Since 1916, Kay Jewelers has grown from one store to more than 800 stores conveniently located from coast to coast. As a nationally recognized and respected jeweler, Kay Jewelers knows that offering fine jewelry at a great price is only part of the story. Kay is fully committed to providing a superior shopping experience - both in their stores and online. Kay's Sales Associates are empowered with the knowledge to assist each customer, while their website offers an Education Center where visitors can learn more about their jewelry. Top it all off with outstanding guarantees and convenient credit options, and it becomes apparent why so many Americans have chosen Kay as their jeweler.";
	tipobj.innerHTML=thetext;
}

tipobj.style.visibility="visible"
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<tipobj.offsetWidth)
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
else if (curX<leftedge)
tipobj.style.left="5px"
else
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetxpoint+"px"

//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip